Nanosaur2-670M
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
An n8n workflow for a LINE Official Account. LINE sends each message to a webhook, Claude writes a short reply in the same language, and the workflow sends it back through LINE’s reply API.
LINE chatbot that answers with Claude is an n8n workflow in the Business category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
LINE message
It starts when LINE posts a chat event to the webhook, with:
The person gets Claude’s reply as a text message in LINE
What you need before you start.
Chat channel
Delivers each message to the webhook and carries Claude’s reply back to the person.
NeedsA LINE Official Account with the Messaging API on, and its channel access token, read from LINE_CHANNEL_ACCESS_TOKEN
Language model
Runs claude-opus-4-5 to write a short reply.
NeedsAnthropic API key, read from ANTHROPIC_API_KEY
Checked by Mindket on 13 Nov 2026
This n8n workflow lets a LINE Official Account answer with Claude. LINE posts every message to the webhook. A Code node picks out the first text message, and Claude writes a short reply in the language the person used. The workflow sends that reply back with LINE’s reply API. Five nodes do the work, and none of them is a sticky note.
Small shops, community managers and developers who run a LINE account and want a first-line assistant. Skip it if you need the bot to remember a customer or to hand over to a person. As imported, each message is answered alone, and nothing checks that LINE sent it.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Retail | Shop owners | Answer common questions from customers on LINE | A bakery adds its opening hours to the system line, and the bot answers when someone asks about Sunday. |
| Communities | Group admins | Give members a helper that replies in their own language | A language club’s account answers an Indonesian message in Indonesian. |
| Software | Bot builders | Start from a working webhook and reply loop | A developer adds a second Claude call that summarizes long messages. |
| Education | Tutors | Let students practice writing by chatting | A tutor’s account answers an English practice sentence with a short correction. |
You need some n8n and a LINE developer account: import a file, set two environment values and paste in a webhook address.
Any n8n that LINE can reach over HTTPS will run it. The reply lands in the same LINE chat as the question.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. The two secrets are read from the server’s environment.
| Need | Detail |
|---|---|
| n8n | Reachable over HTTPS, on n8n Cloud or on a server of your own |
| LINE | An Official Account with the Messaging API on, and its channel access token, read as LINE_CHANNEL_ACCESS_TOKEN |
| Anthropic | An API key, read as ANTHROPIC_API_KEY |
workflow.json.ANTHROPIC_API_KEY and LINE_CHANNEL_ACCESS_TOKEN as environment variables on the server, or replace the two $env expressions in Ask Claude and Reply via LINE with the values.LINE Webhook.Message the account in LINE. Claude’s reply follows in the same chat. Stickers, images and other kinds of event get no reply.
| To change | Where |
|---|---|
| The bot’s character | The system line in Ask Claude |
| The length of a reply | max_tokens in the same node |
| The model | model in the same node |
| What it answers | The code in Extract Message |
A club member writes in Indonesian to ask how to join next week’s meetup.
Claude answers in Indonesian, in a few sentences, within its 500-token cap. The LINE chat shows the reply as a text message from the account.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. LINE’s call enters at the left, the middle boxes ask Claude, and the box on the right sends the answer back to LINE. Message the account once, then open the run to see what each box handled.
For experts. The reply token in each event is what lets the workflow answer without a user ID.
| Node | What it does | What to know |
|---|---|---|
LINE Webhook | Webhook 2 on POST, with the answer sent by a Respond to Webhook node | It hands the call to Extract Message and to Return 200 |
Extract Message | A Code node that finds the first text event in body.events | Any other event returns nothing, which ends that branch |
Ask Claude | Posts to https://api.anthropic.com/v1/messages with claude-opus-4-5 | Up to 500 tokens, one message and no history |
Reply via LINE | Posts to https://api.line.me/v2/bot/message/reply | Uses the event’s reply token and sends one text |
Return 200 | Respond to Webhook 1 with the text OK | It runs last, after the reply branch |
Nothing checks that a call came from LINE, and the bot has no memory.
claude-opus-4-5 as active, with a retirement date no sooner than 24 November 2026 and no replacement named. Check the page, or set a newer Claude model in Ask Claudex-line-signature header. Nothing here checks it, so anyone who finds the address can send fake events that spend your key. LINE’s documentation says to verify it before processing an eventReturn 200 runs after the reply branch, so LINE waits for Claude. When the Claude call or the reply fails, LINE does not get its OKAn n8n workflow that connects a LINE Official Account to Claude. LINE sends each message to a webhook, the workflow pulls out
the first text message, Claude writes a short reply in the same language, and the workflow sends it back through LINE's reply
API.
workflow.json: the workflow as n8n exports it, five nodes, none of them a sticky note. It holds no credential.README.md: these notes.Extract Message read the call as $input.first().json. A Webhook node hands over headers, params, query and body,events list was never found and the bot never replied. It now reads $input.first().json.body.JSON.stringify(...).slice(1, -1).workflow.json.{{ $env.ANTHROPIC_API_KEY }} in the x-api-key header of Ask Claude,Bearer {{ $env.LINE_CHANNEL_ACCESS_TOKEN }} in the Authorization header of Reply via LINE. Set both asLINE Webhook.LINE Webhook (Webhook 2) takes LINE's POST and passes the call to Extract Message and to Return 200.Extract Message (Code) looks through body.events for the first event that is a text message, and keeps userId,replyToken and the text. Stickers, images and other events end that branch here.Ask Claude posts the text to https://api.anthropic.com/v1/messages with claude-opus-4-5, up to 500 tokens and a systemReply via LINE posts Claude's answer to https://api.line.me/v2/bot/message/reply with the reply token.Return 200 answers LINE with OK. n8n finishes the upper branch first, so this comes last.system line in Ask Claude.model and max_tokens in the same node.userId.claude-opus-4-5 (claude-opus-4-5-20251101 there) as active,model in Ask Claude to a newer Claude model.x-line-signature header. Nothing in this workflow checks it, so anyone who finds theReturn 200 runs after the reply branch, so LINE waits for Claude. When the Claude call or the reply fails, the run stops beforeReturn 200 and LINE does not get its OK.NOTICE.md 583 B README.md 4 KB workflow.json 4 KB
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Waqf-AI · Kit
Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.
Wan-AI · Kit
Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.
perplexity-ai · Kit
Picks the best option for a decision from text and images, such as which team should handle a request, with a probability for each choice, for developers who b…
numind · Kit
Reads documents as text or images and fills a JSON template with the fields you ask for, or converts the pages to Markdown. A 4B model for teams that process s…
nace-ai · Kit
Scores yes or no, multiple choice and rating questions about a document in one pass, with a probability for every option. An 8B decision model from Nace.AI tha…