> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Default Channel Formats

> Reference for JSON payload formats used with the Cognigy default channel in Code Nodes. Covers text, Quick Replies, Adaptive Cards, and channel output.

You can send JSON-formatted output directly against your [Endpoints](https://docs-classic.cognigy.com/ai/agents/deploy/endpoints/overview) for it to be output to the respective channels.

The [AI Default Channel](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/basic/say.md#default-cognigy-channel) is special in a way that content from the Default Channel is automatically converted into the correct payloads for all other channels.

Using the [Code](https://docs-classic.cognigy.com/ai/for-developers/code/overview) Node, you can also send JSON-formatted output to the Endpoints for the AI Default Channel, and it will handle the conversion into the appropriate content. The required payload formats are described below.

## Payload Formats

> [accordion] Text
>
> Sends text to the Endpoint.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output("Your text", null);
> > ```
>
> > [tab] Say Node
> >
> > ![Text output configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/say-in-node.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=9a3a43f3668478e651e894635ffea6c3)
>
> > [tab] Webchat
> >
> > ![Text output rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/say-in-webchat.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=a142d5b472b24fa5a6d36cefbc5e67cc)

> [accordion] Text with Quick Replies
>
> Sends text and a number of quick reply buttons.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "quickReplies",
> >   "_cognigy": {
> >     "_default": {
> >       "_quickReplies": {
> >         "type": "quick_replies",
> >         "text": "Quick Reply Text",
> >         "quickReplies": [
> >           {
> >             "id": 111,
> >             "contentType": "postback",
> >             "payload": "Postback 1",
> >             "title": "Button 1",
> >             "imageUrl": "https://www.cognigy.com/hubfs/Cognigy.svg"
> >           },
> >           {
> >             "id": 112,
> >             "contentType": "phone_number",
> >             "payload": "+49123456",
> >             "title": "Button 2"
> >           },
> >           {
> >             "id": 112,
> >             "contentType": "trigger_intent",
> >             "payload": "",
> >             "title": "Button 3",
> >             "intentName": "Intent Name"
> >           }
> >         ]
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![Quick replies configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/say-node-quick-replies.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=b54824c22ec07d51aeb21a9496aa008f)
> >
> > ![Quick reply button detailed settings](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/say-node-text-with-quick-reply.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=4aa4bb53e014f47b07c6cabfb4ffa6c8)
>
> > [tab] Webchat
> >
> > ![Quick reply buttons rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/webchat-quick-reply-buttons.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=3b50ef8a5fc085ed3be570f2091996d9)

> [accordion] Gallery
>
> Outputs a carousel of cards.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "gallery",
> >   "_cognigy": {
> >     "_default": {
> >       "_gallery": {
> >         "type": "carousel",
> >         "items": [
> >           {
> >             "id": 111,
> >             "title": "Cognigy",
> >             "subtitle": "Cognigy is a conversational AI platform.",
> >             "imageUrl": "https://www.cognigy.com/hubfs/AI%20Copy%205.svg",
> >             "buttons": [
> >               {
> >                 "id": 112,
> >                 "payload": "Postback 1",
> >                 "type": "postback",
> >                 "title": "Button 1"
> >               },
> >               {
> >                 "id": 113,
> >                 "payload": "",
> >                 "type": "web_url",
> >                 "title": "URL Button",
> >                 "url": "https://www.cognigy.com/products/cognigy-ai"
> >               }
> >             ]
> >           },
> >           {
> >             "id": 121,
> >             "title": "Cognigy.VG",
> >             "subtitle": "Cognigy Voice Gateway connects your AI to your contact center",
> >             "imageUrl": "https://www.cognigy.com/hubfs/cognigy-vg-logo.svg",
> >             "buttons": [
> >               {
> >                 "id": 122,
> >                 "payload": "",
> >                 "type": "web_url",
> >                 "title": "Click me",
> >                 "url": "https://www.cognigy.com/products/voice-gateway"
> >               }
> >             ]
> >           }
> >         ],
> >         "fallbackText": "Fallback text for voice channels"
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![Gallery carousel configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/gallery-say-node.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=998cfa8c12746b45a9e7bdc5fd10f48b)
> >
> > ![Gallery card button settings in the Node editor](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/gallery-button-settings.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=98b72fc1fc9056d805a93a281c611613)
>
> > [tab] Webchat
> >
> > ![Gallery carousel rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/gallery-web-chat.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=152c3bec6b147430f5ab0c9528b5809c)

> [accordion] Text with Buttons
>
> Outputs text with a list of buttons.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "buttons",
> >   "_cognigy": {
> >     "_default": {
> >       "_buttons": {
> >         "type": "buttons",
> >         "text": "Text with Buttons",
> >         "buttons": [
> >           {
> >             "id": 111,
> >             "payload": "Postback Value",
> >             "type": "postback",
> >             "title": "Postback Value Button"
> >           },
> >           {
> >             "id": 112,
> >             "payload": "",
> >             "type": "web_url",
> >             "title": "URL Button",
> >             "url": "https:\\\\google.com"
> >           },
> >           {
> >             "id": 113,
> >             "payload": "+491234567",
> >             "type": "phone_number",
> >             "title": "Phone Number Button"
> >           },
> >           {
> >             "id": 114,
> >             "payload": "",
> >             "type": "trigger_intent",
> >             "title": "Intent Button",
> >             "intentName": "Intent Name"
> >           }
> >         ]
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![Text with buttons configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/buttons-in-editor-ai.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=06e113eef4adff153e072f8d90bccd50)
> >
> > ![Text with buttons detailed settings in the Node editor](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/text-with-buttons.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=4b76ccf2abaaa5352e5590c67b468b28)
>
> > [tab] Webchat
> >
> > ![Text with buttons rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/test-with-buttons-in-web-chat.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=7d0497d8d3a6cf1aa718dc21d684edab)

> [accordion] List
>
> Outputs a list.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "list",
> >   "_cognigy": {
> >     "_default": {
> >       "_list": {
> >         "type": "list",
> >         "items": [
> >           {
> >             "title": "List Item 1",
> >             "subtitle": "Subtitle",
> >             "imageUrl": "https://www.cognigy.com/hubfs/Cognigy.svg",
> >             "defaultActionUrl": "",
> >             "imageAltText": "Alternate Text",
> >             "buttons": [
> >               {
> >                 "type": "postback",
> >                 "payload": "Postback Value",
> >                 "title": "Postback Button"
> >               }
> >             ]
> >           },
> >           {
> >             "title": "List Item 2",
> >             "subtitle": "",
> >             "imageUrl": "",
> >             "defaultActionUrl": "",
> >             "buttons": [
> >               {
> >                 "type": "web_url",
> >                 "payload": "",
> >                 "title": "URL Button",
> >                 "url": "https:\\\\www.google.com"
> >               }
> >             ]
> >           },
> >           {
> >             "title": "List Item 3",
> >             "subtitle": "",
> >             "imageUrl": "",
> >             "defaultActionUrl": "",
> >             "buttons": [
> >               {
> >                 "type": "phone_number",
> >                 "payload": "+491234567",
> >                 "title": "Phone Number Button"
> >               }
> >             ]
> >           },
> >           {
> >             "title": "List Item 4",
> >             "subtitle": "",
> >             "imageUrl": "",
> >             "defaultActionUrl": "",
> >             "buttons": [
> >               {
> >                 "type": "trigger_intent",
> >                 "payload": "",
> >                 "title": "Intent Button",
> >                 "intentName": "Intent Name"
> >               }
> >             ]
> >           }
> >         ],
> >         "button": {
> >           "type": "postback",
> >           "condition": "",
> >           "payload": "Postback value",
> >           "title": "Separate Button from List"
> >         }
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![List output configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/edit-node-list.svg?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=fd0b8d4b2c7415771e08a81789edb789)
> >
> > ![List item settings in the Say Node editor](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/say-list-option-order.svg?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=564fb496d56b606170ee8129bebf98a7)
>
> > [tab] Webchat
> >
> > ![List items rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/webchat-say-node-list-items.svg?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=a2cd3ca1f9b28e9d2d1b6fa8c2b9936f)

> [accordion] Audio
>
> Outputs audio from a URL.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "audio",
> >   "_cognigy": {
> >     "_default": {
> >       "_audio": {
> >         "type": "audio",
> >         "audioUrl": "https://audio.test/test.wav"
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![Audio output configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/RomCLoWcsmr9N2pz/_assets/ai/develop/node-reference/audio-and-details-in-say-node.png?fit=max\&auto=format\&n=RomCLoWcsmr9N2pz\&q=85\&s=68e1c6dea7eca5677574f39c0d4ffbe5)
>
> > [tab] Webchat
> >
> > ![Audio player rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/RomCLoWcsmr9N2pz/_assets/ai/develop/node-reference/audio_in_webchat.png?fit=max\&auto=format\&n=RomCLoWcsmr9N2pz\&q=85\&s=cb9a3ffa4cc545a513abe77f9d592bb4)

> [accordion] Image
>
> Outputs image from a URL.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "image",
> >   "_cognigy": {
> >     "_default": {
> >       "_image": {
> >         "type": "image",
> >         "imageUrl": "https://testURL.test/image.jpeg"
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![Image output configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/image.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=eb04f5b9bfb311e15f4bc46db384bb16)
>
> > [tab] Webchat
> >
> > ![Image rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/image-in-webchat.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=641ae5da37f0a287c36271d43b06be9b)

> [accordion] Video
>
> Outputs video from a URL.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "video",
> >   "_cognigy": {
> >     "_default": {
> >       "_video": {
> >         "type": "video",
> >         "videoUrl": "https://www.youtube.com/watch?v=iGc3fekZQOw"
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Say Node
> >
> > ![Video output configured in a Say Node](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/video-in-say-node.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=3bd718b22e5079f8997baa84a04fc870)
>
> > [tab] Webchat
> >
> > ![Video player rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/video_in_web_chat.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=b750e85d8d9b58f48ced5c8b70b6a494)

> [accordion] Adaptive Card
>
> Outputs an adaptive card.
>
> > [tab] JSON Format
> >
> > ```js theme={null}
> > api.output(null, {
> >   "type": "adaptiveCard",
> >   "_cognigy": {
> >     "_default": {
> >       "_adaptiveCard": {
> >         "type": "adaptiveCard",
> >         "adaptiveCard": {
> >           "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
> >           "type": "AdaptiveCard",
> >           "body": [
> >             {
> >               "type": "TextBlock",
> >               "size": "Medium",
> >               "weight": "Bolder",
> >               "text": "Publish Adaptive Card Schema"
> >             },
> >             {
> >               "type": "ColumnSet",
> >               "columns": [
> >                 {
> >                   "type": "Column",
> >                   "items": [
> >                     {
> >                       "type": "Image",
> >                       "style": "Person",
> >                       "url": "https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg",
> >                       "size": "Small"
> >                     }
> >                   ],
> >                   "width": "auto"
> >                 },
> >                 {
> >                   "type": "Column",
> >                   "items": [
> >                     {
> >                       "type": "TextBlock",
> >                       "weight": "Bolder",
> >                       "text": "Matt Hidinger",
> >                       "wrap": true
> >                     },
> >                     {
> >                       "type": "TextBlock",
> >                       "spacing": "None",
> >                       "text": "Created Tue, Feb 14, 2017",
> >                       "isSubtle": true,
> >                       "wrap": true
> >                     }
> >                   ],
> >                   "width": "stretch"
> >                 }
> >               ]
> >             },
> >             {
> >               "type": "TextBlock",
> >               "text": "Publish Adaptive Card Schema easily.",
> >               "wrap": true
> >             },
> >             {
> >               "type": "Action.OpenUrl",
> >               "title": "View",
> >               "url": "https://adaptivecards.io"
> >             }
> >           ],
> >           "actions": [],
> >           "version": "1.5"
> >         }
> >       }
> >     }
> >   }
> > });
> > ```
>
> > [tab] Webchat
> >
> > ![Adaptive Card rendered in Webchat](https://mintcdn.com/cognigy-docs-legacy/RomCLoWcsmr9N2pz/_assets/ai/develop/node-reference/adaptive-card.png?fit=max\&auto=format\&n=RomCLoWcsmr9N2pz\&q=85\&s=bd09bb0a57150da725f7189f4c52c516)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.