See llms.txt for all machine-readable content.
This workflow receives a question via webhook (or manual test), embeds it alongside in-workflow FAQ entries using an OpenAI-compatible embeddings API, and answers with an OpenAI-compatible chat model only when a similarity threshold is met, returning a refusal otherwise and enforcing valid FAQ citations.
question field./embeddings endpoint to embed the question and all FAQ entries./chat/completions endpoint with instructions to answer only from the provided entries and include a final Source: FAQ-xx line.Authorization: Bearer <API_KEY>) and select it for both HTTP Request calls to the embeddings and chat endpoints.llm_base_url, chat_model, embedding_model, score_threshold, top_k, and customize refusal_text for your policy.[FAQ-01].{"question":"..."} as a POST request to /webhook/faq-answer from your app or form.Tested on n8n 2.48.8 with Ollama qwen2.5:7b and bge-m3 on 15 questions (10 in scope, 5 out of scope). Retrieval and the refusal gate run in Code nodes, with no vector database; the score threshold must be re-tuned per embedding model. The FAQ is synthetic.