hudayfa
hudayfa1h ago

agent step buttons

1 Reply
Tico | Voiceflow Assistant
How to get Buttons working from an Agent step 1️⃣ Turn the feature on • Open the Agent step → Generated Components section.
• Toggle Buttons to ON (Cards / Carousel can stay off if you don’t need them). 2️⃣ Choose a model that supports UI components
• Anthropic models (Claude-4, Claude-3 Sonnet/Opus, etc.) are currently recommended.
• OpenAI GPT-3.5/4 can return plain text but often skip the button trace. 3️⃣ Tell the agent exactly when to use buttons
Add instructions inside the Agent prompt, e.g.
After greeting the user, offer three buttons:
– “Speak to support”
– “Check order status”
– “Return a product”
When the user clicks a button treat it as if they typed the label and continue the flow.
After greeting the user, offer three buttons:
– “Speak to support”
– “Check order status”
– “Return a product”
When the user clicks a button treat it as if they typed the label and continue the flow.
Be as explicit as possible—the LLM will only output the trace when it’s sure it should. 4️⃣ Test in a chat interface that can render the trace
• Voiceflow Test Tool, Prototype, and Web Chat automatically render the choice trace as clickable buttons.
• If you’re previewing in a channel that doesn’t support this trace, you’ll only see plain text. 5️⃣ Verify the trace is present
In the Test Tool open Debug ↗︎ → click the Agent message → look for a choice trace that lists your button labels. If the trace is missing the model didn’t follow the prompt—tighten your instructions or simplify the use-case. --- Quick checklist ✅ Buttons toggle ON in the Agent step
✅ Using an Anthropic model
✅ Prompt explicitly describes the buttons
✅ Testing in Test/Prototype/Web Chat ℹ️ Reference docs: https://docs.voiceflow.com ➜ Builder ➜ Agent step ➜ “Agent-generated components”. Give those steps a try and let me know if the buttons still don’t appear! 😊
Voiceflow
Welcome to Voiceflow's docs
Build, manage, and deliver chat and voice agents for customer support and beyond.

Did you find this page helpful?