Line chatbot handling AI responses with Groq and Llama3
Ready for 3.0What this workflow does
This workflow has 4 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.groq.com and api.line.me over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Get Messages (Edit Fields (Set)): sets 3 fields: body.events[0].message.text, body.events[0].message.id, body.events[0].source.userId
- Groq AI Assistant (HTTP Request): calls api.groq.com (POST)
- Line: Reply Message (HTTP Request): calls api.line.me (POST)
HTTP calls to: api.groq.com, api.line.me
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 (3)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest
From the author
Workflow overview: This workflow is designed for dynamic and intelligent conversational capabilities. It incorporates Meta's llama3.3-versatile model for personal assistant. There are no issues when sending simple text to the LINE reply API, so in this…