Docs / Build
Alerts and integrations
Everything here is set per app on the dashboard, under Alerts and integrations. Anyone on the team can see it; only an owner or admin can change it. Webhook addresses and helpdesk tokens are stored encrypted and never shown again: the page only says whether one is set.
Alerts
Dezzi tells your team when a conversation is handed to them, when one they have gets a new message, when the assistant proposes an action that waits for approval, and when a bug is reported. Each alert goes to every channel you set:
- Discord: a channel webhook (
https://discord.com/api/webhooks/…), from the channel’s settings, Integrations, Webhooks. - Slack: an incoming webhook (
https://hooks.slack.com/services/…). Make a Slack app, turn on Incoming Webhooks, and add one for the channel. - Email: any address, such as your team’s shared inbox.
An alert carries only ids, counts and a link to the conversation on the dashboard, never what the person or the assistant wrote, so a chat channel never holds your customers’ messages. Open the link to read the conversation. Send a test alert on the page checks every channel at once.
Your app’s webhook
With a webhook address set (public https only), Dezzi posts what happened to your app’s own server, so it can email its people and its team in its own name:
| Event | When | data |
|---|---|---|
message.created | The team answered, or the person wrote while the team has the conversation. | conversationId, subject, user, author, body, pictures |
conversation.handed_off | The conversation went to the team. | conversationId, subject, user, lastMessage |
proposal.created | The assistant proposed an action that waits for approval. | conversationId, subject, user, the proposal |
bug.reported | The assistant reported a bug. | conversationId, subject, user, the bug |
feedback.received | Someone gave feedback on the product: an idea, praise or a complaint. | conversationId, subject, user, reportId, tone, topic, summary |
vulnerability.reported | Someone reported a security weakness in the chat, or a dependency check found a published vulnerability. Read it in the dashboard, under Feedback and security. | From the chat: conversationId, user, reportId. From a dependency check: reportId, source (dependencies). |
Each is a POST of { id, type, createdAt, data } with the event’s type in X-Support-Event. Answer with
any 2xx to take it. Anything else is tried again after 1, 2, 4… minutes, at most an hour apart, and an event still failing after a day or 12
tries is dropped. The same event can arrive twice, so handle each id once.
Checking the signature
Every event is signed with the app’s action signing secret (as_…), like a call to one of your actions:
X-Support-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. Check it on the raw body before
parsing it, and refuse one more than 5 minutes old:
async function verified(request, secret) {
const body = await request.text();
const header = request.headers.get('x-support-signature') ?? '';
const t = /(?:^|,)t=(\d+)/.exec(header)?.[1];
const v1 = /(?:^|,)v1=([0-9a-f]{64})/.exec(header)?.[1];
if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return null;
const key = await crypto.subtle.importKey('raw', new TextEncoder().encode(secret), { name: 'HMAC', hash: 'SHA-256' }, false, ['verify']);
const signature = Uint8Array.from(v1.match(/../g), (byte) => parseInt(byte, 16));
const ok = await crypto.subtle.verify('HMAC', key, signature, new TextEncoder().encode(`${t}.${body}`));
return ok ? JSON.parse(body) : null;
}
crypto.subtle.verify compares in constant time. It runs as it is in Node 20 and later, Deno, Bun and edge runtimes.
Helpdesks
On the Starter plan and above, a handoff can also open a ticket in your helpdesk, so your team works where it already does. The ticket has the conversation’s subject, its last 20 messages as plain text (who wrote each), and the person’s email. The ticket’s address or id is kept with the conversation. If the helpdesk can’t be reached, the handoff still happens and the alert still goes out.
-
Zendesk: your subdomain (the part before
.zendesk.com), an agent’s email, and an API token (Admin Center, Apps and integrations, Zendesk API). The ticket’s first comment is private, so Zendesk doesn’t email the person a copy of the conversation they already have, and its external id is the Dezzi conversation’s id. -
Plain: an API key of a machine user with
customer:create,customer:edit,thread:createandthread:read. Dezzi finds the customer by email (adding them when new) and opens a thread. A person with no email gets no thread.
Support by email
Choose the app’s address on Alerts and integrations: 3 to 40 lowercase letters, digits and hyphens, before the service’s
email domain, such as acme-help@…. People can write to it directly, or you can forward your own support address to it. The
assistant answers by email in the same thread, from "<App name> support" at that address, and the team’s answers from the
dashboard go out the same way.
- Anyone can write any sender address, so someone who emails is treated like a visitor: help content, bug reports and handoff to the team, never your app’s actions.
- Only the text the person wrote is kept: quoted replies and signatures are left out, and attachments aren’t read. A message over 256 KB is refused.
- Auto-replies, bounces and mailing lists are ignored, so two robots never answer each other, and one address may send at most 20 messages an hour.