Home / n8n Workflow Templates / Send SMS Messages Globally Using ClickSend and n8n

Send SMS Messages Globally Using ClickSend and n8n

The Easiest Way to Send SMS Worldwide

This workflow allows you to send SMS messages worldwide using the ClickSend API. Set your message and recipient, then trigger manually to send via HTTP request with basic authentication.

Manual3 nodesMarketing & SocialSMSautomationmessaging

About this workflow

The Easiest Way to Send SMS Worldwide – N8n Workflow Analysis

This N8n workflow template titled "The Easiest Way to Send SMS Worldwide" provides a simple yet powerful automation solution for sending SMS messages globally using the ClickSend API. Designed for ease of use, it enables users to trigger and send text messages with minimal setup, making it ideal for notifications, alerts, marketing, or personal communication.

What the Workflow Does

This workflow automates the process of sending an SMS message to a specified phone number using the ClickSend REST API. When triggered manually (e.g., by clicking "Test workflow"), it sets predefined SMS content and recipient information, then sends that data via an HTTP POST request to ClickSend’s messaging endpoint. The entire process is fully customizable and ready to deploy with basic configuration.


Key Features and Capabilities

  • Global SMS Support: Uses international numbering (e.g., +39 for Italy), enabling messages to be sent worldwide.
  • API Integration: Leverages ClickSend's robust cloud communication platform through secure HTTP authentication.
  • Easy Configuration: Includes clear instructions via sticky notes guiding users through setup steps.
  • Customizable Message Content: Users can edit both the message body and recipient number directly in the workflow.
  • Secure Authentication: Implements HTTP Basic Auth, using username and API key for secure access to ClickSend services.
  • Manual Triggering: Ideal for testing or one-off messaging; can later be adapted to run on schedules or events.

Main Nodes and Their Purposes

  1. When clicking ‘Test workflow’ (Manual Trigger)

    • Type: n8n-nodes-base.manualTrigger
    • Purpose: Serves as the starting point of the workflow. Initiates execution when the user clicks the “Execute Workflow” button in the N8n interface.
  2. Set SMS data (Set Node)

    • Type: n8n-nodes-base.set
    • Position: Between trigger and HTTP request
    • Purpose: Defines two dynamic values:
      • sms: The message text to send (default: "Hi, this is my first message")
      • to: Recipient phone number in international format (default: +39xxxxxxxx)
    • These values are passed downstream and injected into the HTTP request payload.
  3. Send SMS (HTTP Request Node)

    • Type: n8n-nodes-base.httpRequest
    • Method: POST
    • URL: https://rest.clicksend.com/v3/sms/send
    • Function: Sends a structured JSON payload containing the message details to ClickSend’s API.
    • Authentication: Uses Basic Auth credentials (username and API key) stored securely in N8n.
    • Headers: Sets Content-Type: application/json to ensure proper parsing by the API.
    • Body: Dynamically generated JSON using N8n expressions:
      {
        "messages": [
          {
            "source": "php",
            "body": "{{ $json.sms }}",
            "to": "{{ $json.to }}"
          }
        ]
      }
      
  4. Sticky Note & Sticky Note1 (Instruction Nodes)

    • Type: n8n-nodes-base.stickyNote
    • Purpose: Provide visual, step-by-step guidance within the canvas:
      • Step 1: Instructs users to register at ClickSend, get free credits, and configure Basic Auth credentials in N8n.
      • Step 2: Guides users to update the message text and recipient number in the "Set SMS data" node.

Use Cases and Benefits

✅ Common Use Cases:

  • Sending appointment reminders or service alerts
  • One-time password (OTP) delivery
  • Event notifications (e.g., system downtime, order updates)
  • Personal greetings or automated birthday texts
  • Small-scale marketing campaigns

✅ Key Benefits:

  • No coding required: Fully visual workflow design
  • Fast deployment: Ready to use after simple credential setup
  • Cost-effective: Includes link to free €2 credit on ClickSend
  • Scalable foundation: Can be extended with loops, conditions, or scheduled triggers
  • Secure & reliable: Uses industry-standard API practices

Step-by-Step Workflow Logic

  1. Workflow Initiation

    • User clicks “Test workflow” in the N8n editor.
    • The Manual Trigger node activates and passes execution to the next node.
  2. Data Preparation

    • The Set SMS data node runs, injecting two fields into the JSON payload:
      • "sms": Message content
      • "to": Phone number
    • This enriched data is passed forward.
  3. SMS Transmission

    • The Send SMS node constructs a POST request:
      • URL: Points to ClickSend’s SMS sending endpoint.
      • Body: Populates the message object using {{ $json.sms }} and {{ $json.to }}.
      • Authentication: Applies saved Basic Auth credentials (username + API key).
      • Headers: Ensures correct content type.
    • The request is sent to ClickSend, which processes and delivers the SMS.
  4. Result Handling

    • Upon success, ClickSend returns a response indicating the message was accepted.
    • In N8n, the output can be viewed in the debug panel for verification.
  5. User Guidance Throughout

    • Sticky notes guide new users through registration, credential creation, and data customization—ensuring smooth onboarding.

Final Notes

While currently set to manual execution, this workflow serves as an excellent base for more advanced automations. It can easily be modified to accept input from webhooks, databases, forms, or CRMs—making it a versatile building block for enterprise-grade messaging systems. With ClickSend supporting over 200 countries, this integration unlocks global reach right from your N8n instance.

How to use: download the JSON, then in n8n choose “Import from File”.