we have asteriks server installed.
we have json with flow that we creating with steps, conditions, calling to api and etc.
need to configure server to work by json's
example of json:
"steps": [
{
"id": "6f8c0023-8275-4508-b5c7-b821d7cb81d5",
"action": "play",
"options": {
"media": "[login to view URL]",
"timeout": 20,
"onKeypressVar": "tz",
"onKeypressGoto": "e8bb95bf-5aad-41bc-8d63-068ed464c94b",
"maxNumKeys": 9,
"endKey": "#",
"intent": "play",
"label": "Welcome"
}
},
{
"id": "e8bb95bf-5aad-41bc-8d63-068ed464c94b",
"action": "switch",
"options": {
"cases": [],
"defaultCase": {
"steps": [],
"id": "VKr1HWYMFcG"
},
"intent": "ivrMenu"
}
},
{
"id": "c8bf16d1-974d-4e0b-9541-f2eb773c9d16",
"action": "fetchVariables",
"options": {
"url": "[login to view URL]{{tz}}",
"variableKeys": [
"status",
"phone_num",
"exist_order",
"credit_card"
],
"intent": "fetchVariables",
"method": "GET",
"body": "",
"contentType": ""
}
},
{
"id": "cf0cdae2-f316-4f7d-99e5-af29d93d64a8",
"action": "switch",
"options": {
"cases": [
{
"conditions": [
{
"variable": "{{status}}",
"operator": "==",
"value": "1",
"options": {
"intent": "custom"
}
}
],
"steps": [
{
"id": "b11b8da5-0c37-42fe-bab0-aa3e8490fa5f",
"action": "switch",
"options": {
"cases": [
{
"conditions": [
{
"variable": "{{exist_order}}",
"operator": "==",
"value": "1",
"options": {
"intent": "custom"
}
}
],
"steps": [
{
"id": "fb7be6db-d6a5-455a-b595-16ba543b3935",
"action": "play",
"options": {
"media": "[login to view URL]",
"onKeypressVar": "order_cont",
"onKeypressGoto": "464dfbd7-a769-4a61-a0cb-b7a832b557fb",
"maxNumKeys": 1,
"intent": "play",
"label": "Order Exist"
}
},
{
"id": "464dfbd7-a769-4a61-a0cb-b7a832b557fb",
"action": "switch",
"options": {
"cases": [
{
"conditions": [
{
"variable": "{{order_cont}}",
"operator": "==",
"value": "1",
"options": {
"intent": "custom"
}
}
],
"steps": [
{
"id": "b9777c64-0f51-4ba7-95e6-dc0000cf5d6c",
"action": "jumpToStep",