Intelligent voice interaction outbound call workflow
This topic describes the workflow for making intelligent voice interaction outbound calls.
Prerequisites
Register an Alibaba Cloud account and complete enterprise entity verification.
Activate Voice Service.
Add enterprise qualification and have it approved.
Request a real number: Request a real number in the Voice Service console. For more information, see Request a real number.
Background information
The intelligent voice interaction outbound call API works with the intelligent voice interaction outbound call callback HTTP API. When the Voice Service platform initiates a call, it sends you the transcribed text. You must then return the next action to the Voice Service platform.
Procedure
The following diagram shows the workflow for using an API to initiate an intelligent voice interaction outbound call.
Step 1: Configure the callback address
Log on to the Voice Service console. In the left-side navigation pane, choose Common Settings.
Click the Callback URLs tab and enable Intelligent Speech Interaction Callback URL.
Enter the callback URL.
For configuration details, see Configure an intelligent voice interaction callback URL.
Step 2: Initiate an outbound call via API
You can initiate an intelligent voice interaction outbound call by using either of the following APIs:
Call the SmartCall API to initiate an intelligent voice interaction outbound call.
Call the SmartCallOperate API to perform a specified action during an intelligent voice interaction outbound call.
After you initiate an intelligent voice interaction outbound call by using an API, the system automatically sends callbacks to your configured HTTP endpoint. These callbacks contain the real-time transcribed text of the user's speech. Your application must then return the next action to the Voice Service platform, enabling the intelligent voice interaction between the bot and the user.
Step 3: Query call details
You can query call details using either of the following methods:
Query details in the console: In the console, choose . Filter by voice service type, time, calling number, called number, and other criteria to find and view task details.
Query using an API: Call the QueryCallDetailByCallId API to query the details of a specific call.
Next steps
After a call completes, Voice Service delivers a receipt message to you. You can receive these messages in a Message Service (MNS) queue or through an HTTP POST request to a specified URL. For more information, see Introduction to receipt messages.