Ask for a rating on WhatsApp after a ticket is closed

When a support ticket is closed, the customer gets a WhatsApp message asking them to rate the help.

Easy Saves ~2 hours/month Customer SupportBy Flowngn team

Works with n8n · Make · Zapier

How it works

Trigger: Webhook — your helpdesk closes a ticket
  1. Your helpdesk sends the closed ticket (id, name, phone) to the webhook.
  2. Continue only if there's a phone number.
  3. Send a WhatsApp template with 1–5 rating buttons.

Diagram

trueTicket closedWebhook⑂Has a phone?IfWAsk for a ratingWhatsApp Business Cloud
Trigger App Logic

Build it

Pick your tool — same automation, step by step.

Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.

Workflow JSON
Show code (136 lines)
{
  "name": "Ask for a rating on WhatsApp after a ticket is closed (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## Ask for a rating on WhatsApp after a ticket is closed\nWhen a support ticket is closed, the customer gets a WhatsApp message asking them to rate the help.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "ticket-closed",
        "options": {}
      },
      "id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
      "name": "Ticket closed",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ String($json.body.phone || '').replace(/[^0-9]/g, '').length >= 10 }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
      "name": "Has a phone?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "operation": "sendTemplate",
        "phoneNumberId": "YOUR_PHONE_NUMBER_ID",
        "recipientPhoneNumber": "={{ String($json.body.phone).replace(/[^0-9]/g, '') }}",
        "template": "YOUR_CSAT_TEMPLATE|ar",
        "components": {
          "component": [
            {
              "type": "body",
              "bodyParameters": {
                "parameter": [
                  {
                    "type": "text",
                    "text": "={{ $json.body.name || 'عميلنا العزيز' }}"
                  },
                  {
                    "type": "text",
                    "text": "={{ $json.body.ticket_id }}"
                  }
                ]
              }
            }
          ]
        }
      },
      "id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
      "name": "Ask for a rating",
      "type": "n8n-nodes-base.whatsApp",
      "typeVersion": 1,
      "position": [
        600,
        0
      ]
    }
  ],
  "connections": {
    "Ticket closed": {
      "main": [
        [
          {
            "node": "Has a phone?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has a phone?": {
      "main": [
        [
          {
            "node": "Ask for a rating",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

Open in the playground to edit →

Tips

  • Use quick-reply buttons in the template, then catch the replies with the WhatsApp new-chat flow.

Related flows