How do I add a LandscapeGrassOutput on an AutoMaterial (Landscape)?

I want have made a Material that apply different textures automatically to the landscape based on how steep the ground is, but I don’t know how to add the LanscapeGrassOutput only on the grass layer/texture.

Here my blueprints: (Landscape material and grass material-function)