- Introductions
- Quick Start
- Get the Authorization token
- Error Codes
- Workflow
- Webhooks of the Info of Predictive Dialer System
- Create a New WorkFlow TaskPOST
- Obtain the List of Workflow TemplatesGET
- Add lists to an workflow taskPOST
- Update the List Info of Workflow TaskPOST
- Cancel the processes for a specific listPOST
- Notification of Call Completion in Workflow (Debt Collection/Marketing/E-commerce)POST
- Notification of Call Completion in Workflow(Info Check)POST
- Custom API Node Data PushPOST
- Verify the Custom API Node Data PushPOST
- Stop the Workflow TaskPOST
- Obtain the Workflow Task ListGET
- Obtain the Subtask List of the WorkflowGET
- Obtain the Outbound Task List of WorkflowPOST
- Obtain the Outbound Task Details of Workflow(Collection/Telemarketing/E-commerce)POST
- Obtain the Outbound Task Details of Workflow(Info Check)POST
- Obtain Call Information and Recording Links by callee/caseid and taskid/workflow_idGET
- Obtian Call Information and Recording Link by Call IDGET
- Obtain All the Recordings of a Single Number in the WorkflowGET
- Query workflow_id using case_id/calleePOST
- Notification for Workflow List CompletionPOST
- Notification of Workflow Status ChangePOST
- Obtain the WABA Tasks List of WorkflowGET
- Obtain the WABA Task Details of WorkflowGET
- Notification of WABA Message Status Alteration in WorkflowPOST
- Chatbot Session End Notification in WorkflowPOST
Create a New WorkFlow Task
Production
Production
POST
/service/cloud/workflow/createinstance
Request
Header Params
Authorization
string
required
Default:
Token 3Ksb9EkFDQHBhAbvYDTq4+pGGjNRAuLtPF9MMt9E97hX+OgLWTmeZtdGZyjR+YqU
Content-Type
string
required
Default:
application/json
User-Agent
string
optional
Default:
Airudder
Body Params application/json
workflow_template_id
integer
required
workflow_template_name
string
optional
name
string
required
workflow_name
string
optional
auto_finish
integer
optional
Default:
2
end_time
string
required
1.When the time reachs the end time, the workflow status will be changed to finished, and all the tasks in the process of the workflow will be marked as finished.
2.In the format of YYYY-MM-DD HH:MM:SS+TIMEZONE. For example: 2022-12-31 12:34:56+07:00.
3.Please provide the TIMEZONE based on the location of your account's business operations. If the TIMEZONE is not specified, we will assume it as +00:00.
holiday_pause
integer
optional
Default:
2
holiday_pause_category
array [object {2}]
optional
type
string
optional
1.Working Days
2.Weekends
3.Statutory Holiday
4.Custom Holiday
Among them, Working Days, Weekends, and Statutory Holiday are automatically generated by the system. Custom Holiday needs to be managed on the web portal.
group
array[string]
optional
details
array [object {5}]
required
callee
string
required
platform
string
required
caseid
string
optional
variables
object
required
1.The key is the variable name provided by us, and the value is the variable content of type String.
2.The list provides examples of common robot variables in the debt collection scenario (for Telmarketing and E-commerce scenarios, only customer_name is required, while other fields are optional. Please upload according to the requirements of the robot). For specific variables used, please contact us to obtain them.
3.For other custom variables not listed, please upload them in the key-value format.
pds_variables
object
optional
Example
{
"workflow_template_id": 1,
"name": "workflow-test-1",
"auto_finish": 1,
"end_time": "2022-10-30 05:05:14+08:00",
"holiday_pause": 2,
"details": [
{
"callee": "+8612345678",
"platform": "platform-name",
"variables": {
"customer_name": "test-user1",
"borrow_total_money": "12000",
"borrow_money": "10000",
"due_date": "2022-10-10",
"borrowed_date": "2022-10-08",
"extra_a": "hello world",
"gender": "male",
"comments": "comments "
},
"caseid": "test-caseid"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.airudder.com/service/cloud/workflow/createinstance' \
--header 'Authorization;' \
--header 'User-Agent: Airudder' \
--header 'Content-Type: application/json' \
--data-raw '{
"workflow_template_id": 1,
"name": "workflow-test-1",
"auto_finish": 1,
"end_time": "2022-10-30 05:05:14+08:00",
"holiday_pause": 2,
"details": [
{
"callee": "+8612345678",
"platform": "platform-name",
"variables": {
"customer_name": "test-user1",
"borrow_total_money": "12000",
"borrow_money": "10000",
"due_date": "2022-10-10",
"borrowed_date": "2022-10-08",
"extra_a": "hello world",
"gender": "male",
"comments": "comments "
},
"caseid": "test-caseid"
}
]
}'
Responses
🟢200success
application/json
Body
data
object
required
workflow_id
string
required
status
enum<string>
required
Allowed value:
OK
code
enum<integer>
required
Allowed values:
200403500401
Example
{
"data": {
"workflow_id": "f3696213b60c4debae668f4defd1e60d"
},
"status": "OK",
"code": 200
}
🟢200error1
🟢200error2
Modified at 2024-05-27 10:22:16