Answer RFx sourcing event questions with Gemini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 42 nodes and runs when a chat message arrives. Along the way it connects Google Gemini Chat Model, Google Sheets and Gmail.
How it runs
Trigger: When a chat message arrives.
- Configure RFx Assistant (Edit Fields (Set)): sets 9 fields: received_at, session_id, query_input…
- Normalize and Precheck Inquiry (Code): runs custom JavaScript code
- Build Inquiry Classification Prompt (Code): runs custom JavaScript code
- Gemini - Classify RFx Inquiry (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini Chat Model - Classification
- Validate Inquiry Classification (Code): runs custom JavaScript code
- Fetch RFx Events (Google Sheets): uses Google Sheets
- Fetch FAQ Rules (Google Sheets): uses Google Sheets
- Fetch FAQ Usage History (Google Sheets): uses Google Sheets
- Resolve Event and Policy Context (Code): runs custom JavaScript code
- Safe for Automated Answer? (If): checks a condition and branches into true / false
…plus 29 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Chat
@n8n/n8n-nodes-langchain.chat - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow answers RFx sourcing questions from a chat widget by combining Google Sheets event/FAQ data with Google Gemini, then scores each response for confidence and logs usage or escalations back to Google Sheets. How it works 1. Receives…