Answer procurement questions by role using Groq and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 32 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Google Sheets and Groq Chat Model.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- Normalize Request (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Load Users (Google Sheets): uses Google Sheets
- Empty Question Response (Edit Fields (Set)): sets 3 fields: text, output, channel
- Resolve Identity and Role (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Return Portal Response (Respond to Webhook): sends the response back to the webhook caller
- Respond to Chat (Edit Fields (Set)): sets 2 fields: text, output
- Intent Extraction Agent (AI Agent): runs an AI agent, with model: Groq Intent Model
…plus 18 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Intent Extraction Agent (v1.8), Role-Aware Answer Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Intent Extraction Agent (v1.8), Role-Aware Answer Agent (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Merge
n8n-nodes-base.merge - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives procurement questions via n8n Chat or a webhook, looks up role and procurement records in Google Sheets, and uses Groq-hosted LLM agents to generate a role-restricted, sheets-grounded answer with suggested next actions.…