FAQBotAgent
Answers frequently asked questions by matching user queries against a provided knowledge base using word-overlap similarity scoring. Optionally escalates to a live agent when no match is found.
FAQBotConfig
faqs
List of FAQ entries for the knowledge base. Each FAQEntry object has:
question(string, required) — The representative question text.answer(string, required) — The answer to provide when matched.keywords(string[]) — Additional keywords to boost matching accuracy.
threshold
Minimum match score (0 to 1) for an FAQ to be considered a match.
escalationMessage
Message spoken when no FAQ matches. Defaults to an apology offering to transfer.
escalationNumber
Phone number to transfer to on escalation. If not set, the escalate tool is not registered.
name
Agent display name.
agentOptions
Additional AgentBase options forwarded to the constructor.
Built-in Tools
FAQBot works best with up to ~50 FAQs. For larger knowledge bases, use the
native_vector_search skill instead.