Skip to content

AYWEB + JavaScript API

Widget events on your website: chat opened, new messages, cart and orders.

  1. 1WebhooksA POST request with JSON and a secret key to your address: new message (including AI replies), new conversation, status change and other events. There are no order or cart events.
  2. 2REST APICustomers, conversations, messages, articles, automations, reports and AI training — via requests with an API token.
  3. 3JavaScript APIWidget events on the page: chat opened, new messages, add to cart and orders from the chat.

How to connect

  1. 1Copy the “API token” in the AYWEB dashboard, “Installation” section.
  2. 2Webhooks: “Settings” → “Miscellaneous” → “Webhooks” — turn on “Active”, enter the “URL” and “Secret key”.
  3. 3Widget events: subscribe to them on the page with the chat via jQuery, for example SBChatOpen.