fair-rose
fair-rose2y ago

One question...

Hey, I just have a question: My chatbot has buttons and when I use the "dialog interact api" I get the buttons back but when I want to make the call with the button choice how should I do it? (Like the message type, payloads, etc.) <#1202679183013318697> #
3 Replies
Tico | Voiceflow Assistant
To make a call with the button choice using the "dialog interact API," you should follow these steps: 1. After receiving the buttons through the API, determine which button the user selects. 2. Use the selected button's payload to send a response back to your Voiceflow project. This typically involves sending a "text request" or an "intent request" depending on how your buttons are configured and whether you are using custom NLU (Natural Language Understanding) matching. 3. The API will process this response and advance the conversation accordingly, based on the logic defined in your Voiceflow project. Remember, buttons in Voiceflow are designed to streamline user interactions by providing them with clickable options that directly influence the conversational flow. Each button can be associated with specific intents or actions within your chatbot, making it essential to handle the user's selection correctly to ensure a smooth conversational experience. For more detailed information on handling user inputs and advancing conversations in Voiceflow, you might find these resources helpful: - Adding User Input - Voiceflow API Reference
fair-rose
fair-roseOP2y ago
@Tico | Voiceflow Assistant Can you please provide the json code example?
NiKo | Voiceflow
Your buttons should return a path in the DM API trace. Use this as the next action to send to the DM API interact endpoint.
{
"action": {
"type": "path-xyz"
}
}
{
"action": {
"type": "path-xyz"
}
}

Did you find this page helpful?