ambitious-aqua•2y 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
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:
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 Assistantambitious-aquaOP•2y 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.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-aquaOP•2y ago
Thanks. Let me check.