Agent Assist Synonym
  • 11 Jul 2022
  • 1 Minute to read
  • Dark
    Light

Agent Assist Synonym

  • Dark
    Light

Article summary

Agent Assist Synonym

Agent Assist Synonym JSON Format

Agent Assist Synonym is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the synonym.
keywordstringKeyword of the synonym.
synonymsstring []Synonymous words or phrases.

Get the list of Agent Assist Synonyms

GET bot/agentAssistSynonyms

  • Parameters:

NameTypeinRequiredDescription
keywordsstringquerynoSearch synonym name by the keyword.
sortBystringqueryyesAllowed values are "keyword", "Synonyms“.
  • Response:

An array of Agent Assist Synonym

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

{
  "agentAssistSynonyms": [
      {
          "id": "1576fc67-e153-4060-8b04-d554d81d6162\"",
          "keyword": "zn",
          "synonyms": [
              "China"
          ]
      }
  ],
  "nextPage": null,
  "previousPage": null,
  "total": 1
} 

Get a single Agent Assist Synonym

GET bot/agentAssistSynonyms/{id}

  • Parameters:

No Parameters

  • Response:

Agent Assist Synonym

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/agentAssistSynonyms/1576fc67-e153-4060-8b04-d554d81d6162" \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "1576fc67-e153-4060-8b04-d554d81d6162\"",
  "keyword": "zn",
  "synonyms": [
      "China"
  ]
} 

Create a new Agent Assist Synonym

POST bot/agentAssistSynonyms

  • Parameters:

NameTypeinRequiredDescription
keywordstringbodyyesKeyword of the synonym.
synonymsstring []bodyyesSynonymous words or phrases.
  • Response:

Agent Assist Synonym

  • Example

Sample Request:

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

Response:

HTTP/1.1 201 Created

{
  "id": "1576fc67-e153-4060-8b04-d554d81d6162\"",
  "keyword": "zn",
  "synonyms": [
      "China"
  ]
} 

Update the Agent Assist Synonym

PUT bot/agentAssistSynonyms/{id}

  • Parameters:

NameTypeinRequiredDescription
keywordstringbodyyesKeyword of the synonym.
synonymsstring []bodyyesSynonymous words or phrases.
  • Response:

Agent Assist Synonym

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/agentAssistSynonyms/1576fc67-e153-4060-8b04-d554d81d6162" \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"keyword":"zn","synonyms":["China"]}' 

Response:

HTTP/1.1 200 OK

{
  "id": "1576fc67-e153-4060-8b04-d554d81d6162\"",
  "keyword": "zn",
  "synonyms": [
      "China"
  ]
} 

Remove the Agent Assist Synonym

DELETE bot/agentAssistSynonyms/{id}

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/agentAssistSynonyms/1576fc67-e153-4060-8b04-d554d81d6162" \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content


Was this article helpful?

What's Next