Dynamic Content Action

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

Settings

The action uses the following settings:

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:

{
  "items":[
      {
      		"type":"text",
      		"text":"hello there!"
      },
      {
      		"type":"carousel",
	        "title": "Chevrolet Corvette",
	        "subtitle": "Buy your Chevrolet Corvette!",
	        "image_url":"https://someserver.com/corvette.jpg",
		"view_size":"compact",
	        "buttons":[
	          {
			"type":"postback",
			"payload": "buy_corvette",
		        "text":"Buy Now"
	          },
	          {
			"type":"url",
			"url": "https://www.chevrolet.com",
			"text":"Visit Website",
			"view_size":"full"
	          }
          ]
      }
  ]
}

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:

{
  "items":[
      {
      		"type":"text",
      		"text":"hello there!"
      },
      {
      		"type":"carousel",
	        "title": "Chevrolet Corvette",
	        "subtitle": "Buy your Chevrolet Corvette!",
	        "image_url":"https://someserver.com/corvette.jpg",
		"view_size":"compact",
	        "buttons":[
	          {
			"type":"postback",
			"payload": "buy_corvette",
	                "text":"Buy Now"
	          },
	          {
                        "type":"url",
                        "url": "https://www.chevrolet.com",
                        "text":"Visit Website",
                        "view_size":"full"
	          }
          ]
      }
  ],
  "variables":[
  		{
                    "name":"user_data",
                    "value":"some variable value",
                    "mode":0
  		}
  ],
  "tags":[
  		{
  	            "name":"VIP_USER",
                    "mode":0
  		}
  ]
}

The mode setting for variables and tags may have one of the following values:

Trigger

This action has no triggers.

Variables

When carousel or buttons card content is used, this action will produce the following variables:

Availability

Channel specific availability follows the table below:

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.

Last updated