VoiceBot Entity
  • 12 Jul 2022
  • 4 Minutes to read
  • Dark
    Light

VoiceBot Entity

  • Dark
    Light

Article summary

Voicebot Entity

Voicebot Entity JSON Format

Voicebot Entity is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the voicebot entity.
voicebotIdguidId of the voicebot.
namestringName of the voicebot entity.
voicebotEntityKeywords[voicebotEntityKeywords]Reference to Voicebot Entity Keyword.

Get a single Voicebot Entity

GET voicebot/voicebotEntities/{id}

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed value is voicebotEntityKeyword.
  • Response:

Voicebot Entity

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntities/a1e714d7-4507-4879-b9d7-b5efb1643a49 \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "a1e714d7-4507-4879-b9d7-b5efb1643a49",
  "voicebotId": "",
  "name": "",
  "voicebotEntityKeywords": [
      {
          "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
          "keyword": "",
          "synonyms": [
              ""
          ],
          "entityId": ""
      }
  ]
} 

Get the list of Voicebot Entities

GET voicebot/voicebots/{id}/voicebotEntities

  • Parameters:

NameTypeinRequiredDescription
includestringquerynoAllowed value is "voicebotEntityKeyword".
  • Response:

An array of Voicebot Entity

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebots/a1e714d7-4507-4879-b9d7-b5efb1643a49/voicebotEntities \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "a1e714d7-4507-4879-b9d7-b5efb1643a49",
      "voicebotId": "",
      "name": "",
      "voicebotEntityKeywords": [
          {
              "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
              "keyword": "",
              "synonyms": [
                  ""
              ],
              "entityId": ""
          }
      ]
  }
] 

Create a new Voicebot Entity

POST voicebot/voicebotEntities

  • Parameters:

NameTypeinRequiredDescription
voicebotIdguidbodyyesId of the voicebot.
namestringbodyyesName of the voicebot entity.
voicebotEntityKeywords[voicebotEntityKeywords]bodynoReference to Voicebot Entity Keyword.
  • Response:

Voicebot Entity

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntities \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"voicebotId":"","name":"","voicebotEntityKeywords":[{"keyword":"","synonyms":[""]}]}' 

Response:

HTTP/1.1 201 Created

{
  "id": "a1e714d7-4507-4879-b9d7-b5efb1643a49",
  "voicebotId": "",
  "name": "",
  "voicebotEntityKeywords": [
      {
          "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
          "keyword": "",
          "synonyms": [
              ""
          ],
          "entityId": ""
      }
  ]
} 

Update the Voicebot Entity

PUT voicebot/voicebotEntities/{id}

  • Parameters:

NameTypeinRequiredDescription
voicebotIdguidbodyyesId of the voicebot.
namestringbodyyesName of the voicebot entity.
voicebotEntityKeywords[voicebotEntityKeywords]bodynoReference to Voicebot Entity Keyword.
  • Response:

Voicebot Entity

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntities/a1e714d7-4507-4879-b9d7-b5efb1643a49 \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"voicebotId":"","name":"","voicebotEntityKeywords":[{"keyword":"","synonyms":[""]}]}' 

Response:

HTTP/1.1 200 OK

{
  "id": "a1e714d7-4507-4879-b9d7-b5efb1643a49",
  "voicebotId": "",
  "name": "",
  "voicebotEntityKeywords": [
      {
          "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
          "keyword": "",
          "synonyms": [
              ""
          ],
          "entityId": ""
      }
  ]
} 

Remove the Voicebot Entity

DELETE voicebot/voicebotEntities/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntities/a1e714d7-4507-4879-b9d7-b5efb1643a49 \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

Voicebot Entity Keyword JSON Format

Voicebot Entity Keyword is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the voicebot entity keyword.
keywordstringKeyword.
synonymsstring []Id of the voicebot entity.
entityIdguidId of the voicebot entity keyword.

Get the list of Voicebot Entity Keywords

GET voicebot/voicebotEntityKeywords

  • Parameters:

No Parameters

  • Response:

An array of Voicebot Entity Keyword

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

[
  {
      "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
      "keyword": "",
      "synonyms": [
          ""
      ],
      "entityId": ""
  }
] 

Get a single Voicebot Entity Keyword

GET voicebot/voicebotEntityKeywords/{id}

  • Parameters:

No Parameters

  • Response:

Voicebot Entity Keyword

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntityKeywords/eefe4538-bec3-47ef-89ea-879b59a16941 \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
  "keyword": "",
  "synonyms": [
      ""
  ],
  "entityId": ""
} 

Create a new Voicebot Entity Keyword

POST voicebot/voicebotEntityKeywords

  • Parameters:

NameTypeinRequiredDescription
keywordstringbodyyesKeyword.
synonymsstring []bodynoId of the voicebot entity.
entityIdguidbodyyesId of the voicebot entity keyword.
  • Response:

Voicebot Entity Keyword

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntityKeywords \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"keyword":"","synonyms":[""],"entityId":""}' 

Response:

HTTP/1.1 201 Created

{
  "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
  "keyword": "",
  "synonyms": [
      ""
  ],
  "entityId": ""
} 

Update the Voicebot Entity Keyword

PUT voicebot/voicebotEntityKeywords/{id}

  • Parameters:

NameTypeinRequiredDescription
keywordstringbodyyesKeyword.
synonymsstring []bodynoId of the voicebot entity.
entityIdguidbodyyesId of the voicebot entity keyword.
  • Response:

Voicebot Entity Keyword

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntityKeywords/eefe4538-bec3-47ef-89ea-879b59a16941 \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"keyword":"","synonyms":[""],"entityId":""}' 

Response:

HTTP/1.1 200 OK

{
  "id": "eefe4538-bec3-47ef-89ea-879b59a16941",
  "keyword": "",
  "synonyms": [
      ""
  ],
  "entityId": ""
} 

Remove the Voicebot Entity Keyword

DELETE voicebot/voicebotEntityKeywords/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/voicebot/voicebotEntityKeywords/eefe4538-bec3-47ef-89ea-879b59a16941 \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content

© 2021 | Comm100

Was this article helpful?