Intelligent Speech Interaction inbound callback HTTP interface
This topic describes how to configure inbound calls and callback interfaces for the Intelligent Speech Interaction inbound callback HTTP interface.
Business flow
For more information about the business flow, see Intelligent Speech Interaction inbound business flow.
Add an inbound configuration for a specific number
Log on to the Voice Service console.
In the navigation pane on the left, choose .
On the Service Activation tab, enable the Intelligent Speech Interaction feature. If it is already enabled, skip to the next step.
On the Call Settings tab, click to open the Inbound Configuration for Specific Number page.
Set Configuration Type to Intelligent Speech Interaction Inbound. Then, select a Company, Called Number, and Configuration Description as prompted.
Click Add.
Configure the callback API
-
Log in to the Voice Service console.
-
In the left-side navigation pane, go to and turn on the Intelligent Speech Interaction Callback URL switch.
-
In the Callback URL field, enter a callback URL (for example,
https://push.example.com/contextpath/receive.do). The Response Info area shows the required JSON response format. This information is read-only.NoteThe callback URL receives real-time speech-to-text results and returns the next action.
ImportantBefore saving, ensure that the server corresponding to the receiving address is fully deployed and can return a response in the required JSON format. The response must contain the
result,msg,code, anddatafields, where thedatafield must contain thecall_id,action,action_code, andextendfields. For the specific format, see the Response Example section. -
Click Save. The system sends a one-time HTTP validation request to the callback URL to verify that the response conforms to the specified JSON format. If the callback URL is unreachable or the response format is incorrect, the settings will not be saved.
-
You can also click Test on the right to verify the configuration.
Callback interface specifications
Specification | Description |
Interface protocol | HTTP |
Method | POST |
Character encoding format | UTF-8 |
Examples and parameters
For request examples, response examples, and their parameters for the Intelligent Speech Interaction inbound callback HTTP interface, see:
For the initial inbound call, the 'content_type' request parameter is 'callin'. This indicates that a user initiated the call by dialing the specified number.
For subsequent inbound calls, the 'content_type' value depends on the message type. For example, 'mute' indicates a mute message.