customer-engagement
conversations
conversation-forms

Create trigger

The create trigger method creates a new trigger at the first order position in the existing setup. Triggers are used to assign proper form to a conversation, based on an expression. Every expression can be constructed with at least one or more available operators. The result of the expression will be a success (TRUE) only if all results of operations are TRUE. Order of triggers is essential in the form assignment process, as triggers are match the provided order. First trigger matching the conversation will be used. <a href="https://www.infobip.com/docs/conversations/supervisor-guide" target="_blank">More info</a>

post/ccaas/2/conversation-forms/triggers

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Request body

titlestring required

Trigger title.

expressionobject required

Condition which resolves in destination form.

isEnabledboolean

Is trigger enabled.

formIdstring required

Destination form.

Example request

{
  "title": "AJ Queue",
  "expression": {
    "$neq": {
      "queue": "AJ Queue"
    }
  },
  "isEnabled": true,
  "formId": "75f57446-1d65-478a-87ed-22d17dc3d077"
}

Response

OK

titlestring

Trigger title.

expressionobject

Condition which resolves in destination form.

orderIndexinteger

Trigger order.

isEnabledboolean

Is trigger enabled.

formIdstring

Destination form.

timesTriggeredinteger

Number of trigger resolution.

Example response

{
  "id": "b3695d3c-6415-4bdd-82fc-07f9309933ec",
  "title": "AJ Queue",
  "expression": {
    "$neq": {
      "queue": "AJ Queue"
    }
  },
  "orderIndex": 0,
  "isEnabled": true,
  "formId": "75f57446-1d65-478a-87ed-22d17dc3d077",
  "timesTriggered": 0
}

Changes

No recorded changes to this operation across all 1 revision of this API.