Investigate and refund customer orders with Groq, Gmail and Paystack
Ready for 3.0What this workflow does
This AI workflow has 49 nodes and runs when someone submits an n8n form (“Request a refund”) (plus 3 other triggers). Along the way it connects Google Sheets, Gmail and Groq Chat Model. It also calls api.paystack.co over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Request a refund”) (plus 3 other triggers).
- Normalize request (Edit Fields (Set)): sets 8 fields: request_id, source, order_id…
- Set Paystack Event Parameters (Edit Fields (Set)): sets 3 fields: store_name, alert_email, paystack_secret_key
- Alert owner about the failure (Gmail): send (message)
- Set Refund Parameters (Edit Fields (Set)): sets 13 fields: store_name, approver_email, currency…
- Compute Paystack signature (Crypto): hashes or encrypts values
- Request complete? (If): checks a condition and branches into true / false
- Signature valid? (If): checks a condition and branches into true / false
- Find order in Orders sheet (Google Sheets): read (sheet)
- Ask customer to complete the request (Gmail): send (message)
- Route Paystack event (Switch): routes items into 2 branches
…plus 33 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Groq + Google Sheets templates (156) · Other Groq + Gmail templates (125)
HTTP calls to: api.paystack.co
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.
Nodes used (16)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Summarize
n8n-nodes-base.summarize - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Crypto
n8n-nodes-base.crypto - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow receives refund requests via webhook, scores risk using n8n Data Tables and rule-based signals, generates an investigation note with Groq, and routes approvals through Gmail before optionally issuing refunds via Paystack and…