Skip to main content
POST
Add FAQ entries

Overview

Add FAQ (Frequently Asked Question) entries to a voice agent’s knowledge base. During a conversation, the agent uses these entries to recognize caller questions and respond with accurate, predefined answers — reducing reliance on the LLM for common queries. A successful request automatically sets faqEnabled = true on the agent, enabling FAQ matching for all future conversations.

Required Permission

agents

Path Parameters

Request Body

FAQ Entry Object

Example cURL

Response

Success (200)

Response Fields

Error Responses

400 Bad Request - Validation error
404 Not Found - Agent does not exist

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 Inya 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