Integration architecture

Use AyuChat as the WhatsApp engagement layer and your CRM or ERP as the operational system of record. Keep the systems connected through server-side API calls and signed outbound webhooks.

CRM lead event
  -> your integration server
  -> AyuChat /api/public/contacts
  -> optional approved template send
  -> AyuChat delivery/inbox events
  -> outbound webhook
  -> CRM activity timeline

What to sync into AyuChat

  • Customer name and phone number.
  • Email when available and valid.
  • Lead source, product interest, city, or lifecycle tags.
  • Only data required for messaging workflows.

What to sync back to your CRM

  • Message delivery outcomes.
  • Campaign lifecycle events.
  • Conversation or form submission events when your workspace uses those flows.
  • Automation completion or failure signals.

Security and tenancy

Use a separate API key per customer workspace. Do not share one integration key across unrelated clients, and do not place workspace ids in requests as an access-control shortcut.

Failure handling

FailureResponse
401/403 API errorStop retries and repair key/scope configuration.
422 contact errorFix source data before retrying.
Template message queued but not deliveredTrack message id and read AyuChat delivery status or webhook events.
Webhook delivery duplicateUse idempotency in your CRM activity writer.