{
  "name": "AstroLogics: daily horoscope on WhatsApp (AiSensy)",
  "nodes": [
    {
      "parameters": {},
      "id": "11111111-0000-4000-8000-000000000001",
      "name": "Run by hand",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        -100
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "daysInterval": 1,
              "triggerAtHour": 7,
              "triggerAtMinute": 0
            }
          ]
        }
      },
      "id": "11111111-0000-4000-8000-000000000002",
      "name": "Every morning",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        100
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a0",
              "name": "sign",
              "value": "leo",
              "type": "string"
            },
            {
              "id": "a1",
              "name": "lang",
              "value": "hi",
              "type": "string"
            },
            {
              "id": "a2",
              "name": "firstName",
              "value": "Asha",
              "type": "string"
            },
            {
              "id": "a3",
              "name": "destination",
              "value": "+910000000000",
              "type": "string"
            },
            {
              "id": "a4",
              "name": "campaignName",
              "value": "daily_horoscope",
              "type": "string"
            },
            {
              "id": "a5",
              "name": "userName",
              "value": "Your AiSensy project name",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "11111111-0000-4000-8000-000000000003",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "url": "={{ 'https://api.astrologics.in/v1/horoscope/' + $json.sign }}",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "period",
              "value": "daily"
            },
            {
              "name": "lang",
              "value": "={{ $json.lang }}"
            }
          ]
        }
      },
      "id": "11111111-0000-4000-8000-000000000004",
      "name": "Get horoscope",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://backend.aisensy.com/campaign/t1/api/v2",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpCustomAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ { campaignName: $('Settings').item.json.campaignName, destination: $('Settings').item.json.destination, userName: $('Settings').item.json.userName, templateParams: [$('Settings').item.json.firstName, $json.data.sign_label, $json.data.reading] } }}",
        "options": {}
      },
      "id": "11111111-0000-4000-8000-000000000005",
      "name": "Send with AiSensy",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Run by hand": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every morning": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Get horoscope",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get horoscope": {
      "main": [
        [
          {
            "node": "Send with AiSensy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Asia/Kolkata",
    "saveDataSuccessExecution": "none"
  },
  "pinData": {}
}
