---
title: "Passthrough"
description: "Use the passthrough response to send a custom payload straight to a messaging channel, without Moveo message processing."
---

# Passthrough

> Use the passthrough response to send a custom payload straight to a messaging channel, without Moveo message processing.

:::note Enterprise only
This feature is only available for accounts on the Enterprise plan. Want access?
[Contact our sales team to learn more](https://moveo.ai/book-a-demo).
:::

The passthrough feature allows you to send custom payloads directly to messaging channels without
Moveo's standard message processing. This extends the capabilities of your
[AI agent](https://docs.moveo.ai/docs/ai-agents/overview.md) by leveraging platform-specific features to their full potential.

## Overview

When you need to use platform-specific features or send specialized message formats, the
passthrough feature enables you to bypass Moveo's standard message processing and send payloads
directly to the channel.

## Supported channels

The passthrough feature is available for the following messaging channels:

- Viber
- WhatsApp
- Sunshine Conversations

## Schema

To use the passthrough feature, add a `passthrough` field to your text or carousel response. The
field contains a list of objects with the following structure:

| Field   | Type   | Description                                                                                  |
| ------- | ------ | -------------------------------------------------------------------------------------------- |
| channel | string | The target messaging channel (`"whatsapp"`, `"sunco"` (Sunshine Conversations) or `"viber"`) |
| payload | string | A JSON stringified string containing the channel-specific message format                     |

:::note
Ensure your payload matches the target channel's message format requirements.
:::

**Example Structure:**

```json
{
  "passthrough": [
    {
      "channel": "string",
      "payload": "string" // JSON stringified payload
    }
  ]
}
```

## Platform-specific implementations

### Sunshine Conversations

For Sunshine Conversations (Sunco), the passthrough feature integrates with their native passthrough
API. The payload is placed in the `override` field of the WhatsApp message. See the
[Sunshine Conversations passthrough documentation](https://docs.smooch.io/guide/whatsapp/#passthrough-api)
for detailed examples.

## Examples

The following example demonstrates sending a custom WhatsApp message using passthrough. On all other
channels, the AI agent sends only the text "Hello!".

```json
{
  "type": "text",
  "text": "Hello!",
  "passthrough": [
    {
      "channel": "whatsapp",
      "payload": "{\"type\":\"template\",\"template\":{\"namespace\":\"XXXXXXXX_XXXX_XXXX_XXXX_XXXXXXXXXXXX\",\"element_name\":\"hello_world\",\"language\":{\"policy\":\"deterministic\",\"code\":\"en_US\"},\"components\":[{\"type\":\"header\",\"parameters\":[{\"type\":\"image\",\"image\":{\"link\":\"https://image.jpg\"}}]}]}}"
    }
  ]
}
```

## Best practices

1. Always validate your channel-specific payloads against the platform's documentation.
2. Test passthrough messages in a development environment first.
3. Keep track of platform-specific features and limitations.
4. Consider fallback options for channels that don't support certain message types.

## Limitations

- The passthrough feature is only available through the API.
- Each channel has specific message format requirements and limitations.
- Messages sent via passthrough bypass Moveo's standard message processing and validation.

## Channel documentation

For detailed message format specifications, refer to these platform-specific resources:

- [WhatsApp Business API documentation](https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages)
- [Viber REST API documentation](https://developers.viber.com/docs/api/rest-bot-api/#message-types)
- [Sunshine Conversations passthrough documentation](https://docs.smooch.io/guide/whatsapp/#passthrough-api)
