Built and tested. The public service opens with the platform launch; until then API keys are not issued to customers.
Pipedrive
There is no native Pipedrive connector yet (see the Roadmap). You connect it today with an automation tool (Make, Zapier, n8n or Pabbly), because Pipedrive can notify those tools and they can call this platform's API. The tool in the middle (or a few lines of your own code) makes the call to our API with your key.
Recipe
Goal: when a deal moves to a stage, send the customer a WhatsApp template.
In your automation tool, create a scenario that starts with the Pipedrive trigger Deal updated / New person.
To react to the customer's answer, add a webhook under Developers > Webhooks (events message.received, message.status) pointing to a catch-hook of your automation tool.
Map the phone (with country code), the name and the order number from the Pipedrive data. Send the order number as order_id (and as the Idempotency-Key for messages) so a retry cannot duplicate.
Test
Run the scenario with a test record and your own phone. Check the result in the dashboard (Orders or the inbox) and read the API response for any error code (Errors and limits).
# Pipedrive
There is no native Pipedrive connector yet (see the [Roadmap](../roadmap)). You connect it **today** with an automation tool ([Make](make), [Zapier](zapier), [n8n](n8n) or [Pabbly](pabbly)), because Pipedrive can notify those tools and they can call this platform's API. The tool in the middle (or a few lines of your own code) makes the call to our API with your key.
## Recipe
Goal: when a deal moves to a stage, send the customer a WhatsApp template.
1. In your automation tool, create a scenario that starts with the Pipedrive trigger **Deal updated / New person**.
2. Add an HTTP request:
```text
Method: POST
URL: https://app.easytawasul.com/api/v1/messages
Headers: Authorization = Bearer <your API key>
Content-Type = application/json
Body: {
"to": "{{phone}}",
"type": "template",
"template": { "name": "order_confirmation", "language": "ar", "variables": ["{{name}}", "{{order_number}}"] },
"client_reference": "{{order_number}}"
}
```
3. To react to the customer's answer, add a webhook under **Developers > Webhooks** (events `message.received`, `message.status`) pointing to a catch-hook of your automation tool.
Map the phone (with country code), the name and the order number from the Pipedrive data. Send the order number as `order_id` (and as the `Idempotency-Key` for messages) so a retry cannot duplicate.
## Test
Run the scenario with a test record and your own phone. Check the result in the dashboard (**Orders** or the inbox) and read the API response for any error code ([Errors and limits](../errors-and-limits)).