Skip to content
simlinedevPublic

About

n8n node for Simline: send and receive SMS from your own phone in your workflows

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@simline/n8n-nodes-sms

This is an n8n community node. It lets you use Simline in your n8n workflows.

Simline turns your own Android phone (or an iPhone, through Simline for Mac) into an SMS line for apps and AI agents. With these nodes a workflow can text a customer from your phone number and start when someone texts you back, without writing HTTP calls.

n8n is a fair-code licensed workflow automation platform.

An incoming text starts the Simline Trigger; the Simline node answers from the SIM that received it

Installation · Operations · Credentials · Compatibility · Usage · Example workflows · Resources · Version history

Installation

Follow the installation guide in the n8n community nodes documentation. In n8n: Settings → Community Nodes → Install, then enter @simline/n8n-nodes-sms.

You also need a Simline account with a paired phone: install the Android app from Google Play and pair it from app.simline.dev.

Operations

Simline

Resource Operation API
Message Send: to, message, from (automatic, a phone, a SIM, or a SIM's number), channel (SMS, iMessage, SMS then iMessage), idempotency key, SIM slot POST /v1/messages
Message Get: a message with its status timeline GET /v1/messages/{id}
Message Get Many: filter by contact, status, direction, device; Return All or Limit GET /v1/messages
Device Get Many: paired phones with presence, battery and SIMs, as one item per device or one item per SIM GET /v1/devices
Conversation Get Many: one row per contact with the last message and unread count GET /v1/conversations
Conversation Get: the thread with one contact (its messages in messages, newest first) GET /v1/conversations/{contact}
Conversation Mark as Read POST /v1/conversations/{contact}/read

The node can be used as a tool by n8n's AI Agent.

Message → Send, answering an incoming text from the same phone and SIM

From. The list shows Automatic (the least busy online phone, on its default SIM), each phone (its default SIM) and each SIM. In an expression you can give a SIM ID (sim_…), a device ID (dev_…) or the phone number you set for a SIM in the dashboard. To answer on the SIM a text arrived on, set From to the incoming message's deviceId and SIM Slot (under Additional Fields) to its simSlot.

Idempotency key. Sending again with the same key within 24 hours returns the original message instead of sending a second text; the output then has idempotentReplayed: true. Use something unique per text, like order-{{ $json.orderId }}, so a retried execution never texts a customer twice.

Status. Send returns the message as soon as the phone has it (status: "dispatched"). Its final state arrives later: use Get or the Simline Trigger (message.delivered / message.failed). Stop waiting when finalStatus is true.

Simline Trigger

Starts the workflow on any of these events:

Event When
Message Received (message.received) A text arrived on one of your phones
Message Sent (message.sent) A text left the phone
Message Delivered (message.delivered) The carrier confirmed delivery (an iPhone through Simline for Mac never reports it: its texts end at Sent)
Message Failed (message.failed) A sent text failed; data.errorCode says why
Device Online / Device Offline (device.online, device.offline) A phone came back, or became unreachable

Simline Trigger

Sent, Delivered and Failed together are the status of your outgoing texts. Options → Device Names or IDs limits the trigger to some phones.

When you activate the workflow (or click Listen for test event), the trigger registers a webhook endpoint with Simline for this workflow's URL and keeps its signing secret. Every request is checked against the Simline-Signature header (HMAC-SHA256, at most 5 minutes old) and refused with 401 if it doesn't match. Deactivating the workflow deletes the endpoint. You can see it, its delivery log and replays in the Simline dashboard under Developers → Webhooks.

Each execution gets the event as Simline sends it:

{
  "id": "evt_3af79d5d0881a275d343353a10d7bbba",
  "type": "message.received",
  "createdAt": "2026-11-28T00:55:50.700Z",
  "data": {
    "id": "msg_…",
    "direction": "inbound",
    "status": "received",
    "channel": "sms",
    "contact": "+14155550123",
    "body": "Got it, thanks",
    "deviceId": "dev_…",
    "simSlot": 0,
    "finalStatus": true
  }
}

Simline retries a delivery for about 22 hours and can deliver an event more than once; id is the same each time, so deduplicate on it if a double run would hurt. The dashboard's Send test event button sends a webhook.test event, which the trigger acknowledges without starting the workflow unless Options → Emit Test Events is on.

Credentials

  1. In the Simline dashboard, open Developers → API keys and create a key with both the send and read scopes (the default). It starts with sl_live_ and is shown once.
  2. In n8n, create a Simline API credential and paste the key. Leave Base URL at https://api.simline.dev.

n8n checks the credential by reading one conversation. A send-only key fails that check and can't be used by the trigger, which needs both scopes because webhooks receive message bodies.

Compatibility

Built with @n8n/node-cli 1.4 against n8n-workflow 3.4 (n8n 2.x). Uses no runtime dependencies.

The trigger needs n8n to be reachable from the internet over https on a public host name (n8n Cloud, or a self-hosted n8n with WEBHOOK_URL set to its public https address). Simline refuses webhook URLs on localhost, IP addresses or internal names. On a laptop, put n8n behind a tunnel (for example Cloudflare Tunnel or ngrok) and set WEBHOOK_URL to the tunnel's address.

Usage

  • Phone numbers are E.164 (+ and country code). Spaces, dashes, dots and brackets are removed, and a leading 00 becomes +.
  • Errors show Simline's own message with what to do about it, for example No paired phone can send right now (no_device), The contact texted STOP (contact_opted_out), or the plan and daily limits. Turn on the node's On Error → Continue setting to keep the workflow going with an error field instead.
  • Texts go out from your own SIM at your carrier's rates, and your carrier's rules apply. Only text people who expect it; Simline honours STOP replies.

Example workflows

Form → text the customer

An n8n Form Trigger (or Typeform, Webflow, Shopify…) collects a name and phone number; Simline texts them from your number.

  1. n8n Form Trigger with fields Name and Phone.
  2. Simline → Message → Send
    • To: {{ $json.Phone }}
    • Message: Hi {{ $json.Name }}, thanks for booking! Reply here if anything changes.
    • From: Automatic, or your shop SIM
    • Additional Fields → Idempotency Key: {{ $execution.id }}

Import it with Workflow → Import from File: examples/form-to-sms.json.

Incoming text → Slack (or Telegram)

  1. Simline Trigger with the event Message Received.
  2. Slack → Message → Send, text: New text from {{ $json.data.contact }}: {{ $json.data.body }} (or Telegram → Message → Send Message with the same text).
  3. Optional: Simline → Message → Send to answer automatically from the same SIM: To {{ $('Simline Trigger').item.json.data.contact }}, From (expression) {{ $('Simline Trigger').item.json.data.deviceId }}, Additional Fields → SIM Slot {{ $('Simline Trigger').item.json.data.simSlot }}.

examples/incoming-sms-to-slack.json

Alert when a text fails

Simline Trigger (Message Failed) → IF {{ $json.data.errorCode }} is not empty → email or Slack with {{ $json.data.contact }} and {{ $json.data.errorCode }}.

Resources

Development

npm ci
npm run lint        # n8n's community node rules (eslint-plugin-n8n-nodes-base + @n8n/eslint-plugin-community-nodes)
npm run typecheck
npm test            # vitest: request building, error mapping, signatures, both nodes against a fake API
npm run build       # dist/
npm run dev         # n8n with this package loaded, on http://localhost:5678 (needs Docker or Podman)

scripts/e2e-local.mjs runs every operation and the trigger's whole lifecycle against a real Simline API, for example a local one (apps/api, wrangler dev, with the dev phone):

npm run build
SIMLINE_API_KEY=sl_live_… SIMLINE_BASE_URL=http://localhost:8787 node scripts/e2e-local.mjs \
  --inbound-cmd "nohup node ../../apps/api/scripts/dev-phone.mjs --inbound +15555550100:Hi > /dev/null 2>&1 &"

This package lives in the Simline monorepo but is not part of its pnpm workspace: it uses npm and its own package-lock.json, as n8n's tooling expects. Publishing: PUBLISHING.md.

Version history

See CHANGELOG.md.

License

MIT

Community

About

n8n node for Simline: send and receive SMS from your own phone in your workflows

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages