c.l.cladDocs

Knowledge base & forms

Let users search your knowledge base and submit ticket forms without leaving your app.

const articles = await chat.searchArticles("how do I update billing");
await chat.showArticle(articles[0].id);
 
await chat.showTicketForm("contact", {
  prefill: { summary: "Cannot log in", severity: "high" },
});
  • searchArticles returns only published, end‑user‑visible articles.
  • Submitting a ticket form creates a conversation in your inbox and emits form:submitted. Unknown prefill fields are ignored.
📷 Screenshot needed

Knowledge base in the widget

The widget showing knowledge base search results (and/or an open article), so users can see they can self‑serve answers without leaving your app.

📷 Screenshot needed

A ticket form in the widget

The widget showing an embedded ticket form with a couple of fields, to illustrate submitting an async request from inside the messenger.