# LINE messages with OpenRouter: n8n workflow template

> Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenRouter.

Source: https://millionrounds.com/workflow/line-messages-with-openrouter (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# LINE messages with OpenRouter

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenRouter. 27 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fline-messages-with-openrouter)

**27 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 7 Logic 2 Service 17

The steps in the order they run, from what starts it.

- 1 **Line Webhook** Webhook *Starts it*
- 2 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 3 **OpenRouter Chat Model2** Lm Chat Open Router *Model*
- 4 **OpenRouter Chat Model3** Lm Chat Open Router *Model*
- 5 **Structured Output Parser** Output Parser Structured *Model*
- 6 **Line Loading Animation** Http Request *Service*
- 7 **Image Router** Agent *Model*
- 8 **Other Images** Agent *Model*
- 9 **NamecardExtract** Agent *Model*
- 10 **Switch** Switch *Logic*
- 11 **If namecard** If *Logic*
- 12 **Microsoft Teams1** Microsoft Teams *Service*
- 13 **Microsoft To Do1** Microsoft To Do *Service*
- 14 **Microsoft To Do** Microsoft To Do *Service*
- 15 **Microsoft Teams** Microsoft Teams *Service*
- 16 **Get Image** Http Request *Service*
- 17 **Line Reply (Not Supported 1)** Http Request *Service*
- 18 **Line Reply (Not Supported 2)** Http Request *Service*
- 19 **Get Image3** Http Request *Service*
- 20 **Microsoft OneDrive** Microsoft One Drive *Service*
- 21 **Line Reply (image)** Http Request *Service*
- 22 **Line Reply Namecard** Http Request *Service*
- 23 **Line Reply (Text)1** Http Request *Service*
- 24 **Line Reply (Text)** Http Request *Service*
- 25 **Microsoft OneDrive1** Microsoft One Drive *Service*
- 26 **HTTP Request** Http Request *Service*
- 27 **Get Image2** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 27, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** OpenRouter

## Questions

What does it need to run?

An n8n account, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fline-messages-with-openrouter)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**AI chatbot call center: Demo call center with Grok and Redis** 27 steps · calls a model · Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-demo-call-center-with-grok-and-redis)
- [**AI voice & text note-taking with LINE Messaging** 27 steps · calls a model · Gmail, Supabase vectors](https://millionrounds.com/workflow/ai-voice-and-text-note-taking-with-line-messaging)
- [**Build a dual-stage RAG chat assistant with Google Drive** 27 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/build-a-dual-stage-rag-chat-assistant-with-google-drive)
- [**Conversational Kubernetes management with OpenAI and MCP** 27 steps · calls a model](https://millionrounds.com/workflow/conversational-kubernetes-management-with-openai-and-mcp)
- [**Intelligent project delivery and task management system** 27 steps · calls a model](https://millionrounds.com/workflow/intelligent-project-delivery-and-task-management-system)
- [**Place products on AI generated backgrounds with Google Imagen** 27 steps · calls a model · Google Drive](https://millionrounds.com/workflow/place-products-on-ai-generated-backgrounds-with-google-image)
