Skip to main content
POST
Add FAQ entries
What it does: Add FAQ entries to a voice agent’s knowledge base so the agent can recognize caller questions and respond with predefined answers. A successful request automatically sets faqEnabled = true on the agent.

Required Permission

agents

Path Parameters

Request Body

FAQ Entry Object

Minimum working example

Response

Success (200)

Response Fields

Errors

400 Bad Request - Validation error
404 Not Found - Agent not found

Limits

An agent can hold a maximum of 100 FAQ entries per environment. Attempting to add more will return HTTP 400. Use List FAQs to check the current count before adding new entries.
Add multiple question phrasings per entry (up to 10) to increase the likelihood of a match. For example, “What are your hours?”, “When do you open?”, and “Are you open on weekends?” can all map to the same answer.
Adding FAQ entries automatically enables FAQ matching on the agent (faqEnabled = true). To disable FAQ matching without deleting entries, update the agent with faqEnabled: false via Update Agent.
Save the requestId from every response. You will need it if you contact Gnani support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Path Parameters

botId
string
required

Unique identifier of the agent

Body

application/json
botId
string
required
Example:

"fb79920229d144608ebf665a10e50275"

environment
enum<string>
required
Available options:
development,
staging,
production
faq
object[]
required

Response

FAQs added successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object