HTTP Web flow
The HTTP web call flow is commonly used for custom call routing. This type of call routing will allow you to connect the selected users, with a custom greeting and waiting music.
Prerequisites
-
Sign up for a free TeleCMI demo account.
-
Buy a phone number.
-
Drag and drop the piopiy script to call flow tool.
HTTP flow JSON
Below is the following POST or GET method JSON
- Single User
- Multiple User
{
"code": 200,
"loop": 2,
"welcome_music": "1609133greeting_music.wav",
"waiting_music": "16098620waiting_music.wav",
"result": [
{
"agent_id": "101_1111112",
"phone": "91996600XXXX"
}
]
}
{
"code": 200,
"loop": 2,
"welcome_music": "1609133greeting_music.wav",
"waiting_music": "16098620waiting_music.wav",
"result": [
{
"agent_id": "101_1111112",
"phone": "91960000XXXX"
},
{
"agent_id": "102_1111112",
"phone": "91910000XXXX"
}
]
}
Required Parameters
These are the required POST or GET method parameters with description
Parameter Name | Type | Description |
---|---|---|
*code | number | Response Code |
loop | number | The total number of retry, of this call. By default, the loop is 1. |
welcome_music | string | The file_name will play the audio file from TeleCMI cloud |
waiting_music | string | The file_name will play the audio file from TeleCMI cloud |
*result | JSON array |
|
Note
The * marked parameter is mandatory.