ambitious-aqua
ambitious-aqua2y ago

What does type: 'no-reply' do to the Voiceflow bot?

What happens when the following call is made? await interact( user_id, { type: 'no-reply', }, phone_number_id, user_name )
4 Replies
Tico | Voiceflow Assistant
The type: 'no-reply' in Voiceflow is used to handle situations where the user gives no response at all, such as remaining silent or being away from the keyboard. This is part of the "No Reply Response" feature in Voiceflow. Under any "User Input" type step, there is an option to "Add No Reply Response" and designate a timeout period. In the context of the Dialog Manager API, the no-reply trace can be referenced as follows:
trace: [
...otherTraces,
{
type: "no-reply",
payload: { timeout: 5 }
}
]
trace: [
...otherTraces,
{
type: "no-reply",
payload: { timeout: 5 }
}
]
However, in the interact function call you provided, the type: 'no-reply' might not work as expected. The interact function is typically used to send user inputs to Voiceflow and manage the state of the conversation. The type field in the interact function usually takes values like 'text' or 'launch', corresponding to the type of interaction being made. For more details, you can refer to the following sources: - No Reply Response - How to Telegram - Deploy Assistant
ambitious-aqua
ambitious-aquaOP2y ago
let response = await axios({ method: 'POST', url: ${VF_DM_URL}/state/user/${encodeURI(user_id)}/interact, headers: { Authorization: VF_API_KEY, 'Content-Type': 'application/json', versionID: VF_VERSION_ID, sessionID: session, }, data: { action: { type: 'no-reply', }, config: DMconfig, }, }) What will happen in the above call? Since this code (https://github.com/voiceflow/example-integration-whatsapp/blob/master/app.js) contains the above snippet, hence the question.
NiKo | Voiceflow
This will trigger the no-reply action. Based on how your no-reply settings in your step, this will trigger the no-reply prompt or the path linked to the no-reply port.
ambitious-aqua
ambitious-aquaOP2y ago
Thanks. Let me check.

Did you find this page helpful?