Build It With Claude
Fill in the <…> parts and paste this into Claude (or any capable AI assistant). It
will generate the full connector — script, n8n workflow, or webhook handler — for
your system.
I want to connect my customer system to Whatbot (a WhatsApp Business platform)so that my contacts/leads automatically sync into Whatbot's shared inbox.
Whatbot exposes a REST API:- Auth: send the header X-API-Key: <MY_WHATBOT_API_KEY>- Upsert contacts: POST https://api.whatbot.in/public/v1/contacts Body is a JSON ARRAY of contacts: [ { "phone": "9876543210", "name": "Ravi", "tags": ["gold"], "opt_in": true, "attributes": { "city": "Chennai", "budget": "15L" } } ]- Contacts upsert by phone (re-sending the same phone updates it).- "phone" is required; any keys under "attributes" become custom fields usable as {{variables}} in WhatsApp templates.
My system is: <DESCRIBE IT — e.g. a Postgres "leads" table / a HubSpot CRM /a Google Sheet / a Node backend>.
Please write <a script / an n8n workflow / a webhook handler> in <MY STACK,e.g. Node.js or Python> that, whenever a contact is created or updated in mysystem, pushes it to Whatbot via that endpoint. Handle: normalizing phone toE.164, batching multiple contacts per request, retrying on 5xx/429, andmapping my fields (name, email, city, …) into Whatbot's name + attributes.Give me the full code and exactly how to run/deploy it.Once it generates the connector, drop in your real API key and run it — your contacts start flowing into the shared inbox.