All pages

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:

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:

EventWhendata
message.createdThe team answered, or the person wrote while the team has the conversation.conversationId, subject, user, author, body, pictures
conversation.handed_offThe conversation went to the team.conversationId, subject, user, lastMessage
proposal.createdThe assistant proposed an action that waits for approval.conversationId, subject, user, the proposal
bug.reportedThe assistant reported a bug.conversationId, subject, user, the bug
feedback.receivedSomeone gave feedback on the product: an idea, praise or a complaint.conversationId, subject, user, reportId, tone, topic, summary
vulnerability.reportedSomeone 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.

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.