round-purple
round-purple2y ago

unable to display dynamic buttons in the charts from a function

am experiencing a challenge where i have a function that is running very well in coding environment whose output is supposed to be buttons which a user can click on to select an option the problem is despite the function running correctly it still does not display the buttons in the charts anyone who knows where the problem could be
5 Replies
round-purple
round-purpleOP2y ago
as you can see here the code works just fine
No description
round-purple
round-purpleOP2y ago
but in the charts it does not display the buttons:
No description
W. Williams (SFT)
@NiKo | Voiceflow are buttons supported within Functions?
NiKo | Voiceflow
Voiceflow
How to write a function
Learn all you need to know about creating Voiceflow function code
W. Williams (SFT)
Sweet then you need to do something like:
type: 'choice',
buttons: [
{
name: 'Display Me',
request: {
'type': 'choice',
'payload': {
// any data you want to pass
varName1: 'value',
varName2: 'value'
}
}
}
]
type: 'choice',
buttons: [
{
name: 'Display Me',
request: {
'type': 'choice',
'payload': {
// any data you want to pass
varName1: 'value',
varName2: 'value'
}
}
}
]
I did not test this, but it should be correct.

Did you find this page helpful?