Taskbot Version
  • 14 Jul 2022
  • 51 Minutes to read
  • Dark
    Light

Taskbot Version

  • Dark
    Light

Article summary

Taskbot Version

Taskbot Version JSON Format

Taskbot Version is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the taskbot version.
taskbotIdguidId of the taskbot.
createdTimedatetimeTaskbot created time.
taskbotActionstaskbotActions[]Reference to Taskbot Action.

Get the list of Taskbot Versions

GET bot/taskbotVersions

  • Parameters:

NameTypeinRequiredDescription
taskbotIdguidquerynoId of the taskbot.
includestringquerynoAllowed value is "taskbotAction".
  • Response:

An array of Taskbot Version

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotVersions \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "00000000-0000-0000-0000-000000000000",
      "taskbotId": "00000000-0000-0000-0000-000000000000",
      "createdTime": "2021-04-07T05:59:17.887Z",
      "taskbotActions": [
          {
              "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
              "xPosition": 50,
              "yPosition": 50,
              "type": "taskbotStart",
              "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
              "taskbotStart": {
                  "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
                  "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
              },
              "taskbotCollectComment": {
                  "typingDelay": 1.0,
                  "message": "text",
                  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
              },
              "taskbotCollectCompanyName": {
                  "typingDelay": 1.0,
                  "message": "text",
                  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
              },
              "taskbotCollectEmail": {
                  "typingDelay": 1.0,
                  "message": "text",
                  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
              },
              "taskbotSendEmail": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "subject": "subject",
                  "content": "content",
                  "to": "test@comm100.com",
                  "cc": "test1@comm100.com",
                  "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
              },
              "taskbotBookMeeting": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
                  "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
                  "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
                  "calendlyEventTypeUri": "https://..."
              },
              "taskbotCollectLocation": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "typingDelay": 1.0,
                  "message": "shareLocation",
                  "buttonText": "button",
                  "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
              },
              "taskbotCollectName": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "message": "text",
                  "typingDelay": 1.0
              },
              "taskbotCollectPhoneNumber": {
                  "typingDelay": 1.0,
                  "message": "text",
                  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
              },
              "taskbotCollectVariableData": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
                  "variableName": "name",
                  "options": "option1",
                  "message": "text",
                  "typingDelay": 1.0,
                  "type": "text"
              },
              "taskbotGotoTaskbot": {
                  "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
                  "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
              },
              "taskbotQuickReply": {
                  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
                  "typingDelay": 1.0,
                  "message": "link to baidu",
                  "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
                  "taskbotQuickReplyOptions": [
                      {
                          "id": "EF948954-AE49-EB11-8100-00155D081D0B",
                          "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
                          "text": "Baidu",
                          "order": 0,
                          "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
                      }
                  ]
              },
              "taskbotSendImage": {
                  "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
                  "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
                  "typingDelay": 1.0,
                  "message": "test",
                  "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
                  "imageUrl": ""
              },
              "taskbotSendMessage": {
                  "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
                  "typingDelay": 1.0,
                  "message": "hi",
                  "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
                  "taskbotSendMessageButtons": [
                      {
                          "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
                          "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
                          "buttonText": "test",
                          "url": "https://...",
                          "order": 1,
                          "type": "link",
                          "openIn": "currentWindow",
                          "openStyle": "compact"
                      }
                  ]
              },
              "taskbotSendVideo": {
                  "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
                  "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
                  "typingDelay": 1.0,
                  "message": "test",
                  "videoUrl": "https://..."
              },
              "taskbotSSOLoginButton": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "typingDelay": 1.0,
                  "message": "To get personized service, you need to login first.",
                  "loginButtonText": "login",
                  "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
              },
              "taskbotTransferChat": {
                  "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
                  "type": "transferToDepartment",
                  "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
                  "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
              },
              "taskbotWebhook": {
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "url": "https://...",
                  "ifSendChatTranscript": false,
                  "additionalPostBody": "",
                  "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
                  "taskbotWebhookHeaders": [
                      {
                          "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                          "key": "key",
                          "value": "value",
                          "order": 1
                      }
                  ],
                  "taskbotWebhookResponseToVariables": [
                      {
                          "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
                          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                          "variableName": "name",
                          "responseKey": "text",
                          "order": 1
                      }
                  ],
                  "taskbotWebhookResponseCodeToActions": [
                      {
                          "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                          "responseCode": "",
                          "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
                          "order": 1
                      }
                  ]
              }
          }
      ]
  }
] 

Get a single Taskbot Version

GET bot/taskbotVersions/{id}

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed value is "taskbotAction".
  • Response:

Taskbot Version

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotVersions/00000000-0000-0000-0000-000000000000 \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "00000000-0000-0000-0000-000000000000",
  "taskbotId": "00000000-0000-0000-0000-000000000000",
  "createdTime": "2021-04-07T05:59:17.887Z",
  "taskbotActions": [
      {
          "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
          "xPosition": 50,
          "yPosition": 50,
          "type": "taskbotStart",
          "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
          "taskbotStart": {
              "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
              "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
          },
          "taskbotCollectComment": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectCompanyName": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectEmail": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotSendEmail": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "subject": "subject",
              "content": "content",
              "to": "test@comm100.com",
              "cc": "test1@comm100.com",
              "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
          },
          "taskbotBookMeeting": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
              "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
              "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
              "calendlyEventTypeUri": "https://..."
          },
          "taskbotCollectLocation": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "shareLocation",
              "buttonText": "button",
              "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectName": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "message": "text",
              "typingDelay": 1.0
          },
          "taskbotCollectPhoneNumber": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectVariableData": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "variableName": "name",
              "options": "option1",
              "message": "text",
              "typingDelay": 1.0,
              "type": "text"
          },
          "taskbotGotoTaskbot": {
              "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
              "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
          },
          "taskbotQuickReply": {
              "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "link to baidu",
              "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
              "taskbotQuickReplyOptions": [
                  {
                      "id": "EF948954-AE49-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
                      "text": "Baidu",
                      "order": 0,
                      "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
                  }
              ]
          },
          "taskbotSendImage": {
              "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
              "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "test",
              "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
              "imageUrl": ""
          },
          "taskbotSendMessage": {
              "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "hi",
              "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
              "taskbotSendMessageButtons": [
                  {
                      "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
                      "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
                      "buttonText": "test",
                      "url": "https://...",
                      "order": 1,
                      "type": "link",
                      "openIn": "currentWindow",
                      "openStyle": "compact"
                  }
              ]
          },
          "taskbotSendVideo": {
              "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
              "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "test",
              "videoUrl": "https://..."
          },
          "taskbotSSOLoginButton": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "To get personized service, you need to login first.",
              "loginButtonText": "login",
              "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotTransferChat": {
              "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
              "type": "transferToDepartment",
              "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
              "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
          },
          "taskbotWebhook": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "url": "https://...",
              "ifSendChatTranscript": false,
              "additionalPostBody": "",
              "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotWebhookHeaders": [
                  {
                      "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                      "key": "key",
                      "value": "value",
                      "order": 1
                  }
              ],
              "taskbotWebhookResponseToVariables": [
                  {
                      "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                      "variableName": "name",
                      "responseKey": "text",
                      "order": 1
                  }
              ],
              "taskbotWebhookResponseCodeToActions": [
                  {
                      "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                      "responseCode": "",
                      "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
                      "order": 1
                  }
              ]
          }
      }
  ]
} 

Create a new Taskbot Version

POST bot/taskbotVersions

  • Parameters:

NameTypeinRequiredDescription
taskbotIdguidbodyyesId of the taskbot.
createdTimedatetimebodynoTaskbot created time.
taskbotActionstaskbotActions[]bodynoReference to Taskbot Action.
  • Response:

Taskbot Version

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotVersions \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotId":"00000000-0000-0000-0000-000000000000","createdTime":"2021-04-07T05:59:17.887Z","taskbotActions":[{"xPosition":50,"yPosition":50,"type":"taskbotStart","taskbotStart":{"nextActionId":"d2be5b63-24dc-4c14-9926-788e9af54760"},"taskbotSendMessage":{"typingDelay":1.0,"message":"hi","nextActionId":"76ef3d7c-372f-4c34-8642-e51496accdfc","taskbotSendMessageButtons":[{"buttonText":"test","url":"https://...","order":1,"type":"link","openIn":"currentWindow","openStyle":"compact"}]},"taskbotSendImage":{"nextActionId":"8AE8FDBF-504A-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","image":"","imageUrl":""},"taskbotSendVideo":{"nextActionId":"D0948954-AE49-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","videoUrl":"https://..."},"taskbotSSOLoginButton":{"typingDelay":1.0,"message":"To get personized service, you need to login first.","loginButtonText":"login","loginInActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectLocation":{"typingDelay":1.0,"message":"shareLocation","buttonText":"button","successActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectName":{"nextActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","message":"text","typingDelay":1.0},"taskbotCollectEmail":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectPhoneNumber":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectCompanyName":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectComment":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectVariableData":{"nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B","variableName":"name","options":"option1","message":"text","typingDelay":1.0,"type":"text"},"taskbotWebhook":{"url":"https://...","ifSendChatTranscript":false,"additionalPostBody":"","otherResponseToActionId":"4CB006E2-BA49-EB11-8100-00155D081D0B","taskbotWebhookHeaders":[{"key":"key","value":"value","order":1}],"taskbotWebhookResponseToVariables":[{"variableName":"name","responseKey":"text","order":1}],"taskbotWebhookResponseCodeToActions":[{"responseCode":"","nextActionId":"5AB006E2-BA49-EB11-8100-00155D081D0B","order":1}]},"taskbotSendEmail":{"subject":"subject","content":"content","to":"test@comm100.com","cc":"test1@comm100.com","nextActionId":"9F813BFF-E65A-EB11-8101-00155D081D0B"},"taskbotBookMeeting":{"failedActionId":"b3d0be60-e7a6-47e2-82b9-b30b31806663","successActionId":"bbec7c36-9c72-4789-8e07-8951c22eb945","integrationCalendlyId":"c2c165b7-d5ce-40e5-a492-f586f514a062","calendlyEventTypeUri":"https://..."},"taskbotGotoTaskbot":{"taskbotId":"4E8E8CE8-AD49-EB11-8100-00155D081D0B"},"taskbotTransferChat":{"type":"transferToDepartment","transferTo":"EF101911-4E4A-EB11-8100-00155D081D0B","whenAgentOfflineToActionId":"5A101911-4E4A-EB11-8100-00155D081D0B"},"taskbotQuickReply":{"typingDelay":1.0,"message":"link to baidu","otherResponseToActionId":"4CB9B085-AC49-EB11-8100-00155D081D0B","taskbotQuickReplyOptions":[{"text":"Baidu","order":0,"nextActionId":"F5948954-AE49-EB11-8100-00155D081D0B"}]}}]}' 

Response:

HTTP/1.1 201 Created

{
  "id": "00000000-0000-0000-0000-000000000000",
  "taskbotId": "00000000-0000-0000-0000-000000000000",
  "createdTime": "2021-04-07T05:59:17.887Z",
  "taskbotActions": [
      {
          "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
          "xPosition": 50,
          "yPosition": 50,
          "type": "taskbotStart",
          "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
          "taskbotStart": {
              "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
              "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
          },
          "taskbotCollectComment": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectCompanyName": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectEmail": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotSendEmail": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "subject": "subject",
              "content": "content",
              "to": "test@comm100.com",
              "cc": "test1@comm100.com",
              "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
          },
          "taskbotBookMeeting": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
              "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
              "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
              "calendlyEventTypeUri": "https://..."
          },
          "taskbotCollectLocation": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "shareLocation",
              "buttonText": "button",
              "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectName": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "message": "text",
              "typingDelay": 1.0
          },
          "taskbotCollectPhoneNumber": {
              "typingDelay": 1.0,
              "message": "text",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotCollectVariableData": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "variableName": "name",
              "options": "option1",
              "message": "text",
              "typingDelay": 1.0,
              "type": "text"
          },
          "taskbotGotoTaskbot": {
              "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
              "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
          },
          "taskbotQuickReply": {
              "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "link to baidu",
              "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
              "taskbotQuickReplyOptions": [
                  {
                      "id": "EF948954-AE49-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
                      "text": "Baidu",
                      "order": 0,
                      "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
                  }
              ]
          },
          "taskbotSendImage": {
              "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
              "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "test",
              "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
              "imageUrl": ""
          },
          "taskbotSendMessage": {
              "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "hi",
              "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
              "taskbotSendMessageButtons": [
                  {
                      "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
                      "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
                      "buttonText": "test",
                      "url": "https://...",
                      "order": 1,
                      "type": "link",
                      "openIn": "currentWindow",
                      "openStyle": "compact"
                  }
              ]
          },
          "taskbotSendVideo": {
              "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
              "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "test",
              "videoUrl": "https://..."
          },
          "taskbotSSOLoginButton": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "typingDelay": 1.0,
              "message": "To get personized service, you need to login first.",
              "loginButtonText": "login",
              "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
          },
          "taskbotTransferChat": {
              "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
              "type": "transferToDepartment",
              "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
              "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
          },
          "taskbotWebhook": {
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "url": "https://...",
              "ifSendChatTranscript": false,
              "additionalPostBody": "",
              "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotWebhookHeaders": [
                  {
                      "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                      "key": "key",
                      "value": "value",
                      "order": 1
                  }
              ],
              "taskbotWebhookResponseToVariables": [
                  {
                      "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                      "variableName": "name",
                      "responseKey": "text",
                      "order": 1
                  }
              ],
              "taskbotWebhookResponseCodeToActions": [
                  {
                      "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                      "responseCode": "",
                      "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
                      "order": 1
                  }
              ]
          }
      }
  ]
} 

Taskbot Action JSON Format

Taskbot Action is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotVersionIdguidId of the taskbot version.
xPositionintegerThe action's xPosition(in pixel) in the diagram.
yPositionintegerThe action's yPosition(in pixel) in the diagram.
typeenumType of the taskbotAction.Allowed values are taskbotStart, taskbotSendMessage, taskbotSendImage, taskbotSendVideo, taskbotSSOLoginButton, taskbotCollectLocation, taskbotCollectName, taskbotCollectEmail, taskbotCollectPhoneNumber, taskbotCollectCompanyName, taskbotCollectComment, taskbotCollectVariableData, taskbotWebhook, taskbotSendEmail, taskbotBookMeeting, taskbotGotoTaskbot, taskbotTransferChat, taskbotQuickReply.
idguidId of the taskbot action.
taskbotStarttaskbotStartReference to Taskbot Start.
taskbotCollectCommenttaskbotCollectCommentReference to Taskbot Collect Comment.
taskbotCollectCompanyNametaskbotCollectCompanyNameReference to Taskbot Collect Company Name.
taskbotCollectEmailtaskbotCollectEmailReference to Taskbot Collect Email.
taskbotSendEmailtaskbotSendEmailReference to Taskbot Send Email.
taskbotBookMeetingtaskbotBookMeetingReference to Taskbot Book Meeting.
taskbotCollectLocationtaskbotCollectLocationReference to Taskbot Collect Location.
taskbotCollectNametaskbotCollectNameReference to Taskbot Collect Name.
taskbotCollectPhoneNumbertaskbotCollectPhoneNumberReference to Taskbot Collect Phone Number.
taskbotCollectVariableDatataskbotCollectVariableDataReference to Taskbot Collect Variable Data.
taskbotGotoTaskbottaskbotGotoTaskbotReference to Taskbot Go To Taskbot.
taskbotQuickReplytaskbotQuickReplyReference to Taskbot Quick Reply.
taskbotSendImagetaskbotSendImageReference to Taskbot Send Image.
taskbotSendMessagetaskbotSendMessageReference to Taskbot Send Message.
taskbotSendVideotaskbotSendVideoReference to Taskbot Send Video.
taskbotSSOLoginButtontaskbotSSOLoginButtonReference to Taskbot SSO Login Button.
taskbotTransferChattaskbotTransferChatReference to Taskbot Transfer Chat.
taskbotWebhooktaskbotWebhookReference to Taskbot Webhook.

Get the list of Taskbot Actions

GET bot/taskbotActions

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed values are "taskbotStart", "taskbotCollectComment", "taskbotCollectCompanyName", "taskbotCollectEmail", "taskbotCollectLocation", "taskbotCollectName", "taskbotCollectPhoneNumber", "taskbotCollectVariableData", "taskbotGotoTaskbot", "taskbotQuickReply", "taskbotSendImage", "taskbotSendMessage", "taskbotSendVideo", "taskbotSSOLoginButton", "taskbotWebhook", "taskbotSendEmail", "taskbotBookMeeting".
  • Response:

An array of Taskbot Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
      "xPosition": 50,
      "yPosition": 50,
      "type": "taskbotStart",
      "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
      "taskbotStart": {
          "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
          "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
      },
      "taskbotCollectComment": {
          "typingDelay": 1.0,
          "message": "text",
          "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
      },
      "taskbotCollectCompanyName": {
          "typingDelay": 1.0,
          "message": "text",
          "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
      },
      "taskbotCollectEmail": {
          "typingDelay": 1.0,
          "message": "text",
          "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
      },
      "taskbotSendEmail": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "subject": "subject",
          "content": "content",
          "to": "test@comm100.com",
          "cc": "test1@comm100.com",
          "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
      },
      "taskbotBookMeeting": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
          "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
          "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
          "calendlyEventTypeUri": "https://..."
      },
      "taskbotCollectLocation": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "typingDelay": 1.0,
          "message": "shareLocation",
          "buttonText": "button",
          "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
      },
      "taskbotCollectName": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "message": "text",
          "typingDelay": 1.0
      },
      "taskbotCollectPhoneNumber": {
          "typingDelay": 1.0,
          "message": "text",
          "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
      },
      "taskbotCollectVariableData": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "variableName": "name",
          "options": "option1",
          "message": "text",
          "typingDelay": 1.0,
          "type": "text"
      },
      "taskbotGotoTaskbot": {
          "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
          "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
      },
      "taskbotQuickReply": {
          "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
          "typingDelay": 1.0,
          "message": "link to baidu",
          "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
          "taskbotQuickReplyOptions": [
              {
                  "id": "EF948954-AE49-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
                  "text": "Baidu",
                  "order": 0,
                  "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
              }
          ]
      },
      "taskbotSendImage": {
          "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
          "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
          "typingDelay": 1.0,
          "message": "test",
          "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
          "imageUrl": ""
      },
      "taskbotSendMessage": {
          "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
          "typingDelay": 1.0,
          "message": "hi",
          "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
          "taskbotSendMessageButtons": [
              {
                  "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
                  "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
                  "buttonText": "test",
                  "url": "https://...",
                  "order": 1,
                  "type": "link",
                  "openIn": "currentWindow",
                  "openStyle": "compact"
              }
          ]
      },
      "taskbotSendVideo": {
          "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
          "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
          "typingDelay": 1.0,
          "message": "test",
          "videoUrl": "https://..."
      },
      "taskbotSSOLoginButton": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "typingDelay": 1.0,
          "message": "To get personized service, you need to login first.",
          "loginButtonText": "login",
          "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
      },
      "taskbotTransferChat": {
          "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
          "type": "transferToDepartment",
          "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
          "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
      },
      "taskbotWebhook": {
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "url": "https://...",
          "ifSendChatTranscript": false,
          "additionalPostBody": "",
          "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
          "taskbotWebhookHeaders": [
              {
                  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "key": "key",
                  "value": "value",
                  "order": 1
              }
          ],
          "taskbotWebhookResponseToVariables": [
              {
                  "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "variableName": "name",
                  "responseKey": "text",
                  "order": 1
              }
          ],
          "taskbotWebhookResponseCodeToActions": [
              {
                  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
                  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
                  "responseCode": "",
                  "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
                  "order": 1
              }
          ]
      }
  }
] 

Get a single Taskbot Action

GET bot/taskbotActions/{id}

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed values are "taskbotStart", "taskbotCollectComment", "taskbotCollectCompanyName", "taskbotCollectEmail", "taskbotCollectLocation", "taskbotCollectName", "taskbotCollectPhoneNumber", "taskbotCollectVariableData", "taskbotGotoTaskbot", "taskbotQuickReply", "taskbotSendImage", "taskbotSendMessage", "taskbotSendVideo", "taskbotSSOLoginButton", "taskbotWebhook", "taskbotSendEmail", "taskbotBookMeeting".
  • Response:

Taskbot Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/A762827E-0D4B-EB11-8100-00155D081D0B \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
  "xPosition": 50,
  "yPosition": 50,
  "type": "taskbotStart",
  "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
  "taskbotStart": {
      "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
      "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
  },
  "taskbotCollectComment": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectCompanyName": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectEmail": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotSendEmail": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "subject": "subject",
      "content": "content",
      "to": "test@comm100.com",
      "cc": "test1@comm100.com",
      "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
  },
  "taskbotBookMeeting": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
      "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
      "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
      "calendlyEventTypeUri": "https://..."
  },
  "taskbotCollectLocation": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "shareLocation",
      "buttonText": "button",
      "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectName": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "message": "text",
      "typingDelay": 1.0
  },
  "taskbotCollectPhoneNumber": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectVariableData": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "variableName": "name",
      "options": "option1",
      "message": "text",
      "typingDelay": 1.0,
      "type": "text"
  },
  "taskbotGotoTaskbot": {
      "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
      "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
  },
  "taskbotQuickReply": {
      "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "link to baidu",
      "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
      "taskbotQuickReplyOptions": [
          {
              "id": "EF948954-AE49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "text": "Baidu",
              "order": 0,
              "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
          }
      ]
  },
  "taskbotSendImage": {
      "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
      "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "test",
      "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
      "imageUrl": ""
  },
  "taskbotSendMessage": {
      "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "hi",
      "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
      "taskbotSendMessageButtons": [
          {
              "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
              "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
              "buttonText": "test",
              "url": "https://...",
              "order": 1,
              "type": "link",
              "openIn": "currentWindow",
              "openStyle": "compact"
          }
      ]
  },
  "taskbotSendVideo": {
      "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
      "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "test",
      "videoUrl": "https://..."
  },
  "taskbotSSOLoginButton": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "To get personized service, you need to login first.",
      "loginButtonText": "login",
      "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotTransferChat": {
      "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
      "type": "transferToDepartment",
      "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
      "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
  },
  "taskbotWebhook": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "url": "https://...",
      "ifSendChatTranscript": false,
      "additionalPostBody": "",
      "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
      "taskbotWebhookHeaders": [
          {
              "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "key": "key",
              "value": "value",
              "order": 1
          }
      ],
      "taskbotWebhookResponseToVariables": [
          {
              "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "variableName": "name",
              "responseKey": "text",
              "order": 1
          }
      ],
      "taskbotWebhookResponseCodeToActions": [
          {
              "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "responseCode": "",
              "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
              "order": 1
          }
      ]
  }
} 

Create a new Taskbot Action

POST bot/taskbotActions

  • Parameters:

NameTypeinRequiredDescription
taskbotVersionIdguidbodyyesId of the taskbot version.
xPositionintegerbodynoThe action's xPosition(in pixel) in the diagram.
yPositionintegerbodynoThe action's yPosition(in pixel) in the diagram.
typeenumbodyyesType of the taskbotAction.Allowed values are taskbotStart, taskbotSendMessage, taskbotSendImage, taskbotSendVideo, taskbotSSOLoginButton, taskbotCollectLocation, taskbotCollectName, taskbotCollectEmail, taskbotCollectPhoneNumber, taskbotCollectCompanyName, taskbotCollectComment, taskbotCollectVariableData, taskbotWebhook, taskbotSendEmail, taskbotBookMeeting, taskbotGotoTaskbot, taskbotTransferChat, taskbotQuickReply.
taskbotStarttaskbotStartbodynoReference to Taskbot Start.
taskbotSendMessagetaskbotSendMessagebodynoReference to Taskbot Send Message.
taskbotSendImagetaskbotSendImagebodynoReference to Taskbot Send Image.
taskbotSendVideotaskbotSendVideobodynoReference to Taskbot Send Video.
taskbotSSOLoginButtontaskbotSSOLoginButtonbodynoReference to Taskbot SSO Login Button.
taskbotCollectLocationtaskbotCollectLocationbodynoReference to Taskbot Collect Location.
taskbotCollectNametaskbotCollectNamebodynoReference to Taskbot Collect Name.
taskbotCollectEmailtaskbotCollectEmailbodynoReference to Taskbot Collect Email.
taskbotCollectPhoneNumbertaskbotCollectPhoneNumberbodynoReference to Taskbot Collect Phone Number.
taskbotCollectCompanyNametaskbotCollectCompanyNamebodynoReference to Taskbot Collect Company Name.
taskbotCollectCommenttaskbotCollectCommentbodynoReference to Taskbot Collect Comment.
taskbotCollectVariableDatataskbotCollectVariableDatabodynoReference to Taskbot Collect Variable Data.
taskbotWebhooktaskbotWebhookbodynoReference to Taskbot Webhook.
taskbotSendEmailtaskbotSendEmailbodynoReference to Taskbot Send Email.
taskbotBookMeetingtaskbotBookMeetingbodynoReference to Taskbot Book Meeting.
taskbotGotoTaskbottaskbotGotoTaskbotbodynoReference to Taskbot Go To Taskbot.
taskbotTransferChattaskbotTransferChatbodynoReference to Taskbot Transfer Chat.
taskbotQuickReplytaskbotQuickReplybodynoReference to Taskbot Quick Reply.
  • Response:

Taskbot Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotVersionId":"7A6A35A3-814A-EB11-8100-00155D081D0B","xPosition":50,"yPosition":50,"type":"taskbotStart","taskbotStart":{"nextActionId":"d2be5b63-24dc-4c14-9926-788e9af54760"},"taskbotSendMessage":{"typingDelay":1.0,"message":"hi","nextActionId":"76ef3d7c-372f-4c34-8642-e51496accdfc","taskbotSendMessageButtons":[{"buttonText":"test","url":"https://...","order":1,"type":"link","openIn":"currentWindow","openStyle":"compact"}]},"taskbotSendImage":{"nextActionId":"8AE8FDBF-504A-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","image":"","imageUrl":""},"taskbotSendVideo":{"nextActionId":"D0948954-AE49-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","videoUrl":"https://..."},"taskbotSSOLoginButton":{"typingDelay":1.0,"message":"To get personized service, you need to login first.","loginButtonText":"login","loginInActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectLocation":{"typingDelay":1.0,"message":"shareLocation","buttonText":"button","successActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectName":{"nextActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","message":"text","typingDelay":1.0},"taskbotCollectEmail":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectPhoneNumber":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectCompanyName":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectComment":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectVariableData":{"nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B","variableName":"name","options":"option1","message":"text","typingDelay":1.0,"type":"text"},"taskbotWebhook":{"url":"https://...","ifSendChatTranscript":false,"additionalPostBody":"","otherResponseToActionId":"4CB006E2-BA49-EB11-8100-00155D081D0B","taskbotWebhookHeaders":[{"key":"key","value":"value","order":1}],"taskbotWebhookResponseToVariables":[{"variableName":"name","responseKey":"text","order":1}],"taskbotWebhookResponseCodeToActions":[{"responseCode":"","nextActionId":"5AB006E2-BA49-EB11-8100-00155D081D0B","order":1}]},"taskbotSendEmail":{"subject":"subject","content":"content","to":"test@comm100.com","cc":"test1@comm100.com","nextActionId":"9F813BFF-E65A-EB11-8101-00155D081D0B"},"taskbotBookMeeting":{"failedActionId":"b3d0be60-e7a6-47e2-82b9-b30b31806663","successActionId":"bbec7c36-9c72-4789-8e07-8951c22eb945","integrationCalendlyId":"c2c165b7-d5ce-40e5-a492-f586f514a062","calendlyEventTypeUri":"https://..."},"taskbotGotoTaskbot":{"taskbotId":"4E8E8CE8-AD49-EB11-8100-00155D081D0B"},"taskbotTransferChat":{"type":"transferToDepartment","transferTo":"EF101911-4E4A-EB11-8100-00155D081D0B","whenAgentOfflineToActionId":"5A101911-4E4A-EB11-8100-00155D081D0B"},"taskbotQuickReply":{"typingDelay":1.0,"message":"link to baidu","otherResponseToActionId":"4CB9B085-AC49-EB11-8100-00155D081D0B","taskbotQuickReplyOptions":[{"text":"Baidu","order":0,"nextActionId":"F5948954-AE49-EB11-8100-00155D081D0B"}]}}' 

Response:

HTTP/1.1 201 Created

{
  "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
  "xPosition": 50,
  "yPosition": 50,
  "type": "taskbotStart",
  "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
  "taskbotStart": {
      "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
      "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
  },
  "taskbotCollectComment": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectCompanyName": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectEmail": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotSendEmail": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "subject": "subject",
      "content": "content",
      "to": "test@comm100.com",
      "cc": "test1@comm100.com",
      "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
  },
  "taskbotBookMeeting": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
      "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
      "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
      "calendlyEventTypeUri": "https://..."
  },
  "taskbotCollectLocation": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "shareLocation",
      "buttonText": "button",
      "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectName": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "message": "text",
      "typingDelay": 1.0
  },
  "taskbotCollectPhoneNumber": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectVariableData": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "variableName": "name",
      "options": "option1",
      "message": "text",
      "typingDelay": 1.0,
      "type": "text"
  },
  "taskbotGotoTaskbot": {
      "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
      "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
  },
  "taskbotQuickReply": {
      "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "link to baidu",
      "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
      "taskbotQuickReplyOptions": [
          {
              "id": "EF948954-AE49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "text": "Baidu",
              "order": 0,
              "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
          }
      ]
  },
  "taskbotSendImage": {
      "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
      "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "test",
      "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
      "imageUrl": ""
  },
  "taskbotSendMessage": {
      "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "hi",
      "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
      "taskbotSendMessageButtons": [
          {
              "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
              "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
              "buttonText": "test",
              "url": "https://...",
              "order": 1,
              "type": "link",
              "openIn": "currentWindow",
              "openStyle": "compact"
          }
      ]
  },
  "taskbotSendVideo": {
      "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
      "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "test",
      "videoUrl": "https://..."
  },
  "taskbotSSOLoginButton": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "To get personized service, you need to login first.",
      "loginButtonText": "login",
      "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotTransferChat": {
      "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
      "type": "transferToDepartment",
      "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
      "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
  },
  "taskbotWebhook": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "url": "https://...",
      "ifSendChatTranscript": false,
      "additionalPostBody": "",
      "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
      "taskbotWebhookHeaders": [
          {
              "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "key": "key",
              "value": "value",
              "order": 1
          }
      ],
      "taskbotWebhookResponseToVariables": [
          {
              "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "variableName": "name",
              "responseKey": "text",
              "order": 1
          }
      ],
      "taskbotWebhookResponseCodeToActions": [
          {
              "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "responseCode": "",
              "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
              "order": 1
          }
      ]
  }
} 

Update the Taskbot Action

PUT bot/taskbotActions/{id}

  • Parameters:

NameTypeinRequiredDescription
taskbotVersionIdguidbodyyesId of the taskbot version.
xPositionintegerbodynoThe action's xPosition(in pixel) in the diagram.
yPositionintegerbodynoThe action's yPosition(in pixel) in the diagram.
typeenumbodyyesType of the taskbotAction.Allowed values are taskbotStart, taskbotSendMessage, taskbotSendImage, taskbotSendVideo, taskbotSSOLoginButton, taskbotCollectLocation, taskbotCollectName, taskbotCollectEmail, taskbotCollectPhoneNumber, taskbotCollectCompanyName, taskbotCollectComment, taskbotCollectVariableData, taskbotWebhook, taskbotSendEmail, taskbotBookMeeting, taskbotGotoTaskbot, taskbotTransferChat, taskbotQuickReply.
taskbotStarttaskbotStartbodynoReference to Taskbot Start.
taskbotSendMessagetaskbotSendMessagebodynoReference to Taskbot Send Message.
taskbotSendImagetaskbotSendImagebodynoReference to Taskbot Send Image.
taskbotSendVideotaskbotSendVideobodynoReference to Taskbot Send Video.
taskbotSSOLoginButtontaskbotSSOLoginButtonbodynoReference to Taskbot SSO Login Button.
taskbotCollectLocationtaskbotCollectLocationbodynoReference to Taskbot Collect Location.
taskbotCollectNametaskbotCollectNamebodynoReference to Taskbot Collect Name.
taskbotCollectEmailtaskbotCollectEmailbodynoReference to Taskbot Collect Email.
taskbotCollectPhoneNumbertaskbotCollectPhoneNumberbodynoReference to Taskbot Collect Phone Number.
taskbotCollectCompanyNametaskbotCollectCompanyNamebodynoReference to Taskbot Collect Company Name.
taskbotCollectCommenttaskbotCollectCommentbodynoReference to Taskbot Collect Comment.
taskbotCollectVariableDatataskbotCollectVariableDatabodynoReference to Taskbot Collect Variable Data.
taskbotWebhooktaskbotWebhookbodynoReference to Taskbot Webhook.
taskbotSendEmailtaskbotSendEmailbodynoReference to Taskbot Send Email.
taskbotBookMeetingtaskbotBookMeetingbodynoReference to Taskbot Book Meeting.
taskbotGotoTaskbottaskbotGotoTaskbotbodynoReference to Taskbot Go To Taskbot.
taskbotTransferChattaskbotTransferChatbodynoReference to Taskbot Transfer Chat.
taskbotQuickReplytaskbotQuickReplybodynoReference to Taskbot Quick Reply.
  • Response:

Taskbot Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/A762827E-0D4B-EB11-8100-00155D081D0B \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotVersionId":"7A6A35A3-814A-EB11-8100-00155D081D0B","xPosition":50,"yPosition":50,"type":"taskbotStart","taskbotStart":{"nextActionId":"d2be5b63-24dc-4c14-9926-788e9af54760"},"taskbotSendMessage":{"typingDelay":1.0,"message":"hi","nextActionId":"76ef3d7c-372f-4c34-8642-e51496accdfc","taskbotSendMessageButtons":[{"buttonText":"test","url":"https://...","order":1,"type":"link","openIn":"currentWindow","openStyle":"compact"}]},"taskbotSendImage":{"nextActionId":"8AE8FDBF-504A-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","image":"","imageUrl":""},"taskbotSendVideo":{"nextActionId":"D0948954-AE49-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","videoUrl":"https://..."},"taskbotSSOLoginButton":{"typingDelay":1.0,"message":"To get personized service, you need to login first.","loginButtonText":"login","loginInActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectLocation":{"typingDelay":1.0,"message":"shareLocation","buttonText":"button","successActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectName":{"nextActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","message":"text","typingDelay":1.0},"taskbotCollectEmail":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectPhoneNumber":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectCompanyName":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectComment":{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"},"taskbotCollectVariableData":{"nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B","variableName":"name","options":"option1","message":"text","typingDelay":1.0,"type":"text"},"taskbotWebhook":{"url":"https://...","ifSendChatTranscript":false,"additionalPostBody":"","otherResponseToActionId":"4CB006E2-BA49-EB11-8100-00155D081D0B","taskbotWebhookHeaders":[{"key":"key","value":"value","order":1}],"taskbotWebhookResponseToVariables":[{"variableName":"name","responseKey":"text","order":1}],"taskbotWebhookResponseCodeToActions":[{"responseCode":"","nextActionId":"5AB006E2-BA49-EB11-8100-00155D081D0B","order":1}]},"taskbotSendEmail":{"subject":"subject","content":"content","to":"test@comm100.com","cc":"test1@comm100.com","nextActionId":"9F813BFF-E65A-EB11-8101-00155D081D0B"},"taskbotBookMeeting":{"failedActionId":"b3d0be60-e7a6-47e2-82b9-b30b31806663","successActionId":"bbec7c36-9c72-4789-8e07-8951c22eb945","integrationCalendlyId":"c2c165b7-d5ce-40e5-a492-f586f514a062","calendlyEventTypeUri":"https://..."},"taskbotGotoTaskbot":{"taskbotId":"4E8E8CE8-AD49-EB11-8100-00155D081D0B"},"taskbotTransferChat":{"type":"transferToDepartment","transferTo":"EF101911-4E4A-EB11-8100-00155D081D0B","whenAgentOfflineToActionId":"5A101911-4E4A-EB11-8100-00155D081D0B"},"taskbotQuickReply":{"typingDelay":1.0,"message":"link to baidu","otherResponseToActionId":"4CB9B085-AC49-EB11-8100-00155D081D0B","taskbotQuickReplyOptions":[{"text":"Baidu","order":0,"nextActionId":"F5948954-AE49-EB11-8100-00155D081D0B"}]}}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotVersionId": "7A6A35A3-814A-EB11-8100-00155D081D0B",
  "xPosition": 50,
  "yPosition": 50,
  "type": "taskbotStart",
  "id": "A762827E-0D4B-EB11-8100-00155D081D0B",
  "taskbotStart": {
      "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
      "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
  },
  "taskbotCollectComment": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectCompanyName": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectEmail": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotSendEmail": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "subject": "subject",
      "content": "content",
      "to": "test@comm100.com",
      "cc": "test1@comm100.com",
      "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
  },
  "taskbotBookMeeting": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
      "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
      "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
      "calendlyEventTypeUri": "https://..."
  },
  "taskbotCollectLocation": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "shareLocation",
      "buttonText": "button",
      "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectName": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "message": "text",
      "typingDelay": 1.0
  },
  "taskbotCollectPhoneNumber": {
      "typingDelay": 1.0,
      "message": "text",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotCollectVariableData": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "variableName": "name",
      "options": "option1",
      "message": "text",
      "typingDelay": 1.0,
      "type": "text"
  },
  "taskbotGotoTaskbot": {
      "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
      "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
  },
  "taskbotQuickReply": {
      "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "link to baidu",
      "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
      "taskbotQuickReplyOptions": [
          {
              "id": "EF948954-AE49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
              "text": "Baidu",
              "order": 0,
              "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
          }
      ]
  },
  "taskbotSendImage": {
      "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
      "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "test",
      "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
      "imageUrl": ""
  },
  "taskbotSendMessage": {
      "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "hi",
      "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
      "taskbotSendMessageButtons": [
          {
              "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
              "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
              "buttonText": "test",
              "url": "https://...",
              "order": 1,
              "type": "link",
              "openIn": "currentWindow",
              "openStyle": "compact"
          }
      ]
  },
  "taskbotSendVideo": {
      "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
      "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "test",
      "videoUrl": "https://..."
  },
  "taskbotSSOLoginButton": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "typingDelay": 1.0,
      "message": "To get personized service, you need to login first.",
      "loginButtonText": "login",
      "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
  },
  "taskbotTransferChat": {
      "taskbotActionId": "B0101911-4E4A-EB11-8100-00155D081D0B",
      "type": "transferToDepartment",
      "transferTo": "EF101911-4E4A-EB11-8100-00155D081D0B",
      "whenAgentOfflineToActionId": "5A101911-4E4A-EB11-8100-00155D081D0B"
  },
  "taskbotWebhook": {
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "url": "https://...",
      "ifSendChatTranscript": false,
      "additionalPostBody": "",
      "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
      "taskbotWebhookHeaders": [
          {
              "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "key": "key",
              "value": "value",
              "order": 1
          }
      ],
      "taskbotWebhookResponseToVariables": [
          {
              "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "variableName": "name",
              "responseKey": "text",
              "order": 1
          }
      ],
      "taskbotWebhookResponseCodeToActions": [
          {
              "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
              "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
              "responseCode": "",
              "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
              "order": 1
          }
      ]
  }
} 

Remove the Taskbot Action

DELETE bot/taskbotActions/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/A762827E-0D4B-EB11-8100-00155D081D0B \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

Taskbot Start JSON Format

Taskbot Start is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
nextActionIdguidId of the next taskbot action.

Get a single Taskbot Start

GET bot/taskbotActions/{id}/taskbotStart

  • Parameters:

No Parameters

  • Response:

Taskbot Start

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/F8A7A50B-B049-EB11-8100-00155D081D0B/taskbotStart \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
  "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
} 

Update the Taskbot Start

PUT bot/taskbotActions/{id}/taskbotStart

  • Parameters:

NameTypeinRequiredDescription
nextActionIdguidbodynoId of the next taskbot action.
  • Response:

Taskbot Start

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/F8A7A50B-B049-EB11-8100-00155D081D0B/taskbotStart \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"nextActionId":"d2be5b63-24dc-4c14-9926-788e9af54760"}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
  "nextActionId": "d2be5b63-24dc-4c14-9926-788e9af54760"
} 

Taskbot Collect Comment JSON Format

Taskbot Collect Comment is represented as simple flat JSON objects with the following keys:

NameTypeDescription
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringHTML Text.
nextActionIdguidId of the next taskbot action.
taskbotActionIdguidId of the current taskbot action.

Get a single Taskbot Collect Comment

GET bot/taskbotActions/{id}/taskbotCollectComment

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Comment

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectComment \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Update the Taskbot Collect Comment

PUT bot/taskbotActions/{id}/taskbotCollectComment

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoHTML Text.
nextActionIdguidbodynoId of the next taskbot action.
  • Response:

Taskbot Collect Comment

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectComment \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Taskbot Collect Company Name JSON Format

Taskbot Collect Company Name is represented as simple flat JSON objects with the following keys:

NameTypeDescription
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringHTML Text.
nextActionIdguidId of the next taskbot action.
taskbotActionIdguidId of the current taskbot action.

Get a single Taskbot Collect Company Name

GET bot/taskbotActions/{id}/taskbotCollectCompanyName

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Company Name

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectCompanyName \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Update the Taskbot Collect Company Name

PUT bot/taskbotActions/{id}/taskbotCollectCompanyName

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoHTML Text.
nextActionIdguidbodynoId of the next taskbot action.
  • Response:

Taskbot Collect Company Name

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectCompanyName \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Taskbot Collect Email JSON Format

Taskbot Collect Email is represented as simple flat JSON objects with the following keys:

NameTypeDescription
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringHTML Text.
nextActionIdguidId of the next taskbot action.
taskbotActionIdguidId of the current taskbot action.

Get a single Taskbot Collect Email

GET bot/taskbotActions/{id}/taskbotCollectEmail

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Email

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectEmail \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Update the Taskbot Collect Email

PUT bot/taskbotActions/{id}/taskbotCollectEmail

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoHTML Text.
nextActionIdguidbodynoId of the next taskbot action.
  • Response:

Taskbot Collect Email

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectEmail \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Taskbot Send Email JSON Format

Taskbot Send Email is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
subjectstringEmail subject.
contentstringEmail content.
tostringThe email to address. Use commas if there are multiple emails.
ccstringThe email CCs. Use commas if there are multiple emails.
nextActionIdguidId of the next taskbot action.

Get a single Taskbot Send Email

GET bot/taskbotActions/{id}/taskbotSendEmail

  • Parameters:

No Parameters

  • Response:

Taskbot Send Email

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotSendEmail \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "subject": "subject",
  "content": "content",
  "to": "test@comm100.com",
  "cc": "test1@comm100.com",
  "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
} 

Update the Taskbot Send Email

PUT bot/taskbotActions/{id}/taskbotSendEmail

  • Parameters:

NameTypeinRequiredDescription
subjectstringbodynoEmail subject.
contentstringbodynoEmail content.
tostringbodynoThe email to address. Use commas if there are multiple emails.
ccstringbodynoThe email CCs. Use commas if there are multiple emails.
nextActionIdguidbodynoId of the next taskbot action.
  • Response:

Taskbot Send Email

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotSendEmail \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"subject":"subject","content":"content","to":"test@comm100.com","cc":"test1@comm100.com","nextActionId":"9F813BFF-E65A-EB11-8101-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "subject": "subject",
  "content": "content",
  "to": "test@comm100.com",
  "cc": "test1@comm100.com",
  "nextActionId": "9F813BFF-E65A-EB11-8101-00155D081D0B"
} 

Taskbot Book Meeting JSON Format

Taskbot Book Meeting is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
failedActionIdguidId of the action to go to when book meeting failed.
successActionIdguidId of the action to go to when book meeting success.
integrationCalendlyIdguidId of the integration calendly.
calendlyEventTypeUristringURL of the calendly event type.

Get a single Taskbot Book Meeting

GET bot/taskbotActions/{id}/taskbotBookMeeting

  • Parameters:

No Parameters

  • Response:

Taskbot Book Meeting

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotBookMeeting \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
  "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
  "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
  "calendlyEventTypeUri": "https://..."
} 

Update the Taskbot Book Meeting

PUT bot/taskbotActions/{id}/taskbotBookMeeting

  • Parameters:

NameTypeinRequiredDescription
failedActionIdguidbodynoId of the action to go to when book meeting failed.
successActionIdguidbodynoId of the action to go to when book meeting success.
integrationCalendlyIdguidbodyyesId of the integration calendly.
calendlyEventTypeUristringbodyyesURL of the calendly event type.
  • Response:

Taskbot Book Meeting

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotBookMeeting \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"failedActionId":"b3d0be60-e7a6-47e2-82b9-b30b31806663","successActionId":"bbec7c36-9c72-4789-8e07-8951c22eb945","integrationCalendlyId":"c2c165b7-d5ce-40e5-a492-f586f514a062","calendlyEventTypeUri":"https://..."}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "failedActionId": "b3d0be60-e7a6-47e2-82b9-b30b31806663",
  "successActionId": "bbec7c36-9c72-4789-8e07-8951c22eb945",
  "integrationCalendlyId": "c2c165b7-d5ce-40e5-a492-f586f514a062",
  "calendlyEventTypeUri": "https://..."
} 

Taskbot Collect Location JSON Format

Taskbot Collect Location is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringThe message will be shown above Share Location button.
buttonTextstringThe button text for Share Location button.
successActionIdguidId of the action to go to when successfully get location info.
failedActionIdguidId of the action to go to when can not get location info.

Get a single Taskbot Collect Location

GET bot/taskbotActions/{id}/taskbotCollectLocation

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Location

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectLocation \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "shareLocation",
  "buttonText": "button",
  "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Update the Taskbot Collect Location

PUT bot/taskbotActions/{id}/taskbotCollectLocation

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoThe message will be shown above Share Location button.
buttonTextstringbodynoThe button text for Share Location button.
successActionIdguidbodynoId of the action to go to when successfully get location info.
failedActionIdguidbodynoId of the action to go to when can not get location info.
  • Response:

Taskbot Collect Location

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectLocation \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"shareLocation","buttonText":"button","successActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "shareLocation",
  "buttonText": "button",
  "successActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Taskbot Collect Name JSON Format

Taskbot Collect Name is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
nextActionIdguidId of the next taskbot action.
messagestringHTML Text.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.

Get a single Taskbot Collect Name

GET bot/taskbotActions/{id}/taskbotCollectName

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Name

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectName \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "message": "text",
  "typingDelay": 1.0
} 

Update the Taskbot Collect Name

PUT bot/taskbotActions/{id}/taskbotCollectName

  • Parameters:

NameTypeinRequiredDescription
nextActionIdguidbodynoId of the next taskbot action.
messagestringbodynoHTML Text.
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
  • Response:

Taskbot Collect Name

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectName \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"nextActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","message":"text","typingDelay":1.0}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "nextActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "message": "text",
  "typingDelay": 1.0
} 

Taskbot Collect Phone Number JSON Format

Taskbot Collect Phone Number is represented as simple flat JSON objects with the following keys:

NameTypeDescription
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringHTML Text.
nextActionIdguidId of the next taskbot action.
taskbotActionIdguidId of the current taskbot action.

Get a single Taskbot Collect Phone Number

GET bot/taskbotActions/{id}/taskbotCollectPhoneNumber

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Phone Number

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectPhoneNumber \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Update the Taskbot Collect Phone Number

PUT bot/taskbotActions/{id}/taskbotCollectPhoneNumber

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoHTML Text.
nextActionIdguidbodynoId of the next taskbot action.
  • Response:

Taskbot Collect Phone Number

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectPhoneNumber \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"text","nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "typingDelay": 1.0,
  "message": "text",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Taskbot Collect Variable Data JSON Format

Taskbot Collect Variable Data is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
nextActionIdguidId of the next taskbot action.
variableNamestringCan only contain letters and numbers.
optionsstringOnly available when type is singleSelect or multipleSelect.
messagestringHTML Text.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
typeenumContent of the custom page.Allowed values are text, textArea, singleSelect, multipleSelect, email, password, date, time.

Get a single Taskbot Collect Variable Data

GET bot/taskbotActions/{id}/taskbotCollectVariableData

  • Parameters:

No Parameters

  • Response:

Taskbot Collect Variable Data

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectVariableData \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "variableName": "name",
  "options": "option1",
  "message": "text",
  "typingDelay": 1.0,
  "type": "text"
} 

Update the Taskbot Collect Variable Data

PUT bot/taskbotActions/{id}/taskbotCollectVariableData

  • Parameters:

NameTypeinRequiredDescription
nextActionIdguidbodynoId of the next taskbot action.
variableNamestringbodynoCan only contain letters and numbers.
optionsstringbodynoOnly available when type is singleSelect or multipleSelect.
messagestringbodynoHTML Text.
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
typeemunbodynoContent of the custom page.Allowed values are text, textArea, singleSelect, multipleSelect, email, password, date, time.
  • Response:

Taskbot Collect Variable Data

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotCollectVariableData \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"nextActionId":"D4C7158C-644A-EB11-8100-00155D081D0B","variableName":"name","options":"option1","message":"text","typingDelay":1.0,"type":"text"}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "nextActionId": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "variableName": "name",
  "options": "option1",
  "message": "text",
  "typingDelay": 1.0,
  "type": "text"
} 

Taskbot Go To Taskbot JSON Format

Taskbot Go To Taskbot is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the taskbotaction.
taskbotIdguidId of the taskbot.

Get a single Taskbot Go To Taskbot

GET bot/taskbotActions/{id}/taskbotGotoTaskbot

  • Parameters:

No Parameters

  • Response:

Taskbot Go To Taskbot

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/4E8E8CE8-AD49-EB11-8100-00155D081D0B/taskbotGotoTaskbot \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
  "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
} 

Update the Taskbot Go To Taskbot

PUT bot/taskbotActions/{id}/taskbotGotoTaskbot

  • Parameters:

NameTypeinRequiredDescription
taskbotIdguidbodyyesId of the taskbot.
  • Response:

Taskbot Go To Taskbot

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/4E8E8CE8-AD49-EB11-8100-00155D081D0B/taskbotGotoTaskbot \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotId":"4E8E8CE8-AD49-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B",
  "taskbotId": "4E8E8CE8-AD49-EB11-8100-00155D081D0B"
} 

Taskbot Transfer Chat JSON Format

Taskbot Transfer Chat is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the taskbot action.
typeenumAllowed values are transferToAgent, transferRoutingRules, transferToDepartment,transferToChatbot.
transferTostringTransfer to agent, department or routing rules.
whenAgentOfflineToActionIdguidId of when agent offline to action.

Taskbot Quick Reply JSON Format

Taskbot Quick Reply is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the taskbot action.
typingDelayfloatAdd a delay (the bot shows a typing indicator) to bot responses to deliver multiple messages to the customer at a comfortable reading pace.
messagestringMessage of the quick reply.
otherResponseToActionIdguidId of other responset to action.
taskbotQuickReplyOptionstaskbotQuickReplyOptions[]Reference to Taskbot Quick Reply Option.

Get a single Taskbot Quick Reply

GET bot/taskbotActions/{id}/taskbotQuickReply

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed value is "taskbotQuickReplyOption".
  • Response:

Taskbot Quick Reply

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D0948954-AE49-EB11-8100-00155D081D0B/taskbotQuickReply \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "link to baidu",
  "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
  "taskbotQuickReplyOptions": [
      {
          "id": "EF948954-AE49-EB11-8100-00155D081D0B",
          "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
          "text": "Baidu",
          "order": 0,
          "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
      }
  ]
} 

Update the Taskbot Quick Reply

PUT bot/taskbotActions/{id}/taskbotQuickReply

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesAdd a delay (the bot shows a typing indicator) to bot responses to deliver multiple messages to the customer at a comfortable reading pace.
messagestringbodynoMessage of the quick reply.
otherResponseToActionIdguidbodynoId of other responset to action.
taskbotQuickReplyOptionstaskbotQuickReplyOptions[]bodynoReference to Taskbot Quick Reply Option.
  • Response:

Taskbot Quick Reply

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D0948954-AE49-EB11-8100-00155D081D0B/taskbotQuickReply \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"link to baidu","otherResponseToActionId":"4CB9B085-AC49-EB11-8100-00155D081D0B","taskbotQuickReplyOptions":[{"text":"Baidu","order":0,"nextActionId":"F5948954-AE49-EB11-8100-00155D081D0B"}]}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "link to baidu",
  "otherResponseToActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
  "taskbotQuickReplyOptions": [
      {
          "id": "EF948954-AE49-EB11-8100-00155D081D0B",
          "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
          "text": "Baidu",
          "order": 0,
          "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
      }
  ]
} 

Taskbot Quick Reply Option JSON Format

Taskbot Quick Reply Option is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of Quick Reply item.
taskbotActionIdguidId of the taskbot action.
textstringOnly available when Type is triggerAnIntent.
orderintegerMust greater than or equal 0, ascending sort.
nextActionIdguidId of the next action.

Get the list of Taskbot Quick Reply Options

GET bot/taskbotQuickReplyOptions

  • Parameters:

No Parameters

  • Response:

An array of Taskbot Quick Reply Option

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotQuickReplyOptions \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "EF948954-AE49-EB11-8100-00155D081D0B",
      "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
      "text": "Baidu",
      "order": 0,
      "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
  }
] 

Get a single Taskbot Quick Reply Option

GET bot/taskbotQuickReplyOptions/{id}

  • Parameters:

No Parameters

  • Response:

Taskbot Quick Reply Option

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotQuickReplyOptions/EF948954-AE49-EB11-8100-00155D081D0B \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "EF948954-AE49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "text": "Baidu",
  "order": 0,
  "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
} 

Create a new Taskbot Quick Reply Option

POST bot/taskbotQuickReplyOptions

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the taskbot action.
textstringbodynoOnly available when Type is triggerAnIntent.
orderintegerbodyyesMust greater than or equal 0, ascending sort.
nextActionIdguidbodynoId of the next action.
  • Response:

Taskbot Quick Reply Option

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotQuickReplyOptions \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D0948954-AE49-EB11-8100-00155D081D0B","text":"Baidu","order":0,"nextActionId":"F5948954-AE49-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 201 Created

{
  "id": "EF948954-AE49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "text": "Baidu",
  "order": 0,
  "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
} 

Update the Taskbot Quick Reply Option

PUT bot/taskbotQuickReplyOptions/{id}

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the taskbot action.
textstringbodynoOnly available when Type is triggerAnIntent.
orderintegerbodyyesMust greater than or equal 0, ascending sort.
nextActionIdguidbodynoId of the next action.
  • Response:

Taskbot Quick Reply Option

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotQuickReplyOptions/EF948954-AE49-EB11-8100-00155D081D0B \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D0948954-AE49-EB11-8100-00155D081D0B","text":"Baidu","order":0,"nextActionId":"F5948954-AE49-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "id": "EF948954-AE49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "text": "Baidu",
  "order": 0,
  "nextActionId": "F5948954-AE49-EB11-8100-00155D081D0B"
} 

Remove the Taskbot Quick Reply Option

DELETE bot/taskbotQuickReplyOptions/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotQuickReplyOptions/EF948954-AE49-EB11-8100-00155D081D0B \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

Taskbot Send Image JSON Format

Taskbot Send Image is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
nextActionIdguidId of the next taskbot action.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringHTML text, can be blank. The message will be in the same bubble above image.
imageUrlstring
imagestring

Get a single Taskbot Send Image

GET bot/taskbotActions/{id}/taskbotSendImage

  • Parameters:

No Parameters

  • Response:

Taskbot Send Image

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/7AE8FDBF-504A-EB11-8100-00155D081D0B/taskbotSendImage \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
  "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "test",
  "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
  "imageUrl": ""
} 

Update the Taskbot Send Image

PUT bot/taskbotActions/{id}/taskbotSendImage

  • Parameters:

NameTypeinRequiredDescription
nextActionIdguidbodynoId of the next taskbot action.
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoHTML text, can be blank. The message will be in the same bubble above image.
imageUrlstringbodyno
imagestringbodyno
  • Response:

Taskbot Send Image

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/7AE8FDBF-504A-EB11-8100-00155D081D0B/taskbotSendImage \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"nextActionId":"8AE8FDBF-504A-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","image":"","imageUrl":""}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "7AE8FDBF-504A-EB11-8100-00155D081D0B",
  "nextActionId": "8AE8FDBF-504A-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "test",
  "image": "https://api11.comm100.io/v4/Bot/taskbotSendImages/7AE8FDBF-504A-EB11-8100-00155D081D0B/image",
  "imageUrl": ""
} 

Taskbot Send Message JSON Format

Taskbot Send Message is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringA string text of the message.
nextActionIdguidId of the next taskbot action.
taskbotSendMessageButtonstaskbotSendMessageButtons[]Reference to Taskbot Send Message Button.

Get a single Taskbot Send Message

GET bot/taskbotActions/{id}/taskbotSendMessage

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed value is "taskbotSendMessageButton".
  • Response:

Taskbot Send Message

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/F8A7A50B-B049-EB11-8100-00155D081D0B/taskbotSendMessage \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "hi",
  "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
  "taskbotSendMessageButtons": [
      {
          "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
          "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
          "buttonText": "test",
          "url": "https://...",
          "order": 1,
          "type": "link",
          "openIn": "currentWindow",
          "openStyle": "compact"
      }
  ]
} 

Update the Taskbot Send Message

PUT bot/taskbotActions/{id}/taskbotSendMessage

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoA string text of the message.
nextActionIdguidbodynoId of the next taskbot action.
taskbotSendMessageButtonstaskbotSendMessageButtons[]bodynoReference to Taskbot Send Message Button.
  • Response:

Taskbot Send Message

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/F8A7A50B-B049-EB11-8100-00155D081D0B/taskbotSendMessage \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"hi","nextActionId":"76ef3d7c-372f-4c34-8642-e51496accdfc","taskbotSendMessageButtons":[{"buttonText":"test","url":"https://...","order":1,"type":"link","openIn":"currentWindow","openStyle":"compact"}]}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "F8A7A50B-B049-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "hi",
  "nextActionId": "76ef3d7c-372f-4c34-8642-e51496accdfc",
  "taskbotSendMessageButtons": [
      {
          "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
          "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
          "buttonText": "test",
          "url": "https://...",
          "order": 1,
          "type": "link",
          "openIn": "currentWindow",
          "openStyle": "compact"
      }
  ]
} 

Taskbot Send Message Button JSON Format

Taskbot Send Message Button is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the taskbot send message button.
taskbotActionIdguidId of the taskbot action.
buttonTextstringText displaied on the button.
urlstringURL of the button, only available when type is Link or Webview.
orderintegerMust be greater than or equal to 0, ascending order.
typeenumAllowed values are link, webview.
openInenumAllowed values are sideWindow, newWindow, currentWindow.
openStyleenumAllowed values are compact, tall, full.

Get the list of Taskbot Send Message Buttons

GET bot/taskbotSendMessageButtons

  • Parameters:

No Parameters

  • Response:

An array of Taskbot Send Message Button

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotSendMessageButtons \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
      "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
      "buttonText": "test",
      "url": "https://...",
      "order": 1,
      "type": "link",
      "openIn": "currentWindow",
      "openStyle": "compact"
  }
] 

Get a single Taskbot Send Message Button

GET bot/taskbotSendMessageButtons/{id}

  • Parameters:

No Parameters

  • Response:

Taskbot Send Message Button

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotSendMessageButtons/a0831b44-a2d0-4bed-96c4-43f7eb69b095 \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
  "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
  "buttonText": "test",
  "url": "https://...",
  "order": 1,
  "type": "link",
  "openIn": "currentWindow",
  "openStyle": "compact"
} 

Create a new Taskbot Send Message Button

POST bot/taskbotSendMessageButtons

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the taskbot action.
buttonTextstringbodynoText displaied on the button.
urlstringbodynoURL of the button, only available when type is Link or Webview.
orderintegerbodynoMust be greater than or equal to 0, ascending order.
typeenumbodynoAllowed values are link, webview.
openInenumbodynoAllowed values are sideWindow, newWindow, currentWindow.
openStyleenumbodynoAllowed values are compact, tall, full.
  • Response:

Taskbot Send Message Button

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotSendMessageButtons \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"E4099BB1-774A-EB11-8100-00155D081D0B","buttonText":"test","url":"https://...","order":1,"type":"link","openIn":"currentWindow","openStyle":"compact"}' 

Response:

HTTP/1.1 201 Created

{
  "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
  "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
  "buttonText": "test",
  "url": "https://...",
  "order": 1,
  "type": "link",
  "openIn": "currentWindow",
  "openStyle": "compact"
} 

Update the Taskbot Send Message Button

PUT bot/taskbotSendMessageButtons/{id}

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the taskbot action.
buttonTextstringbodynoText displaied on the button.
urlstringbodynoURL of the button, only available when type is Link or Webview.
orderintegerbodynoMust be greater than or equal to 0, ascending order.
typeenumbodynoAllowed values are link, webview.
openInenumbodynoAllowed values are sideWindow, newWindow, "currentWindow".
openStyleenumbodynoAllowed values are compact, tall, full.
  • Response:

Taskbot Send Message Button

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotSendMessageButtons/a0831b44-a2d0-4bed-96c4-43f7eb69b095 \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"E4099BB1-774A-EB11-8100-00155D081D0B","buttonText":"test","url":"https://...","order":1,"type":"link","openIn":"currentWindow","openStyle":"compact"}' 

Response:

HTTP/1.1 200 OK

{
  "id": "a0831b44-a2d0-4bed-96c4-43f7eb69b095",
  "taskbotActionId": "E4099BB1-774A-EB11-8100-00155D081D0B",
  "buttonText": "test",
  "url": "https://...",
  "order": 1,
  "type": "link",
  "openIn": "currentWindow",
  "openStyle": "compact"
} 

Remove the Taskbot Send Message Button

DELETE bot/taskbotSendMessageButtons/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotSendMessageButtons/a0831b44-a2d0-4bed-96c4-43f7eb69b095 \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

Taskbot Send Video JSON Format

Taskbot Send Video is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the current taskbot action.
nextActionIdguidId of the next taskbot action.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringCan be blank. The message will be in the same bubble above video.
videoUrlstringURL of the video.

Get a single Taskbot Send Video

GET bot/taskbotActions/{id}/taskbotSendVideo

  • Parameters:

No Parameters

  • Response:

Taskbot Send Video

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/4CB9B085-AC49-EB11-8100-00155D081D0B/taskbotSendVideo \ 
    -X 'GET' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
  "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "test",
  "videoUrl": "https://..."
} 

Update the Taskbot Send Video

PUT bot/taskbotActions/{id}/taskbotSendVideo

  • Parameters:

NameTypeinRequiredDescription
nextActionIdguidbodynoId of the next taskbot action.
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoCan be blank. The message will be in the same bubble above video.
videoUrlstringbodynoURL of the video.
  • Response:

Taskbot Send Video

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/4CB9B085-AC49-EB11-8100-00155D081D0B/taskbotSendVideo \ 
    -X 'PUT' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"nextActionId":"D0948954-AE49-EB11-8100-00155D081D0B","typingDelay":1.0,"message":"test","videoUrl":"https://..."}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "4CB9B085-AC49-EB11-8100-00155D081D0B",
  "nextActionId": "D0948954-AE49-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "test",
  "videoUrl": "https://..."
} 

Taskbot SSO Login Button JSON Format

Taskbot SSO Login Button is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the taskbot action.
typingDelayfloatTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringThe message will be shown above Login button.
loginButtonTextstringThe button text for Login button.
loginInActionIdguidId of the login in action.
failedActionIdguidId of the failed action.

Get a single Taskbot SSO Login Button

GET bot/taskbotActions/{id}/taskbotSSOLoginButton

  • Parameters:

No Parameters

  • Response:

Taskbot SSO Login Button

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotSSOLoginButton \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "To get personized service, you need to login first.",
  "loginButtonText": "login",
  "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Update the Taskbot SSO Login Button

PUT bot/taskbotActions/{id}/taskbotSSOLoginButton

  • Parameters:

NameTypeinRequiredDescription
typingDelayfloatbodyyesTypingDelay is only available when channel is Live Chat. The typing delay in seconds before this message is shown in chat window.
messagestringbodynoThe message will be shown above Login button.
loginButtonTextstringbodynoThe button text for Login button.
loginInActionIdguidbodynoId of the login in action.
failedActionIdguidbodynoId of the failed action.
  • Response:

Taskbot SSO Login Button

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotSSOLoginButton \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"typingDelay":1.0,"message":"To get personized service, you need to login first.","loginButtonText":"login","loginInActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","failedActionId":"D6C7158C-644A-EB11-8100-00155D081D0B"}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "typingDelay": 1.0,
  "message": "To get personized service, you need to login first.",
  "loginButtonText": "login",
  "loginInActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "failedActionId": "D6C7158C-644A-EB11-8100-00155D081D0B"
} 

Taskbot Webhook JSON Format

Taskbot Webhook is represented as simple flat JSON objects with the following keys:

NameTypeDescription
taskbotActionIdguidId of the taskbot action.
urlstringURL of the webhook request.
ifSendChatTranscriptboolIf send the chat transcript to 3rd party system.
additionalPostBodystringThe additional post body of the request.
otherResponseToActionIdguidId of the other response to action.
taskbotWebhookHeaderstaskbotWebhookHeaders[]Reference to Taskbot Webhook Header.
taskbotWebhookResponseToVariablestaskbotWebhookResponseToVariables[]Reference to Taskbot Webhook Response To Variable.
taskbotWebhookResponseCodeToActionstaskbotWebhookResponseCodeToActions[]Reference to Taskbot Webhook Response Code To Action.

Get a single Taskbot Webhook

GET bot/taskbotActions/{id}/taskbotWebhook

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed values are "taskbotWebhookHeader", "taskbotWebhookResponseToVariable", "taskbotWebhookResponseCodeToAction".
  • Response:

Taskbot Webhook

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotWebhook \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "url": "https://...",
  "ifSendChatTranscript": false,
  "additionalPostBody": "",
  "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotWebhookHeaders": [
      {
          "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "key": "key",
          "value": "value",
          "order": 1
      }
  ],
  "taskbotWebhookResponseToVariables": [
      {
          "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "variableName": "name",
          "responseKey": "text",
          "order": 1
      }
  ],
  "taskbotWebhookResponseCodeToActions": [
      {
          "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "responseCode": "",
          "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
          "order": 1
      }
  ]
} 

Update the Taskbot Webhook

PUT bot/taskbotActions/{id}/taskbotWebhook

  • Parameters:

NameTypeinRequiredDescription
urlstringbodynoURL of the webhook request.
ifSendChatTranscriptboolbodynoIf send the chat transcript to 3rd party system.
additionalPostBodystringbodynoThe additional post body of the request.
otherResponseToActionIdguidbodynoId of the other response to action.
taskbotWebhookHeaderstaskbotWebhookHeaders[]bodynoReference to Taskbot Webhook Header.
taskbotWebhookResponseToVariablestaskbotWebhookResponseToVariables[]bodynoReference to Taskbot Webhook Response To Variable.
taskbotWebhookResponseCodeToActionstaskbotWebhookResponseCodeToActions[]bodynoReference to Taskbot Webhook Response Code To Action.
  • Response:

Taskbot Webhook

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotActions/D6C7158C-644A-EB11-8100-00155D081D0B/taskbotWebhook \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"url":"https://...","ifSendChatTranscript":false,"additionalPostBody":"","otherResponseToActionId":"4CB006E2-BA49-EB11-8100-00155D081D0B","taskbotWebhookHeaders":[{"key":"key","value":"value","order":1}],"taskbotWebhookResponseToVariables":[{"variableName":"name","responseKey":"text","order":1}],"taskbotWebhookResponseCodeToActions":[{"responseCode":"","nextActionId":"5AB006E2-BA49-EB11-8100-00155D081D0B","order":1}]}' 

Response:

HTTP/1.1 200 OK

{
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "url": "https://...",
  "ifSendChatTranscript": false,
  "additionalPostBody": "",
  "otherResponseToActionId": "4CB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotWebhookHeaders": [
      {
          "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "key": "key",
          "value": "value",
          "order": 1
      }
  ],
  "taskbotWebhookResponseToVariables": [
      {
          "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "variableName": "name",
          "responseKey": "text",
          "order": 1
      }
  ],
  "taskbotWebhookResponseCodeToActions": [
      {
          "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
          "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
          "responseCode": "",
          "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
          "order": 1
      }
  ]
} 

Taskbot Webhook Header JSON Format

Taskbot Webhook Header is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the taskbot webhook header.
taskbotActionIdguidId of the taskbot action.
keystringKey of the header.
valuestringValue of the header.
orderintegerMust be greater than or equal to 0, ascending order.

Get the list of Taskbot Webhook Headers

GET bot/taskbotWebhookHeaders

  • Parameters:

No Parameters

  • Response:

An array of Taskbot Webhook Header

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookHeaders \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "key": "key",
      "value": "value",
      "order": 1
  }
] 

Get a single Taskbot Webhook Header

GET bot/taskbotWebhookHeaders/{id}

  • Parameters:

No Parameters

  • Response:

Taskbot Webhook Header

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookHeaders/4DB006E2-BA49-EB11-8100-00155D081D0B \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "key": "key",
  "value": "value",
  "order": 1
} 

Create a new Taskbot Webhook Header

POST bot/taskbotWebhookHeaders

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the taskbot action.
keystringbodynoKey of the header.
valuestringbodynoValue of the header.
orderintegerbodynoMust be greater than or equal to 0, ascending order.
  • Response:

Taskbot Webhook Header

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookHeaders \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","key":"key","value":"value","order":1}' 

Response:

HTTP/1.1 201 Created

{
  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "key": "key",
  "value": "value",
  "order": 1
} 

Update the Taskbot Webhook Header

PUT bot/taskbotWebhookHeaders/{id}

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the taskbot action.
keystringbodynoKey of the header.
valuestringbodynoValue of the header.
orderintegerbodynoMust be greater than or equal to 0, ascending order.
  • Response:

Taskbot Webhook Header

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookHeaders/4DB006E2-BA49-EB11-8100-00155D081D0B \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","key":"key","value":"value","order":1}' 

Response:

HTTP/1.1 200 OK

{
  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "key": "key",
  "value": "value",
  "order": 1
} 

Remove the Taskbot Webhook Header

DELETE bot/taskbotWebhookHeaders/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookHeaders/4DB006E2-BA49-EB11-8100-00155D081D0B \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

Taskbot Webhook Response To Variable JSON Format

Taskbot Webhook Response To Variable is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the item.
taskbotActionIdguidId of current taskbotAction.
variableNamestringName of the variable.
responseKeystringKey of the response.
orderintegerMust be greater than or equal to 0.

Get the list of Taskbot Webhook Response To Variables

GET bot/taskbotWebhookResponseToVariables

  • Parameters:

No Parameters

  • Response:

An array of Taskbot Webhook Response To Variable

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseToVariables \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "variableName": "name",
      "responseKey": "text",
      "order": 1
  }
] 

Get a single Taskbot Webhook Response To Variable

GET bot/taskbotWebhookResponseToVariables/{id}

  • Parameters:

No Parameters

  • Response:

Taskbot Webhook Response To Variable

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseToVariables/D4C7158C-644A-EB11-8100-00155D081D0B \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "variableName": "name",
  "responseKey": "text",
  "order": 1
} 

Create a new Taskbot Webhook Response To Variable

POST bot/taskbotWebhookResponseToVariables

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of current taskbotAction.
variableNamestringbodynoName of the variable.
responseKeystringbodynoKey of the response.
orderintegerbodynoMust be greater than or equal to 0.
  • Response:

Taskbot Webhook Response To Variable

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseToVariables \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","variableName":"name","responseKey":"text","order":1}' 

Response:

HTTP/1.1 201 Created

{
  "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "variableName": "name",
  "responseKey": "text",
  "order": 1
} 

Update the Taskbot Webhook Response To Variable

PUT bot/taskbotWebhookResponseToVariables/{id}

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of current taskbotAction.
variableNamestringbodynoName of the variable.
responseKeystringbodynoKey of the response.
orderintegerbodynoMust be greater than or equal to 0.
  • Response:

Taskbot Webhook Response To Variable

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseToVariables/D4C7158C-644A-EB11-8100-00155D081D0B \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","variableName":"name","responseKey":"text","order":1}' 

Response:

HTTP/1.1 200 OK

{
  "id": "D4C7158C-644A-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "variableName": "name",
  "responseKey": "text",
  "order": 1
} 

Remove the Taskbot Webhook Response To Variable

DELETE bot/taskbotWebhookResponseToVariables/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseToVariables/D4C7158C-644A-EB11-8100-00155D081D0B \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

Taskbot Webhook Response Code To Action JSON Format

Taskbot Webhook Response Code To Action is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the item.
taskbotActionIdguidId of the current taskbot action.
responseCodestringCode of the response.
nextActionIdguidId of the next taskbot action.
orderintegerMust be greater than or equal to 0.

Get the list of Taskbot Webhook Response Code To Actions

GET bot/taskbotWebhookResponseCodeToActions

  • Parameters:

No Parameters

  • Response:

An array of Taskbot Webhook Response Code To Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseCodeToActions \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
      "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
      "responseCode": "",
      "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
      "order": 1
  }
] 

Get a single Taskbot Webhook Response Code To Action

GET bot/taskbotWebhookResponseCodeToActions/{id}

  • Parameters:

No Parameters

  • Response:

Taskbot Webhook Response Code To Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseCodeToActions/4DB006E2-BA49-EB11-8100-00155D081D0B \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "responseCode": "",
  "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
  "order": 1
} 

Create a new Taskbot Webhook Response Code To Action

POST bot/taskbotWebhookResponseCodeToActions

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the current taskbot action.
responseCodestringbodynoCode of the response.
nextActionIdguidbodynoId of the next taskbot action.
orderintegerbodynoMust be greater than or equal to 0.
  • Response:

Taskbot Webhook Response Code To Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseCodeToActions \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","responseCode":"","nextActionId":"5AB006E2-BA49-EB11-8100-00155D081D0B","order":1}' 

Response:

HTTP/1.1 201 Created

{
  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "responseCode": "",
  "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
  "order": 1
} 

Update the Taskbot Webhook Response Code To Action

PUT bot/taskbotWebhookResponseCodeToActions/{id}

  • Parameters:

NameTypeinRequiredDescription
taskbotActionIdguidbodyyesId of the current taskbot action.
responseCodestringbodynoCode of the response.
nextActionIdguidbodynoId of the next taskbot action.
orderintegerbodynoMust be greater than or equal to 0.
  • Response:

Taskbot Webhook Response Code To Action

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseCodeToActions/4DB006E2-BA49-EB11-8100-00155D081D0B \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"taskbotActionId":"D6C7158C-644A-EB11-8100-00155D081D0B","responseCode":"","nextActionId":"5AB006E2-BA49-EB11-8100-00155D081D0B","order":1}' 

Response:

HTTP/1.1 200 OK

{
  "id": "4DB006E2-BA49-EB11-8100-00155D081D0B",
  "taskbotActionId": "D6C7158C-644A-EB11-8100-00155D081D0B",
  "responseCode": "",
  "nextActionId": "5AB006E2-BA49-EB11-8100-00155D081D0B",
  "order": 1
} 

Remove the Taskbot Webhook Response Code To Action

DELETE bot/taskbotWebhookResponseCodeToActions/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/taskbotWebhookResponseCodeToActions/4DB006E2-BA49-EB11-8100-00155D081D0B \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

© 2021 | Comm100

Was this article helpful?