Draft an FAQ answer
/v1/knowledge/faqs/draft-answerNo “Try it” here: every call is real and consumes enrichment credits. Run the code samples from your own backend.
Has the AI agent draft an answer from your knowledge base, for a new question or for one of your FAQs' questions. Nothing is saved: send the answer to POST /v1/knowledge/faqs or PATCH /v1/knowledge/faqs/{faqId} to keep it.
The answer usually takes a few seconds, and two calls for the same question can draft different answers.
ApiKeyAuthx-api-key<token>Your Knock API key. Ask your Knock account team for one: a key with the Enrichment API role to enrich and route leads, the Viewer role to read chats, meetings, routing rules and FAQs, or the Admin, Editor or AI Manager role to change FAQs.
application/json- body
The question to draft an answer for: a new one, or the question of one of your FAQs.
question?stringA question. Required unless you send faqId; it wins when you send both.
1 <= length <= 1000faqId?stringOne of your FAQs, to draft an answer to its question.
uuidThe drafted answer.
application/json- response
An answer the AI agent drafted. It is not saved.
answer*|The drafted answer, from your knowledge base. Null when the AI agent found nothing to answer the question with.
curl -X POST 'https://app.knock-ai.com/v1/knowledge/faqs/draft-answer' \ -H 'x-api-key: <YOUR_API_KEY>' \ -H 'Content-Type: application/json' \ -d '{}'{ "answer": "Yes. Every plan starts with a 14-day free trial, no credit card needed."}