Voiceflow PartnersVPVoiceflow Partners
Powered by
still-limeS
Voiceflow Partners•2y ago•
1 reply
still-lime

Handling buttons with a custom frontend (Dialog API)

Hi, i have deployed my agent to a custom website. I am having a hard time trying to make buttons work. More specifically on what should i send to voiceflow when a button is pressed?
For example if a button object looks like this:
{
"name": "I would like to ask a question",
"request": {
"type": "path-rs1rm39g6",
"payload": {
"label": "I would like to ask a question",
"actions": []
}
}
}

When the button is pressed, what do i include in the "body" of the API call.
If i construck the body like this, it just replys with the "I would like to ask a question" as a text but doesnt go down the path that is attached to the button.
const body = {
uniqueId: uniqueId,
config: { tts: true, stripSSML: true },
action: { type: "text", payload: button.request.payload},
};
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

Dialog API
HarryHHarry / ❓┃ask-a-question
6mo ago
Dialog API Project
sour-pinkSsour-pink / ❓┃ask-a-question
2y ago
No transcripts with API Dialog interact
specific-silverSspecific-silver / ❓┃ask-a-question
2y ago
Get Transcript Dialog API
IonIIon / ❓┃ask-a-question
8mo ago