Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
We’ll output a simple card to our contact by using the following snippet:
{ "_cognigy": { "_alexa": { "response": { "shouldEndSession": false, "card": { "type": "Standard", "title": "Title of the card", "content": "Content of a simple card", "text": "Text content for a standard card", "image": { "smallImageUrl": "https://url-to-small-card-image", "largeImageUrl": "https://url-to-large-card-image" } } } } }}
Messenger
Messenger Messaging ReferenceFor the messenger you can send multiple templates by building a JSON object or by using the facebook-bot-messenger module. For further information go to their GitHub Page.
The default AI channel, which is always selected from the default, uses the almost same format as the webchat above. The only difference is that you type _default instead of _webchat.
The following outputs a gallery with images to the end user. This example is quite interesting since one needs to create an attachment for each image using the RingCentral Engage API. The returned attachmentIds are inserted in the Custom JSON below:
{ "command": "structured-content", "body": "", "structuredContent": { "type": "carousel", "items": [ { "attachment_id": "5f73470a0e69dc", "title": "This is the title", "url": "https://url-to-image.com", "subtitle": "This is the first subtitle", "items": [ { "type": "url", "url": "https://www.cognigy.com/", "title": "Visit Website" }, { "type": "reply", "payload": "I want to select this one", "title": "Select" } ] }, "...": "..." ] }}