# knowledge.suggested

> The ByDomu knowledge.suggested event (Noa suggested saving an answer as a document): when it fires, how to subscribe, its fields and the payload delivered by webhook.


Noa suggested saving an answer as a document

Object · knowledge Instant

## When it fires

Noa suggests saving what a person answered, after Noa handed the conversation over (or the agent asked from the inbox), as a document. It is not a document yet: knowledge carries the proposal without customer data.

Instantly, when it happens in ByDomu: from the app, the API, Noa, an automation or an integration. `actor.kind` tells you who: USER, NOA, SYSTEM, API, AUTOMATION or INTEGRATION.

## Subscribe with

- `knowledge.suggested` Only this event
- `knowledge.*` Every event of Noa knowledge
- `*` The whole catalog

## Fields it carries

paths for filters and templates

`knowledge.id` Proposal ID

`knowledge.source` Source (handoff or inbox)

`knowledge.title` Proposed title

`knowledge.question` Customer question

`knowledge.collection` Suggested collection

`knowledge.similarCount` Similar questions

`knowledge.topicLabel` Topic

`knowledge.conversationId` Conversation

`knowledge.agentId` Agent who answered

Up to 5 attempts (0 s, 5 s, 30 s, 2 min and 10 min) on network errors, 429 or 5xx. Reply 2xx in under 10 s.

Payload:

```
{
  "event": "knowledge.suggested",
  "id": "5f3a0c1e-7d2b-4f7e-9a51-0b6c1d2e3f40",
  "type": "knowledge.suggested",
  "timestamp": "2026-09-22T14:30:00.000Z",
  "organizationId": "clx1org001",
  "actor": {
    "kind": "NOA",
    "userId": null
  },
  "data": {
    "knowledge": {
      "id": "clx1kpr001",
      "source": "HANDOFF",
      "title": "Horario de atención los sábados",
      "content": "Los sábados atendemos de 9:00 a. m. a 1:00 p. m. en la oficina y por WhatsApp. Los domingos y festivos no hay atención; los mensajes se responden el lunes.",
      "question": "¿Atienden los sábados? Mi número es [teléfono]",
      "collection": "Horarios",
      "webVisible": false,
      "similarCount": 4,
      "topicLabel": "Horario de fin de semana",
      "conversationId": "clx1cnv001",
      "agentId": "clx1usr001",
      "createdAt": "2026-09-22T14:30:00.000Z"
    }
  }
}
```

Headers:

```
X-Domu-Event: knowledge.suggested
X-Domu-Signature: t=1790610130,v1=9c1e…
User-Agent: Domu-Webhooks/2
```

Verify signature:

```
import { createHmac, timingSafeEqual } from "node:crypto";

// header = X-Domu-Signature: t=<timestamp>,v1=<hmac>
function verifyWebhook(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const timestamp = Number(parts.t);
  if (!timestamp || !parts.v1) return false;
  if (Math.abs(Date.now() / 1000 - timestamp) > toleranceSec) return false;
  const expected = createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1);
  return a.length === b.length && timingSafeEqual(a, b);
}
```

**Get it with your test data** GET /v1/webhooks/sample/knowledge.suggested

[Try it](https://developers.bydomu.com/en/referencia/get-webhook-sample?probar=1&type=knowledge.suggested)
