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

# AI Default Channel Formats

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

The [AI Default Channel](/ai/agents/develop/node-reference/basic/say#default-cognigy-ai-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](/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

<AccordionGroup>
  <Accordion title="Text">
    Sends text to the Endpoint.

    <Tabs>
      <Tab title="JSON Format">
        ```js theme={null}
        api.output("Your text", null);
        ```
      </Tab>

      <Tab title="Say Node">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/say-in-node.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=9a805cbbc4739326dc906fce07f5dc57" alt="Text output configured in a Say Node" style={{ width: 'auto' }} width="368" height="82" data-path="_assets/ai/develop/node-reference/say-in-node.png" />
        </Frame>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/say-in-webchat.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=8c597c0b469ded927196ba9fa0ccfeaa" alt="Text output rendered in Webchat" style={{ width: 'auto' }} width="452" height="270" data-path="_assets/ai/develop/node-reference/say-in-webchat.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Text with Quick Replies">
    Sends text and a number of quick reply buttons.

    <Tabs>
      <Tab title="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>

      <Tab title="Say Node">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/say-node-quick-replies.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=376b4f5f8eb5fa83ab67ebc1b7935579" alt="Quick replies configured in a Say Node" style={{ width: 'auto' }} width="448" height="328" data-path="_assets/ai/develop/node-reference/say-node-quick-replies.png" />

          <figcaption>Quick Replies in Say Node</figcaption>
        </Frame>

        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/say-node-text-with-quick-reply.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=8a356c6b44b477b8f8e1f2e8d9f60fba" alt="Quick reply button detailed settings" style={{ width: 'auto' }} width="331" height="724" data-path="_assets/ai/develop/node-reference/say-node-text-with-quick-reply.png" />

          <figcaption>Quick Reply Detailed Settings</figcaption>
        </Frame>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/xzKKSVUQG5P2_fcS/_assets/ai/develop/node-reference/webchat-quick-reply-buttons.png?fit=max&auto=format&n=xzKKSVUQG5P2_fcS&q=85&s=38aa76ab781970a9f569dd80c39bcc9f" alt="Quick reply buttons rendered in Webchat" style={{ width: 'auto' }} width="410" height="175" data-path="_assets/ai/develop/node-reference/webchat-quick-reply-buttons.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Gallery">
    Outputs a carousel of cards.

    <Tabs>
      <Tab title="JSON Format">
        ```js theme={null}
        api.output(null, {
          "type": "gallery",
          "_cognigy": {
            "_default": {
              "_gallery": {
                "type": "carousel",
                "items": [
                  {
                    "id": 111,
                    "title": "Cognigy.AI",
                    "subtitle": "Cognigy.AI 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>

      <Tab title="Say Node">
        <div style={ {display: 'flex', justifyContent: 'space-between'} }>
          <Frame style={ {width: '30%'} }>
            <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/OU10XTKbB-9IwiZJ/_assets/ai/develop/node-reference/gallery-say-node.png?fit=max&auto=format&n=OU10XTKbB-9IwiZJ&q=85&s=1272dc2e6b74448881019b25cc996965" alt="Gallery carousel configured in a Say Node" style={{ width: 'auto' }} width="718" height="1234" data-path="_assets/ai/develop/node-reference/gallery-say-node.png" />

            <figcaption>Gallery in Say Node</figcaption>
          </Frame>

          <Frame style={ {width: '50%'} }>
            <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/OU10XTKbB-9IwiZJ/_assets/ai/develop/node-reference/gallery-button-settings.png?fit=max&auto=format&n=OU10XTKbB-9IwiZJ&q=85&s=a867d9e8542440f098efb5b267645aac" alt="Gallery card button settings in the Node editor" style={{ width: 'auto' }} width="335" height="482" data-path="_assets/ai/develop/node-reference/gallery-button-settings.png" />

            <figcaption>Gallery Button Settings</figcaption>
          </Frame>
        </div>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/jD73u_IBHRit9B59/_assets/ai/develop/node-reference/gallery-web-chat.png?fit=max&auto=format&n=jD73u_IBHRit9B59&q=85&s=32ba3d843430cfcc7edf0ee4a6d274c4" alt="Gallery carousel rendered in Webchat" style={{ width: 'auto' }} width="938" height="630" data-path="_assets/ai/develop/node-reference/gallery-web-chat.png" />

          <figcaption>Gallery in Webchat</figcaption>
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Text with Buttons">
    Outputs text with a list of buttons.

    <Tabs>
      <Tab title="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>

      <Tab title="Say Node">
        <div style={ {display: 'flex', justifyContent: 'space-between'} }>
          <Frame style={ {width: '30%'} }>
            <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/OU10XTKbB-9IwiZJ/_assets/ai/develop/node-reference/buttons-in-editor-ai.png?fit=max&auto=format&n=OU10XTKbB-9IwiZJ&q=85&s=7bd4b323fa6f6ed7744a6cfee12c258d" alt="Text with buttons configured in a Say Node" style={{ width: 'auto' }} width="742" height="732" data-path="_assets/ai/develop/node-reference/buttons-in-editor-ai.png" />

            <figcaption>Text with Buttons in Say Node</figcaption>
          </Frame>

          <Frame style={ {width: '50%'} }>
            <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/text-with-buttons.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=bffdd8df6b0c5dfdef4fd55486af1aa4" alt="Text with buttons detailed settings in the Node editor" style={{ width: 'auto' }} width="487" height="529" data-path="_assets/ai/develop/node-reference/text-with-buttons.png" />

            <figcaption>Text with Buttons Detailed Settings</figcaption>
          </Frame>
        </div>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/test-with-buttons-in-web-chat.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=bb70c1b308e25cedfec6756a15a0148b" alt="Text with buttons rendered in Webchat" style={{ width: 'auto' }} width="504" height="408" data-path="_assets/ai/develop/node-reference/test-with-buttons-in-web-chat.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="List">
    Outputs a list.

    <Tabs>
      <Tab title="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>

      <Tab title="Say Node">
        <div style={ {display: 'flex', justifyContent: 'space-between'} }>
          <Frame style={ {width: '50%'} }>
            <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/Tv-SBkUFyiHwf19J/_assets/ai/develop/node-reference/edit-node-list.svg?fit=max&auto=format&n=Tv-SBkUFyiHwf19J&q=85&s=20a724b6cff0793c8789571f384a4a25" alt="List output configured in a Say Node" style={{ width: 'auto' }} width="301" height="404" data-path="_assets/ai/develop/node-reference/edit-node-list.svg" />

            <figcaption>List in Say Node</figcaption>
          </Frame>

          <Frame style={ {width: '50%'} }>
            <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/YxtTXvTfEZKsLI2K/_assets/ai/develop/node-reference/say-list-option-order.svg?fit=max&auto=format&n=YxtTXvTfEZKsLI2K&q=85&s=7613225cb7674e4709e898f49eff8516" alt="List item settings in the Say Node editor" style={{ width: 'auto' }} width="247" height="503" data-path="_assets/ai/develop/node-reference/say-list-option-order.svg" />

            <figcaption>List Say Node settings</figcaption>
          </Frame>
        </div>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/0_yJ3KZSBUIs9xEW/_assets/ai/develop/node-reference/webchat-say-node-list-items.svg?fit=max&auto=format&n=0_yJ3KZSBUIs9xEW&q=85&s=ccbc9f19b6b58d99f8150ae611818465" alt="List items rendered in Webchat" style={{ width: 'auto' }} width="301" height="401" data-path="_assets/ai/develop/node-reference/webchat-say-node-list-items.svg" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Audio">
    Outputs audio from a URL.

    <Tabs>
      <Tab title="JSON Format">
        ```js theme={null}
        api.output(null, {
          "type": "audio",
          "_cognigy": {
            "_default": {
              "_audio": {
                "type": "audio",
                "audioUrl": "https://audio.test/test.wav"
              }
            }
          }
        });
        ```
      </Tab>

      <Tab title="Say Node">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/OU10XTKbB-9IwiZJ/_assets/ai/develop/node-reference/audio-and-details-in-say-node.png?fit=max&auto=format&n=OU10XTKbB-9IwiZJ&q=85&s=9ea0fd1acdfe63f7c22033844010bf41" alt="Audio output configured in a Say Node" style={{ width: 'auto' }} width="830" height="892" data-path="_assets/ai/develop/node-reference/audio-and-details-in-say-node.png" />
        </Frame>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/OU10XTKbB-9IwiZJ/_assets/ai/develop/node-reference/audio_in_webchat.png?fit=max&auto=format&n=OU10XTKbB-9IwiZJ&q=85&s=e09cccaade52ee8fca540d3fc52afdea" alt="Audio player rendered in Webchat" style={{ width: 'auto' }} width="652" height="186" data-path="_assets/ai/develop/node-reference/audio_in_webchat.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Image">
    Outputs image from a URL.

    <Tabs>
      <Tab title="JSON Format">
        ```js theme={null}
        api.output(null, {
          "type": "image",
          "_cognigy": {
            "_default": {
              "_image": {
                "type": "image",
                "imageUrl": "https://testURL.test/image.jpeg"
              }
            }
          }
        });
        ```
      </Tab>

      <Tab title="Say Node">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/jD73u_IBHRit9B59/_assets/ai/develop/node-reference/image.png?fit=max&auto=format&n=jD73u_IBHRit9B59&q=85&s=6653d5854266085a57b38699cc19ab6a" alt="Image output configured in a Say Node" style={{ width: 'auto' }} width="844" height="994" data-path="_assets/ai/develop/node-reference/image.png" />
        </Frame>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/jD73u_IBHRit9B59/_assets/ai/develop/node-reference/image-in-webchat.png?fit=max&auto=format&n=jD73u_IBHRit9B59&q=85&s=598f74e713e20fd48d72536551385eb7" alt="Image rendered in Webchat" style={{ width: 'auto' }} width="646" height="514" data-path="_assets/ai/develop/node-reference/image-in-webchat.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Video">
    Outputs video from a URL.

    <Tabs>
      <Tab title="JSON Format">
        ```js theme={null}
        api.output(null, {
          "type": "video",
          "_cognigy": {
            "_default": {
              "_video": {
                "type": "video",
                "videoUrl": "https://www.youtube.com/watch?v=iGc3fekZQOw"
              }
            }
          }
        });
        ```
      </Tab>

      <Tab title="Say Node">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/video-in-say-node.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=3e63ef5f9ecf572218193fbac60005ad" alt="Video output configured in a Say Node" style={{ width: 'auto' }} width="836" height="1050" data-path="_assets/ai/develop/node-reference/video-in-say-node.png" />
        </Frame>
      </Tab>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/eCWTpPMMSEqv9wTC/_assets/ai/develop/node-reference/video_in_web_chat.png?fit=max&auto=format&n=eCWTpPMMSEqv9wTC&q=85&s=4213f64c6164af62f413c8e52eb9e66c" alt="Video player rendered in Webchat" style={{ width: 'auto' }} width="668" height="510" data-path="_assets/ai/develop/node-reference/video_in_web_chat.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Adaptive Card">
    Outputs an adaptive card.

    <Tabs>
      <Tab title="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>

      <Tab title="Webchat">
        <Frame>
          <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/zkuN4mfSk9TWL7kq/_assets/ai/develop/node-reference/adaptive-card.png?fit=max&auto=format&n=zkuN4mfSk9TWL7kq&q=85&s=26b8f8245687e728183a20b32e81c799" alt="Adaptive Card rendered in Webchat" style={{ width: 'auto' }} width="1114" height="316" data-path="_assets/ai/develop/node-reference/adaptive-card.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Accordion>
</AccordionGroup>
