Channelsintermediate

How to create a custom channel

Create a custom channel to connect your own order system, review site, Zapier zap, or any other system to Atender over a webhook. Covers naming the channel, the one-time secret, the ingress URL, routing, test sends, handover events, delivery logs and resend, secret rotation, and auto-disable on repeated failures.

8 min read

How to create a custom channel

A custom channel connects a system you already run — your order system, a review site, a Zapier zap, anything that can send and receive HTTP — to Atender. Atender gives the channel an ingress URL your system POSTs messages to, and a signing secret Atender uses on everything it sends out to you. Replies can either be pushed to your webhook URL, or kept for your system to read from Atender if you create the channel without a webhook URL.

This is different from the general-purpose REST API: a custom channel is a configured, named integration with its own routing, delivery log, and health state, set up entirely from Settings.

Before you start

You’ll need:

  • Admin access to the tenant.
  • A delivery choice for agent replies:
  • Add a webhook URL if you want Atender to POST replies and test events to your system (and handover events, if you turn them on).
  • Leave the webhook URL blank if you want a pull channel, where replies are read from Atender instead of posted to your endpoint.
  • A plan for where conversations from this channel should land — a default team, and optionally a default agent stack.

A tenant API key with the channels:write scope. This is not optional extra credit: the ingress URL is a route on the v1 API (POST /api/v1/channels/<id>/messages), and it authenticates with Authorization: Bearer <api key> like every other v1 route. Add channels:read if your integration also lists channels.

Add a custom channel

  1. Go to Settings → Custom channel.
  2. If this is your first custom channel, you’ll see an empty state — click Add channel. If you already have one or more, use the same action to add another.
  3. Give it a name — something that identifies the system on the other end (for example, “Order system” or “Review site”). This name is what agents see as the channel on the conversation.
  4. Fill in Webhook URL (optional) if Atender should push outbound events to your system. Those events are replies and test events, plus handover events if an admin turns on Send handover events (see below). Leave the field blank to create a pull channel instead. Pull-channel rows show Replies are read, not posted, and there is no test-send button because there is no endpoint for Atender to test.
  5. Click Create channel. Atender creates the channel and returns two things you’ll only see once:
    The secret for this channel.
    The ingress URL — the Atender endpoint your system POSTs inbound messages to.

Copy the secret now. It’s shown once, at creation. Atender doesn’t show it again — if you lose it, you’ll need to rotate it and update your system with the new value.

What the ingress URL and secret are for

  • Ingress URL — a per-channel Atender endpoint, unique to this custom channel. Your system POSTs to this URL whenever a new message should become a conversation (or a new message on an existing conversation) in Atender.
  • Secret — the signing secret for everything Atender sends to you. Each outbound delivery (a reply, a test event, a handover event) carries a signature computed with it, and your endpoint should verify that signature before trusting the call. It does not authenticate your inbound POSTs: those carry your tenant API key instead, as the sample curl on the channel shows.

The ingress URL is shown next to the secret at creation, and again whenever you rotate the secret. It doesn’t change: it’s always <your Atender URL>/api/v1/channels/<channel id>/messages.

Assign a default team and agent stack

A custom channel can route to a default team, and optionally a default agent stack, so conversations coming in over that webhook land somewhere sensible without an agent having to triage them first. Both are optional — the team picker includes No team.

  1. Open the custom channel from Settings → Custom channel.
  2. Pick a default team from the list of teams on your tenant, or leave it on No team.
  3. Optionally pick a default agent stack to handle the conversation before or alongside a human agent.

Auto-resolve on inactivity

A custom channel can be configured to auto-resolve a conversation after a period of inactivity, the same idea as inactivity handling on other channels. Turn on Mark done after inactivity and set the number of minutes of silence after which an open conversation on this channel should resolve itself.

Send handover events

By default, a custom channel doesn’t tell your system when the Agent Stack hands a conversation to a person. To receive those events, an admin turns on Send handover events in the channel settings. In the public API, the same switch is the handoverEventsEnabled field.

The switch is off for every new channel and for every existing channel. When it’s on, Atender sends one signed handover event to your webhook URL for each handover, carrying the team, the reason and a summary. Handover events are not retried: if the delivery fails, Atender doesn’t send it again, though you can see the failure in the delivery log.

Send a test event

Before pointing real traffic at a push channel, use the Send a test event action on the channel’s row in Settings → Custom channel to fire a sample event at your configured webhook URL. This confirms your endpoint is reachable and responding before your order system or Zapier zap depends on it.

Pull channels do not show a test-send button, because there is no webhook endpoint for Atender to call.

View and resend failed deliveries

Replies and handover events (when Send handover events is on) are logged as deliveries. A test send is not: it reports its result to you on the spot and writes no delivery row, and it doesn’t count towards the channel’s health either. From the channel’s row in Settings → Custom channel:

  • Open Deliveries to see each attempt: the event type, attempt number, status (success or failed), the response status code and response time, and, for failures, the error message. Handover deliveries show as Handover.
  • Click into a delivery to see the full outgoing payload and the response body your system returned.
  • If a reply delivery failed, use Resend to send it again. A failed handover delivery can’t be resent. Atender rebuilds the request from the stored message, so the envelope carries a new event id — deduplicate on the message id inside it, not on the event id. The retry is recorded as its own delivery row and never downgrades an already-sent message.

Rotate the secret

If the secret is compromised, or you’ve lost it and can’t retrieve it (it’s never shown again after creation), rotate it from Rotate secret in the channel’s more-actions (⋯) menu. Rotating issues a new secret — shown once, the same as at creation — and immediately invalidates the old one. Update the verification on your receiving system right away, since deliveries after the rotation are signed with the new secret and will fail your check if it still expects the old one. Your inbound calls are unaffected — those authenticate with your API key, not this secret.

Auto-disable after repeated failures

If Atender’s calls to your webhook fail repeatedly in a row, the channel auto-disables itself rather than continuing to retry indefinitely. A failed handover delivery never counts toward auto-disable, so a rejecting handover endpoint on its own won’t disable the channel. A disabled channel shows the reason it was disabled and stops attempting new deliveries until you re-enable it — typically after you’ve fixed whatever was rejecting the calls on your side (an expired endpoint, a broken auth check, a deploy that changed the response shape). Check the delivery log first; the failed entries there usually show exactly what your endpoint returned.

How replies are delivered

There’s no email or phone fallback for a custom channel. When an agent replies on a custom-channel conversation, delivery depends on how you configured the channel:

  • Push channel — if the channel has a webhook URL, Atender sends replies and test events to that URL and nowhere else, plus handover events if Send handover events is on. Your system is responsible for getting that reply in front of the end user, such as posting it to your order system’s message thread or your review platform. If your webhook is down or rejecting calls, replies won’t reach anyone until it’s fixed — which is also why the delivery log and auto-disable behavior exist, so a broken endpoint doesn’t silently swallow replies.
  • Pull channel — if the channel has no webhook URL, replies are not posted to an endpoint. The channel row shows Replies are read, not posted, and your system is responsible for reading those replies from Atender and delivering them to the end user.

Atender does not fall back to the contact’s email or phone number even if one is on file. The one case where a reply is not delivered at all is a conversation that arrived through an inbound endpoint marked no reply: the agent is told so, and the reply is not sent anywhere.

Tags

ChannelsHow ToWebhooks