Configure outbound API requests inside your pathways using the webhook node.
user_name
and user_interested
are being extracted from the conversation. Up until this node, the objective was given to the agent to discuss the user’s basic information and their availability. Based on what was discussed, the agent will extract the user’s name, along with a True or False value based on whether the user is interested in a follow up meeting.
These variables can then be included in the webhook. Here is an example body:
https://api.example.com/users?id=123&type=new
These query parameters can also be interpolated using variables captured throughout your pathway. For example:
https://api.example.com/users?id={{user_id}}&type={{user_type}}
Built-in Variables
{{phone_number}}
- Always the other party’s number{{country}}
- The country code (ex. US){{state}}
- The state or province’s abbreviation (ex. CA for California){{city}}
- The full city name, capitalized{{zip}}
- The zip code{{call_id}}
- The unique ID of the current call{{now}}
- Current time in the call’s timezone{{now_utc}}
- Current time in UTC format{{from}}
- The outbound number in E.164 format{{to}}
- The inbound number in E.164 format{{short_from}}
- outbound number with country code removed{{short_to}}
- inbound number with country code removeduser_id
)$.data.id
)Note: Every webhook node requires a route for default API Request Completion before saving for the first time.Pathways are evaluated from top to bottom, and each condition can overwrite the previous result:
Important: If any pathway uses API Request Completion (Default), and it evaluates to true, it will take precedence and override all other conditions.