Dynamic Content Action
This action will display dynamic chat elements by downloading a standard Xenioo Action Model JSON from any URL or translating it directly from any conversation variable.

Settings

The action uses the following settings:
Setting
Description
Parsed
Xenioo Action Model URL
The Url from which the dynamic content data will be retrieved.
Xenioo Action Model Variable Source
The variable that holds the dynamic content model.

Remarks

The Dynamic Content Action data model is similar to the Dynamic Carousel Action one (which is actually using a subset of it). Two more object types are added to extend this action support for Text and Buttons Cards.
The following source shows a brief sample of a complete dynamic content JSON:
1
{
2
"items":[
3
{
4
"type":"text",
5
"text":"hello there!"
6
},
7
{
8
"type":"carousel",
9
"title": "Chevrolet Corvette",
10
"subtitle": "Buy your Chevrolet Corvette!",
11
"image_url":"https://someserver.com/corvette.jpg",
12
"view_size":"compact",
13
"buttons":[
14
{
15
"type":"postback",
16
"payload": "buy_corvette",
17
"text":"Buy Now"
18
},
19
{
20
"type":"url",
21
"url": "https://www.chevrolet.com",
22
"text":"Visit Website",
23
"view_size":"full"
24
}
25
]
26
}
27
]
28
}
Copied!
The content type field values currently supported are text, carousel and buttonscard.
The model also accept both Variables and Tags injection so that your remote service can also push specific values inside the chatbot runtime automatically. The injection happens with the same model used by On Demand Broadcast and, extending the previous example, may look similar to the following:
1
{
2
"items":[
3
{
4
"type":"text",
5
"text":"hello there!"
6
},
7
{
8
"type":"carousel",
9
"title": "Chevrolet Corvette",
10
"subtitle": "Buy your Chevrolet Corvette!",
11
"image_url":"https://someserver.com/corvette.jpg",
12
"view_size":"compact",
13
"buttons":[
14
{
15
"type":"postback",
16
"payload": "buy_corvette",
17
"text":"Buy Now"
18
},
19
{
20
"type":"url",
21
"url": "https://www.chevrolet.com",
22
"text":"Visit Website",
23
"view_size":"full"
24
}
25
]
26
}
27
],
28
"variables":[
29
{
30
"name":"user_data",
31
"value":"some variable value",
32
"mode":0
33
}
34
],
35
"tags":[
36
{
37
"name":"VIP_USER",
38
"mode":0
39
}
40
]
41
}
Copied!
The mode setting for variables and tags may have one of the following values:
Value
Description
0
Replace. The current value is replaced by the given value
1
Append. The given value is appended to the current value. This is not supported by tags
2
Delete. The value and the associated tag or variable and deleted from the current runtime instance.

Trigger

This action has no triggers.

Variables

When carousel or buttons card content is used, this action will produce the following variables:
Variable
Description
last_command
Contains the last clicked button payload

Availability

Channel specific availability follows the table below:
Channel
Availability
Facebook
Fully Available.
WhatsApp
Fully Available.
Telegram
Fully Available.
Web
Fully Available.
Alexa
Fully Available.
Google Assistant
Fully Available.
Slack
Fully Available.
API
Fully Available.
This action can be used only inside interactions and not as child of other actions. This action requires a Premium Account to be used on a live chatbot.