Agent Preference
  • 01 Sep 2022
  • 2 Minutes to read
  • Dark
    Light

Agent Preference

  • Dark
    Light

Article summary

Agent Preference

Ticket agent preference.

Agent Preference JSON Format

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

NameTypeDescription
agentIdguidId of the agent.
ticketSettingsstringJSON data for configuring sounds and pop-ups for Ticketing&Messaging.
ifAutoConvertVisitorToContactboolWhether convert a visitor to contact automatically when agent replies ticket or not.
htmlSignaturestringHTML signature. You can pass both plaintext and base64 encoded text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
textSignaturestringPlain text signature. You can pass both plaintext and base64 encoded text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
tagSettingsstring

Get a single Agent Preference

GET ticketing/agentPreferences/{id}

  • Parameters:

No Parameters

  • Response:

Agent Preference

  • Example

Sample Request:

curl https://api11.comm100.io/v4/ticketing/agentPreferences/b13e222d-4832-4198-9f17-83e5612fa9da \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "agentId": "b13e222d-4832-4198-9f17-83e5612fa9da",
  "ticketSettings": "[\n    {\n      \"id\": \"email-response\",\n      \"name\": \"email-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    },\n    {\n      \"id\": \"public-response\",\n      \"name\": \"public-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    },\n    {\n      \"id\": \"private-response\",\n      \"name\": \"private-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    }\n  ]",
  "ifAutoConvertVisitorToContact": true,
  "htmlSignature": "data:text/plain;base64,PHA+MTExPC9wPg==",
  "textSignature": "data:text/plain;base64,MTEx",
  "tagSettings": ""
} 

Update the Agent Preference

PUT ticketing/agentPreferences/{id}

  • Parameters:

NameTypeinRequiredDescription
ticketSettingsstringbodynoJSON data for configuring sounds and pop-ups for Ticketing&Messaging.
ifAutoConvertVisitorToContactboolbodynoWhether convert a visitor to contact automatically when agent replies ticket or not.
htmlSignaturestringbodynoHTML signature. You can pass both plaintext and base64 encoded text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
textSignaturestringbodynoPlain text signature. You can pass both plaintext and base64 encoded text. If the request containing plaintext is blocked by comm100 WAF, use base64 format. When using base64, add "data:text/plain;base64," before the content.
tagSettingsstringbodyno
  • Response:

Agent Preference

  • Example

Sample Request:

curl https://api11.comm100.io/v4/ticketing/agentPreferences/b13e222d-4832-4198-9f17-83e5612fa9da \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"ticketSettings":"[\n    {\n      \"id\": \"email-response\",\n      \"name\": \"email-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    },\n    {\n      \"id\": \"public-response\",\n      \"name\": \"public-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    },\n    {\n      \"id\": \"private-response\",\n      \"name\": \"private-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    }\n  ]","ifAutoConvertVisitorToContact":true,"htmlSignature":"data:text/plain;base64,PHA+MTExPC9wPg==","textSignature":"data:text/plain;base64,MTEx","tagSettings":""}' 

Response:

HTTP/1.1 200 OK

{
  "agentId": "b13e222d-4832-4198-9f17-83e5612fa9da",
  "ticketSettings": "[\n    {\n      \"id\": \"email-response\",\n      \"name\": \"email-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    },\n    {\n      \"id\": \"public-response\",\n      \"name\": \"public-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    },\n    {\n      \"id\": \"private-response\",\n      \"name\": \"private-response\",\n      \"soundId\": 9,\n      \"ifMute\": false,\n      \"volume\": 50,\n      \"ifPop\": true\n    }\n  ]",
  "ifAutoConvertVisitorToContact": true,
  "htmlSignature": "data:text/plain;base64,PHA+MTExPC9wPg==",
  "textSignature": "data:text/plain;base64,MTEx",
  "tagSettings": ""
} 

Was this article helpful?