AutomationFlowsSlack & Telegram › Oarore - Payment Chat Start -> Whatsapp

Oarore - Payment Chat Start -> Whatsapp

OarOre - Payment Chat Start -> WhatsApp. Uses httpRequest. Webhook trigger; 5 nodes.

Webhook trigger★★☆☆☆ complexity5 nodesHTTP Request
Slack & Telegram Trigger: Webhook Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "OarOre - Payment Chat Start -> WhatsApp",
  "nodes": [
    {
      "id": "1",
      "name": "Payment Event Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        220,
        260
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "payment-event",
        "responseMode": "lastNode"
      }
    },
    {
      "id": "2",
      "name": "Only payment_chat_started",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        460,
        260
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.event}}",
              "operation": "equal",
              "value2": "payment_chat_started"
            }
          ]
        }
      }
    },
    {
      "id": "3",
      "name": "Build WhatsApp Message",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        700,
        220
      ],
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "orderId",
              "value": "={{$json.orderId}}"
            },
            {
              "name": "toPhone",
              "value": "={{($json.customer && $json.customer.phone ? String($json.customer.phone) : '905380482308').replace(/\\D/g,'')}}"
            },
            {
              "name": "message",
              "value": "={{'Merhaba ' + ($json.customer?.name || 'de\u011ferli m\u00fc\u015fterimiz') + ', sipari\u015fin (#' + $json.orderId + ') i\u00e7in \u00f6deme bilgileri a\u015fa\u011f\u0131dad\u0131r:\\n\\nIBAN: TRXX XXXX XXXX XXXX XXXX XXXX XX\\nAl\u0131c\u0131: Okan Vatanc\u0131\\nTutar: ' + ($json.payment?.total || 0) + ' TL\\n\\n\u00d6deme sonras\u0131 dekontu bu sohbete g\u00f6nder l\u00fctfen.'}}"
            },
            {
              "name": "appBaseUrl",
              "value": "={{$json.appBaseUrl || 'https://senin-domainin.com'}}"
            }
          ]
        }
      }
    },
    {
      "id": "4",
      "name": "Send WhatsApp (Meta Cloud API)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        980,
        220
      ],
      "parameters": {
        "method": "POST",
        "url": "=https://graph.facebook.com/v20.0/{{$env.WA_PHONE_NUMBER_ID}}/messages",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{$env.WA_TOKEN}}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ { messaging_product: 'whatsapp', to: $json.toPhone, type: 'text', text: { body: $json.message } } }}"
      }
    },
    {
      "id": "5",
      "name": "Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1240,
        260
      ],
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { ok: true } }}"
      }
    }
  ],
  "connections": {
    "Payment Event Webhook": {
      "main": [
        [
          {
            "node": "Only payment_chat_started",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only payment_chat_started": {
      "main": [
        [
          {
            "node": "Build WhatsApp Message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build WhatsApp Message": {
      "main": [
        [
          {
            "node": "Send WhatsApp (Meta Cloud API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send WhatsApp (Meta Cloud API)": {
      "main": [
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {}
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

OarOre - Payment Chat Start -> WhatsApp. Uses httpRequest. Webhook trigger; 5 nodes.

Source: https://github.com/Ovtnc/ore-oar/blob/f6f086c728a0981e2b7209dfd8b08e402107b0dd/n8n-workflows/payment-chat-start.json — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

Add A Bug To Linear Via Slack Command. Uses httpRequest, stickyNote. Webhook trigger; 10 nodes.

HTTP Request
Slack & Telegram

When building a product it's important to discover and eliminate bugs as quickly as possible. Since we're using our product at n8n a lot, we wanted to make it as easy as possible for everyone to add b

HTTP Request
Slack & Telegram

Proxmox VM Lifecycle Automation. Uses telegram, httpRequest. Webhook trigger; 9 nodes.

Telegram, HTTP Request
Slack & Telegram

Add Product Ideas To Notion Via A Slack Command. Uses stickyNote, notion, httpRequest. Webhook trigger; 8 nodes.

Notion, HTTP Request
Slack & Telegram

In most companies, employees have a lot of great ideas. That was the same for us at n8n. We wanted to make it as easy as possible to allow everyone to add their ideas to some formatted database - it s

Notion, HTTP Request