Exotel Multimodal API
Exotel Multimodal API
In a multimodal call, end user can submit information through a chat bot on the mobile browser. User takes several seconds to submit the information, if no input is provided the call gets disconnected after the no input prompts are played.
This API allows the flow admin to play a message before call termination; enable or disable sending the user's voice input to the ASR or VAD. This API can be called any number of times in the flow.
This API is added to an Integration Point under Resources in X‑Platform and used through Integration Point element in X‑Designer.
EndPoint
Method: POST
URL: http://localhost:port/ecr/playMessage/callSid/<callId>
curl --location --request POST 'http://localhost:9929/ecr/playMessage/callSid/2f600001d0d8144edf850567a31d17c7?discardUserInput=false&apikey=aYktdm9pY2UtaBTtbXktcGFzc3dvcmWtdWJvdDI0MjE%3D'\ --header 'Content-Type: text/plain' \ --data ''
curl --location 'http://localhost:9929/ecr/playMessage/callSid/2f600001d0d8144edf850567a31d17c7?discardUserInput=false&apikey=aYktdm9pY2UtaBTtbXktcGFzc3dvcmWtdWJvdDI0MjE%3D'\ --header 'Content-Type: text/plain' \ --data 'Please click the link to open the form and enter the data.'
Path Parameter
Parameter Name | Data Type | Description | Required / Optional |
---|---|---|---|
callId | String | Call Id of the ongoing voice call. | Required |
Query Parameter
Parameter Name | Data Type | Description | Required / Optional |
---|---|---|---|
| Data | The message entered here is played before terminating the call. Example: Thanks for filling the form. We will get back to you shortly. | Optional |
| Boolean | If If | Optional |
apikey | String |
Reach out to Platform team to obtain the | Required |
Response and Error Codes
Response Code | Condition |
---|---|
200 | Ok |
400 | Bad request |
401 | Unauthorized |