# Connect your own chat source as a custom channel

Bring chats from your own app or any source Prospect doesn't integrate with into the shared inbox, through your own server.

Source: https://support.rework.com/article/prospect-custom-channel

A custom channel brings a chat source Prospect doesn't integrate with into the shared inbox: your own app, a marketplace, or an in-house system. Your server talks to that source. Prospect stores the conversations and gives your team the inbox, AI agents, flows and reports on top. You set it up in Prospect, and a developer on your side connects the two with a few HTTPS calls.

## Before you start

- A developer who can build and host a small server that sends events to Prospect and answers its calls.
  
- Permission to connect a channel into at least one inbox. See [Roles and permissions](https://support.rework.com/article/prospect-roles-and-permissions#service-level).
  
- One custom channel per chat source. If you have two apps, create two channels.
  

## How it works

Traffic runs both ways:

- **Events in.** Your server sends customer messages and other events (an edit, a reaction, a read receipt, a profile change) to the channel's **events URL**.
  
- **Actions out.** When an agent or the AI replies, edits, reacts or reads a conversation, Prospect calls an endpoint on your server. You choose which **actions** your server supports, and the inbox offers only those.
  

Both directions are signed the same way, so each side can check that a request really comes from the other.

## Create the channel

1. Go to **Settings** › **Channels** and click **Connect Channel** (see [Connect a channel](https://support.rework.com/article/prospect-how-to-connect#open-the-marketplace)). Filter by **Developer** **(1)** and click **Connect** on the **Custom channel** card **(2)**.
   
   ![Connect Channel marketplace with the Developer filter (1) and the Connect button on the Custom channel card (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/4eQv12qhLitRCy232HqOKgtMhmbMGS30pmvRGv9RDGbshAFNrAebbjiXCK7No6j5/img.Fl0gfkWwpkuUlqGIbrYAz0XUezKYlkEYt9FLe3HYUwjlEPfTJymMwQFFIlZLj67Q.png)
   
2. Choose the inbox under **Connect to service** **(1)**, enter a **Channel name** your team will recognise **(2)**, and click **Create channel** **(3)**. The channel's setup page opens.
   
   ![Custom channel dialog with the Connect to service dropdown (1), the Channel name field (2) and the Create channel button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/v1L0qbWA9JBezA4erOFzlpCwK0lb3wxW2gCpK3N2qI5TH7SVdedbJF7I8wdNWkaf/img.55vR0gESwkCjYbxdfdFulVTK6cJXbvuXE6Zc3yOS1toSiGMVxc34dTPj0zCHioLM.png)
   

To come back to the setup page later, open the channel's menu in **Settings** › **Channels** and choose **Configure channel**. The left side lists the setup steps and how many required steps are done.

## Connection: where events go

1. Copy the **events URL** **(1)** and give it to your developer. Their server sends customer messages and other events to it.
   
2. Choose how requests prove they are yours **(2)**: **Signature** (recommended, an HMAC of each request), **Header** (a fixed header name and value), or **URL only** (anyone holding the URL can post, so use it only for a system that can't sign or set a header).
   
3. With **Signature**, the **Signing secret** is shown once, when it's created. Save it somewhere safe. If it's lost, click **Rotate signing secret** **(3)** for a new one; the old one stops working at once.
   

**Rotate URL** gives the channel a new events URL in the same way: the old one stops accepting events immediately.

**Copy guide** under **Let AI build it** **(4)** copies a ready-made brief with this channel's events URL and actions. Your developer can paste it into ChatGPT, Claude or Cursor to build the server side. The signing secret is never included.

![Custom channel setup page with the events URL and Copy button (1), the Signature, Header and URL only options (2), Rotate signing secret (3) and Copy guide (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/iMricTYa5acAM0rbrVljRDp81IzV6IjnratxGRy0EPsZLrFiaiSg61XYxCf14vdY/img.XZ2X2f22QNTI7kYnAXQhG12UWUDOsXqvEsa6TB7KyXEhfM8q9ZS8popPKQjGkpLu.png)

## Inbound payload: what your events look like

Choose **Standard** or **Custom** **(1)**:

- **Standard**: your server sends events in Prospect's own format. The developer guide on the page shows it.
  
- **Custom**: point a system you already run at the events URL as it is, then map where each field sits in its payload: the contact, the message ID, the text, the attachments and so on. You also tell Prospect how to recognise each event type, for example by the value of a field or by which field is present. Each option has a worked example.
  

To build the mapping from a real request, click **Listen for test request** and send one to the events URL, or paste a sample payload **(2)**. Then click **Test mapping** **(3)**: each event it reads shows as a card, along with anything that failed or was ignored. Nothing is saved by a test.

![Inbound payload section with the Standard and Custom options (1), the Listen for test request button and payload box (2) and the Test mapping button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/RxRYRdELL6JQfMfdSTY4skyQ6VHxf3xvw0toVLdsHPMGAmEbfKknPPnpXIqZVGun/img.oW5efwWKKF7fNOhA8MXuEtP0BR0iV3cr6zdaS4CANieO65yno3COxQqmXNEOCPvt.png)

Prospect understands these events:

| 
Event

 | 

What it does in the inbox

 |
| --- | --- |
| 

New message

 | 

Adds a customer message, with attachments and the message it replies to

 |
| 

Message edited

 | 

Updates the text of an earlier message

 |
| 

Message deleted

 | 

Shows the message as removed

 |
| 

Delivery status

 | 

Marks a reply as delivered or failed

 |
| 

Reaction

 | 

Shows the customer's emoji reaction

 |
| 

Seen

 | 

Marks one message, or everything up to a time, as read by the customer

 |
| 

Typing

 | 

Shows that the customer is typing

 |
| 

Profile updated

 | 

Updates the customer's name, avatar, phone or email

 |

Sending the same message twice is safe: the message ID is the key, so it lands once.

## Actions: what your server can do

Each action is one HTTPS endpoint on your server. The inbox offers only what is set up and active here: no reply box without **Send message**, no reactions without **Send reaction**.

![Actions section with a Send message action (1), the Add action button (2) and the Send test message button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/1U8tpl1qtj2m59y8cezQbLJhFBVRbn11aHydvjIYYQEUDX7gvZV4HzNu0OfOonVM/img.fNSbZ6HK32Nf13NFKmAt05oLIzBv8YIfoEqXiCjwzX4oQSzonWXMRjzRrnqLzH5C.png)

1. Click **Add action** **(2)**.
   
2. Pick the **Action** **(1)** and enter the **Endpoint URL** on your server **(2)**. It must be https; redirects are not followed. **Timeout** is 1 to 30 seconds (15 by default). Add **Headers** if your server expects its own API key.
   
3. Under **Body** **(3)**, keep **Standard** to send Prospect's own format (shown with a **Copy** button), or switch to **Custom** to shape the request your server expects. **Validate** and **Format JSON** help with a custom body. If your server answers in its own format, map the fields of its response too.
   
4. Click **Done** **(4)**, then **Save** at the top of the page. **Check connection** pings the endpoint to confirm it answers.
   
   ![Add action dialog with the Action picker (1), the Endpoint URL field (2), the Standard and Custom body options (3) and the Done button (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/jrwyk1KVe9MHqrBPihWBNGoPx6QbZqnkHfxSDHd0kLWjJJilxloBX4zUOpkaSY1A/img.8RsxyfoH8kCgo3auvH78qNmOFFJLB3qku1zbErdq1OQPcYWHwxG3axMDNoBIMwvW.png)
   

| 
Action

 | 

What it turns on

 |
| --- | --- |
| 

Send message

 | 

Agents and AI replies go out through it. Without it the channel only receives.

 |
| 

Edit message

 | 

An agent can edit a reply that was already sent

 |
| 

Unsend message

 | 

An agent can unsend a reply

 |
| 

Send reaction

 | 

An agent can react to a customer message

 |
| 

Mark as seen

 | 

Your server learns when an agent has read the conversation

 |
| 

Typing indicator

 | 

The customer sees typing while the AI agent answers

 |
| 

Get profile

 | 

Refreshes a customer's name and avatar on demand

 |
| 

List conversations

 | 

Imports existing conversations, page by page

 |
| 

List messages

 | 

Syncs the past messages of a conversation, page by page

 |

Once **Send message** is set up, **Send test message** **(3)** sends a test through your endpoint. Once **List conversations** is set up, **Import conversations** brings in up to 1,000 existing conversations (their contacts and threads; past messages come with **List messages**, up to 200 per conversation).

## Check what's happening

The **Delivery log** lists the last 50 calls each way, kept for 7 days, with their status and duration. It never stores message content. Use it first when a message doesn't arrive or a reply fails.

To stop using the channel, open **Danger zone** and click **Disconnect**. The channel stops receiving and sending; its conversations are kept.

## Good to know

- Admins, inbox owners and people allowed to connect channels to the inbox can create a custom channel. Only admins, the inbox owner and the channel owner can open its setup page.
  
- The events URL accepts up to 600 requests a minute per channel, up to 100 events in one request and a 1 MB body. Over the limit, your server is told to retry later.
  
- Attachment and avatar URLs in events must be public https links; Prospect copies the file.
  
- A reply that fails is not retried automatically. It shows as failed in the conversation and the agent can send it again.
  
- Broadcasts and message templates are not available on custom channels.
  
- Want to plug in your own bot rather than a chat source? See [Connect your own bot as an external AI agent](https://support.rework.com/article/prospect-external-ai-agents).
