You need the Manage Campaigns Form permission to manage Auto Invitation.
LiveChat_CampaignAutoInvitation is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the auto invitation. |
campaignId |
guid | Id of the campaign. |
name |
string | Name of the auto invitation. |
isEnabled |
bool | Whether auto invitation is enabled or not. |
isDisplayedOnceInOneSession |
bool | Whether only pop-up once per site visit or not. |
order |
integer | Order of the auto invitation. |
text |
string | Message of the auto invitation. |
logicalExpression |
string | Detail of the logic expression. |
conditionMetType |
string | Allowed values are "all", "any", "logicalExpression". |
style |
string | Allowed values are "bubble", "chatWindow". |
textBackgroundColor |
string | |
position |
string | Allowed values are "centered", "centeredWithOverlayBackground", "bottomRight", "middleLeft", "middleRight". |
bubbleInvitationHeader |
string | Allowed values are "agentAvatar", "image". |
headerImage |
image | |
isTypingAreaDisplayed |
bool | |
isInvitationHiddenInMobile |
bool | |
autoInvitationConditions |
autoInvitationConditions[] | Reference to Condition. |
Condition JSON Format:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
guid | Id of the condition. | ||||||||||||||||||||||||||||||||||||||||
autoInvitationId |
guid | Id of the auto invitation. | ||||||||||||||||||||||||||||||||||||||||
operator |
string | Allowed values are "is", "contains", "notContains", "isMoreThan", "isLessThan", "isNot", "isNotLessThan", "isNotMoreThan", "regularExpression", "isOneOf", "isNotIn", "dateNotEqualTo", "before", "after", "dateEqualTo". | ||||||||||||||||||||||||||||||||||||||||
value |
string | Value of the condition. | ||||||||||||||||||||||||||||||||||||||||
order |
integer | Order of the condition. | ||||||||||||||||||||||||||||||||||||||||
fieldName |
string |
Name of the related field.
|
GET livechat/autoInvitations
Name | Type | In | Required | Description |
---|---|---|---|---|
campaignId |
string | query | no | Id of the campaign. |
include |
string | query | no | Allowed value is "campaignAutoInvitationCondition". |
An array of LiveChat_CampaignAutoInvitation
Sample Request:
Response:
HTTP/1.1 200 OK
GET livechat/autoInvitations/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed value is "campaignAutoInvitationCondition". |
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/autoInvitations
Name | Type | In | Required | Description |
---|---|---|---|---|
campaignId |
guid | body | no | Id of the campaign. |
name |
string | body | yes | Name of the auto invitation. |
isEnabled |
bool | body | no | Whether auto invitation is enabled or not. |
isDisplayedOnceInOneSession |
bool | body | no | Whether only pop-up once per site visit or not. |
order |
integer | body | no | Order of the auto invitation. |
text |
string | body | no | Message of the auto invitation. |
logicalExpression |
string | body | no | Detail of the logic expression. |
conditionMetType |
string | body | no | Allowed values are "all", "any", "logicalExpression". |
style |
string | body | no | Allowed values are "bubble", "chatWindow". |
textBackgroundColor |
string | body | no | |
position |
string | body | yes | Allowed values are "centered", "centeredWithOverlayBackground", "bottomRight", "middleLeft", "middleRight". |
bubbleInvitationHeader |
string | body | no | Allowed values are "agentAvatar", "image". |
headerImage |
image | body | no | |
isTypingAreaDisplayed |
bool | body | no | |
isInvitationHiddenInMobile |
bool | body | no | |
autoInvitationConditions |
autoInvitationConditions[] | body | no | Reference to Condition. |
Sample Request:
Response:
HTTP/1.1 201 Created
POST livechat/autoInvitations/{id}:disable
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/autoInvitations/{id}:enable
Sample Request:
Response:
HTTP/1.1 200 OK
PUT livechat/autoInvitations/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
campaignId |
guid | body | no | Id of the campaign. |
name |
string | body | yes | Name of the auto invitation. |
isEnabled |
bool | body | no | Whether auto invitation is enabled or not. |
isDisplayedOnceInOneSession |
bool | body | no | Whether only pop-up once per site visit or not. |
order |
integer | body | no | Order of the auto invitation. |
text |
string | body | no | Message of the auto invitation. |
logicalExpression |
string | body | no | Detail of the logic expression. |
conditionMetType |
string | body | no | Allowed values are "all", "any", "logicalExpression". |
style |
string | body | no | Allowed values are "bubble", "chatWindow". |
textBackgroundColor |
string | body | no | |
position |
string | body | yes | Allowed values are "centered", "centeredWithOverlayBackground", "bottomRight", "middleLeft", "middleRight". |
bubbleInvitationHeader |
string | body | no | Allowed values are "agentAvatar", "image". |
headerImage |
image | body | no | |
isTypingAreaDisplayed |
bool | body | no | |
isInvitationHiddenInMobile |
bool | body | no | |
autoInvitationConditions |
autoInvitationConditions[] | body | no | Reference to Condition. |
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/autoInvitations/{id}
No Content
Sample Request:
Response:
HTTP/1.1 204 No Content