Languages, security and integrations

AckReply integrations, JavaScript API and visitor identity verification

What AckReply connects to today, the widget JavaScript API, and how to identify logged-in customers with HMAC verification.

5 min read
On this page
  1. What integrations does AckReply have today?
  2. What integrations are not available in AckReply?
  3. How do I install the AckReply script on WordPress, Shopify or Webflow?
  4. AckReply JavaScript API reference
  5. How do I identify logged-in customers with AckReply.identify()?
  6. How does AckReply identity verification (HMAC) work?
  7. Common problems with the AckReply JavaScript API
  8. Related articles

AckReply connects to your website with one script tag that works on any site, including WordPress, Shopify, Webflow, React, Vue, Next.js and plain HTML. A small JavaScript API lets your site open or close the chat and tell AckReply who a logged-in customer is, optionally verified with an HMAC signature. AckReply does not currently offer a public REST API, webhooks, Slack, Zapier or app-store plugins.

What integrations does AckReply have today?

Available now in AckReply:

  • Website chat widget for any website, through one <script> tag. Settings > Widget > Install has copy-ready instructions for HTML, Astro, Next.js (App Router), Nuxt, React (SPA), Vue (SPA), SvelteKit, WordPress, Shopify and Webflow. See Installing the chat widget.
  • Chat Window URL: a direct link to a full-page chat, for sharing in emails, social bios or QR codes. Find it under Settings > Widget > Install, “Chat Window URL”.
  • JavaScript API: AckReply.open(), AckReply.close(), AckReply.identify(), AckReply.logout(), AckReply.init() and AckReply.version.
  • Visitor identity verification with an HMAC-SHA256 identity secret.
  • Sign in with Google for your team (web and mobile). See Account and workspace management.
  • An Android app for your team. See Mobile and desktop apps.
  • CSV export of conversations and analytics. See Analytics and reports.

What integrations are not available in AckReply?

These are not available in AckReply today:

  • Public REST API or API keys. The dashboard’s own API is private and requires a logged-in team member.
  • Webhooks (event notifications sent to your server).
  • Slack.
  • Zapier, Make, CRM sync (such as HubSpot, Salesforce or Zendesk), e-commerce apps or calendar booking tools.
  • Other chat channels such as WhatsApp, Instagram, Facebook Messenger, TikTok or an email inbox. AckReply chats come from the website widget and the Chat Window URL. See Channels.
  • A WordPress plugin or a Shopify app store app. On WordPress, Shopify and Webflow you paste the same script tag into the theme footer or a footer-scripts plugin.

If you need one of these, tell the AckReply team at support@ackreply.com.

How do I install the AckReply script on WordPress, Shopify or Webflow?

The AckReply install snippet looks like this (your workspace ID is filled in for you in Settings > Widget > Install):

<script src="https://app.ackreply.com/widget/loader.js" data-workspace-id="YOUR_WORKSPACE_ID" async></script>
  • WordPress: Appearance > Theme File Editor > footer.php, before </body>, or any footer-scripts plugin.
  • Shopify: Online Store > Themes > Edit code > theme.liquid, before </body>.
  • Webflow: Site Settings > Custom Code > Footer code.

Optional attributes on the tag: data-website-id (pin the widget to one website in your workspace) and data-position (bottom-right or bottom-left, which overrides the Widget Position set in the dashboard). Full steps are in Installing the chat widget.

AckReply JavaScript API reference

After the AckReply loader script has loaded on your page, window.AckReply has these functions:

CallWhat it does
AckReply.open()Opens the chat window.
AckReply.close()Closes the chat window.
AckReply.identify(user, userHash)Tells AckReply who the logged-in customer is. userHash is needed only when identity verification is set up (see below).
AckReply.logout()Forgets the identified customer and starts a fresh anonymous chat session in this browser. Call it when your customer logs out.
AckReply.init(options)Starts the widget manually with { workspaceId, websiteId, position }. Only needed if your script tag has no data-workspace-id.
AckReply.versionThe loader version, for debugging in the browser console.

There is no toggle() function. Use open() and close().

Example: open the chat from your own button.

<button onclick="AckReply.open()">Chat with us</button>

How do I identify logged-in customers with AckReply.identify()?

Call AckReply.identify() from your page code after your customer logs in, with any of these fields:

AckReply.identify({
  user_id: 'customer_12345',          // your own ID for this customer
  email: 'john@example.com',
  name: 'John Doe',
  avatar_url: 'https://example.com/john.jpg',
  custom: { plan: 'pro' }             // any extra attributes
});

Note that the field is user_id, not userId.

What AckReply does with it:

  • The name and email show in the inbox “Details” panel, so agents know who they are talking to.
  • custom attributes are saved with the visitor record.
  • You can call identify() before the chat window finishes loading. AckReply sends it as soon as the widget is ready.

How does AckReply identity verification (HMAC) work?

Identity verification stops someone from pretending to be another customer by typing their user ID into the browser. AckReply only links a visitor’s chat history across devices for verified identities. Without verification, the same user_id on two devices is not merged.

For the full guide, with signing examples for PHP, Node.js and 11 more server stacks, error codes and a tawk.to mapping, see Visitor identification.

Step-by-step (Owner or Admin):

  1. Go to Settings > Widget (https://app.ackreply.com/settings/widget) and open the Members’ names tab.
  2. Click Set up verification under Verify members.
  3. In step 1, Create your identity secret, click Generate secret. Copy the secret.
  4. On your server (never in browser code), compute an HMAC-SHA256 of the customer’s user_id using the secret, as a hex string. PHP: hash_hmac('sha256', $userId, $identitySecret). Node.js: crypto.createHmac('sha256', secret).update(userId).digest('hex').
  5. Pass that value as the second argument: AckReply.identify({ user_id: 'customer_123', email: 'john@example.com' }, userHash);

user_id can be a string or a number; AckReply converts a number to a string. Use the same string form when you compute the hash.

Once a secret exists, every identify() call needs a user_id and a valid signature. A missing or wrong signature is rejected and the visitor stays anonymous, and so is a name or email sent without a signed user_id.

Without verification, the quick setup on the Members’ names tab still shows the member’s name and email to your team, but the inbox marks the visitor Not verified and AckReply does not link their chats across devices.

When a verified customer opens the chat on a new device or browser, AckReply merges that session into their existing visitor profile, so they see their earlier conversations.

AI actions: write actions also need a short-lived identity_token next to user_hash. See AI actions.

Rotating the secret: click Rotate next to the secret. Signatures made with the old secret stop working until your server uses the new one. Keep the secret private: anyone with it can sign identities for your workspace.

Common problems with the AckReply JavaScript API

  • AckReply is not defined: your code ran before the loader script. Run it after the script has loaded, or on a later user action.
  • identify() seems ignored: check the browser console. With an identity secret set, a user_id without a correct userHash is rejected. The hash must be the HMAC-SHA256 of the exact user_id string.
  • Too many identify calls: AckReply limits identify calls to 10 per minute per visitor. Call it once per page load, not in a loop.
  • History not shared across devices: set up identity verification. Unverified user IDs are never merged.

Was this article helpful?