# Avox Docs (full text) > Complete documentation for Avox, a WhatsApp Coexistence platform built on Meta's official Cloud API. Index version: https://docs.theavoxai.com/llms.txt Avox connects a business's existing WhatsApp Business App to WhatsApp's Cloud API on the same number without losing chat history, and adds a shared inbox, AI Automation (automated replies and actions, with a library of premade automations), templates, WhatsApp Flows, Tables (spreadsheets that Flows, automations and the API read and write), connected apps (14 apps: Razorpay, Stripe, PayPal, Google, Microsoft 365, Zoom, Calendly, Shopify, WooCommerce, Shiprocket, HubSpot, Zoho CRM, Zoho Books, Airtable), calling, analytics, the Avox API for sending messages and the Builder API. Names: Avox is also called Avox AI or The Avox AI (its website is theavoxai.com), and people look for it as Avox WhatsApp, Avox for WhatsApp or Avox WhatsApp Business. It is not related to AVOXI (cloud telephony), Avox Systems (aviation equipment) or the Avox legal entity data service. Product website: https://theavoxai.com/ (index https://theavoxai.com/llms.txt; pricing https://theavoxai.com/pricing; FAQ https://theavoxai.com/faq; What's new https://theavoxai.com/announcements). Docs site map: https://docs.theavoxai.com/site-map. Live status: https://status.theavoxai.com/. ## Introduction URL: https://docs.theavoxai.com/ Section: Get started Avox is AAIDA Corp's WhatsApp Coexistence platform. It connects your existing WhatsApp Business App to WhatsApp's Cloud API - without losing your chat history or disrupting your team - and adds a shared inbox, automation, and analytics on top. Avox is a verified Meta Business Partner, built directly on WhatsApp's official Cloud API. Whether your team runs one number or ten, the idea stays the same: one inbox, every number, no shuffle. This site covers everything you need to know as an Avox customer: connecting your number, how Coexistence works, working as a team, sending from your own server, what to expect from message delivery, and how your data is protected. ### Where to start - **New to Avox?** Start with [Getting started](https://docs.theavoxai.com/getting-started) - it walks you through connecting your first WhatsApp number, screen by screen. - **Want the full picture?** [All features](https://docs.theavoxai.com/features) lists everything Avox does, and [Why Avox](https://docs.theavoxai.com/why-avox) explains what it gives your team. - **Wondering how the WhatsApp Business App keeps working?** Read [Coexistence, explained](https://docs.theavoxai.com/coexistence-explained). - **Building on Avox?** The [Avox API](https://docs.theavoxai.com/avox-api) sends WhatsApp messages from your own server, with live and test [API keys](https://docs.theavoxai.com/connections/api-keys), and [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) brings customer messages back to it. - **Curious what happens behind the scenes?** See [Reliability](https://docs.theavoxai.com/reliability) for how message delivery works, and [Security](https://docs.theavoxai.com/security) for how your data is protected. - **Choosing a plan?** [Plans](https://docs.theavoxai.com/plans) shows every plan, limit and billing option, live. - **Looking for what's new?** Check the [Changelog](https://docs.theavoxai.com/changelog). ### Find your way around The sidebar groups every page by what you're doing: - **Workspace** - the dashboard pages you use every day: [Overview](https://docs.theavoxai.com/overview), [Inbox](https://docs.theavoxai.com/inbox), [Contacts](https://docs.theavoxai.com/contacts), [Calls](https://docs.theavoxai.com/calls) and [Analytics](https://docs.theavoxai.com/analytics). - **Connections** - connecting and managing your WhatsApp numbers, [Message forwarding](https://docs.theavoxai.com/connections/webhook-override), [API keys](https://docs.theavoxai.com/connections/api-keys) and API logs, [Health](https://docs.theavoxai.com/health) and [Logs](https://docs.theavoxai.com/logs). - **Templates**, **Flows and automation**, and **Avox AI** - everything you send and automate. - **Team**, **Plans and billing**, **Settings**, and **Security and privacy** - running your account. - **Avox API** - sending messages from your own server, from [authentication](https://docs.theavoxai.com/avox-api/authentication) to the [go-live checklist](https://docs.theavoxai.com/avox-api/go-live). - **WhatsApp and Meta** - how Meta's side works: [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup), the [messaging window](https://docs.theavoxai.com/whatsapp/messaging-window), [template categories](https://docs.theavoxai.com/whatsapp/template-categories), [quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits) and more. - **Integrations** - every service Avox connects with. See [All integrations](https://docs.theavoxai.com/integrations). - **Status and reliability** - the live [status page](https://docs.theavoxai.com/status-page) and how Avox keeps messages flowing. - **Help** - [Support](https://docs.theavoxai.com/support), and every [error code](https://docs.theavoxai.com/error-codes) with what to try. Press Ctrl K (or ⌘ K on a Mac) anywhere to search every page, heading and error code. ### Getting help If you can't find what you're looking for here, reach out through [Avox contact page](https://theavoxai.com/contact) - a real person on our team will get back to you. ### Use these docs with AI AI assistants can read the whole documentation as one Markdown file at [llms-full.txt](https://docs.theavoxai.com/llms-full.txt), or start from the page index at [llms.txt](https://docs.theavoxai.com/llms.txt). Every page also has its own Markdown version: add `.md` to its address (this page is [index.md](https://docs.theavoxai.com/index.md)), or use **Copy page** at the top of any page. --- ## Getting started URL: https://docs.theavoxai.com/getting-started Section: Get started Connecting your WhatsApp number to Avox takes a few minutes and doesn't interrupt anything your team is doing on WhatsApp today. This page walks you from sign-up to your first conversation. Each step of the connection wizard has its own section below - the **Docs for this step** link in your dashboard opens the matching one. Prefer a checklist? See the [Connect WhatsApp](https://docs.theavoxai.com/walkthrough/connect-whatsapp) walkthrough. Want every field and error message? See the full [Setup](https://docs.theavoxai.com/connections/setup) reference. ### Create your account Sign up at [Avox sign-up](https://theavoxai.com/signup) with your email address, or continue with Google or Facebook. Avox is for people 18 or older: tick **I'm 18 or older** on the sign-up form before you continue ([AVX-1134](https://docs.theavoxai.com/error-codes/avx-1134)). Avox creates your account and your first Switchboard - your team's workspace. A short welcome chat runs before your dashboard opens ("Quick chat before your dashboard's ready. About a minute, promise."). It first asks for the account details we don't have yet: your full name, your date of birth, your gender ("Prefer not to say" is fine), a phone number with its country code and your business name. Someone who joined another person's Switchboard is asked only their name and phone. Avox is for people aged 18 and over, so a date of birth under 18 ends the chat ([AVX-1105](https://docs.theavoxai.com/error-codes/avx-1105)). Your username is made from your name at this point; you can change it, and every other detail, later in Settings > Profile. The chat then asks a few questions about your business and how you plan to use WhatsApp, and lets you name your Switchboard. The kind of user you say you are (for example a developer or a business owner) also sets the shape of your [Avox Avatar](https://docs.theavoxai.com/avox-avatar). At the end you can connect your number straight away from the chat, or choose to do it later from the dashboard ("All good. You're in. Connect whenever, straight from the dashboard."). If you leave halfway, the chat picks up where you left off. ### Choose a plan Connecting a number needs an active plan. Until you have one, [Overview](https://docs.theavoxai.com/overview) shows "No active plan - subscribe to unlock connections, templates, and Flows." with a **See plans** link. Compare plans on [Plans](https://docs.theavoxai.com/plans) and subscribe on [Billing](https://docs.theavoxai.com/billing). Checkout fills in what the welcome chat already saved and asks only for what's missing - see [Checking out](https://docs.theavoxai.com/plans#checking-out). Your plan also sets how many numbers you can connect. See [How the connection limit works](https://docs.theavoxai.com/connections#how-the-connection-limit-works). ### Open the connection wizard Open **Connections** in the sidebar, under **Connect & Monitor**. With no numbers connected yet, the page explains what connecting does and shows **Connect a WhatsApp number**; once you have one, click **Connect another number**. Admins can run the wizard, and so can a Manager given **Manage connections**. Without a plan, the button is greyed out and the page reads "Choose a plan before connecting a WhatsApp number." ([AVX-3109](https://docs.theavoxai.com/error-codes/avx-3109)) with a link to Billing. When every connection your plan allows is in use, it reads "You've used every connection your plan allows." ([AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009)). The wizard has three steps: **1. Number type**, **2. Webhook setup** and **3. Connect with Meta**. If you also forward messages to your own server, a **Send test event** step comes before Connect with Meta. Steps you've finished show a tick. The round back button at the left of the step bar goes back one step, or to Connections from the first step, and **Exit setup** at the top leaves at any time (what you've saved stays saved). Every step has a **Docs for this step** link to its section on this page, and the current step is part of the page address, so reloading keeps your place and your browser's Back button returns to Connections. If you started a setup earlier and left after **Webhook setup**, Connections shows a **Setup in progress** card ("Your choices are saved") with a **Resume setup** button. The wizard then opens with "Welcome back - continuing your setup" where you left off. An Admin can also **Delete** a setup in progress, after confirming; nothing on WhatsApp changes. ### Connection type The first step asks what kind of number you're connecting. This decides which Meta signup path you get. - **Existing number (Coexistence)** - the number is already active in the WhatsApp Business app on your or your team's phone. Avox connects alongside it: the app keeps working as before, and Avox adds the shared inbox, automation, and everything else on top. This is the right choice for almost every existing business. See [Coexistence, explained](https://docs.theavoxai.com/coexistence-explained). - **New number (Bot only)** - the number isn't used in the WhatsApp Business app. It's dedicated to Avox's bot and API. The setup is simpler, since there's nothing existing to keep in sync. Not sure which one you need? If your team already sends and receives WhatsApp messages from a phone today, choose Coexistence. Click **Next**. ### Webhook config The second step, **Webhook setup**, asks for a **Connection name** - a label your team will recognize, such as "Acme Support EU" (up to 60 characters) - and how this number's messages are handled: - **Use Avox for everything** (recommended) - Avox receives all of the number's WhatsApp events from Meta and powers the shared inbox, templates, Flows, automation, Avox AI, calls, analytics, health and logs. Avox sets up the webhook with Meta and checks it with its own verify token, so you don't need a server and there's nothing else to fill in. - **Also send messages to my own server** - everything above, plus Avox forwards each new incoming customer message to your own HTTPS endpoint. Only incoming customer messages are forwarded - not delivery statuses, calls, or messages your team sends. Admins only. #### Message forwarding If you choose **Also send messages to my own server**, enter **Your endpoint URL**. It must start with `https://`, use the standard port and be reachable from the public internet. When you click **Next**, Avox checks the address and creates a **signing secret**. It's shown once, with a copy button - copy it into your server's settings now, then click **I've saved it, continue**. After that it's only shown masked. Avox signs every forwarded message with it (the `Avox-Signature` header), retries if your server doesn't answer, and lists every delivery under **Recent deliveries** on the connection's page. Forwarding switches on by itself when the connection completes, and your conversations still appear in the [Inbox](https://docs.theavoxai.com/inbox). See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) for the request format and how to check the signature, and [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks) for everything Meta tells Avox about your number. Testing on your own computer? `localhost` can't be reached from the internet. A tunnelling tool gives your local server a public HTTPS address to use while you build. Click **Next**. Avox saves your choices as a draft, so a **Setup in progress** card brings you back if you leave. If a field needs fixing, the wizard shows the problem under that field, for example "The endpoint URL must start with https://" ([AVX-3006](https://docs.theavoxai.com/error-codes/avx-3006)). ### Webhook test This step only appears when you forward messages to your own server. Click **Send test event**: Avox sends a sample message marked `"test": true` to your endpoint, signed exactly like a real one. - **"Delivered - your endpoint answered 200."** (in green) - your server accepted it. Any `2xx` status counts. - **A red message** - your server didn't answer, or answered with an error. The most common causes are that it isn't deployed yet, isn't served over HTTPS, or rejected the signature ([AVX-3101](https://docs.theavoxai.com/error-codes/avx-3101)). **Next** is available once you've sent a test. A failed test doesn't block you - you can fix your server later and send another test from the connection's page. Lost the secret? **Make a new secret** replaces it and shows the new one once. ### Meta Embedded Signup The last step, **Review & connect with Meta**, hands you over to Meta's own secure window - Meta Embedded Signup - where you authorize Avox on your WhatsApp Business Account. This is the step that creates the connection. On this step you'll see a summary of your choice from **Webhook setup** (with **Change this** to go back), and an illustrated **What to expect during setup** walkthrough of Meta's screens, with **Desktop** and **Mobile** tabs. When you're ready: Meta's window opens. By continuing, you confirm you're authorized to connect this WhatsApp Business Account and agree to Avox's Terms of Service, and you acknowledge the Privacy Policy. The screens below show what to expect. Keep Meta's window open until it closes by itself. While Meta's window is open, the walkthrough's status reads **Connecting**. When it finishes, you're returned to Connections, where your number shows **Connected**. #### Coexistence vs. new number in Meta's window - On the **Coexistence** path, Meta detects that your number is registered to the WhatsApp Business app and shows your existing business profile for you to confirm. Partway through, you scan a QR code with the WhatsApp Business app on your phone and choose whether to share your chat history. - On the **new number** path, there's no existing profile. Meta verifies the number itself with an SMS or voice code, and there's no phone-side step. #### On your computer - 9 screens, in order {desktopSteps.map((s, i) => ( Step {i + 1} of {desktopSteps.length} ))} #### On your phone (Coexistence only) - 4 screens If you're on the Coexistence path, the WhatsApp Business app on your phone walks you through its own side of the signup, alongside the screens above: {mobileSteps.map((s, i) => ( Step {i + 1} of {mobileSteps.length} ))} #### If it doesn't go through When Meta's window doesn't finish, a red panel titled "The connection didn't go through" explains why ([AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002)), lists what to check under **Try this**, and offers **Retry connection** and **View troubleshooting docs**. When Meta itself reported the problem, the panel shows Meta's own message and error number. The most common causes: - **Meta's window was closed early.** Retry and keep it open until it closes by itself. Make sure pop-ups are allowed for the dashboard. - **You're not an admin on the WhatsApp Business Account.** Ask its admin to run the setup, or to give you admin access in Meta Business Suite. - **For Coexistence, the phone step wasn't finished.** Tap **Connect** in the WhatsApp Business app when Meta's prompt arrives. - **No plan or no free connection slot.** Subscribe or free a slot, then retry. If Meta's window doesn't finish for any reason, nothing changes on your account or your WhatsApp number. It's always safe to close it and try again. Every cause and fix is listed on [Setup](https://docs.theavoxai.com/connections/setup#if-the-connection-doesnt-go-through). ### After you connect - **Chat history and contacts.** With Coexistence, the chat history you chose to share and your WhatsApp Business app contacts arrive in Avox. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). - **New messages.** Every new message - whether it arrives through Avox or is sent from the phone app - appears in your shared [Inbox](https://docs.theavoxai.com/inbox). - **The rest of the dashboard unlocks** - [Inbox](https://docs.theavoxai.com/inbox), [Calls](https://docs.theavoxai.com/calls), [Contacts](https://docs.theavoxai.com/contacts), [Templates](https://docs.theavoxai.com/templates), [Flows](https://docs.theavoxai.com/flows), [Automation](https://docs.theavoxai.com/automation), [Health](https://docs.theavoxai.com/health), [Logs](https://docs.theavoxai.com/logs), and [Analytics](https://docs.theavoxai.com/analytics) on plans that include it. - **A confirmation email** goes to every Admin of the Switchboard. ### Connection management Once a number is connected, its **Manage** menu on [Connections](https://docs.theavoxai.com/connections) offers three actions (Admins only): - **Pause** - an Avox setting; nothing changes on Meta's side. Sending from Avox stops, and the number stops counting toward your plan's connection limit. - **Resume** - turns it back on, after checking your plan still has a free connection slot. A number paused because of a billing issue comes back once the billing issue is resolved on [Billing](https://docs.theavoxai.com/billing). - **Delete** - confirmed with a 6-digit code emailed to the Switchboard's Owner. The connection is kept for 6 days in case it was a mistake, then removed for good. See [Managing a connection](https://docs.theavoxai.com/connections#managing-a-connection) for every detail. ### Next steps - Take the guided tour: your Avox Avatar walks you round the dashboard, one page at a time. Start it from **Take the tour** in the sidebar, or from your account menu under **Help** at any time. You can close it whenever you like and carry on later from where you stopped, or start again from Settings > Personalisation > Tour and reset. - Set a WhatsApp username for your number, so customers can find you by name - subject to Meta's availability in your country and account. See [Connections](https://docs.theavoxai.com/connections#your-whatsapp-username). - Invite your team - see [Invites](https://docs.theavoxai.com/switchboard/invites). - Create your first [template](https://docs.theavoxai.com/templates/create) to start conversations outside the 24-hour window. - Set up an [automation](https://docs.theavoxai.com/automation) to answer common questions. - Turn on [Calling](https://docs.theavoxai.com/connections/calling). - Send messages from your own systems with an [API key](https://docs.theavoxai.com/connections/api-keys). ### Need help? If anything about connecting doesn't go as expected, open [Support](https://docs.theavoxai.com/support) in your dashboard and we'll help you sort it out. --- ## Why Avox URL: https://docs.theavoxai.com/why-avox Section: Get started Avox puts your WhatsApp Business number on Meta's official WhatsApp Cloud API while you keep using the WhatsApp Business App on your phone, then adds the tools a team needs around it. Here's what that gives you, with a link to the full details for each. ### Keep the number and the app you already use - **Coexistence on the same number.** Connect the WhatsApp Business App number your customers already know. The app keeps working on your phone, and Avox works alongside it, with your chat history and contacts brought in. See [Coexistence](https://docs.theavoxai.com/coexistence-explained) and [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). - **A guided connection.** A four-step wizard walks you through Meta's own sign-up window, shows every screen before you see it, and checks your server's address before you go live. Leave halfway and **Resume setup** picks up where you stopped. See [Getting started](https://docs.theavoxai.com/getting-started) and [Setup](https://docs.theavoxai.com/connections/setup). - **Several numbers, several workspaces.** Run each brand, team or client in its own [Switchboard](https://docs.theavoxai.com/switchboard), with its own members, numbers, templates and automations. ### Work as a team - **One shared inbox** for every conversation on your connected numbers. See [Inbox](https://docs.theavoxai.com/inbox). - **Chat signals** put a small label on the chats that need a person, so nobody waits too long. See [Chat signals](https://docs.theavoxai.com/chat-signals). - **Contacts** built from everyone who has messaged you. See [Contacts](https://docs.theavoxai.com/contacts). - **Roles that match how teams work** - Admins run the Switchboard and Managers handle the day-to-day. Admins can change anyone's role in a couple of clicks, and anyone can leave a Switchboard they no longer need. See [Members and roles](https://docs.theavoxai.com/switchboard/members). - **WhatsApp Calling history** in the same place as your messages, plus a one-click request for a customer's permission to call. See [Calls](https://docs.theavoxai.com/calls). ### Message customers the right way - **Templates with a live preview, a ready-made library and per-template insights**, synced with Meta so you always see each template's real review status. See [Templates](https://docs.theavoxai.com/templates). - **Flows** - forms your customers fill in without leaving WhatsApp, built from a premade starting point or your own design, with a preview as you build. See [Flows](https://docs.theavoxai.com/flows). - **Automation** - keyword triggers, conditions and premade automations on a visual canvas, with a clear monthly credit allowance. See [Automation](https://docs.theavoxai.com/automation). - **Avox AI** Beta - an always-on teammate inside your automations. See [Avox AI](https://docs.theavoxai.com/avox-ai). - **Smart links and QR codes** that only ever open a chat with you, with your own QR designs, a chat button for your website and analytics that show which link started each chat. See [Smart links](https://docs.theavoxai.com/chat-links). - **Broadcasts** - one approved template to a segment of your contacts, checked before it goes, sent at a steady pace and reported afterwards. Anyone tagged Unsubscribed is skipped. See [Broadcasts](https://docs.theavoxai.com/broadcasts) and [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). ### Built for developers too - **The Avox API** sends any WhatsApp message type from your own server with a key that's scoped to one connection, so a key can never send from another number. See [Avox API](https://docs.theavoxai.com/avox-api). - **Live and test keys.** A test key checks your requests and answers with a pretend result without sending anything, so you can build safely. Rotate a key with a grace period you choose, so your servers switch over without downtime. See [API keys](https://docs.theavoxai.com/connections/api-keys). - **Message forwarding** sends each new customer message to your own server as it arrives, signed, with retries and a delivery log. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). - **API logs** show every request your keys made and every message forwarded to you, with filters and CSV export. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). - **Safe retries** with idempotency keys, so a network hiccup never sends a message twice. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). - **Clear, stable error codes**, each with its own explanation and fix. See [API errors](https://docs.theavoxai.com/api/errors) and [Error codes](https://docs.theavoxai.com/error-codes). - **Works with the tools you already use** - call the Avox API from [n8n](https://docs.theavoxai.com/integrations/n8n), [Make](https://docs.theavoxai.com/integrations/make), [Zapier](https://docs.theavoxai.com/integrations/zapier) or your own code. See [All integrations](https://docs.theavoxai.com/integrations). ### See exactly what's happening - **Health** shows each connection's heartbeat, quality history and delivery rate, with a live check straight from Meta. See [Health](https://docs.theavoxai.com/health). - **Logs** keep every webhook Meta has sent your account. See [Logs](https://docs.theavoxai.com/logs). - **Analytics** charts message volume, delivery, response time and how long people wait for a first reply, with summary cards for smart links and broadcasts. See [Analytics](https://docs.theavoxai.com/analytics). - **A public status page** shows the live state of every Avox service, with 90 days of history and every incident. See [Status page](https://docs.theavoxai.com/status-page). - **News as it happens** - the [Changelog](https://docs.theavoxai.com/changelog) lists what shipped and when, bigger news is posted on [Announcements](https://theavoxai.com/announcements), and notices from the Avox team land in the dashboard's notification bell. ### Your account, protected - **Two-factor authentication** with an authenticator app - once it's on, every sign-in asks for your code before any page opens. See [Two-factor](https://docs.theavoxai.com/security/two-factor). - **Passkeys** for signing in with your device instead of a password, **sign-in with a code sent to your email**, and **active devices** you can review. See [Passkeys](https://docs.theavoxai.com/security/passkeys), [Sessions](https://docs.theavoxai.com/security/sessions) and [Security](https://docs.theavoxai.com/security). - **Your data, your rules** - retention settings, email preferences, exports and deletion. See [Compliance](https://docs.theavoxai.com/compliance) and [Data deletion](https://docs.theavoxai.com/data-deletion). ### Pricing you can read - **Clear plans** and three ways to pay - Monthly, Yearly or One-time. See [Plans](https://docs.theavoxai.com/plans). - **Meta's message charges explained**, with a monthly estimate you can plan around. See [Pricing](https://docs.theavoxai.com/whatsapp-platform). Ready to try it? [Connect your first number](https://docs.theavoxai.com/getting-started). --- ## All features URL: https://docs.theavoxai.com/features Section: Get started Avox is a dashboard and API built around Meta's WhatsApp Business Platform. This page is the short version of everything it does, grouped the same way as the docs sidebar. Each item links to its full page. For the WhatsApp capabilities Avox is built on, see [WhatsApp products](https://docs.theavoxai.com/products). Inbox, Contacts, Smart links, Broadcasts, Chat signals and Analytics. Connect numbers, forward messages, API keys and health. Build, submit and track Meta-approved templates. Forms inside WhatsApp and replies that run on their own. Your plan, credits and Meta's charges. The Avox API and step-by-step integrations. ### Workspace The dashboard's home page and the places your team works with customers every day. - **[Overview](https://docs.theavoxai.com/overview)** - your dashboard's home page: stat cards (including **Est. Meta cost**), recent activity, message and delivery charts, and an alert bar when something needs attention. - **[Inbox](https://docs.theavoxai.com/inbox)** - every conversation, visible to your whole team, with a composer that follows WhatsApp's [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). The chat header counts down the time left to reply, **Send a template** reopens a closed chat, and you can add tags and categories to the customer right there. - **[Contacts](https://docs.theavoxai.com/contacts)** - every phone number that's messaged you, searchable, with links to each contact's conversation and call history. Group customers with [tags and categories](https://docs.theavoxai.com/contacts#tags-and-categories) in any colour, and each contact gets a [generated avatar](https://docs.theavoxai.com/contacts#contact-avatars) in their category's colour and shape. - **[Calls](https://docs.theavoxai.com/calls)** - answer WhatsApp calls in your browser and call customers who allowed it, from a call panel that stays with you on every page (mute, microphone and speaker, network bars, notes and the caller's history). Every call is kept with its timeline, notes and Meta's estimated charge, with **Missed to follow up** for calls nobody answered. - **[Chat signals](https://docs.theavoxai.com/chat-signals)** - small labels on the conversations that need a person, like someone waiting too long or asking for a human. Six are built in, and you can make your own from words in a message and how long someone has waited. The Inbox filters by them. - **[Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe)** - the built-in **Unsubscribed** tag, with ready-made automations that answer STOP and START. Every broadcast skips anyone carrying the tag. - **[Smart links and QR codes](https://docs.theavoxai.com/chat-links)** - short links that only ever open a chat with you, each with a [QR code](https://docs.theavoxai.com/chat-links/qr-codes) you can design and [save as a design or brand kit](https://docs.theavoxai.com/chat-links/qr-designs), a [chat button for your website](https://docs.theavoxai.com/chat-links/website-button), and [analytics](https://docs.theavoxai.com/chat-links/analytics) that count scans and clicks apart. Avox recognises which link each chat came from and can follow up on its own. Your plan sets how many links you can have, and you can [buy extra links](https://docs.theavoxai.com/chat-links/limits). - **[Broadcasts](https://docs.theavoxai.com/broadcasts)** - send one approved Marketing template to a segment of your contacts. Avox [checks it before it goes](https://docs.theavoxai.com/broadcasts/before-you-send), sends at a steady pace, and keeps a [report](https://docs.theavoxai.com/broadcasts/report) for each one. Start from a [ready-made broadcast](https://docs.theavoxai.com/broadcasts/library). Your plan sets [how many you can send a month](https://docs.theavoxai.com/broadcasts/limits). - **[Analytics](https://docs.theavoxai.com/analytics)** - message volume, delivery, and response time over longer periods, how long people wait for a first reply, and summary cards for smart links and broadcasts. Included on the Growth and Business plans. - **Search** - search the dashboard from the header, or press Ctrl + K (Cmd + K on a Mac), to jump to any page or setting, run an action, or find an answer. ### Connections Everything about the WhatsApp numbers you connect, and how your own systems reach them. - **[Connections](https://docs.theavoxai.com/connections)** - connect WhatsApp numbers with a wizard of three or four steps, then rename, pause, resume, and delete them. Each number can also have a `wa.me/` link and an **Identity-Key Check** switch. Setup is covered step by step on [Setup](https://docs.theavoxai.com/connections/setup). - **[Coexistence sync](https://docs.theavoxai.com/connections/coexistence)** - keep using the WhatsApp Business App on the same number while Avox runs alongside it, with your chat history and contacts brought in. - **[Calling](https://docs.theavoxai.com/connections/calling)** - turn on WhatsApp Calling for a connected number. - **[Message forwarding](https://docs.theavoxai.com/connections/webhook-override)** - send customers' incoming messages to your own server as they arrive, signed with a signing secret you can rotate, with automatic retries, a **Send test event** button, a delivery log where you can **Resend** a message, and an automatic pause (with an email to Admins) if your endpoint keeps failing. - **[API keys](https://docs.theavoxai.com/connections/api-keys)** - keys for the [Avox API](https://docs.theavoxai.com/avox-api), each scoped to one connection, with a name, an optional description and who created it. Create a **live key** (`avx_live_`) that sends real messages, or a **test key** (`avx_test_`) that never sends anything. **Rotate** a key without losing its limits and choose how long the old one keeps working, **Test** it without sending, revoke it, and see its recent requests. Creating, rotating and revoking are confirmed with an emailed code. Avox flags a key that's used from a new place or behaves unusually. - **[API logs](https://docs.theavoxai.com/connections/api-keys#api-logs)** - every request made with your API keys on the **Sent** tab, and every message forwarded to your server on the **Received** tab, with filters, a details panel for each row, and **Export CSV**. - **[Health](https://docs.theavoxai.com/health)** and **[Logs](https://docs.theavoxai.com/logs)** - each connection's heartbeat, a live check straight from Meta, quality history and delivery rate, and every webhook Meta has sent your account. ### Templates Build WhatsApp message templates in a step-by-step wizard with a live phone preview, submit them to Meta, and follow their review status - see [Templates](https://docs.theavoxai.com/templates). - **[Create](https://docs.theavoxai.com/templates/create)** - Custom message, Catalogue, Calling permission request, and One-time passcode templates, with every Meta button type. - **[Library](https://docs.theavoxai.com/templates/library)** - start from Avox's own ready-made templates, or from Meta's pre-verified templates with no review wait. - **[Approval](https://docs.theavoxai.com/templates/approval)** - statuses, rejection reasons, editing, and status emails. - **[Insights](https://docs.theavoxai.com/templates/insights)** - sent, delivered, read, and clicked numbers from Meta. ### Flows and automation - **[Flows](https://docs.theavoxai.com/flows)** - forms that open inside WhatsApp. Start from a premade Flow or write the JSON yourself with a live preview, validate it with Meta, and publish in one click. Flows that need live data get a guided endpoint setup. - **[Automation](https://docs.theavoxai.com/automation)** - automated replies that run on their own. Pick a [trigger](https://docs.theavoxai.com/automation/triggers), lay out [actions](https://docs.theavoxai.com/automation/actions) on the visual [builder](https://docs.theavoxai.com/automation/builder), branch with conditions, and start from premade automations. Triggers include a chat started from a smart link, a chat signal being raised and a reply to a broadcast. Sends spend [credits](https://docs.theavoxai.com/automation/credits). ### Avox AI - **[Avox AI](https://docs.theavoxai.com/avox-ai)** Beta - the always-on automation layer of your dashboard. - **[Avox Avatar](https://docs.theavoxai.com/avox-avatar)** - the character reacting throughout the dashboard, with every mood explained. ### Team - **[Switchboards](https://docs.theavoxai.com/switchboard)** - your workspace. Run several, each with its own numbers, templates, and team, and switch between them from the Switchboard switcher. An Admin can [pause a Switchboard](https://docs.theavoxai.com/switchboard#pausing-a-switchboard) to stop everything while keeping all its data, and resume it any time. - **[Members and roles](https://docs.theavoxai.com/switchboard/members)** - what Admins and Managers can each do. Admins change a member's role from the **Role** picker (**Make Admin** or **Change to Manager**), give a Manager extra [permissions](https://docs.theavoxai.com/switchboard/members#permissions) or take some away, and remove members. Admins and Managers alike can **Leave Switchboard** from **Settings > Switchboard**, and a Switchboard always keeps at least one Admin. - **[Invites](https://docs.theavoxai.com/switchboard/invites)** - invite people and accept invitations. ### Plans and billing - **[Plans](https://docs.theavoxai.com/plans)** - every plan, feature, and limit, with live prices. - **[Billing](https://docs.theavoxai.com/billing)** - your subscription, payments, and usage. Pay Monthly, Yearly, or One-time. India accounts see amounts in rupees first, with the US dollar amount charged beside them. - **[Meta charges and payment status](https://docs.theavoxai.com/billing#meta-charges-and-payment-problems)** - what Meta charges for your messages, day by day (synced with Meta, or a live estimate), a reconciliation you can download, each number's Meta payment status with **Check again**, and **View Meta invoices**. See also [Pricing](https://docs.theavoxai.com/whatsapp-platform). - **[Automation credits](https://docs.theavoxai.com/automation/credits)** - unused plan credits [roll over](https://docs.theavoxai.com/automation/credits#credits-that-roll-over) when your plan renews, and you can [buy more](https://docs.theavoxai.com/automation/credits#buying-more-credits) any time. - **[Change plan](https://docs.theavoxai.com/billing/change-plan)**, **[Cancel](https://docs.theavoxai.com/billing/cancel)**, **[Invoices](https://docs.theavoxai.com/billing/invoices)**, and **[Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts)** - including the gifts, perks and deals in [Settings > Offers](https://docs.theavoxai.com/billing/coupons-and-gifts#offers-in-your-dashboard). ### Settings, security, and privacy - **[Settings](https://docs.theavoxai.com/settings)** - your [profile](https://docs.theavoxai.com/settings/profile), your [business details](https://docs.theavoxai.com/settings/business), your Switchboard's team, **Usage** against your plan, your API keys, and the [emails](https://docs.theavoxai.com/emails) Avox sends. - **[Personalisation](https://docs.theavoxai.com/settings/personalisation)** and **[Tours](https://docs.theavoxai.com/settings/tours)** - your own theme, time and date, start page, sidebar, Inbox and notification choices, and short guided tours of each page. - **[Security](https://docs.theavoxai.com/security)** - [two-factor authentication](https://docs.theavoxai.com/security/two-factor) with an authenticator app (once it's on, every sign-in asks for your code before any page opens), [passkeys](https://docs.theavoxai.com/security/passkeys) for signing in without a password, signing in with a code sent to your email, your [active devices](https://docs.theavoxai.com/security/sessions), and [emailed codes](https://docs.theavoxai.com/security#emailed-codes-for-sensitive-actions) that confirm sensitive actions. - **[Compliance](https://docs.theavoxai.com/compliance)** and **[Data deletion](https://docs.theavoxai.com/data-deletion)** - retention settings, email preferences, exports, and deleting your data. ### Developers - **[Avox API](https://docs.theavoxai.com/avox-api)** - send WhatsApp messages from your own server with one endpoint and one key. Covers [authentication](https://docs.theavoxai.com/avox-api/authentication), [message types](https://docs.theavoxai.com/avox-api/messages), [idempotency](https://docs.theavoxai.com/avox-api/idempotency), [rate limits](https://docs.theavoxai.com/avox-api/rate-limits), [webhooks](https://docs.theavoxai.com/avox-api/webhooks), [testing](https://docs.theavoxai.com/avox-api/testing), the [go-live checklist](https://docs.theavoxai.com/avox-api/go-live), and [API errors](https://docs.theavoxai.com/api/errors). - **Integrations** - step-by-step guides for [Chatwoot](https://docs.theavoxai.com/integrations/chatwoot), [n8n](https://docs.theavoxai.com/integrations/n8n), [Make](https://docs.theavoxai.com/integrations/make), [Zapier](https://docs.theavoxai.com/integrations/zapier), [Node.js](https://docs.theavoxai.com/integrations/nodejs), [Laravel](https://docs.theavoxai.com/integrations/laravel), and [Shopify](https://docs.theavoxai.com/integrations/shopify). See [All integrations](https://docs.theavoxai.com/integrations). ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to":"15551234567","type":"text","text":{"body":"Hello"}}' ``` ### Help, status, and updates - **[Support](https://docs.theavoxai.com/support)** - **Support & Feedback** in the dashboard: search the FAQ or open a support ticket. - **Notifications** - the bell in the dashboard header collects notices from the Avox team and anything that needs your attention, with **Mark all read**. - **[Error codes](https://docs.theavoxai.com/error-codes)** - every AVX code, what it means, and what to try. - **[Status page](https://docs.theavoxai.com/status-page)** and **[Reliability](https://docs.theavoxai.com/reliability)** - live service status with 90 days of history and every incident, including a [Meta / WhatsApp](https://docs.theavoxai.com/status-page#meta-whatsapp) section for the services Meta runs, and how Avox keeps messages delivered and in order. - **[Changelog](https://docs.theavoxai.com/changelog)** - what shipped, and when. Bigger news is posted on [Announcements](https://theavoxai.com/announcements). ### Where to start Get started Connect your first number See plans --- ## WhatsApp products URL: https://docs.theavoxai.com/products Section: Get started These are the capabilities Meta builds into the WhatsApp Business Platform, and the place each one lives in Avox. Each section is the short version, with a link to the full page. For what Avox adds on top - the shared inbox, automation, Avox AI and more - see [All features](https://docs.theavoxai.com/features). ### At a glance | Meta capability | What it does | Where it is in Avox | | --- | --- | --- | | [Cloud API messaging](#cloud-api-messaging) | Sends and receives WhatsApp messages. | [Inbox](https://docs.theavoxai.com/inbox), [Automation](https://docs.theavoxai.com/automation), [Avox API](https://docs.theavoxai.com/avox-api) | | [Coexistence](#coexistence) | One number in the WhatsApp Business app and the Cloud API at once. | **Existing number (Coexistence)** in the connection wizard | | [Embedded Signup](#embedded-signup) | Connects your number to Avox in Meta's own window. | **Connect with Meta**, the wizard's last step | | [Message templates](#message-templates) | Pre-approved messages to start conversations. | [Templates](https://docs.theavoxai.com/templates) | | [WhatsApp Flows](#whatsapp-flows) | Multi-screen forms inside a chat. | [Flows](https://docs.theavoxai.com/flows) | | [Business Calling](#business-calling) | WhatsApp voice calls with your business. | [Calls](https://docs.theavoxai.com/calls), the **Calling** switch | | [Webhooks](#webhooks) | Real-time events from Meta. | [Logs](https://docs.theavoxai.com/logs), [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) | | [Business health and quality](#business-health-and-quality) | Quality rating, messaging limits, send status. | [Health](https://docs.theavoxai.com/health) | | [Usernames](#usernames) | A `wa.me/` link for your number. | **WhatsApp username** on the connection | | [Identity-key check](#identity-key-check) | Holds back sends when a recipient's account changed. | **Identity-Key Check** on the connection | ### Cloud API messaging Meta's hosted API for sending and receiving WhatsApp messages. Avox uses it for every message, and the [Avox API](https://docs.theavoxai.com/avox-api) lets your own server send through your number with a simple key - a live key for real sends, or a test key while you build. | Message type | What it is | | --- | --- | | `text` | A plain text message, with optional link previews. | | `image`, `video`, `audio`, `document`, `sticker` | Media from a public `https://` link or a Meta media id. | | `location` | A map pin with a name and address. | | `contacts` | One or more contact cards. | | `interactive` | Quick reply buttons, lists, link buttons, Flows and call permission requests. | | `reaction` | An emoji reaction to a message. | | `template` | An approved message template - the one type that works outside the 24-hour window. | - In Avox: the [Inbox](https://docs.theavoxai.com/inbox), [Automation](https://docs.theavoxai.com/automation), the [Avox API](https://docs.theavoxai.com/avox-api) and [API keys](https://docs.theavoxai.com/connections/api-keys). - Learn more: [Message types](https://docs.theavoxai.com/avox-api/messages), [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). ### Coexistence Run one number in the WhatsApp Business app and on the Cloud API at the same time. Your team keeps the phone app, and Avox adds everything else on the same number - including your past chats (if you choose to share them), your app contacts, and the replies your team sends from the phone. - In Avox: **Existing number (Coexistence)** in the connection wizard. - Learn more: [Coexistence](https://docs.theavoxai.com/coexistence-explained), [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). ### Embedded Signup Meta's secure sign-up window that connects your number to Avox in a few minutes - no developer account or manual token copying. - In Avox: **Continue to Meta** on **Connect with Meta**, the last step of the connection wizard. - Learn more: [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup), [Setup](https://docs.theavoxai.com/connections/setup). ### Message templates Messages Meta reviews and approves in advance - the way to start a conversation, or to reach someone more than 24 hours after they last wrote. Avox builds them with a step-by-step wizard, keeps their status in sync with Meta, and lets you start from Avox's ready-made templates or Meta's own template library. - In Avox: [Templates](https://docs.theavoxai.com/templates), [Create](https://docs.theavoxai.com/templates/create), [Library](https://docs.theavoxai.com/templates/library), [Insights](https://docs.theavoxai.com/templates/insights). - Learn more: [Template categories](https://docs.theavoxai.com/whatsapp/template-categories), [Template approval](https://docs.theavoxai.com/templates/approval). ### WhatsApp Flows Multi-screen forms that open right inside a WhatsApp chat - booking an appointment, a survey, a lead form. Avox builds them with a visual step wizard plus a JSON editor for the screens. - In Avox: [Flows](https://docs.theavoxai.com/flows). - Learn more: [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows). ### Business Calling WhatsApp voice calls with your business. Avox turns calling on for a number, keeps a call history, and asks a customer's permission to call them - which WhatsApp requires before a business calls. - In Avox: [Calls](https://docs.theavoxai.com/calls) and the **Calling** switch on each connection. - Learn more: [Calling](https://docs.theavoxai.com/connections/calling), [Calling on WhatsApp](https://docs.theavoxai.com/whatsapp/calling). ### Webhooks Meta's real-time events: incoming messages, delivery and read statuses, template decisions, quality changes, calls, Flow status changes and account alerts. Avox processes them for your dashboard and lists every one, with its payload, on Logs. New customer messages can also be forwarded to your own server. - In Avox: [Logs](https://docs.theavoxai.com/logs), plus [Inbox](https://docs.theavoxai.com/inbox), [Templates](https://docs.theavoxai.com/templates), [Flows](https://docs.theavoxai.com/flows), [Calls](https://docs.theavoxai.com/calls) and [Health](https://docs.theavoxai.com/health), which they keep up to date, and [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). - Learn more: [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks), [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). ### Business health and quality Meta rates each number's quality, sets how many people you can start conversations with each day, and reports anything blocking a number from sending. - In Avox: [Health](https://docs.theavoxai.com/health) - heartbeat, **Check health now**, **Quality history** and delivery rate. - Learn more: [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### Usernames A `wa.me/` link for your number, so customers can find you without typing the phone number. - In Avox: **Set a WhatsApp username** under **WhatsApp username** on the connection's page. - Learn more: [Connections](https://docs.theavoxai.com/connections#your-whatsapp-username), [Display names](https://docs.theavoxai.com/whatsapp/display-names). ### Identity-key check Blocks a send when the WhatsApp account behind a customer's number has changed - for example a recycled phone number - so sensitive messages reach the right person. - In Avox: the **Identity-Key Check** switch on each connection. - Learn more: [Connections](https://docs.theavoxai.com/connections#identity-key-check), [Meta error codes](https://docs.theavoxai.com/meta-error-codes). ### Common questions No. You connect your number through Meta's Embedded Signup window inside Avox, and Avox handles the Cloud API, webhooks and tokens for you. See [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup). Yes. Choose **Existing number (Coexistence)** when you connect. See [Coexistence](https://docs.theavoxai.com/coexistence-explained). Meta charges your WhatsApp Business Account for the messages it charges for; Avox charges for your plan. See [Pricing](https://docs.theavoxai.com/whatsapp-platform). ### What's next [Getting started](https://docs.theavoxai.com/getting-started) walks through connecting your first WhatsApp number, and [Meta concepts](https://docs.theavoxai.com/meta-platform) explains the Meta terms you'll meet along the way. Get started See plans --- ## Connect WhatsApp URL: https://docs.theavoxai.com/walkthrough/connect-whatsapp Section: Walkthroughs This walkthrough takes you through the connection setup wizard, from your first click on **Connections** to a number that shows **Connected** and fills your shared [Inbox](https://docs.theavoxai.com/inbox). Most of the time is spent in Meta's own signup window, and the whole thing usually takes a few minutes. Each part is covered in full on [Getting started](https://docs.theavoxai.com/getting-started) and [Setup](https://docs.theavoxai.com/connections/setup). ### Have these ready - **An Avox account with an active plan.** Subscribe on [Billing](https://docs.theavoxai.com/billing) first; see [Plans](https://docs.theavoxai.com/plans) for how many numbers each plan can connect. - **Admin access in Meta.** You need to be an admin of the WhatsApp Business Account (or the Meta business portfolio) you're connecting, if you already have one. - **Your phone, for an existing number.** If the number already runs in the WhatsApp Business app, keep that phone nearby: you confirm the connection inside the app halfway through. - **A number that isn't connected elsewhere in Avox.** One WhatsApp number can be connected to only one Switchboard at a time. If it's already connected in another account or Switchboard, delete it there first; that frees the number straight away. - **Pop-ups allowed** for the Avox dashboard in your browser. Meta's signup opens in a pop-up. - **Optional: your own server.** Only if you also want each incoming message forwarded to an `https://` endpoint of yours. Most teams don't need one. ### Step by step Sign up at [theavoxai.com/signup](https://theavoxai.com/signup) with your email, Google or Facebook, and answer the short welcome chat. Then subscribe to a plan on [Billing](https://docs.theavoxai.com/billing). Without a plan, connecting stops with "Choose a plan before connecting a WhatsApp number." ([AVX-3109](https://docs.theavoxai.com/error-codes/avx-3109)). Click **Connections** in the sidebar. - **No numbers yet:** Connections shows "Connect your WhatsApp number" with a **Connect a WhatsApp number** button, which opens the wizard headed "Set up your WhatsApp connection". - **Already have a number:** click **Connect another number** at the top of the page. - **Started earlier and stopped:** a **Setup in progress** card shows your saved choices. Click **Resume setup** to carry on where you left off. The steps run along the top: **1. Number type**, **2. Webhook setup**, then **Connect with Meta** (plus **Send test event** if you forward messages to your own server). Each step has a **Docs for this step** link. Pick how this number is used today: - **Existing number (Coexistence)** - the number is already active in the WhatsApp Business app. Avox connects alongside it: your team keeps using the app, and nothing already there is disrupted. - **New number (Bot only)** - the number isn't used in the WhatsApp Business app. It's dedicated to Avox, a simpler setup with no app to keep in sync. The selected card is highlighted. Click **Next**. Not sure which? See [Connection type](https://docs.theavoxai.com/getting-started#connection-type) and [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). Type a **Connection name** your team will recognise, for example "Acme Support EU" (up to 60 characters). Then choose how this number's messages are handled: - **Use Avox for everything** (**Recommended**) - Avox receives all of the number's WhatsApp events from Meta and sets up and checks the webhook for you. You don't need a server. It powers the shared team inbox, message templates, WhatsApp Flows, Automation, Avox AI (Beta), WhatsApp calls, Analytics, connection health and webhook logs. - **Also send messages to my own server** - everything above, plus Avox forwards each new incoming customer message to your `https://` endpoint, signed with a secret. Only an Admin of the Switchboard can choose this. Delivery statuses, calls and messages your team sends aren't forwarded. For forwarding, enter **Your endpoint URL**: `https://` on the standard port, reachable from the internet (redirects aren't followed). Click **Next**. Your choices are saved as a draft, so you can leave and resume any time. If you chose forwarding, Avox creates a signing secret when you click **Next** and shows it once under **Your signing secret**. Click the copy button, store it on your server, then click **I've saved it, continue**. After that it's masked for good. Avox signs every forwarded message with it in the `Avox-Signature` header. See [Webhooks](https://docs.theavoxai.com/avox-api/webhooks#receive-messages) for how to check the signature. On **Send a test event**, click **Send test event**. Avox posts a sample message marked `"test": true` to your endpoint, signed exactly like a real one. - A green "Delivered - your endpoint answered 200." means your server is ready. - A red result tells you what went wrong. You can continue anyway and fix your server later: forwarding still turns on, failed deliveries are retried, and you can send another test from the connection's page. Lost the secret? **Make a new secret** creates a new one; the old one stops working. Click **Next** once you've sent at least one test. **Review & connect with Meta** sums up your choice ("Avox handles everything" or "Avox, plus forwarding to your server"); **Change this** takes you back to edit it. Below it, **What to expect during setup** shows Meta's screens before you see them for real. The **Desktop** tab walks through the 9 screens in Meta's pop-up on your computer; the **Mobile** tab shows the 4 screens on your phone for a Coexistence number. Click a screenshot to view it larger. The status chip next to the title shows **Waiting**, **Connecting**, **Error** or **Connected** as your real signup goes along. Click the blue **Continue to Meta** button. By continuing, you confirm you're authorised to connect this WhatsApp Business Account and agree to Avox's Terms of Service. Meta's secure pop-up opens. Keep it open until it closes and sends you back on its own. In Meta's window (the order below is for an existing number; for a new number the pop-up completes the whole signup itself, with no step on your phone): 1. Click **Continue** on the overview. 2. Pick your number if it's listed as "Registered", or choose "Enter a new phone number" and type it in. 3. For an existing number, confirm the WhatsApp Business app profile Meta shows. If Meta asks for an SMS or voice code instead, stop and go back: that path moves the number away from the app. 4. Choose the Meta business portfolio that should own the account. Use an existing one when you have it. 5. For Coexistence, scan the QR code with WhatsApp Business on your phone (next step). 6. Confirm the WhatsApp Business account and pick your time zone. 7. Review what you share with Avox and click **Confirm**. 8. Wait while Meta connects the account, then click **Finish**. A payment method in Meta isn't needed to finish; you can add one later in WhatsApp Manager. In the WhatsApp Business app, open the verified "Connect to the Business Platform" message from Facebook Business and tap **Connect**. Read Meta's explanation of coexistence, then choose whether to share your chat history. That choice is made once and can't be changed later. You see Avox confirmed as the connected Business Platform; return to the pop-up to finish. Avox takes you back to **Connections**, where the number shows **Connected**. Every Admin gets a confirmation email. Chat history (if you shared it) and contacts sync in, and every new message appears in your shared [Inbox](https://docs.theavoxai.com/inbox). You can also connect straight from the welcome chat after signing up: answer that you want to connect now, and the chat walks you to Meta's window. Either way you need an active plan first. ### Your connection's page Click **Settings** on the number's card to open its own page. It shows: - **Meta identifiers** - the **WABA ID**, **Phone Number ID** and **Business ID**, plus your **Plan**. Handy when Meta support or a developer asks for them. - **Message forwarding** - turn forwarding to your own server on or off, send a test, and see recent deliveries. See [Webhook override](https://docs.theavoxai.com/connections/webhook-override). - **Outbound API keys** for sending from your own systems. See [API keys](https://docs.theavoxai.com/connections/api-keys). - **Calling** and **Identity-Key Check** switches, and the **WhatsApp username**. - **Open in Meta** - opens the number in Meta's WhatsApp Manager. ### Then - Set a WhatsApp username, where Meta makes usernames available - [Connections](https://docs.theavoxai.com/connections#your-whatsapp-username). - Invite your team - [Invites](https://docs.theavoxai.com/switchboard/invites). - Create your first [template](https://docs.theavoxai.com/walkthrough/create-template) and [automation](https://docs.theavoxai.com/walkthrough/create-automation). - Turn on [Calling](https://docs.theavoxai.com/connections/calling). - Create an [API key](https://docs.theavoxai.com/connections/api-keys) to send from your own systems. ### Tips - **Pick the right number type.** If the number is in the WhatsApp Business app today, choose **Existing number (Coexistence)** so your team keeps the app and its chats. - **Resuming a saved setup?** Your connection name and message handling are saved. The number type starts on **Existing number (Coexistence)** each time, so if you're connecting a new number, click **Back** to the **Number type** step and choose **New number (Bot only)** before you continue to Meta. - **Use an existing business portfolio** in Meta's window when you have one. - **Stay on one tab.** Finish Meta's pop-up in one go and let it close itself. - **Only an Admin** can set up forwarding, send test events and delete a saved setup. A Manager can resume an Admin's saved setup and continue to Meta. ### Common mistakes Every connection your plan allows is in use: "You've used every connection your plan allows." ([AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009)). Pause or delete a connection, or upgrade on [Plans](https://docs.theavoxai.com/plans). Your browser blocked the pop-up. Allow pop-ups for the Avox dashboard and click **Continue to Meta** again. That path moves the number off the WhatsApp Business app. Close the window, check you picked **Existing number (Coexistence)**, and when Meta lists your number with a "Registered" badge, select that one. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). A red panel shows the cause, a **Try this** list and **Retry connection** ([AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002)). Common causes: the pop-up was closed before it finished, you aren't an admin of that WhatsApp Business Account, or the coexistence prompt on your phone wasn't tapped. Every cause is on [Setup](https://docs.theavoxai.com/connections/setup#if-the-connection-doesnt-go-through). One number can be connected to only one Switchboard at a time. "That WhatsApp number is already connected to an Avox account. Disconnect it there first, then connect it again." ([AVX-3119](https://docs.theavoxai.com/error-codes/avx-3119)) means another account or Switchboard holds it: open **Connections** there and delete the number, then connect it again here. "That WhatsApp number is already connected to this Switchboard. Open Connections to see it." ([AVX-3120](https://docs.theavoxai.com/error-codes/avx-3120)) means it's already in your list; if it shows **Error**, delete it and connect it again. "We couldn't save that connection. Try again." ([AVX-3121](https://docs.theavoxai.com/error-codes/avx-3121)) is a temporary problem: try again. If Meta itself refuses the number, it may still be registered with another WhatsApp provider or on another site's WhatsApp account, so remove it from there first. Check the endpoint is `https://` on the standard port, reachable from the internet, answers with any `2xx` status, and doesn't redirect. You can continue and fix it later; failed deliveries are retried. See [Troubleshooting a connection](https://docs.theavoxai.com/connections#troubleshooting-a-connection). Nothing changes on your account or your number until Meta's window finishes, so it's always safe to try again. To throw away a saved setup, an Admin can click **Delete setup** in the wizard (or **Delete** on the **Setup in progress** card). Nothing on WhatsApp changes. ### Related --- ## Create a template URL: https://docs.theavoxai.com/walkthrough/create-template Section: Walkthroughs This walkthrough takes you through the **Create template** wizard, from a blank page to a template Meta has approved and you can send. Templates are the messages you can send any time, even outside WhatsApp's [24-hour window](https://docs.theavoxai.com/whatsapp/messaging-window). Every field and limit is covered in full on [Create](https://docs.theavoxai.com/templates/create). You need a WhatsApp number connected to Avox first: templates live in the WhatsApp Business Account behind it ([Connect WhatsApp](https://docs.theavoxai.com/walkthrough/connect-whatsapp)). Admins and Managers can create templates by default; an Admin can change that per member under [Permissions](https://docs.theavoxai.com/switchboard/members#permissions) ("Create and edit templates"). ### Pick the right category Meta reviews and prices templates by category, so choose the one that fits what the message really is: | Category | Use it for | Template types | | --- | --- | --- | | **Marketing** | Promotions, offers and product news. | **Custom message**, **Catalogue** | | **Utility** | Order updates, alerts and account notices. | **Custom message**, **Calling permission request** | | **Authentication** | One-time passcodes for login or verification. | **One-time passcode** | More detail and examples are on [Template categories](https://docs.theavoxai.com/whatsapp/template-categories). ### Step by step Click **Templates** in the sidebar, then **Create template** at the top of the page. The wizard has three steps, **Type**, **Name** and **Content**, with a live phone preview on the right that updates as you go. Once you've reached a step you can click its name to jump back. **Template library** next to it opens every ready-written template, and **Back to Templates** returns to the list at any time; your work is kept as a draft. At the top, **Start from a ready-made template** offers a shortcut: click **Browse templates**, pick one from the **Avox library** or **Meta's library** tab, and the wizard fills everything in and moves on to **Name**. See [Start from a ready-made template](#start-from-a-ready-made-template) below. To write your own, under **Or write your own: select a category**, click **Marketing**, **Utility** or **Authentication**. Hover a card to preview an example on the phone. Under **Pick a template type**, click the one you want. The wizard moves straight on to **Name**. - **Custom message** (Marketing or Utility) - fully your own header, body, footer and buttons. - **Catalogue** (Marketing) - links your product catalogue with a fixed "View catalog" button. - **Calling permission request** (Utility) - asks permission before a WhatsApp voice call. - For **Authentication**, the only type is **One-time passcode**: click **Continue** on its card. Meta writes the message itself; you configure how the code is delivered. Under **Name your template**, type a **Template name** using lowercase letters, numbers and underscores, for example `order_update` (up to 512 characters). Then pick the **Language** Meta reviews it in; the list is searchable. If the name is already used in that language, Avox says "A template with that name already exists in this language. Pick a different name." ([AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400)) and offers **Use ... instead** with a free name. Click **Next**. The name and language can't change after you submit, so choose them carefully. For a custom message: 1. **Type of variable** - **Number** for placeholders like `{{1}}`, or **Text (named)** for placeholders like `{{customer_name}}`. 2. **Header (optional)** - **None**, **Text** (up to 60 characters, with at most one variable), **Image**, **Video** or **Document**. For a media header, click **Upload sample image** (or video, or document): Meta reviews it against a real sample. 3. **Message body** - up to 1024 characters. Select text and use the style buttons (**Bold**, **Italic**, **Strikethrough**, **Monospace**), and click **Insert variable** to add a placeholder where the cursor is. With **Text (named)**, it inserts `{{variable_name}}` with the name selected, so you just type your own (lowercase letters, numbers and underscores). 4. **Example values - required by Meta for review** - fill in a realistic example for every placeholder, for example "Aditi" for `{{1}}`. These go to Meta's reviewers, never to customers. 5. **Footer (optional)** - a small grey line under the message, up to 60 characters. Click **Add** next to **Buttons · Optional**, choose each button's **Type** and fill in its fields: - **Custom** - a quick reply the customer taps. - **Visit website** - opens a **Website URL**. Its **URL type** is **Static** (the same link for everyone) or **Dynamic** (the link ends in a variable, such as a per-customer tracking link). - **Call on WhatsApp** and **Call Phone Number** - start a call. - **Copy offer code** - copies a coupon code. - **Share contact info** - asks the customer to share their contact details. It's always the template's only button. You can add up to 10 buttons. Each type's own limits are on [Buttons](https://docs.theavoxai.com/templates/create#buttons). A **Visit website** button must point to your own `https://` website, not the sample link ([AVX-3430](https://docs.theavoxai.com/error-codes/avx-3430)). Leave **Message validity period (optional)** on **Standard (10 minutes)**, or pick another period. If Meta can't deliver the message in that time, it isn't delivered and you aren't charged. See [Message validity period](https://docs.theavoxai.com/templates/create#message-validity-period). The phone on the right shows the message as your customer will see it, with your example values filled in. The bar above the form sums up the name, language, category and type; **Start over** there discards this draft and begins a new template. Click **Submit to Meta**. You see "Submitted to Meta for review" and return to the Templates page, where the template shows **Pending review** under **Your templates**. Meta reviews the template and Avox updates its status. Click **Refresh from Meta** to check straight away. Once it shows **Approved**, you can send it from the [Inbox](https://docs.theavoxai.com/inbox), an [automation](https://docs.theavoxai.com/automation/actions#send-a-template) or the API. If it shows **Rejected**, see [Approval](https://docs.theavoxai.com/templates/approval) for what to do next. ### Start from a ready-made template **Browse templates** on the **Type** step (or **Template library** on the Templates page) offers two libraries: **Avox library** - Avox's own templates for order updates, reminders, codes and offers. Search, filter by category, and click **Use this template**. The wizard fills in the name, language and content; change anything you like, then **Submit to Meta** for review as usual. Some are written in several languages: if you pick a language a template isn't written in, the wizard offers its own languages instead ([AVX-3401](https://docs.theavoxai.com/error-codes/avx-3401)). **Meta's library** - templates already verified by Meta, so they start working instantly with no review wait. They're Utility only and the text is fixed. On the **Name** step you can switch extras on, such as **Add a contact number** or **Add a track-package link**, then click **Start using**. You see "Ready to use - already verified by Meta". A ready-made template with an image, video or document header needs your own sample before you submit ([AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402)). Full details are on [Library](https://docs.theavoxai.com/templates/library). ### Authentication templates For **One-time passcode**, the **Content** step asks how the code is delivered: - **Code delivery setup** - **Zero-tap auto-fill** (sends the code automatically), **One-tap auto-fill** (sends when the customer taps the button) or **Copy code** (the customer copies and pastes it into your app). - **App setup - up to 5 apps** (auto-fill only) - click **Add app** and enter each Android app's package name and its 11-character signature hash. Zero-tap also needs **I accept Meta's zero-tap terms** switched on. - **Content** - Meta writes the message; switch on **Add security recommendation** and **Add expiry time for the code** (1 to 90 minutes) if you want them. ### Leaving and coming back Your progress saves as a draft as you go. Close the tab any time and resume from the **Drafts** section on the Templates page, which holds up to 10 drafts. If your internet connection drops, your template stays on this device and you can submit it once you're back online. ### Tips - **Write naturally.** A template that reads like a real message from your business, with the placeholders inside full sentences, is easier for Meta's reviewers to understand. - **Give realistic examples.** Example values that look like real data ("Order 10432", not "test") help the review. - **Match the category to the content.** A message with an offer in it is Marketing, even if it also confirms an order. - **Use your own links.** Every website button must go to a working `https://` page of yours. - **Check the limit.** The meter on the Templates page shows how many template slots your plan has used. See [Plans](https://docs.theavoxai.com/plans). ### Common mistakes Use only lowercase letters, numbers and underscores: `order_update`, not `Order Update`. If the name already exists in the same language, pick another or click **Use ... instead** ([AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400)). Under the message body you see "Add an example value for every variable" with the placeholder that has none ([AVX-3404](https://docs.theavoxai.com/error-codes/avx-3404)). Fill in each box under **Example values - required by Meta for review**. With **Number** variables, number them `{{1}}`, `{{2}}` in order with no gaps. A text header's variable needs its own example too. A red notice reads "A website button still uses a sample link." Replace it with your own working `https://` link before submitting ([AVX-3430](https://docs.theavoxai.com/error-codes/avx-3430)). An image, video or document header needs a real sample file. Click **Upload sample ...** under **Header** ([AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402)). You see "Meta couldn't accept that template. Check its wording and try again." ([AVX-3016](https://docs.theavoxai.com/error-codes/avx-3016)). Check the body for unclear placeholders, the category, and any links, then submit again. If it's **Rejected** after review, see [Approval](https://docs.theavoxai.com/templates/approval). Every template slot on your plan is in use ([AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014)). Click **Manage templates**, open a template you no longer need with **Manage**, then click **Delete template** to free a slot. ### Related --- ## Create a Flow URL: https://docs.theavoxai.com/walkthrough/create-flow Section: Walkthroughs This walkthrough takes you through the **Create Flow** wizard. A Flow is a structured form a customer fills out inside WhatsApp itself: a booking, a sign-up, a survey or a support request. Once it's published, you send it with an automation. Every part is covered in full on [Flows](https://docs.theavoxai.com/flows), and what Flows are on [WhatsApp Flows](https://docs.theavoxai.com/whatsapp/flows). You need a WhatsApp number connected to Avox first ([Connect WhatsApp](https://docs.theavoxai.com/walkthrough/connect-whatsapp)). Admins and Managers can create Flows by default; an Admin can change that per member under [Permissions](https://docs.theavoxai.com/switchboard/members#permissions) ("Create and edit Flows"). ### Choose your starting point **A premade Flow** is the fastest start. Avox has ready-made Flows in two groups: - **No endpoint needed** - Collect purchase interest, Get feedback, Send a survey, Customer support. - **Needs a live endpoint** - Flows that pull real-time data (available slots, a live quote) from your own server, such as Appointment booking or Account sign-in/sign-up. **Start from scratch** gives you a simple one-screen form to edit, under a category: **Sign up**, **Log in**, **Appointment booking**, **Lead generation**, **Shopping**, **Contact us**, **Customer support**, **Survey** or **Other**. You write the Flow in Meta's Flow JSON. If that's new to you, start from a premade Flow and change it. ### Step by step Click **Flows** in the sidebar, then **Create Flow** at the top of the page. Or click a card under **Start from a premade Flow** on the Flows page: it opens the wizard with that Flow filled in, at **Name**. The wizard has three steps, **Type**, **Name** and **Content**, with a live phone preview on the right. **Back to Flows** returns to the list at any time; your work is kept as a draft. Under **Start from scratch**, click a category, for example **Appointment booking**. Or under **Or start from a premade Flow**, click one listed under **No endpoint needed** or **Needs a live endpoint**. Hovering or clicking a card shows it on the phone; nothing is picked until you click **Continue**. Under **Name your Flow**, enter a **Flow name** (up to 100 characters). It's what you'll see in the Flows list and in Meta's. A premade Flow fills in its own title, which you can change. Under **Categories**, click one or more chips. Meta allows more than one category per Flow. Click **Next**. Edit the Flow in the **Flow content Editor (JSON)**. The phone preview reads your JSON as you type. Click **Run** (or press Ctrl + Enter, Cmd + Enter on a Mac) to refresh it on purpose; the preview pulses to confirm. For a Flow with several screens, use the **Previewing** menu above the phone to look at each one. Click **Errors** in the footer. It lists problems Avox spots as you type, numbered, starting with anything that isn't valid JSON. When there are problems, the button turns red and shows how many. Then click **Validate** above the editor to check the JSON with Meta too. Meta's findings join the same list. With nothing left to fix, it reads "No errors - Meta's happy with this JSON." Click **Actions** in the footer to see each action your Flow uses (such as `complete`), how many times, and what it does in plain English. A Flow that needs live data talks to your own server. Click **Endpoint** in the footer, switch on **This Flow needs a live endpoint**, and complete the five checklist steps ("Complete the steps below"): 1. **Set endpoint URI** - your server's `https://` address. 2. **Add phone number** - uses your connected number. 3. **Sign public key** - **Generate key pair** creates a key pair in your browser. Copy the private key straight away ("Save this private key now - it won't be shown again"), then click **Register public key with Meta**. 4. **Connect Meta app** - shows **Connected.** once it's linked. 5. **Health check** - **Run health check** checks your server answers. **Endpoint snippet** gives a working starting point for your server in **Next.js** or **Express**. See [Live endpoints](https://docs.theavoxai.com/flows#live-endpoints). Click **Create & publish**. You see "Flow created and published", the wizard returns to the Flows page, and the Flow shows as **Published** under **Your Flows**. Flows reach customers through an automation. Add a **Use Flows** action, pick your Flow, and set its button label (for example "Book now"). It costs 3 credits each time it's sent. See [Use Flows](https://docs.theavoxai.com/automation/actions#use-flows) and [Create an automation](https://docs.theavoxai.com/walkthrough/create-automation). ### The starter JSON A Flow started from scratch begins with one screen holding a form with a **Full name** field and a **Submit** button that completes the Flow: ```json { "version": "6.0", "screens": [ { "id": "MAIN", "title": "New Flow", "terminal": true, "success": true, "data": {}, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "Form", "name": "form", "children": [ { "type": "TextInput", "name": "full_name", "label": "Full name", "input-type": "text", "required": true }, { "type": "Footer", "label": "Submit", "on-click-action": { "name": "complete", "payload": {} } } ] } ] } } ] } ``` Add fields to the form's `children`, change the `title`, or add more screens. The phone preview shows each change. ### Leaving and coming back Your progress saves as a draft as you go. Resume it any time from the **Drafts** section on the Flows page, which holds up to 10 drafts. **Start over** in the summary bar at the top of the wizard discards the draft and begins a new Flow. If your internet connection drops, your Flow stays on this device and you can publish it once you're back online. ### Tips - **Start premade.** A premade Flow is already complete, working JSON, so you mostly change the wording. - **Validate before publishing.** **Run** only refreshes the preview on your screen; **Validate** is the real check with Meta. - **Keep the private key safe.** For an endpoint Flow, your server needs the private key, and it's shown only once. - **Check the preview on every screen.** Use **Previewing** to step through each screen before you publish. ### Common mistakes The avatar shows "Check the Flow's name, categories, and JSON." ([AVX-3032](https://docs.theavoxai.com/error-codes/avx-3032)). Make sure the Flow has a name, at least one category, valid JSON, and an endpoint URL if **This Flow needs a live endpoint** is on. You see "Meta rejected this Flow's JSON - check the errors below." ([AVX-3036](https://docs.theavoxai.com/error-codes/avx-3036)) or "Meta couldn't accept that Flow. Check its JSON and try again." ([AVX-3035](https://docs.theavoxai.com/error-codes/avx-3035)). Open **Errors**, fix each numbered item, click **Validate** again, then publish. **Run** is greyed out while the JSON doesn't parse. Open **Errors**: the first item says where the JSON breaks, often a missing comma or bracket. Work through the **Endpoint** checklist until it reads "Endpoint is set up" (5/5). The health check is a plain reachability check; your server still has to decrypt Meta's requests with the private key, as the **Endpoint snippet** shows. Every Flow slot on your plan is in use: "You've used every Flow your plan allows." ([AVX-3033](https://docs.theavoxai.com/error-codes/avx-3033)). The **Flows used** meter on the Flows page shows the count; see [Plans](https://docs.theavoxai.com/plans) for higher limits. ### Related --- ## Create an automation URL: https://docs.theavoxai.com/walkthrough/create-automation Section: Walkthroughs This walkthrough takes you through the **Create automation** wizard from the first click to a switched-on automation that answers customers by itself. It takes about two minutes. Every part is covered in more depth on [Automation](https://docs.theavoxai.com/automation), [Builder](https://docs.theavoxai.com/automation/builder), [Triggers](https://docs.theavoxai.com/automation/triggers) and [Actions](https://docs.theavoxai.com/automation/actions). You need a WhatsApp number connected to Avox ([Connect WhatsApp](https://docs.theavoxai.com/walkthrough/connect-whatsapp)) and an active plan. Admins and Managers can create automations by default; an Admin can change that per member under [Permissions](https://docs.theavoxai.com/switchboard/members#permissions) ("Create and edit automations"). ### Plan it first An automation is one **trigger** (what starts it) followed by a chain of **actions** (what it does). Decide both before you open the wizard: | You want to... | Pick this trigger | Then add, for example | | --- | --- | --- | | Answer a common question, like prices or opening hours | **Keyword match** | A **Text reply**, or **Send a document** with your price list | | Acknowledge every message straight away | **Any message** | A **Text reply**, plus a **Condition** for urgent words | | Tell people when you're back | **Outside business hours** | **Mark as read**, then a **Text reply** | | Check in when nobody has answered yet | **No-reply follow-up** | A **Text reply** and **Notify the team** | | Welcome first-time customers | **New contact** | A **Text reply** and **Tags & categories** | | Follow up after another automation tags someone | **Tag added** | **Send a template** or a **Text reply** | Short on time? Click one of the [premade automations](https://docs.theavoxai.com/automation#premade-automations) on the Automation page instead of **Create automation**. It fills in the trigger, name, keywords and actions for you and opens the wizard at **Name**, so you only review and adjust. ### Step by step Click **Automation** in the sidebar, then **Create automation** at the top of the page. On your very first visit you see a short introduction instead: click **Next** through it and then **Create your first automation**. The wizard has three steps, **Type**, **Name** and **Build**, shown at the top. Once you've reached a step you can click its name to jump back to it. **Docs for this step** opens the matching help, and **Back to Automation** returns to the list without losing anything. Click one of the six trigger cards: **Keyword match**, **Any message**, **Outside business hours**, **No-reply follow-up**, **New contact** or **Tag added**. Each card says when it fires, and on a wide screen the phone preview on the right plays an example message and reply for the trigger you've selected. The selected card gets a green border. Click **Continue** (it's greyed out until you pick one). Type an **Automation name**, up to 80 characters, for example "Store hours auto-reply". Only your team sees it. Then fill in what your trigger needs (see [What each trigger needs](#what-each-trigger-needs) below). For **Keyword match**, type a word or phrase in **Keywords** and press Enter (or type a comma) to turn it into a chip. Add as many as you like; click the x on a chip to remove it. Click **Continue** once the automation has a name, or **Back** to change the trigger. The **Build** step opens the canvas. The green box on the left is your trigger. The **Actions** panel on the right lists everything the automation can do. Click an action, for example **Text reply**, to add it at the end of the chain, or drag it onto the canvas to drop it exactly where you want. Then fill it in right inside its box: for a Text reply, click "Click to write the reply…" and type your message (up to 4096 characters). Keep adding actions. They run in the order of the chain, left to right, joined by lines. Each action in the panel shows its cost ("1 credit", "2 credits" or "Free"). - **Search actions…** finds an action by name or a related word ("pdf" finds **Send a document**). - **Most used** shows the action types your Switchboard uses most. - The groups (**Messages**, **Interactive**, **Media**, **Contact**, **Flow control**, **Team & integrations**) open and close with a click. - **Premade** adds the actions of a premade automation to this one. Hover a box to show **Duplicate action** and **Remove action** (x) in its corner. Most boxes also have a **Wait** field at the bottom ("Wait 0 seconds before this") for a short pause of up to 30 seconds; for longer pauses add a **Delay** step. To do different things for different messages, add **Condition (if / and / or)** from **Flow control**. In its amber box: 1. Choose what it checks. **Message contains keywords** is the usual choice. 2. Choose **AND** (every keyword must appear) or **OR** (any one is enough). 3. Add keywords as chips, for example `refund`, `cancel`. 4. Read the amber summary, which spells out what happens on a match and otherwise. On a match, the chain carries on to the next box. To send other messages somewhere else, drag from the handle on the bottom of the condition (the hint reads drag to set "else") to another action; the line is labelled **else**. Without an else line, the automation stops at the condition when it doesn't match. To remove a branch, click its line and then the small x, or click **Remove** in the condition's box. Click **Test this automation** (the flask) in the toolbar on the left of the canvas. Type a sample customer message, for example "Can I get a refund?", and click **Run test**. The panel lists each step and what happened (**ran**, **matched → continued**, **didn't match → branched** or **didn't match → stopped here**), and the boxes on that path light up. The test assumes the trigger already matched, sends nothing and costs no credits. Try a message that should match and one that shouldn't. Click **Validate & Create** in the bottom-right corner of the canvas (it's enabled once there's at least one action). Avox: 1. Checks every action. Anything missing stops here with a message, for example "Finish filling in every action (reply text, keywords, etc.) before creating." 2. Switches to the **Preview** tab and plays a sample message through your actions in a phone, with a checklist of each step ("Sent · 1 credit", "Matched - continuing" and so on). For a Keyword match automation, the sample includes your first keyword so it follows the real path. With keyword conditions, it also plays a message that matches them and one that doesn't ("Test 1 of 3: ..."), so the branches are tried too. 3. Creates the automation and opens its Manage page. **Back to builder** (or the **Action** tab) stops the preview without creating anything. A new automation starts switched off and shows **Inactive**. Flip the switch next to the badge on its Manage page (or in the **Status** column of **Your automations** on the Automation page) so it reads **Active**. From now on it runs for every matching message, day and night. To stop it, flip the switch off again. It stops firing on new messages straight away. That's it. Watch **Fires per day (last 30 days)**, **Credits spent** and **Recent activity** on the automation's Manage page to see it working. ### What each trigger needs These are the fields the **Name** step shows for each trigger: | Trigger | Fields on the Name step | Good to know | | --- | --- | --- | | **Keyword match** | **Keywords** - chips; press Enter or type a comma after each | Add at least one. Matching ignores upper and lower case and finds the keyword anywhere in the message, so `book` also matches "booking". | | **Any message** | Nothing else | Fires on every incoming message. Keep it as your broadest automation. | | **Outside business hours** | **Opens at**, **Closes at** (09:00 and 18:00 to start with) and **Timezone** | The timezone is detected from your device ("Detected from this device: ..."); pick another from the list if your business runs on a different one. Overnight hours work too. | | **No-reply follow-up** | **Minutes to wait before following up** (30 to start with) | 1 to 1380 minutes (23 hours), so the follow-up lands inside WhatsApp's [24-hour window](https://docs.theavoxai.com/whatsapp/messaging-window) ([AVX-3117](https://docs.theavoxai.com/error-codes/avx-3117)). | | **New contact** | Nothing else | Fires only on a contact's very first message to you. | | **Tag added** | **Tags to watch for** - chips, like keywords | Fires the moment one of these tags is applied by another automation's **Tags & categories** step. Add at least one tag. | The full rules, including which automation runs when several match and the one-hour cooldown per contact, are on [Triggers](https://docs.theavoxai.com/automation/triggers#when-an-automation-runs). ### Working on the canvas | To... | Do this | | --- | --- | | Move a box | Drag it. Its place in the chain doesn't change. | | Tidy everything into one line | Click **Auto-arrange** in the toolbar. | | Undo or redo | **Undo** (Ctrl + Z) and **Redo** (Ctrl + Shift + Z). | | Remove several boxes | Hold Shift, Ctrl or Cmd to select them, then press Backspace or Delete. | | See the whole automation | **Reset view** fits every box on screen; **Fullscreen** gives the canvas the whole screen; the minimap (top right) shows where you are. | | Change keywords later | For a Keyword match automation, edit the chips right on the green trigger box. | A box that reads **Not connected - drag any handle here to reconnect** won't run until something connects to it. One that reads **Only reached via a branch** runs only when a condition's else line leads to it. The full canvas guide is on [Builder](https://docs.theavoxai.com/automation/builder). ### What it costs Every message an automation sends spends [automation credits](https://docs.theavoxai.com/automation/credits) from your Switchboard's grant: 1 credit for most messages, 2 for **Quick reply buttons** and **Dropdown list**, 3 for **Use Flows**, and 1 for **Ask a question** (2 with answer buttons). Steps that don't send a WhatsApp message are free: **Mark as read**, **Tags & categories**, **Set contact field**, **Add a note**, **Condition**, **Wait for reply**, **Delay**, **Stop**, **Notify the team** and **Send to webhook**. Testing and the preview never spend credits. ### Leaving and coming back The wizard saves a draft a moment after each change. Close the tab or click **Back to Automation** and your work is kept: resume it from **Drafts** on the Automation page with **Edit**, and the wizard opens on the step you left. You can keep up to 10 drafts per Switchboard ([AVX-3073](https://docs.theavoxai.com/error-codes/avx-3073)); the draft is removed once the automation is created. If your internet connection drops, your changes stay on this device and are saved as soon as you're back online. ### Change it later Click **Edit** on the automation (on its Manage page or in **Your automations**) to open the same canvas. Changes save automatically a moment after you stop editing, or click **Validate & Save** to run the full checks and the preview first. The trigger type is fixed once an automation is created; to use a different trigger, create a new automation. ### Tips - **Start small.** One trigger and one Text reply is a complete automation. Add branches once it's working. - **Make keywords specific.** A short keyword also matches inside longer words. Use a phrase such as "opening hours" when "open" would catch too much. - **Order matters.** Avox runs only the first matching automation, oldest first, so create specific Keyword match automations before a broad **Any message** one. See [Triggers](https://docs.theavoxai.com/automation/triggers#when-an-automation-runs). - **Templates need approval.** **Send a template** lists only Approved templates, and **Use Flows** only published Flows. Get those ready first: [Create a template](https://docs.theavoxai.com/walkthrough/create-template), [Create a Flow](https://docs.theavoxai.com/walkthrough/create-flow). - **Test both paths.** Run one test with a message that should match a condition and one that shouldn't, before switching it on. - **Replace placeholders.** Premade automations contain sample text in brackets and `https://example.com/...` links. Change them before you switch the automation on. ### Common mistakes An action box is still empty or half filled in: a reply with no text, a condition with no keywords, a Flow or template not picked, or a media step without a link. Look for the box with the empty field, fill it in, and click **Validate & Create** again. Avox checks a few things first: the automation needs at least one action ([AVX-3072](https://docs.theavoxai.com/error-codes/avx-3072)), every Flow it sends must still be published ([AVX-3078](https://docs.theavoxai.com/error-codes/avx-3078)), and every template it sends must still be approved. While the whole Switchboard is paused, nothing can be switched on ([AVX-3410](https://docs.theavoxai.com/error-codes/avx-3410)); resume it in **Settings** first. Check that it shows **Active**, that a broader automation (such as **Any message**) isn't older and answering first, and that it hasn't already run for that contact in the last hour. It also needs credits left this period ([AVX-3076](https://docs.theavoxai.com/error-codes/avx-3076)) and a connected number. All the reasons are on [Triggers](https://docs.theavoxai.com/automation/triggers#when-nothing-runs). Two conditions with exactly the same keywords and the same AND/OR, without a branch between them, are rejected as duplicates ([AVX-3077](https://docs.theavoxai.com/error-codes/avx-3077)). Remove one, or change its keywords. An action can be the target of only one branch, and an else line can't point at the box the condition already continues to on a match. Pick a different action, or use **Remove connection** on the target box to free it up for the else line. **Minutes to wait before following up** must be a whole number from 1 to 1380 ([AVX-3117](https://docs.theavoxai.com/error-codes/avx-3117)). WhatsApp only allows a free-form reply within 24 hours of the customer's last message, so a longer wait could never send. Every automation slot on your plan is in use ([AVX-3068](https://docs.theavoxai.com/error-codes/avx-3068)). Delete an automation you no longer need from **Your automations**, or see [Plans](https://docs.theavoxai.com/plans) for higher limits. ### Related --- ## Overview URL: https://docs.theavoxai.com/overview Section: Workspace Overview is the first page you see when you sign in to your dashboard. It answers "how are things going?" for the whole Switchboard at once: message activity, your Flows and templates, your connected number, and anything that needs your attention right now. Everyone in the Switchboard can open Overview - **Admins** and **Managers** see the same page. It opens even before you connect a WhatsApp number, so it's also where you land straight after sign-up. Nothing on it changes your account; it is a read-only summary with links to the pages where you make changes. ### The page header The header shows the page title, **Overview**, and the line "Your account at a glance". Next to the title sits the [Avox Avatar](https://docs.theavoxai.com/avox-avatar). Hover the header, a stat card, a range button, or a **View more** link and the avatar changes mood and shows a short speech bubble about what you are pointing at. On the right of the header you'll find: - **The range selector** - `7d`, `30d`, and `90d`. See [Date range](#date-range). - **Docs** - opens this page in a new tab. ### Account alerts When something account-wide needs attention, a banner appears above everything else on the page. Every alert has its own action link on the right. Red banners are critical; amber banners are warnings. All alerts that apply show at once: billing first, then your WhatsApp number. | Banner | Severity | Action link | | --- | --- | --- | | Payment is overdue for your plan - every connection will be paused (no sending, no API) if it isn't resolved before the subscription is canceled. | Critical | **Review billing** | | This Switchboard's subscription was canceled - every connection is paused (no sending, no API) until payment resumes. | Critical | **Review billing** | | This Switchboard is paused due to a payment issue. | Critical | **Review billing** | | No active plan - subscribe to unlock connections, templates, and Flows. | Warning | **See plans** | | Your WhatsApp number has a connection error. | Critical | **Review connection** | | Your WhatsApp number is disconnected. | Warning | **Review connection** | | Your WhatsApp number is paused due to a billing issue. | Critical | **Review billing** | | Your WhatsApp number is paused. | Warning | **Review connection** | When a connection has a name, the banner includes it in quotes, for example: Your WhatsApp number "Support EU" is disconnected. **Review billing** opens your subscription in [Billing](https://docs.theavoxai.com/billing); **See plans** opens [Billing](https://docs.theavoxai.com/billing) so you can pick a plan; **Review connection** opens that connection's own page in [Connections](https://docs.theavoxai.com/connections). The same alerts also show in the notification bell at the top of every dashboard page, and the same banner appears on [Health](https://docs.theavoxai.com/health). Alerts are only for account-wide problems. A single rejected template or a blocked Flow shows on its own page ([Templates](https://docs.theavoxai.com/templates), [Flows](https://docs.theavoxai.com/flows)) instead. ### The header on every page #### Notifications The bell at the top of every page opens **Notifications** (a panel from the bottom on a phone): - **Needs attention** comes first: ongoing account alerts like the ones above, until they're sorted. - Then everything else by day, newest first (**Today**, **Yesterday**, then dates): new orders, [chat signals](https://docs.theavoxai.com/chat-signals), support replies, payment and connection alerts, and notices from the Avox team. - **Filter chips** (**All**, **Orders**, **Chats**, **Billing**, **System**) show when there's more than one kind to tell apart, and **Unread** marks what you haven't seen. - Each row opens the page where it's dealt with. Some have an action on the row itself, like **View order**, **Open chat** or **Reconnect**. **Mark all read** clears the unread marks. The bell belongs to the Switchboard you're viewing. What waits in your other Switchboards shows on the Switchboard switcher instead: see [Alerts from your other Switchboards](https://docs.theavoxai.com/switchboard#alerts-from-your-other-switchboards). Choose which kinds show in your bell in [Personalisation](https://docs.theavoxai.com/settings/personalisation#notifications). #### What's new When Avox ships something new, a sparkle button shows in the header for a short while (usually a day), with a dot until you open it. One update opens it straight away; several open a short list with **See all updates**, and you can step through them. A big update can also show once as a pop-up when you open the dashboard, with a button to try it. Everything ever shipped is on the docs [changelog](https://docs.theavoxai.com/changelog). #### Turned-off pages If Avox has turned a page off for your account and you open it, you land on Overview with an amber note above the page, for example "The Calls page has been turned off for your account. Contact support if you need it." **Contact support** opens [Support](https://docs.theavoxai.com/support). Click the **X** to dismiss the note. ### Stat cards Four cards sit at the top of the page: | Card | What it counts | | --- | --- | | **Messages this month** | Every message sent or received on your Switchboard since the first day of the current month (UTC). | | **Open conversations** | How many different contacts you exchanged at least one message with in the last 7 days. | | **Contacts** | Your total number of contacts. See [Contacts](https://docs.theavoxai.com/contacts). | | **Est. Meta cost** | The estimated WhatsApp usage cost for the most recent month, shown with its currency (for example `USD 12.40`). It shows `-` when there's nothing to estimate yet. | **Est. Meta cost** is an estimate, not an invoice. Meta bills your WhatsApp Business Account directly for the messages it charges for. Your Avox subscription is billed separately - see [Billing](https://docs.theavoxai.com/billing) and [Pricing](https://docs.theavoxai.com/whatsapp-platform). The stat cards always use their own fixed windows (this month, and the last 7 days). They do not change when you pick a different date range. ### Date range The `7d`, `30d`, and `90d` buttons choose the window for the charts lower on the page, the sparkline inside **Latest inbox**, the **Avg. response** tile, and the Automation card. Overview opens on `7d`. Your choice is part of the page address (`?days=30`), so you can bookmark or share a specific range. These parts keep their own fixed windows and ignore the selector: - The four stat cards (this month, and the last 7 days). - **Responses (30d)** on the Flows card and the Sent / Delivered / Read figures on the Templates card (always the last 30 days). ### The bento grid Below the stat cards, three tall cards share a grid: **Latest inbox** on the left, **Flows** and **Account details** stacked in the middle, and **Templates** on the right. On a phone they stack in a single column. Each card has a **View more** link and an info icon you can hover for a one-line explanation. #### Latest inbox A live snapshot of your shared inbox: - **Four quick tiles** - **Messages this month**, **Open conversations**, **Contacts**, and **Avg. response** (in minutes, averaged over the selected range). - **A small sparkline** of messages sent per day across the selected range. - **Your 5 most recently active conversations** - contact name (or "Unknown contact"), a preview of the latest message, and its date. Clicking one opens the [Inbox](https://docs.theavoxai.com/inbox). With no messages yet, the list reads "No conversations yet." **View more** opens the Inbox. #### Flows The total number of Flows in this Switchboard, with a coloured bar and legend that break the total down by status (for example published and draft). A failure status such as blocked shows in red. Below that, **Responses (30d)** counts the Flow responses customers submitted in the last 30 days. With no Flows yet, the card reads "None yet."; with no responses, "No responses yet." **View more** opens [Flows](https://docs.theavoxai.com/flows). #### Account details A read-only summary of your connected WhatsApp number: - **WABA ID** - your WhatsApp Business Account ID. - **Phone Number ID** - Meta's ID for the connected number. - **Business ID** - the Meta business portfolio that owns the account. - **Webhook URL** - the webhook address saved for the connection, or "Not configured". If no number is connected yet, the card reads "No WhatsApp number connected yet." **View more** opens the connection's own page (or [Connections](https://docs.theavoxai.com/connections) when there's no connection), where you change these settings. #### Templates The top of the card names one template at a time. When you have more than one, a picker lets you choose which one to look at; it starts on the template you edited most recently. For that template you see: - Its status badge (the same badge as on [Templates](https://docs.theavoxai.com/templates)), such as **Approved** or **Pending review**. - Its category, language code, and when it was last edited (for example "Edited 3d ago"). - **Create template** - opens the template wizard. See [Create a template](https://docs.theavoxai.com/templates/create). - **Manage** - opens that template's own page. Below the picker, the card shows your total number of templates with a status breakdown bar (approved, pending, rejected, and so on), then three rings for **Sent**, **Delivered**, and **Read**. The rings count every template message your Switchboard sent in the last 30 days, across all templates - picking a different template in the picker changes the name and status shown, not these totals. With no template messages yet, the card reads "No template messages yet - connect WhatsApp to see activity here." **View more** opens [Templates](https://docs.theavoxai.com/templates). ### Charts Four charts follow the selected date range. Each has an info icon with a short explanation. | Chart | What it shows | | --- | --- | | **Message volume** | Messages sent and received per day. Spans the full width of the page. | | **Delivery rate** | For each day, the percentage of messages you sent that reached the delivered or read status. A day with nothing sent shows 0%. | | **Avg. response time** | For each day, the average number of minutes between a customer's message and your next reply to that customer. | | **Outbound status** | A donut chart of every message you sent in the range, grouped by its latest status: Sent, Delivered, Read, or Failed. | Days are calendar days in UTC. A day with no activity shows as zero rather than a gap, so the charts keep the same shape whatever range you choose. **Avg. response time** is calculated by Avox, not reported by Meta. For each contact, Avox pairs a customer message with the next reply you sent after it and measures the gap. It's a reliable trend signal for your team's speed, not an official WhatsApp metric. The same calculation drives [Analytics](https://docs.theavoxai.com/analytics). ### Automation card Once your Switchboard has at least one automation, an **Automation** card appears next to **Outbound status**: - **The header** shows how many automations are active, for example `2 active`. - **By status** - a donut of your automations by status: Active, Paused, and Draft. It always covers every automation. - **Fires over time** - a bar chart of how many times your automations fired per day in the selected range, under a total such as "14 fires, last 30d". With fewer than 3 fires it reads "Not enough activity yet." instead of drawing a chart. - **The picker** - starts on **All automations**. Pick one automation to see only its fires; the status donut stays the same. See [Automation](https://docs.theavoxai.com/automation) and [Credits](https://docs.theavoxai.com/automation/credits). ### Before your first message A brand-new Switchboard shows real zeros, never sample numbers. Every chart keeps its layout and shows "No messages yet - connect WhatsApp to see activity here" until real messages arrive. While your number isn't connected, a **Get started** card at the bottom of the page reads "Head to Connect WhatsApp to link your number and start receiving messages here." To connect, open **Connections** in the sidebar - the setup wizard starts there. See [Getting started](https://docs.theavoxai.com/getting-started) for every step. ### Related pages - [Analytics](https://docs.theavoxai.com/analytics) - the same message data as trends, with a delivery funnel. - [Health](https://docs.theavoxai.com/health) - connection status and a live check from Meta. - [Inbox](https://docs.theavoxai.com/inbox) - the conversations behind these numbers. --- ## Inbox URL: https://docs.theavoxai.com/inbox Section: Workspace The Inbox is where your whole team reads and answers WhatsApp conversations. Every conversation on your connected number lands here, visible to everyone in the Switchboard - not just whoever's phone it reached. ### Who can use the Inbox | Action | Admin | Manager | | --- | --- | --- | | Read conversations | Yes | Yes | | Reply to a customer | Yes | Yes | | Add or remove a contact's tags and categories | Yes | Yes | | Ask to call (with the **See calls** permission too) | Yes | Yes | The Inbox needs a WhatsApp connection. Until your Switchboard has one, the **Inbox** item in the sidebar (under **Messaging**) shows a lock, and hovering it shows "Inbox is locked" with "This feature needs a WhatsApp connection first." ([AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). Opening the Inbox address takes you to [Connections](https://docs.theavoxai.com/connections). See [Members and roles](https://docs.theavoxai.com/switchboard/members) for what each role can do across the dashboard. ### What shows up in the Inbox Because Avox connects with [Coexistence](https://docs.theavoxai.com/coexistence-explained), one conversation holds everything that happened with that customer, wherever it happened: - Messages your customers send to your number. - Replies your team sends from this Inbox. - Replies your [automations](https://docs.theavoxai.com/automation) send. - Messages your team sends from the WhatsApp Business app on their phone (see [Coexistence sync](https://docs.theavoxai.com/connections/coexistence)). - Chat history imported when you connected, if you chose to share it. Imported messages keep the time they were really sent, so they sit in the right place in each chat. Text messages show their full text. A button or list reply shows the option the customer picked. Other message types (photos, voice notes, documents, locations and so on) show as a short label such as `[image]` or `[audio]`, so you can see that something arrived and when. Completed WhatsApp Flow forms are saved as Flow responses rather than chat bubbles - see [Flows](https://docs.theavoxai.com/flows). ### The page layout The header reads "Every conversation - from the app and the API - in one place." and has a **Docs** button that opens this page. Under it, a small status line next to the [Avox Avatar](https://docs.theavoxai.com/avox-avatar) reads **Live** while your number is connected, or "Connect a WhatsApp number to send and receive messages." when it isn't. The rest of the page has two parts: the conversation list on the left and the open conversation on the right. On a phone they stack. ### The conversation list One row per contact, most recently active first. The list shows your 30 most recently active conversations. Each row shows: - **The contact's avatar** - the same generated avatar they have everywhere in Avox. - **The contact's name** - the name saved in [Contacts](https://docs.theavoxai.com/contacts), or "Unknown contact". - **Their categories and tags** (up to 2, then "+3") - see [Tags and categories](https://docs.theavoxai.com/contacts#tags-and-categories). - **Chat signals** (up to 2, then "+1") - small labels like **Waiting for a person** or **Asked for a human** that show what needs attention. See [Chat signals](#chat-signals). - **A green dot** when the customer's latest message hasn't been read yet. Once you reply, or open the conversation, the dot goes away at the next refresh. - **A preview** of the latest message. - **How long ago** that message arrived ("just now", "5m ago", "3h ago", or a date). New messages and new conversations appear on their own, usually within a second, without reloading the page. A brand-new conversation lands at the top of the list with a soft highlight for a moment; the chat you have open stays open. If the live connection drops (a flaky network, for example), the list checks again every few seconds until it's back. #### Search conversations Type in **Search conversations, tags or categories** at the top of the list. The list narrows to conversations whose contact name, latest-message preview, or one of their tags or categories contains what you typed. Clear the box to see every conversation again. If nothing matches, the list reads "No conversations match that search." Looking for a customer you haven't talked to in a while? Find them on [Contacts](https://docs.theavoxai.com/contacts) and click **Message** - their conversation opens here straight away. Before your first message, the list reads "No conversations yet. Once your number is connected, incoming chats will list here." #### Chat signals [Chat signals](https://docs.theavoxai.com/chat-signals) are small coloured labels on a chat that show what needs the team: a customer **Waiting for a person**, someone who **Asked for a human**, a **New enquiry**, a **Hot chat**, a chat **Going cold**, or one of your own signals. They follow only the words and times set in **Settings > Chat signals**, and never guess what a message means. - **Filter by signal.** Under the search box, the filter starts on **All chats** and lists every switched-on signal with how many chats have it right now. Pick one to see only those chats. The **Chat signals** card on [Overview](https://docs.theavoxai.com/overview) opens the Inbox already filtered. - **In an open chat**, all its signals show at the top. Most clear by themselves when someone on the team replies; press the small button on a badge to clear one by hand (needs **Reply in the Inbox**). - **Seeing them** needs the **See chat signals** permission. Signals set to tell people also add a note to their bell. ### Reading a conversation Click a conversation to open it. Until you pick one, the right side reads "Select a conversation to view it." You can also open a conversation directly: the **Message** button on [Contacts](https://docs.theavoxai.com/contacts) and **Open in Inbox** on a contact's profile bring you here with that conversation already open. **Open chat** links elsewhere in Avox open the chat on the right WhatsApp number when you have more than one: an order, a call, a smart link's chats, a broadcast's recipients and an ad's chats all open the person's chat on the number that record belongs to, and a contact's timeline can jump to the exact message. The open conversation shows: - **The chat header**: the contact's avatar and name (with the **Edit contacts** permission, the pencil next to it renames the chat, see [Rename a chat](#rename-a-chat)), then a line with their flag and their local time ("3:42 PM their time", worked out from the number's country; "About" when the country has several time zones) and the reply window ("Reply window: 5h 12m left", amber in the last 2 hours, or "Reply window closed"). Buttons on the right: - **Add category** (folder icon) and **Add tag** (tag icon), with the **Edit contacts** permission - add one (type a new name to create it, and pick a colour). On a phone they show as icons only. - **Profile** - slides open a side panel with the contact's key details: number, country, location, gender and age, categories and tags, message and call counts, and when they first appeared. **Open full profile** goes to their [profile](https://docs.theavoxai.com/contacts#the-customer-profile). On a phone the panel covers the chat; close it with the x. When the chat came from a [smart link](https://docs.theavoxai.com/chat-links), the panel also shows which link, how sure Avox is (**Sure** or **Possible match** with a percentage), the clues behind it and the visit's broad details (phone or computer, system, country, scanned or tapped). With the **Create and edit smart links** permission you can **Confirm** or **Dismiss** a possible match there (see [Sure and possible matches](https://docs.theavoxai.com/chat-links#sure-and-possible-matches)). - **The call button**, with the **See calls** permission: **Call** when the customer allows your calls, **Ask to call** until they do, or a short reason when neither works right now (see [Ask to call](#ask-to-call)). On a number that also uses the WhatsApp Business app it's a phone icon that says to call from the app. - **Categories and tags** under the name. With the **Edit contacts** permission, the small x on a tag or category removes it. The change shows in the conversation list straight away. - **Message bubbles** for the 50 most recent messages, oldest at the top. Each bubble shows how long ago it was sent. Scroll up for older messages: they load on their own when you reach the top (or click **Load older messages**), and the conversation stays where you were reading. - **New messages as they arrive**: usually within a second. When you're at (or near) the bottom, the chat glides down to the new message (it jumps instead with reduced motion turned on). - **Go to the latest message**: once you've scrolled up more than a screen, a round button with a down arrow shows at the bottom right of the messages. New messages that arrive while you're up there don't pull you down: the button shows and counts them ("3 new"). Click it, or press End with the messages selected, to go back to the newest message. - **Who else is replying**: when someone else on your team is typing in the same chat, the header says so ("Asha is typing..."), so two people don't answer at once. Only your team sees this, and nothing is saved. A conversation with nothing in it yet reads "No messages yet." #### Links and link previews Links in every message open in a new tab: in text messages, captions and replies, from your customers, your team, your automations and imported history. Avox makes a link of text that starts with `http://` or `https://`, starts with `www.`, or looks like a web address with a common ending (such as `example.com/menu`), never part of an email address. A very long link is shortened in the middle; point at it to see all of it. Text between backticks (WhatsApp's code style) stays as typed. The first link in a text message gets a small preview card under it, like WhatsApp: the site's icon and name, the page title, a short description and its picture when it has one. The card loads when the message scrolls into view, with a grey placeholder for a moment; a link with nothing to show gets no card. Avox's own server fetches the page, its picture and its icon, never your browser, so the website doesn't see who looked at the chat. Avox only fetches ordinary public web pages and skips links that look like one-time links (sign-in, password reset, confirm or unsubscribe links), so viewing a chat never uses one up. Each link is fetched about once a day at most. #### Phone numbers in messages Phone numbers in a message are underlined with dots. Click one for a small menu: - **Copy number** - copies it in international form (like `+919876543210`). - **Message on WhatsApp** - opens the chat you already have with that number. With no chat yet, Avox says so ([AVX-4173](https://docs.theavoxai.com/error-codes/avx-4173)): WhatsApp needs an approved [template](https://docs.theavoxai.com/templates) to start a chat with someone who hasn't messaged you. With the **Edit contacts** permission, **Add contact and open chat** adds the number and opens its empty chat (the reply box opens once they write to you); **Open in WhatsApp on this device** opens it in your own WhatsApp. - **Call from this device** - calls it with your device's phone app. Avox recognises numbers written with a `+` and country code anywhere, and numbers without one when they match the customer's own country (so `98765 43210` counts in a chat with an Indian number). It leaves alone anything shorter than 8 digits, dates and times, and numbers right after words like "order", "invoice", "ref", "OTP", "code" or "#". #### New message alerts You don't need the Inbox open to hear about new messages. On any page of the dashboard: - **A sound** when a customer writes, with the sound, volume and quiet hours you chose in [Personalisation, Sounds](https://docs.theavoxai.com/settings/personalisation#sounds). A burst of messages plays one sound, not one per message. - **A pop-up under the search bar** (at the top of the page on a phone) with who wrote and the first line of the message. Click it to open the chat; it closes by itself after a few seconds (pointing at it keeps it open), or swipe it away or press its x. Up to three show at once. - **One summary when many arrive together**: more than three at once become a single pop-up, like "5 new messages from 3 chats", with the latest faces and names. Point at it (or tap it) to open a short list: each chat's messages in one row with a count, each call in its own row, then **Open Inbox** and **Dismiss all**. - **A count on Inbox in the sidebar**, like **+3**, for messages since you last opened the Inbox (a dot when the sidebar is collapsed). Opening the Inbox clears it. The count is yours alone and kept for each Switchboard. - **The count in your browser tab**, like "(3) Inbox", when that's turned on. There's never an alert for messages you or your team send, chats brought in from your WhatsApp history, or the chat you have open. Only people who can see the Inbox get them. Turn the pop-ups and the tab count on or off in [Personalisation, New messages and calls](https://docs.theavoxai.com/settings/personalisation#new-messages-and-calls). #### Delivery ticks Replies sent from this Inbox and by your automations sit on the right with WhatsApp-style ticks. Hover or focus a tick to see what it means: | Tick | Meaning | | --- | --- | | Clock | Sending: waiting for WhatsApp to accept it. | | One grey tick | Sent: WhatsApp accepted it, not on their phone yet. | | Two grey ticks | Delivered: on their phone, not read yet. | | Two blue ticks | Read: they opened it. | | Red mark | Not delivered: WhatsApp couldn't deliver it. | Ticks update on their own as WhatsApp reports them, usually within a second, while the conversation is open and the tab is visible, without reloading. #### Ask to call The call button in the chat header shows where you stand with the customer before anyone tries. You need the **See calls** permission to see it. It works on the number the chat is on. | Situation | The button | | --- | --- | | The customer allows your calls | **Call** (green). Pressing it starts the call in the [call panel](https://docs.theavoxai.com/calls#during-the-call). When your last calls to them weren't answered, Avox warns you first and the button reads **Call anyway**. | | They haven't allowed your calls yet (or their permission ended, they declined, or WhatsApp stopped it after 4 unanswered calls) | **Ask to call**. It opens a strip under the header to send the request. | | You asked and they haven't answered | **Asked, waiting**. | | Anything else (WhatsApp's request or call limits, your number's country, calling off, your plan, **Settings > Calls**, your own permissions) | The button stays readable; point at it for the reason and, for limits, when you can try again. | | The number also uses the WhatsApp Business app | A phone icon: "Call from the WhatsApp Business app on your phone". | **Ask to call** sends the customer WhatsApp's prompt to allow your calls. Inside the 24-hour reply window it's a normal message you can change first (it starts "Hi! Could we give you a quick call here on WhatsApp? Tap Allow if that's OK."), then **Send request**. WhatsApp's own rules: - At most 1 request a day and 2 a week to each customer, counting requests from the Inbox, the [Calls](https://docs.theavoxai.com/calls) page and automations together. A call that connects with that customer resets the count. Over the limit, the request is refused with "WhatsApp allows 1 call request a day and 2 a week to each customer." ([AVX-4170](https://docs.theavoxai.com/error-codes/avx-4170)). - After 24 hours, WhatsApp only allows asking with an approved template that has a call permission request; the strip links to [Templates](https://docs.theavoxai.com/templates) ([AVX-5142](https://docs.theavoxai.com/error-codes/avx-5142)). - A customer who chose to always allow your calls needs no request ([AVX-4171](https://docs.theavoxai.com/error-codes/avx-4171)). Asking to call sends a WhatsApp message, so it needs **Reply in the Inbox** and a plan that still allows replies (see [When your plan stops](#when-your-plan-stops)); pointing at it says why. Calls also show in the chat, in time order between messages. See [Calls](https://docs.theavoxai.com/calls) for everything about calling. Opening a conversation marks the customer's unread messages as read on WhatsApp, so the customer sees the blue ticks - the same as opening the chat on your phone. Avox does this for up to the 20 most recent unread messages in that conversation. ### Replying Click the customer in the conversation list. Write in the box at the bottom ("Write a message…"). A reply can be up to 4,096 characters. Press **Shift + Enter** for a new line. Press **Enter** or click the send button. The reply appears in the conversation straight away with the status `sent`, and the [Avox Avatar](https://docs.theavoxai.com/avox-avatar) says "Sent." When your reply has a link starting with `http://` or `https://`, a **Link preview** switch shows under the reply box, on by default: WhatsApp then shows the customer a preview of the first link, as it does when you send a link from your phone. Turn it off to send that one message with the link as plain text; it's on again for your next message. While you type, the customer sees "typing..." in WhatsApp, the same as when you type on your phone (only inside the 24-hour reply window; it also marks their latest message as read). It goes away when your reply arrives or after about 25 seconds. WhatsApp only works one way here: it shows the customer that you're typing, but it never tells businesses when a customer is typing. So the Inbox can't show "typing..." for customers. After you send, WhatsApp reports the delivery and read status back to Avox, and the bubble's [ticks](#delivery-ticks) update on their own. Replies count toward your stats on [Overview](https://docs.theavoxai.com/overview) and [Analytics](https://docs.theavoxai.com/analytics). #### Text from Send in a chat **Send in a chat** on a [smart link's](https://docs.theavoxai.com/chat-links#send-in-a-chat) **Share** tab opens a conversation here with the link's text already in the reply box, added under anything you'd already started typing. Check it, change it if you like, and press **Enter** or the send button. Nothing is sent until you do, and the 24-hour reply window below still applies. #### The 24-hour reply window WhatsApp lets you send a free-form reply only within 24 hours of the customer's last message to you. Avox checks this when you open a conversation, and again on the server before every send. The chat header counts down the time left, and the reply box turns off when it reaches zero: - **Inside the window** - the customer's latest message to you arrived less than 24 hours ago. The reply box is open. - **Outside the window** - the customer hasn't messaged you in the last 24 hours, or has never messaged you. The reply box is turned off, its placeholder reads "Composer disabled - 24-hour window closed", and an amber note above it reads "It's been over 24 hours since this contact last messaged you - send a template to reopen the conversation." Only the customer's own messages open the window. Your replies, automation replies, and messages your team sends from the phone app don't extend it. To restart a conversation outside the window, press **Send a template** above the reply box (see [Send a template](#send-a-template)). When the customer replies, the window opens again. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window) for how WhatsApp defines it. #### Send a template You can send an approved [template](https://docs.theavoxai.com/templates) from any chat, whether the 24-hour window is open or closed (a template is what reopens a closed one). Press the template button beside the reply box, or **Send a template** in the closed-window note. The panel opens inside the reply area, not as a pop-up. The panel lists the approved templates of the chat's WhatsApp number, with a short preview of each. Search by name, or narrow the list with the **Marketing**, **Utility** and **Authentication** chips. Each variable has its own box. Avox fills a box from the contact only when the value clearly fits (a first name after "Hi", or a variable named after a contact field); **Fill from the contact** does it by hand. A photo, video or document header takes a file from your computer or an `https://` link. The **Preview** shows the message as the customer will see it, and **Still to fill in** lists what's missing. Press **Send template**. The message shows in the chat with the values you sent, and it's added to the template's [send log](https://docs.theavoxai.com/templates/send-log). Esc closes the panel. Good to know: - **WhatsApp charges for each template you send.** Avox doesn't use automation credits for it. When the customer replies, the chat opens again for 24 hours. - **Marketing templates aren't sent to people who stopped them.** When the customer stopped marketing messages in WhatsApp, or has the [Unsubscribed tag](https://docs.theavoxai.com/contacts/unsubscribe), Marketing templates show "They stopped marketing messages." and can't be picked. Utility templates still can ([AVX-4116](https://docs.theavoxai.com/error-codes/avx-4116)). - **Some kinds are sent elsewhere.** Carousels, multi-product templates and call permission requests can't be sent from a chat: use a [broadcast](https://docs.theavoxai.com/broadcasts) or an [automation](https://docs.theavoxai.com/automation), or **Ask to call** for calls ([AVX-4118](https://docs.theavoxai.com/error-codes/avx-4118)). - **It follows the same rules as a reply**: the **Reply in the Inbox** permission, a plan that still allows replies, and a connected number. - With no approved templates on the number yet, the panel says so and links to making one. ### Rename a chat Give a customer the name your team knows them by. With the **Edit contacts** permission, press the pencil next to their name in the chat header (or in the **Profile** panel), type the name and press **Save**. - The new name shows straight away in the conversation list, the chat header, the profile panel and new message pop-ups, and everywhere else in Avox (Contacts, Broadcasts, run logs). The customer never sees it. - A pop-up confirms it with **Undo**, which puts the old name back. - Names are plain text, up to 120 characters. Leave the box empty to remove your name for them: Avox then shows the name they use on WhatsApp, or their number. - Every rename is listed in the Switchboard's activity log ("Renamed a contact"). ### When your plan stops Replying from the Inbox needs a plan. The plan that counts is the Switchboard's own, or its Owner's when the Switchboard has none, so a teammate in someone else's Switchboard follows that Owner's plan. When the plan stops (it ended, was cancelled, was paused, or a payment is overdue), the Inbox doesn't close straight away: - **For 7 days, your team can keep replying.** An amber banner above the reply box reads "Your plan ended on ... You can keep replying until ..." with the exact day and time the replies stop, in your own time zone. The Owner sees a **Renew** button; everyone else is asked to have the Switchboard owner renew. - **After the 7 days, the Inbox is read-only.** The reply box is replaced by a notice, "This Inbox is read-only", with a **Renew** button for the Owner ("Ask the Switchboard owner to renew." for everyone else). **Ask to call** can't be used. A reply sent anyway is refused with "Your plan has ended, so this Inbox is read-only. Renew your plan to reply again." ([AVX-3420](https://docs.theavoxai.com/error-codes/avx-3420)). While the Inbox is read-only, everything else in it keeps working: you can read every conversation, search, open contacts and their profiles, and new messages from your customers keep arriving. Renewing opens replies again straight away. You can also keep replying from the WhatsApp Business app on your phone. A Switchboard that has never had a plan can read conversations but can't reply from Avox: the notice reads "Replying needs a plan" with **Choose a plan** ([AVX-3421](https://docs.theavoxai.com/error-codes/avx-3421)). See [What happens when a plan stops](https://docs.theavoxai.com/billing/cancel#what-happens-when-a-plan-stops) for what else changes when a plan stops. ### Errors in the Inbox If a reply can't be sent, the [Avox Avatar](https://docs.theavoxai.com/avox-avatar) next to the Inbox status line shows the reason in its speech bubble, and your text stays in the reply box so you can try again. | Message | What it means | Code | | --- | --- | --- | | Your WhatsApp number isn't connected right now. | The connection is paused, disconnected, or in error. Check it on [Connections](https://docs.theavoxai.com/connections) and [Health](https://docs.theavoxai.com/health). | [AVX-3057](https://docs.theavoxai.com/error-codes/avx-3057) | | Couldn't find that contact. | The contact no longer exists in this Switchboard. Refresh the page. | [AVX-3058](https://docs.theavoxai.com/error-codes/avx-3058) | | It's been over 24 hours since this contact last messaged you - send a template to reopen the conversation. | The reply window is closed. Send a template instead. | [AVX-3059](https://docs.theavoxai.com/error-codes/avx-3059) | | WhatsApp couldn't send that message. Try again. | WhatsApp refused the message. Try again; if it keeps failing, run **Check health now** on [Health](https://docs.theavoxai.com/health). | [AVX-3060](https://docs.theavoxai.com/error-codes/avx-3060) | | You're sending too quickly - wait a moment and try again. | You sent many replies in a short time. Wait a moment, then send again. | [AVX-3061](https://docs.theavoxai.com/error-codes/avx-3061) | | Your plan has ended, so this Inbox is read-only. Renew your plan to reply again. | The plan stopped more than 7 days ago. Renew it on [Billing](https://docs.theavoxai.com/billing) (or ask the Owner) - see [When your plan stops](#when-your-plan-stops). | [AVX-3420](https://docs.theavoxai.com/error-codes/avx-3420) | | Choose a plan to reply from the Inbox. | This Switchboard has never had a plan. Choose one on [Billing](https://docs.theavoxai.com/billing). | [AVX-3421](https://docs.theavoxai.com/error-codes/avx-3421) | | Couldn't load this conversation. Try again. | The conversation didn't load (shown as a pop-up message). Click it again or refresh the page. | [AVX-3066](https://docs.theavoxai.com/error-codes/avx-3066) | | Couldn't load your templates. Try again. | The template list didn't load in **Send a template**. Close the panel and open it again. | [AVX-4115](https://docs.theavoxai.com/error-codes/avx-4115) | | This person asked not to get marketing messages... | They stopped marketing messages in WhatsApp or have the Unsubscribed tag. Send a Utility template instead. | [AVX-4116](https://docs.theavoxai.com/error-codes/avx-4116) | | Fill in every part of the template, then send it again. | A variable or the header file is missing. Check **Still to fill in**. | [AVX-4117](https://docs.theavoxai.com/error-codes/avx-4117) | | This kind of template can't be sent from a chat. | Carousels, multi-product and call permission templates go out from a broadcast or an automation. | [AVX-4118](https://docs.theavoxai.com/error-codes/avx-4118) | | WhatsApp didn't accept this template. Check the values and try again. | WhatsApp refused the template with these values. Check them, or the header link. | [AVX-4119](https://docs.theavoxai.com/error-codes/avx-4119) | | Couldn't save that contact's name. Try again. | A rename didn't save; the old name is back. Try again. | [AVX-3062](https://docs.theavoxai.com/error-codes/avx-3062) | | You can't rename contacts in this Switchboard. | Renaming needs the **Edit contacts** permission. Ask an Admin. | [AVX-4120](https://docs.theavoxai.com/error-codes/avx-4120) | | Couldn't find this contact. It may have been deleted. | The contact was deleted while you renamed it. Reload the Inbox. | [AVX-4121](https://docs.theavoxai.com/error-codes/avx-4121) | | Too many changes at once. Wait a minute and try again. | Many changes in a short time. Wait a minute. | [AVX-4122](https://docs.theavoxai.com/error-codes/avx-4122) | | Use plain text for the name, up to 120 characters. | The name is too long or has hidden characters. Type it instead of pasting. | [AVX-4123](https://docs.theavoxai.com/error-codes/avx-4123) | | Couldn't put the old name back. Try again. | Undo didn't save. Rename the chat and type the old name. | [AVX-4124](https://docs.theavoxai.com/error-codes/avx-4124) | Want to send messages from your own systems instead of the dashboard? Use the [Avox API](https://docs.theavoxai.com/avox-api) with an [API key](https://docs.theavoxai.com/connections/api-keys). --- ## Chat signals URL: https://docs.theavoxai.com/chat-signals Section: Workspace **Chat signals** are small coloured labels on conversations in the [Inbox](https://docs.theavoxai.com/inbox). Each one tells your team something about a chat at a glance: a customer has been waiting, someone asked for a person, a new enquiry came in, a chat has gone quiet. They follow only the words and times you set, and they can tell the right people in the bell at the top of the dashboard. Set them up in **Settings > Chat signals**. The six built-in signals are on from the start. Signals only follow the words and times you set. They never guess what a message means and never look at health or other personal details. A signal appears only when a message has words you listed, when a time you set has passed, or when a contact has a tag, a detail or a table value you picked. Six signals every Switchboard has, ready to use. Signals for salons, clinics, stores, agencies and more. How long customers wait for your team, on Analytics. ### Where signals show - **The Inbox chat list.** Each chat shows its signals under its name: the first two, then a count of the rest, like "+1". - **An open chat.** All its signals show at the top, each with a small button to clear it. - **The Inbox filter.** Under the search box, a filter (it starts on **All chats**) lists every switched-on signal with how many chats have it right now. Pick one to see only those chats. When none have it, the list says "No chats have this signal right now." with a **Show all chats** button. - **Overview.** The **Chat signals** card shows how many open signals there are, then each switched-on signal with its count. Press one to open the Inbox filtered to it, or **Set up** to open the settings. When nothing is open, it says "Nothing needs attention right now." - **The bell.** Signals you set to tell people add a **Chat signal** note to their bell. See [Who gets told](#who-gets-told). The counts in the Inbox filter refresh about once a minute while the page is open. ### The built-in signals Every Switchboard has six, listed under **Built-in signals**. They're on from the start. You can switch each one off, rename it, and change its colour, icon, numbers, words and opening hours, when it clears and who it tells. **Reset to default** in the editor brings back its first settings (it stays on or off as it is). A built-in signal keeps its kinds of rule and can't be deleted ([AVX-3905](https://docs.theavoxai.com/error-codes/avx-3905)): to make something different, create your own. | Signal | Appears when | Clears when | Tells | | --- | --- | --- | --- | | **Waiting for a person** | A customer has waited more than 30 minutes for a reply from the team, counted from their first unanswered message. | Someone on the team replies | Nobody | | **Asked for a human** | A message has one of these: "human", "agent", "real person", "talk to someone", "speak to someone", "talk to a person", "call me", "customer care", "representative", "manager", or the Hinglish "insaan", "baat karni hai", "call karo", "call kijiye". | Someone on the team replies | Everyone who can see the Inbox | | **New enquiry** | The first message from someone who has never written to you before. | Someone on the team replies | Nobody | | **Hot chat** | 5 messages from the customer within 10 minutes, or a message with "price", "buy", "book", "order", "today", "how much", "available", "kitna", "kitne ka" or "rate kya hai". | 24 hours later | Nobody | | **Going cold** | The team's last message has had no answer from the customer for 3 days. | The customer writes back | Nobody | | **Unsubscribed** | The contact has the [Unsubscribed tag](https://docs.theavoxai.com/contacts/unsubscribe). | The tag is taken off | Nobody | "Waiting for a person" counts every minute, nights and weekends included. Turn on **Count only opening hours** in its rule so only the time you're open counts. See [Opening hours](#opening-hours). ### Your own signals Under **Your signals**, click **New signal**. A panel opens beside the list with four parts. A **Name** (up to 40 characters, and different from every other signal's name), a **Description (optional)** for the team (up to 200 characters), a **Colour** and an **Icon**. **Signal is on** switches it on or off: when it's off, it never appears on a chat. The panel shows how the badge will look on a chat. Choose **Any rule is true** or **All rules are true**, then use **Add rule** to add up to 8 rules. See [The rules](#the-rules). Any of: **When someone on the team replies**, **When the customer writes back**, **After a set time** (**Clear after** 1 to 720 hours, so up to 30 days), and, for a signal with a tag rule, **When the tag is taken off**. With none of them on, the signal clears only by hand. **Nobody**, **Everyone who can see the Inbox**, or **Chosen people**. See [Who gets told](#who-gets-told). **Create signal** saves it. Changes reach chats within a minute. Each signal in the list shows its badge, its rules in plain words after **Appears when:**, when it clears, who it tells and how many chats have it open right now. People who can set up signals also see: - **The switch** to turn the signal on or off. Switching a signal off takes it off every chat at once. - **Up and down arrows** to move it within its list. The order sets which signal shows first on a chat. - **Edit** (the pencil) to open the panel again, then **Save changes**. - **Delete** (the bin), for your own signals only. The signal comes off every chat that has it, and this can't be undone. #### The rules | Rule | What you set | | --- | --- | | **Message has words** | Type a word or phrase, then press Enter or a comma. Up to 60 words or phrases, each up to 60 characters ([AVX-3920](https://docs.theavoxai.com/error-codes/avx-3920)). **Has any of these**: a word or phrase appears as whole words and capitals don't matter, so "book" matches "Can I book?" but not "Facebook". **Is exactly one of these**: the whole message is the word or phrase, with punctuation and emoji around it ignored. | | **Waiting for a reply** | **No reply from the team for more than** a number of minutes, from 1 minute to 7 days, with optional **Count only opening hours**. | | **No answer from the customer** | **The customer hasn't answered the team's last message for** 1 to 60 days. | | **First message from a new contact** | Nothing to set. | | **Many messages in a short time** | **At least** 2 to 50 messages from the customer **Within** 1 to 120 minutes. | | **Contact has a tag** | **Tag or category**: one of your tags or categories. | | **Came from a smart link** | **Smart link**: **Any smart link** or one you pick, and **The chat started within the last** 1 to 30 days. See [Smart links](https://docs.theavoxai.com/chat-links). | | **Value in a table** | A **Table**, the **Column with the contact** (a WhatsApp contact or phone column that finds the contact's row), the **Column to check**, **Is** or **Contains**, and a **Value** like "Paid". | | **Contact detail** | The **Contact detail**: **Name**, **City**, **Country (2 letters, like IN)** or **A custom field** (type its **Custom field key**, like `membership`). Then **Check**: **Is**, **Contains**, **Is filled in** or **Is empty**. | A few things worth knowing: - **Words rules look at the customer's messages only**, never your team's. Capitals and extra spaces never matter, and the same word added twice is kept once. - **Team replies** are messages from the Inbox, from the WhatsApp Business app on your phone, or sent through the [Avox API](https://docs.theavoxai.com/avox-api). Messages sent by automations, [smart link](https://docs.theavoxai.com/chat-links) follow-ups and [broadcasts](https://docs.theavoxai.com/broadcasts) don't count, so they never clear a "waiting" signal. - **When each rule is checked.** Words, first messages, many messages, smart links, tags, table values and contact details are checked each time the customer sends a message. A tag rule is also checked as soon as the tag is added. Time rules (**Waiting for a reply**, **No answer from the customer**) are checked every minute, so those signals appear within about a minute of their time passing. - **Words and a wait together.** With **All rules are true**, a words rule next to a **Waiting for a reply** rule looks at every message the customer sent since they started waiting. - **Contact details never include gender, birthday or age.** Signals don't use personal details like those. - **Clearing by hand sticks.** A signal you clear isn't raised again for the same message, the same wait or the same tag. The next new message, or the next wait, can raise it again. - **One at a time.** A chat has each signal at most once. How many custom signals you can have depends on your plan: see [Limits](#limits). #### Opening hours A waiting rule with **Count only opening hours** counts only the minutes you're open. It starts on Monday to Saturday, 09:00 to 18:00, in your device's time zone. Change the **Time zone**, the **Open days**, **Opens at** and **Closes at**. A closing time earlier than the opening time runs past midnight into the next day ("Closes after midnight, the next day."). The opening and closing times can't be the same ([AVX-3921](https://docs.theavoxai.com/error-codes/avx-3921)). ### Ready-made packs **Ready-made packs**, under your signals, add a few signals made for one kind of business. Words are in plain English, plus some common Hindi and Hinglish words customers really use. **Preview** shows every signal a pack adds and the words each one looks for. **Add pack** copies its signals into **Your signals**: each one is on, clears when someone on the team replies, tells nobody, shows where it came from in the list (like "From the Clinic pack"), and is yours to change or delete. Only the pack's signals that aren't already there are added, so adding a pack again brings back one you deleted. When every signal in a pack is already there, its card says so, like "All 4 added", and there's nothing more to add ([AVX-3911](https://docs.theavoxai.com/error-codes/avx-3911)). | Pack | Signals it adds | | --- | --- | | **Salon and spa** | Wants a booking, Change or cancel, Price question, Asked about offers | | **Clinic** | Wants an appointment, Change or cancel, Asked for a report, Asked for directions | | **Restaurant and cafe** | Table booking, Wants to order, Order is late, Complaint | | **Online store** | Where is my order, Return or exchange, Payment problem, In stock?, Ready to buy | | **Agency and B2B** | Wants a quote, Wants a meeting, Invoice question, Urgent | | **Coaching and school** | Admission enquiry, Fees question, Class timings, Wants a demo class | | **Real estate** | Wants a site visit, Price question, Home loan question, Ready to book | | **Travel and tours** | Wants a trip quote, Ready to book, Change or cancel, Payment question, Pickup and travel day | | **Support-heavy teams** | Complaint, Refund request, Unhappy customer, Repeat follow-up, Wants a manager | Every pack signal looks for words. **Repeat follow-up** also appears when the customer sends 4 messages within 30 minutes. The Clinic pack follows only words about appointments, changes, reports, bills and directions. It never looks for symptoms or anything about someone's health. ### Limits Your plan sets how many **custom signals** each Switchboard can have. **Settings > Chat signals** shows it as **Custom signals** with how many are used, like "2 of 3" (or "Unlimited"). Your plan's number for each plan is on [Plans](https://docs.theavoxai.com/plans). - **What counts:** every signal you made and every signal added from a ready-made pack, switched on or off. - **What doesn't:** the six built-in signals. They're always there and never take a place. - **Freeing a place:** delete a custom signal. Switching one off keeps its place. - **When it's full:** **New signal** and **Add pack** are greyed out, and clicking them says why. The message names your plan's number: "Your plan allows 3 custom chat signals. Delete one or move to a bigger plan." ([AVX-3923](https://docs.theavoxai.com/error-codes/avx-3923)). - **Packs go in whole:** a pack needs one place for each of its signals that isn't here yet. Its preview says how many, like "Needs 4 places, you have 2 free". If they don't fit, nothing is added ([AVX-3924](https://docs.theavoxai.com/error-codes/avx-3924)). - **No plan:** without a plan, or while it's paused, you can't add custom signals; the built-ins keep working ([AVX-3925](https://docs.theavoxai.com/error-codes/avx-3925)). - **Moving to a smaller plan:** signals you already have keep working. You just can't add more until you're under the new number. On any plan a Switchboard can have at most 100 signals, built-ins included ([AVX-3917](https://docs.theavoxai.com/error-codes/avx-3917)). ### Who gets told Each signal's **Who is told**: - **Nobody**: the badge shows in the Inbox, and that's all. - **Everyone who can see the Inbox**. - **Chosen people**: use **Pick people** to choose up to 50 people. Only people who can see the Inbox are in the list ([AVX-3906](https://docs.theavoxai.com/error-codes/avx-3906)). When the signal appears, each person gets a **Chat signal** note in the bell at the top of the dashboard, like "A chat needs attention: Asked for a human.", with **Open chat**. Someone is told about the same chat and signal at most once an hour. The note stays in the bell while the signal is open, for up to 24 hours, and goes when the signal clears or is switched off. - **Quiet hours.** Chat signal notes never make a sound or pop up, so quiet hours (**Settings > Personalisation > Notifications**) don't hold them back: the note waits in the bell for later, and the badge shows in the Inbox as usual. - **Turning notes off.** Anyone can hide chat signal notes for themselves: set **Chat signals** to **Hide** in **Settings > Personalisation > Notifications**. Your teammates choose their own. ### Clearing a signal A signal clears by itself when its **When it clears** rule is met, within about a minute. Anyone who can reply in the Inbox can also clear one by hand: open the chat and press the small button on its badge. If someone else cleared it first, nothing changes ([AVX-3915](https://docs.theavoxai.com/error-codes/avx-3915)). ### While your Switchboard is paused While the [Switchboard is paused](https://docs.theavoxai.com/switchboard#pausing-a-switchboard), chat signals rest too: - **No new signals and nobody is told.** Messages, waits and tags during the pause don't raise a signal, and nothing goes to the bell. - **Signals already showing stay as they are**, and clear by their rule within about a minute of the Switchboard being resumed, without any note in the bell. - **No catching up after you resume.** Signals that would have appeared during the pause aren't raised later, so you don't get a flood of old notes. From the moment you resume, new messages, waits and tags raise signals as usual. A customer still waiting from before the pause gets a "Waiting" signal again from their next message. Wait times keep being recorded during a pause, because they come from your team's real replies. ### Wait times **Analytics** has a **Wait times** section that shows how long customers wait for your team, for the range at the top of the page (**7d**, **30d** or **90d**): | Figure | What it shows | | --- | --- | | **First reply** | How long a new chat waited for the team's first answer. The big number is the median. | | **Reply time** | How long customers waited for any answer from the team, not just the first one. The big number is the median. | | **Waiting now** | Chats whose customer wrote last, in the past 7 days, and hasn't had an answer from the team yet. | | **Reply time by day** | The median reply time each day, and the time 90% of replies came within. Days are UTC days. | | **Time to answer by signal** | For each signal: **Raised** (how often it appeared), **Median answer** and **90% within** (how long the team took to reply once it did). Answer times count the signals that cleared because the team replied. | A wait starts at the customer's first unanswered message and stops at the next reply from your team: the Inbox, the phone app or the API. Messages sent by automations, smart link follow-ups and broadcasts don't stop the clock. The **median** is the middle time (half were faster), and **90% within** is how long it took to answer 9 in 10 chats. Wait times need the **See analytics** permission and a plan that includes [Analytics](https://docs.theavoxai.com/analytics). Reply times are kept for 13 months, and so is what Avox remembers about each chat's turns (when the customer last wrote and when your team last replied); cleared signals are kept for 180 days. Older ones are removed every day. A chat that still has a signal showing keeps what it needs. ### Who can do what | To | You need | | --- | --- | | See signal badges in the Inbox, the filter and the Overview card, and open **Settings > Chat signals** | **See chat signals** (badges in the Inbox also need **See the Inbox**) | | Clear a signal on a chat | **See chat signals** and **Reply in the Inbox** | | Create, edit, switch off, reorder and delete signals, and add packs | **Set up chat signals** | | Be told in the bell | **See the Inbox** | | See wait times on Analytics | **See analytics** | Admins have every permission. Managers can see signals and clear them on chats they can reply to; an Admin can give them **Set up chat signals**. Without it, the settings page shows the signals with "You can see chat signals but not change them." See [Members and roles](https://docs.theavoxai.com/switchboard/members). ### Troubleshooting Check that it's switched on and that its words match the message as whole words (or the whole message, for **Is exactly one of these**). With **All rules are true**, every rule has to match at once. Changes in Settings take up to a minute to reach chats. A signal you cleared by hand isn't raised again for the same message or wait. Turn on **Count only opening hours** in its waiting rule, with your time zone and opening times. That's on purpose: messages sent by automations, smart link follow-ups and broadcasts don't count as a reply from your team. It clears when someone on the team answers, from the Inbox, the phone app or the API. Check the signal's **Who is told**, that the people can see the Inbox, their quiet hours, and that they haven't set **Chat signals** to **Hide** in their notification settings. Someone is told about the same chat and signal at most once an hour. A table rule points at a table or column that changed, or the table has no WhatsApp contact or phone column to find the contact's row ([AVX-3908](https://docs.theavoxai.com/error-codes/avx-3908)). Pick them again in the rule. Your plan's custom signals are all in use, or a pack needs more places than you have free ([AVX-3923](https://docs.theavoxai.com/error-codes/avx-3923), [AVX-3924](https://docs.theavoxai.com/error-codes/avx-3924)). Delete custom signals you don't use, or move to a bigger plan in [Billing](https://docs.theavoxai.com/billing/change-plan). Built-in signals never count. If the settings page says **Chat signals are turned off**, they were turned off for your account ([AVX-3912](https://docs.theavoxai.com/error-codes/avx-3912)): contact hello@theavoxai.com. Otherwise, ask an Admin for **See chat signals**. All chat signal error codes are in [Error codes](https://docs.theavoxai.com/error-codes). ### Related --- ## Contacts URL: https://docs.theavoxai.com/contacts Section: Workspace Contacts lists every phone number that has exchanged messages with your connected WhatsApp number. You never build this list by hand: Avox adds a contact automatically the first time a number messages you, calls you, or arrives in your imported chat history. The page header reads "Your customers' phone numbers are encrypted at rest and only ever visible to your account." and has a **Docs** button that opens this page. Under the header, two tabs switch between **Contacts** (the list) and **Tags & categories** (see [Tags and categories](#tags-and-categories)). ### Who can use Contacts | Action | Admin | Manager | | --- | --- | --- | | View and search contacts | Yes | Yes | | Rename a contact | Yes | Yes | | Add or remove tags and categories, edit profile details | Yes | Yes | | Create, rename, recolour and delete tags and categories | Yes | Yes | | See full phone numbers | Yes | No (last 4 digits only) | The Manager column shows the defaults. An Admin can change them for each person in **Settings > Switchboard > Members > Permissions** (the **See contacts**, **Edit contacts** and **See full phone numbers** permissions). See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). Contacts needs a WhatsApp connection. Until your Switchboard has one, the **Contacts** item in the sidebar (under **Messaging**) shows a lock, and hovering it shows "Contacts is locked" with "This feature needs a WhatsApp connection first." ([AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). Opening the Contacts address takes you to [Connections](https://docs.theavoxai.com/connections). ### How contacts are created A contact is created for a phone number the first time any of these happens: - The number sends a message to your WhatsApp number. - The number calls your WhatsApp number, or you call it (with [Calling](https://docs.theavoxai.com/connections/calling) turned on). - The number appears in the chat history or contact list imported from the WhatsApp Business app. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). Each phone number appears once per Switchboard, however many messages it sends. ### Count tiles Tiles across the top of the page count your contacts: | Tile | What it counts | | --- | --- | | **Total contacts** | Every contact in this Switchboard. | | **New this week** | Contacts added in the last 7 days. | | **New this month** | Contacts added in the last 30 days. | | **Active in last 7 days** | Contacts with at least one message, sent or received, in the last 7 days. | | **Uncategorised** | Contacts that aren't in any category yet. | | One tile per category | Your 4 biggest categories, each with how many contacts are in it. With more than 4, a **+N more** tile opens the full list in the Segments sidebar. | Click a tile to show just those contacts. The tile stays highlighted and the filter shows above the table; click the tile again, the small x on the filter, or **Clear all** to go back to everyone. ### Segments The **Segments** sidebar on the left lists **All contacts**, then every **category** (with its colour and how many contacts are in it), every **tag**, and **Uncategorised**. Click one to show only those contacts. On a phone, tap the button next to the search box (it shows the segment you're in) to open the same list. The segment you're in is part of the page address, so you can bookmark or share it, and your browser's back button returns to the previous one. When you open a contact from a segment, their profile shows a **Back to** link (for example "Back to VIP") that returns you to the same list and page. On a wide screen, the button left of the search box hides or shows the sidebar. Avox remembers your choice on that device. ### The contacts table Contacts are listed with the most recently changed first. Each row shows: | Column | What it shows | | --- | --- | | (checkbox) | Select the contact for a bulk change - see [Changing several contacts at once](#changing-several-contacts-at-once). | | **Name** | The contact's avatar and name, with their categories and tags underneath (up to 3, then "+2"). With no name saved, the phone number shows instead, or "Unknown contact". | | **Phone number** | The full phone number in international format, digits only - if you have the **See full phone numbers** permission. Without it you see only the last 4 digits, like •••• 4821. | | **Location** | The location your team entered on the profile, if any. Otherwise the country from the number's country code, plus the place from the last location the customer shared on WhatsApp. | | **Last activity** | How long ago the contact's record last changed ("just now", "5m ago", "3h ago", or a date). | | **Actions** | **Profile**, **Message** and **Calls** - see [Row actions](#row-actions). | Click anywhere on a row (or select it with **Tab** and press **Enter**) to open that contact's [profile](#the-customer-profile). The checkbox, the rename pencil and the buttons in the row do their own thing instead. Each contact has a generated avatar, so the same customer has the same avatar everywhere in Avox: here, on their profile, in the Inbox and on Calls. See [Contact avatars](#contact-avatars). The table shows 25 contacts per page. When you have more, the footer shows "Page 1 of 4 · 92 contacts" with **Previous** and **Next** buttons. With no contacts yet, the table reads "No contacts yet." An empty segment reads, for example, "Nothing in VIP yet." with **Show all contacts**. ### Filtering by tags and categories Use the **Category** and **Tags** buttons next to the search box. Each opens a list you can search; tick as many as you like. The table then shows contacts that have any of the ticked categories **and** any of the ticked tags. The chosen tags and categories show above the table; click the small x on one to drop it, or **Clear all** to drop every filter. Filters work together with the search box and the count tiles. Two more filters come from WhatsApp itself: **Stopped marketing in WhatsApp** (people who turned off your marketing messages inside WhatsApp, see [Stopped in WhatsApp](https://docs.theavoxai.com/contacts/unsubscribe#stopped-in-whatsapp)) and **Purchased (from ads)** (people Meta found buying in a chat that started from your click-to-WhatsApp ad, see [From your ads](https://docs.theavoxai.com/analytics#from-your-ads)). ### Changing several contacts at once Tick the checkbox on the rows you want (the checkbox in the header ticks every contact on the page). A bar appears with: - **Add tags or categories** - pick tags or categories to add to every selected contact. Type a new name to create it on the spot. - **Remove tags or categories** - pick tags or categories to take off every selected contact. - **Clear selection**. This works inside a segment too. If the change moves contacts in or out of the segment you're in (for example, removing the category you're looking at), the list refreshes to match. Up to 200 contacts can be changed at once. A contact can have at most 50 tags and categories; anything over that is skipped and a note says so. ### Renaming a contact The name you set here is the name your whole team sees across the dashboard - in the [Inbox](https://docs.theavoxai.com/inbox), on [Calls](https://docs.theavoxai.com/calls), and on [Overview](https://docs.theavoxai.com/overview). Search for them, or page through the table. Hover the name and click the pencil icon next to it. The name turns into a text box. Type up to 120 characters, then click the check mark. The new name shows straight away, and the [Avox Avatar](https://docs.theavoxai.com/avox-avatar) says "Renamed." To remove a saved name, clear the box and save. The table then shows the phone number instead. A name longer than 120 characters shows "Keep it under 120 characters" under the box. When your number is connected with Coexistence, contact names saved in the WhatsApp Business app on your phone also sync into Avox. When a contact is added or edited in the app's contact list, Avox picks up that name. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). If the name doesn't save, you see "Couldn't save that contact's name. Try again." ([AVX-3062](https://docs.theavoxai.com/error-codes/avx-3062)). Check your connection and try again. ### Row actions - **Profile** opens the contact's [profile](#the-customer-profile). - **Message** opens this contact's conversation in the [Inbox](https://docs.theavoxai.com/inbox). - **Calls** opens [Calls](https://docs.theavoxai.com/calls) filtered to this contact. Calls shows call history once [Calling](https://docs.theavoxai.com/connections/calling) is turned on for your connection. ### Searching Type in **Search by name or phone number** and press **Enter**. The search works in two ways: - **Names** - type part of a name. "mar" finds "Maria" and "Omar". - **Phone numbers** - type the **whole** number, including the country code. Spaces, dashes, brackets and a leading `+` are ignored, so `+1 (555) 123-4567` and `15551234567` find the same contact. Anything with 6 or more digits is treated as a phone number search. A phone number search looks for an exact match of the full number. To find someone by a few digits, search by their name instead, or type the full number. If nothing matches, the table reads "No contacts match these filters." To see everyone again, click the small x on the search above the table, or clear the box and press **Enter**. In the Inbox, **Profile** in the chat header shows the contact's key details, with **Open full profile** to come here. You can also link to a search directly: `/contacts?q=maria`. ### Tags and categories Tags and categories help your team group and find customers. Customers never see them. - A **category** says what kind of customer someone is, like Lead, Customer or Supplier. Categories show as filled, rounded rectangles, and use a folder icon everywhere in Avox. - A **tag** marks anything else worth knowing, like vip or follow-up. A contact can have many. Tags show as pills with a coloured dot, and use a tag icon everywhere in Avox. Open the **Tags & categories** tab to manage them. Each list shows every tag or category with how many contacts have it, and "12 of 500" at the top (you can have up to 500 of each). - **New category** / **New tag** - give it a name (up to 40 characters), pick a colour, and optionally a short description of when to use it. Names are unique per kind, ignoring capitals: "VIP" and "vip" count as the same tag, while a tag and a category can share a name. - **Colour** - one of 11 palette colours, or **Custom colour**: type a hex code (like `#2f7d56`), use your browser's colour picker, or pick a suggested colour. Any colour works - the text colour adjusts so it stays readable. - **Avatar shape** (categories only, optional) - pick one of ten shapes (Round, Organic, Boxy, Capsule, Nub, Cloud, Droplet, Hexagon, Sun, Triangle) to give every contact in the category that avatar shape, or keep "Each contact's own shape". A preview shows the avatar in the category's colour. See [Contact avatars](#contact-avatars). - The pencil renames, recolours, or changes the description or avatar shape. A renamed tag updates on every contact straight away. - The bin deletes the tag or category after you confirm. It's removed from every contact that had it; this can't be undone. You can add and remove tags and categories on a contact's profile, in the [Inbox](https://docs.theavoxai.com/inbox) chat header, or on many contacts at once from the list. In each place, typing a name that doesn't exist yet offers **Create tag "..."** or **Create category "..."** with a colour pick. [Automations](https://docs.theavoxai.com/automation) can add them too. Older automations that tag contacts keep working: their tags appear here as regular tags. #### The Unsubscribed tag Every Switchboard has an **Unsubscribed** tag for people who asked to stop your marketing messages. [Broadcasts](https://docs.theavoxai.com/broadcasts) always skip contacts with it. Add it to a contact or take it off like any other tag; it shows a **Locked** badge because it can't be renamed, recoloured or deleted ([AVX-3888](https://docs.theavoxai.com/error-codes/avx-3888)). The ready-made **Stop and unsubscribe** and **Start again after STOP** automations add and remove it when someone replies STOP or START, and Avox adds or removes it when someone stops or resumes your marketing messages inside WhatsApp itself. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). ### Contact avatars Every contact gets a small generated character as their avatar - the same family as the [Avox Avatar](https://docs.theavoxai.com/avox-avatar). It's made for that contact and stays the same everywhere in Avox. Its look follows your tags and categories: - **Colour** - the colour of the contact's first category (in alphabetical order). With no category, the colour of their first tag. With neither, Avox green. - **Shape** - the **Avatar shape** chosen for that first category. Without one, each contact keeps their own shape. - **Mood** - it reacts to the contact's activity: | The avatar looks | When | | --- | --- | | Surprised | A brand-new contact, first seen in the last 24 hours. | | Sleepy | No messages either way for 30 days or more. | | Thinking | Waiting for your reply - their message is the latest one. | | Happy | They messaged in the last 24 hours and you replied. | | Neutral | Anything else. | So a category such as "VIP" with its own colour and shape makes those customers easy to spot at a glance in the Inbox, on Calls and here. ### The customer profile Click a contact (or **Profile**) to open their profile. Under the page title, a **Back to** link returns you to the list you came from, with the same segment, filters and page (or "Back to all contacts"). At the top: - Their avatar, name, number, country (from the number) and location, with **Message** (their conversation in the [Inbox](https://docs.theavoxai.com/inbox)) and **Calls** (their calls on [Calls](https://docs.theavoxai.com/calls)) on the right. - Their **categories and tags**, with **Add category** and **Add tag** buttons. Click the x on a tag or category to remove it. - Stat cards: first seen, last seen, messages (from them and from you), calls, Flow responses and automations run. Below that, three tabs: - **Timeline** - every message, call, Flow response and automation for this customer, newest first. Long timelines scroll inside their own box; **Load older activity** fetches more. - **Chats** - the latest messages as a preview, with **Open in Inbox** to continue the conversation. - **Calls** - their call history: who called, the outcome (connected, ended, missed), how long, and when, with **See all calls**. On the side: - **About** - location (city, state or region, country), gender and age. WhatsApp doesn't share any of these, so your team enters them with **Edit details**, or an automation collects them with an "Ask a question" step. The country from the customer's number is offered as the default. Gender is optional (Female, Male, Non-binary, Prefer not to say). For age, save either a birthday or an age range, not both. **Custom fields** shows answers your automations saved to the contact; you can edit them, remove them, or add your own (names use lowercase letters, numbers and underscores). - **Notes**, **Shared locations** (places the customer sent on WhatsApp) and **Shared media and files**. Long lists scroll inside their own box. ### How phone numbers are protected Every phone number is encrypted before it's stored, and it's decrypted only to show it to members of your own Switchboard who have the **See full phone numbers** permission (Admins always do; everyone else sees the last 4 digits). The same rule applies on a contact's profile page. Your contacts are never visible to any other Avox account. This is also why a phone number search needs the full number: Avox looks up the number as a whole rather than reading through stored numbers. See [Security](https://docs.theavoxai.com/security). ### Errors on this page | Message | Code | What to try | | --- | --- | --- | | Couldn't load your contacts. Try again. | [AVX-3063](https://docs.theavoxai.com/error-codes/avx-3063) | Refresh the page. If it keeps happening, contact [Support](https://docs.theavoxai.com/support). | | Couldn't save that contact's name. Try again. | [AVX-3062](https://docs.theavoxai.com/error-codes/avx-3062) | Check the name is 120 characters or fewer, then save again. | --- ## Stop and unsubscribe URL: https://docs.theavoxai.com/contacts/unsubscribe Section: Workspace Anyone who gets your offers and news on WhatsApp should be able to say "stop" and be heard. In Avox, that's one tag: **Unsubscribed**. Contacts with it are always left out of [broadcasts](https://docs.theavoxai.com/broadcasts), and two ready-made automations add it when someone replies STOP and take it off when they reply START. ### The Unsubscribed tag Every Switchboard has one **Unsubscribed** tag, in **Contacts > Tags & categories**. It's an ordinary tag in most ways: it shows on contacts and in the [Inbox](https://docs.theavoxai.com/inbox), you can search and filter by it, and you or an automation can add it to a contact or take it off. Two things make it different: - **Broadcasts always skip it.** A contact with the tag never gets a broadcast, whatever the list says. They're checked again right before their message goes, so someone who asks to stop while a broadcast is sending is still left out. - **It's locked.** It shows a small **Locked** badge ("Avox keeps this tag. People who ask to stop get it, and broadcasts always skip them."). It can't be renamed, recoloured or deleted ([AVX-3888](https://docs.theavoxai.com/error-codes/avx-3888)), because Avox relies on it. You can still add it to or take it off any contact. A tag named "Unsubscribed", in any capitals, added anywhere (by a person, an automation or the API) is that same tag. The built-in [chat signal](https://docs.theavoxai.com/chat-signals) **Unsubscribed** also marks these chats in the Inbox, so your team sees at a glance who asked to stop. It appears within about a minute of the tag being added and clears when the tag is taken off. ### The ready-made STOP and START automations The [automation library](https://docs.theavoxai.com/automation/library) has two ready-made automations that look after the tag for you. Add them from **Automation > Library** (search "stop" or "start"), like any [premade automation](https://docs.theavoxai.com/automation#premade-automations). #### Stop and unsubscribe Added as **Unsubscribe on STOP**. When someone's **whole message** is one of these words, it adds the **Unsubscribed** tag and replies: ```text stop stop all unsubscribe cancel opt out optout opt-out no more band karo बंद बंद करो ``` > You're unsubscribed. We won't send you offers or updates here any more. If you change your mind, just > reply START. #### Start again after STOP Added as **Resubscribe on START**. When someone's **whole message** is one of these words, it takes the **Unsubscribed** tag off and replies: ```text start subscribe resubscribe unstop opt in optin opt-in ``` > Welcome back! You'll get our offers and updates here again. Reply STOP any time to stop them. #### How the words are matched - **The whole message, not part of it.** "STOP" unsubscribes someone; "please don't stop my order" doesn't. That's also why "cancel" is on the list: on its own it reads as a stop request, while "cancel my booking" is left for your team. - **Capitals, spaces, punctuation and emoji don't matter.** "STOP!", " Stop. " and "stop 🙏" all count. - You can change the words, or the reply, after adding the automation, like any other automation. It keeps matching the whole message. #### What they cost Each one sends a single text reply, so it uses **1 automation credit** each time it runs. Adding or removing the tag is free. See [Automation credits](https://docs.theavoxai.com/automation/credits). The reply goes out straight away, inside the 24-hour window the customer's own message opened, so no template is needed. ### Tagging by hand People don't always say STOP. "Please don't send me these", a call, an email: when someone asks to stop in any other way, add the **Unsubscribed** tag to them yourself, on their profile in [Contacts](https://docs.theavoxai.com/contacts), in the Inbox chat header, or on several contacts at once from the Contacts page. Take it off only when that person asks to hear from you again. ### What the tag changes | Messages | With the Unsubscribed tag | | --- | --- | | [Broadcasts](https://docs.theavoxai.com/broadcasts) | **Always skipped**, shown in the check and the report as "Asked to stop messages (Unsubscribed tag)". | | Replies from your team in the [Inbox](https://docs.theavoxai.com/inbox) | Still go out, so you can answer a question they ask. | | [Automations](https://docs.theavoxai.com/automation) | Still run, including the START automation, so a question they send still gets its answer. A **Marketing** template step is skipped for them ([AVX-3976](https://docs.theavoxai.com/error-codes/avx-3976)); utility and authentication templates still go out. | | [Smart link](https://docs.theavoxai.com/chat-links) follow-ups and the [Avox API](https://docs.theavoxai.com/avox-api) | Still go out. They answer a chat the customer started, or come from your own system. | Each broadcast's report also counts **Asked to stop within 7 days**: people who got the tag within 7 days of that broadcast. Its **Recipients** list can be filtered to **Asked to stop** to see who they are. See [the report](https://docs.theavoxai.com/broadcasts/report#after-the-broadcast). ### WhatsApp's own opt-out WhatsApp has its own switch: anyone can stop marketing messages from businesses in WhatsApp itself. When a broadcast reaches someone who has, WhatsApp refuses it, and the report shows it as **Stopped marketing messages**. Avox remembers that answer. For the next 180 days, later broadcasts skip that person and the check shows them as "Opted out in WhatsApp (stopped your marketing messages)". These answers never count towards a broadcast's [automatic pause](https://docs.theavoxai.com/broadcasts#automatic-pauses) for failures. #### Stopped in WhatsApp WhatsApp also tells Avox straight away when someone stops (or starts again) your marketing messages from inside WhatsApp, without waiting for a broadcast to fail (Meta's `user_preferences` event, see [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks#marketing-opt-outs)). Avox then: - **Records it on the contact.** The contact's panel shows "Stopped marketing messages in WhatsApp on" the date, with a history of every stop and start: when, and where it came from (**In WhatsApp**, **By replying STOP or START**, **By your team**, **By an automation**, the API or an import). - **Adds the Unsubscribed tag** on a stop, so everything above applies and any **Tag added** automation runs. A contact Avox didn't have yet is created. - **Takes the tag off** when they start again in WhatsApp, if the tag came from them (a WhatsApp stop or the STOP automation). If someone on your team, the API or an import added it, it stays, and the history says so: you may have your own reason. - **Skips them in every broadcast and Marketing template**, shown as "Opted out in WhatsApp". Utility and authentication messages, and your team's replies, still go out. The order is always Meta's own: a late or repeated event never undoes a newer one. In **Settings, WB events**: - **Follow WhatsApp opt-outs automatically** (on by default). Off: Avox still records the stop and broadcasts still skip them (WhatsApp would refuse the message anyway), but the Unsubscribed tag isn't added or removed for you. - **Notify me when someone opts out** (off by default): a note in the bell for each new stop. - Automations can start from **Someone stops marketing messages** and **Someone resumes marketing messages** ([triggers](https://docs.theavoxai.com/automation/triggers#marketing-opt-outs)). An automation started by a stop can't send a Marketing template ([AVX-3975](https://docs.theavoxai.com/error-codes/avx-3975)). To see everyone who stopped, filter **Contacts** by **Stopped marketing in WhatsApp**. In the Inbox, their chats show a small marker. The **Marketing opt-outs** card on [Analytics](https://docs.theavoxai.com/analytics) shows stops and starts over time and where they came from, and each broadcast's report shows **Opt-outs after this broadcast**. ### Good habits - **Add both automations before your first broadcast.** Then nobody has to ask twice. - **Say how to stop.** A short "Reply STOP to stop these" at the end of a Marketing template makes it easy. - **Treat every stop the same.** A STOP reply, a call or an email: they all mean the tag. - **Watch "Asked to stop".** A broadcast with many stops is a sign to send less often, or to fewer people. ### Related --- ## Calls URL: https://docs.theavoxai.com/calls Section: Workspace With **Calls**, your team answers customers' WhatsApp calls right in the Avox dashboard and calls customers who said yes to calls. The call rings in the browser for the people you choose, one person answers, and everyone can see what happened afterwards: who answered, how long it lasted, a timeline of the call and the team's notes. Open **Calls** in the sidebar (under **Messaging**). Calling is switched on for a number on its own page in [Connections](https://docs.theavoxai.com/connections). Everything else, how your team handles calls and each number's call settings at WhatsApp, is in **Settings > Calls**. Call audio is encrypted between your browser and WhatsApp's call servers (DTLS-SRTP), and WhatsApp carries it to the customer's phone. The audio never passes through Avox, and Avox doesn't record calls. ### Which numbers can use calling How calling works depends on how the number is connected. | Number | Calls in Avox | | --- | --- | | **Used with Avox only** (not in the WhatsApp Business app) | Full calling. Calls ring in Avox, your team answers in the browser, and people with the right permission can call customers who allowed it. | | **Also in the WhatsApp Business app** (Coexistence) | Calls ring in the WhatsApp Business app on your phone. Meta doesn't let Avox answer or place them, so you answer and make calls in the app. If WhatsApp ever tells Avox about such a call, it shows on the Calls page as **In the app**, for your records. | On a number that's also in the app, the number's page reads "Calls for this number ring in the WhatsApp Business app on your phone. Meta doesn't let Avox answer or place them." The Inbox shows a phone icon with "Call from the WhatsApp Business app on your phone", and the Calls page lists the number as "Calls ring in the app" ([AVX-5156](https://docs.theavoxai.com/error-codes/avx-5156)). To take calls in Avox, connect a number you use with Avox only. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). ### Before you start - **A number used with Avox only**, connected in [Connections](https://docs.theavoxai.com/connections). - **A payment method on your WhatsApp account.** Meta needs one before calls can connect, even calls customers make to you. Add it in WhatsApp Manager ([AVX-5118](https://docs.theavoxai.com/error-codes/avx-5118)). - **A messaging limit of at least 2,000 people a day.** Meta turns calling on only from that limit ([AVX-3931](https://docs.theavoxai.com/error-codes/avx-3931)). - **A plan with calling.** Answering calls and calling customers are plan features. See [Plans](#plans). - **The right permissions.** Turning calling on and changing the settings needs **Set up calling**; answering needs **Answer calls**. See [Who can do what](#who-can-do-what). - **A microphone and a recent browser.** Calls work in recent Chrome, Edge, Firefox and Safari. Pick your microphone and speaker in [Camera & mic](https://docs.theavoxai.com/settings/camera-and-microphone). ### Turn on calling for a number In [Connections](https://docs.theavoxai.com/connections), open the number and go to its **Calling** section. Turn **WhatsApp calls** on. Avox asks Meta to switch calling on for the number and shows Meta's answer. Turning it on or off needs an active plan. Press **Call settings** (or open **Settings > Calls** and go to **Each number**). Pick the number, set the call button, call hours, callback requests and voicemail (below), then press **Save to WhatsApp**. In **Settings > Calls**, under **How calls work here**, decide who gets rung and what Decline and Silence do. #### Each number's call settings These settings live at WhatsApp, so they also apply when someone calls the number from their phone. They're in **Settings > Calls > Each number**: pick the number at the top (with more than one). | Setting | What it does | Starts as | | --- | --- | --- | | **Calling on this number** | Off means customers can't call this number on WhatsApp and you can't call them from it. | Off | | **Show the call button in your chat** | The call icon in your WhatsApp chat. Hiding it doesn't stop calls: customers can still call from call buttons in your messages, links, their contacts or recent calls. | On | | **Countries where the call button shows** | Every country, or only the countries you pick. | Every country | | **Call hours** | Off means open all day. On: pick a time zone, up to 2 time ranges for each day (or **Closed**), and up to 20 holidays with their own hours. Outside these hours WhatsApp doesn't ring you and tells the customer you're closed. | Off | | **Callback requests** | After a call from them, WhatsApp asks the customer if you may call them back. A yes lets you call them. | Off | | **Voicemail** | Customers can leave a voice message when you can't take the call. It arrives in their chat in the Inbox. Choose **When voicemail takes a call** (when a call is declined or rejected, when nobody answers in time, or both) and **Ring for this long first** (at once, or up to 30 seconds). Upload **Your voicemail message**: an OGG (Opus) audio file under 60 seconds. Voicemail needs call hours off (WhatsApp's rule). | Off | **Save to WhatsApp** sends all of the number's call settings to WhatsApp in one go, replacing what WhatsApp has now. If WhatsApp says the number also uses the WhatsApp Business app, Avox turns calling off for it, as its calls ring in the app. **Discard** puts back what's saved. Changes can take up to 7 days to show on customers' phones (opening your chat info refreshes it). WhatsApp applies them at once. Settings Avox checks before saving, so WhatsApp rarely refuses them: - Each day can have up to 2 time ranges, opening before closing, not overlapping ([AVX-5150](https://docs.theavoxai.com/error-codes/avx-5150)). - Holidays must be in the future, up to 20 ([AVX-5151](https://docs.theavoxai.com/error-codes/avx-5151)). - Call hours need a time zone ([AVX-5152](https://docs.theavoxai.com/error-codes/avx-5152)). - The voicemail greeting must be OGG (Opus) under 60 seconds ([AVX-5153](https://docs.theavoxai.com/error-codes/avx-5153)). - Voicemail needs call hours off ([AVX-5155](https://docs.theavoxai.com/error-codes/avx-5155)). If Meta doesn't save the settings, nothing changes and you can try again a few minutes later ([AVX-5154](https://docs.theavoxai.com/error-codes/avx-5154)). #### WhatsApp's view of the number **Each number** also shows what WhatsApp reports about calling on the number: - **Call quality**, rated daily by WhatsApp: **Good** (customers are happy with your calls), **Fair** (some customers blocked or reported calls, so keep missed calls low) or **Low** (many customers blocked or reported calls, and WhatsApp may pause calling on the number). - **Pauses**, with when they end. WhatsApp can pause calling customers, pause incoming calls, or hide the call button when many calls aren't answered (turn it back on in WhatsApp Manager) ([AVX-5111](https://docs.theavoxai.com/error-codes/avx-5111)). **Change history** (the last part of **Settings > Calls**) lists every change to the number's call settings and to how calls work here: what changed, who made it and when. Each change says where it came from: **Changed in Avox**, **Changed outside Avox (WhatsApp Manager or another app)**, **Found changed when Avox checked with Meta** or **Changed by Avox support**. Avox checks each number's settings with WhatsApp every few hours. Missed and declined calls count against your number with WhatsApp. Ring enough people, set call hours your team can cover, and turn on voicemail so customers can still reach you. ### Settings > Calls **Settings > Calls** has four parts: **Limits**, **How calls work here**, **Each number** and **Change history**. Everyone with **See calls** can read it; changing it needs **Set up calling** (turning calling on or off for a number also works with **Manage connections**). #### Limits **Your numbers** says what each number can do right now: "Takes calls in Avox and can call customers who allow it", "Takes calls in Avox", or why not (for example, its calls ring in the WhatsApp Business app). **WhatsApp's rules** lists the limits WhatsApp sets: | Rule | What WhatsApp allows | | --- | --- | | **Asking to call** | 1 call permission request a day and 2 a week to each customer. A connected call resets the count. | | **How long permission lasts** | A customer allows your calls for 7 days, or always. They can take it back at any time. | | **Calls a day** | Up to 100 connected calls a day to each customer. | | **Unanswered calls** | After 2 unanswered calls in a row WhatsApp asks the customer to reconsider, and after 4 it removes your permission. | | **Countries** | Numbers in the US, Canada, Egypt, Vietnam and Nigeria can't call customers. Customers can still call them. | | **Ringing** | An incoming call rings for 30 to 60 seconds before WhatsApp ends it. | | **Number settings** | Changes can take up to 7 days to show on customers' phones. WhatsApp applies them at once. | | **Coexistence numbers** | Calls ring in the WhatsApp Business app on your phone. Meta doesn't let Avox answer or place them. | | **Charges** | Calls customers make to you are free. Calls you make are charged by Meta per minute (in 6-second steps) to your WhatsApp account, never by Avox. | #### How calls work here These apply to every WhatsApp number in the Switchboard. | Setting | Choices | Starts as | | --- | --- | --- | | **Who gets rung** | Everyone who can answer calls and has ringing on, or only the people you pick (they still need **Answer calls**). | Everyone | | **When someone presses Decline** | End the call for the whole team (the customer hears it at once), or only stop it ringing for them. When everyone who was rung declines, the call ends. | End the call for the whole team | | **When someone presses Silence** | Stop the ring on that device only, or on all their devices. A silenced call can still be answered. | That device only | | **When nobody can answer** | Reject the call at once (voicemail takes it if it's on), or let it ring out on the customer's phone. This covers nobody available, everyone already on a call, a paused Switchboard and a plan without calling. | Reject at once | | **When a private or not-allowed number calls** | Reject the call at once, or let it ring out on the customer's phone. Avox never shows these calls to anyone, either way. | Reject at once | | **Calling customers from Avox** | On or off for the whole Switchboard. Off stops everyone calling customers, whatever their permissions ([AVX-5157](https://docs.theavoxai.com/error-codes/avx-5157)). | On | | **Show a note about Meta's charge before someone's first call** | On or off. | On | | **End a call nobody answers after** | 20 to 120 seconds. When a customer doesn't pick up in that time, Avox ends the call. | 60 seconds | Each change is kept in the settings history. If someone else saved the settings while you were editing, Avox loads their version and asks you to check and save again ([AVX-5158](https://docs.theavoxai.com/error-codes/avx-5158)). ### Answering a call When a customer calls, Avox rings everyone the Switchboard's settings include who is online with ringing on. The call appears in the **call panel**, a card in the bottom right corner (along the bottom on a phone), laid out like a phone's incoming call screen: the caller's Avox Avatar, their name, one line with the last digits of their number (or "New caller") and which of your numbers they called when you have more than one, then two big buttons, **Decline** and **Answer**. The (i) beside the name shows the full number and more about the call. The call panel isn't a pop-up: you keep working around it. | Button | What it does | | --- | --- | | **Answer** | Takes the call. Your browser asks for the microphone the first time. | | **Decline** | Ends the call for everyone, or only stops it ringing for you, as **Settings > Calls** says. | | **Silence** (in the "more" menu) | Stops the ring on this device (or all your devices, as **Settings > Calls** says). You can still answer. | | **Open chat** (in the "more" menu) | Opens the customer's chat in the Inbox, on the number they called. The call stays on. | | **History** and **Profile** (in the "more" menu) | What happened with this person before, and their contact page. See [History and Profile](#history-and-profile). | **Keyboard:** while the card has focus, A answers, D declines and S silences. From anywhere, Alt + A answers, Alt + D declines and Alt + M mutes the call you're on. **One person answers.** The first person to press **Answer** gets the call. Everyone else's card shows who answered for a moment and then goes ([AVX-5135](https://docs.theavoxai.com/error-codes/avx-5135)). If the call ended before you pressed it, you see "This call has already ended." ([AVX-5136](https://docs.theavoxai.com/error-codes/avx-5136)). **Your microphone.** If the browser blocks the microphone, the call keeps ringing for your team and the card shows **Microphone blocked** with **I allowed it**, **How to allow it** and a link to your camera and microphone settings ([AVX-5130](https://docs.theavoxai.com/error-codes/avx-5130)). With no microphone at all, plug one in or pick one in [Camera & mic](https://docs.theavoxai.com/settings/camera-and-microphone) ([AVX-5131](https://docs.theavoxai.com/error-codes/avx-5131)). **One call at a time.** While you're on a call, a new call shows as a small row saying your team can answer it, with **Decline** for you only ([AVX-5137](https://docs.theavoxai.com/error-codes/avx-5137)). #### During the call The call stays in the call panel, on every page, while you keep working: - the caller's Avox Avatar, the call's state and timer, and a level meter for your microphone; - **Mute** (with a reminder when you speak while muted), with a small arrow beside it to choose the [microphone and speaker](#microphone-and-speaker); - **Write a note**, which opens the call's notes inside the panel (see [Call notes](#call-notes)); - **Open chat**, and **End call** (**Cancel call** before a call you made is answered); - the network bars and the encryption mark (see [Network bars](#network-bars)); - **More**: **Call details** (timeline, notes and cost), **History** and **Profile**. You can keep messaging the customer during the call. When it ends, the panel shows how long it lasted with **Add a note**. #### Move or minimise the call panel - **Drag** the panel anywhere by its empty parts (on a phone, by its top row). It stays inside the window and keeps its place while the tab is open. **Double click** the grip, or press Home on it, to put it back in its corner; the arrow keys move it too. - **Minimise** (the arrow at the top, or Esc inside the panel) folds the call into the **call bar** in the header. The bar keeps the main controls: the network bars, **Note**, **Mute** with the microphone and speaker arrow, **End** and **More**. Where space is tight (a phone, a small window) it keeps the timer, **Mute** and **End** and moves the rest into **More**. Click the caller's part of the bar to open the panel again. - While the panel is open, a small pill beside the search bar shows the call's timer. Clicking it minimises the panel into the bar. #### Microphone and speaker The arrow beside **Mute** lists your microphones and speakers (or **System default**). Pick one and the call switches straight away. **Camera and microphone settings** at the bottom opens [Camera & mic](https://docs.theavoxai.com/settings/camera-and-microphone). Some browsers don't let a page pick the speaker; then only the microphone shows. If a microphone or speaker is unplugged during the call, Avox switches to another and says which ("Microphone changed", "Speaker changed"). #### Network bars The bars show your connection while you talk. Hover or focus them for the words: | Bars | What it means | | --- | --- | | **Good** | Your connection is good: the call should sound clear. | | **Fair** | Your connection is so-so: some of the audio may arrive late or go missing. | | **Poor** | Your connection is poor: the call may break up. Move closer to your Wi-Fi or close apps that use the internet. | | **Reconnecting** | The connection dropped. Avox tries to get it back; if it doesn't come back within 15 seconds, the call ends. | The small lock beside them reads "Encrypted to WhatsApp (DTLS-SRTP). Not recorded." #### History and Profile **History** (in the panel's **More** menu, also while the call rings) shows the caller without leaving the call: their tags and categories, how many messages and calls you've had, when they last wrote, and a short timeline, newest first: calls and how they ended, call notes, orders, tags, broadcasts and automations (only what your permissions let you see). The back arrow returns to the call. **Profile** opens their contact page; the call stays on. #### Leaving the page Avox keeps the call on while you move between pages. Closing the tab, signing out, switching Switchboard or setting up a new Switchboard ends the call, so Avox asks first ("You're on a call") with **End call and sign out**, **End call and switch** and so on. Keep the tab open during a call. #### Where it rings Your own choices are in [Personalisation](https://docs.theavoxai.com/settings/personalisation#new-messages-and-calls) and only affect you: - **Ring me for calls**: off means you're never rung (you can still see calls). - **Ring on this device**: turn ringing off on one computer and keep it on another. - **Ring volume**, the call sound, and whether calls make a sound at all ([Sounds](https://docs.theavoxai.com/settings/personalisation#sounds)). - **Show incoming calls when I'm in another tab**: a desktop notice that shows no name or number. - [Quiet hours](https://docs.theavoxai.com/settings/personalisation#quiet-hours): the card still appears, without a sound. With Avox open in several tabs, one tab rings and the others show the call. If you answer in one tab, the others show "Answered in another tab". ### Calling customers WhatsApp only lets a business call a customer who allowed it. So calling a customer has two steps: ask for permission, then call. #### Request calling permission Press **Ask to call** in the customer's chat (also on their contact page and the Calls page). You can change the message before sending. - **Within 24 hours of their last message**, Avox sends the request as a normal message. - **After 24 hours**, the request must be an approved template with a call permission button. Pick one in **Ask to call**, or make one in [Templates](https://docs.theavoxai.com/templates/create) ([AVX-5142](https://docs.theavoxai.com/error-codes/avx-5142)). - WhatsApp allows **1 request a day and 2 a week** to each customer ([AVX-4170](https://docs.theavoxai.com/error-codes/avx-4170)). Any connected call between you resets that count. - The customer chooses to allow calls for 7 days or always. A request they don't answer lasts 7 days. - Asking a customer who already always allows your calls isn't needed ([AVX-4171](https://docs.theavoxai.com/error-codes/avx-4171)). Requests are charged by Meta as normal messages. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). #### Permission states The call button shows where you stand with each customer: | State | What it means | What you can do | | --- | --- | --- | | **Checking** | Avox is checking with WhatsApp whether you can call them. | Ask to call | | **Not allowed yet** | They haven't allowed your calls yet. | Ask to call | | **Asked, waiting** | You asked. Waiting for their answer. | Wait | | **Allowed for now** | They allowed your calls until the date shown (7 days). | Call | | **Always allowed** | They always allow your calls. | Call | | **Declined** | They declined your calls. | Ask again later | | **Permission ended** | Their 7-day permission ended. | Ask to call | | **Stopped after unanswered calls** | WhatsApp stopped your permission after 4 unanswered calls in a row. | Ask to call | | **Ask again later** | You've used this week's requests. The time you can ask again is shown. | Wait | | **Call again later** | You've reached WhatsApp's 100 calls a day to this customer. The time you can call again is shown. | Wait | | **Not available for this number** | Your number is in a country WhatsApp doesn't let call customers (see below). Customers can still call you. | Nothing | | **Not in your plan** | Your plan doesn't include calling customers. | Change your plan | | **Calling customers is off** | Turned off in **Settings > Calls**. | Ask an Admin | | **Call from the app** | The number also uses the WhatsApp Business app, so you call from the app on your phone. | Use the app | Customers can stop allowing your calls at any time from your business profile in WhatsApp. WhatsApp asks customers to reconsider after 2 unanswered calls and stops your permission after 4. Avox warns you before a call when your last calls to that customer weren't answered. #### Place a call When the customer allows calls, the button turns into **Call**. Press it and the call appears in the call panel straight away: **Getting your microphone**, **Calling**, **Ringing**, **Connecting**, then **On call**. **Cancel** stops it before they answer. If nobody picks up within the time set in **Settings > Calls**, Avox ends the call. The first time you call, a note shows Meta's rate for the customer's country (see [What calls cost](#what-calls-cost)). When your last calls to the customer weren't answered, Avox warns you first and the button reads **Call anyway**. #### What calls cost Meta bills your WhatsApp account directly for calls you make, per minute in 6-second steps. Avox doesn't charge for calls. Calls customers make to you are free. - Unanswered calls cost nothing. - The rate depends on the customer's country. Meta charges less per minute at higher monthly volume. - Every figure in Avox is an **estimate at Meta's list rate** (the first tier of Meta's rate card), so Meta's real charge can be lower. Meta's own bill in WhatsApp Manager is the final word. - India accounts see the estimate in rupees first. Where you see it: each call's details ("About $0.0212 at Meta's list rate, billed by Meta"; calls customers made read "Free: they called you"), the **Meta's charge** total on the Calls page, and a **Calls you made (estimate)** card in Billing next to Meta's message costs, split by the customer's country. Before your first call, a note reads "Meta charges for calls you make" with the rate for the customer's country and **Don't show this again**. An Admin can turn the note off for everyone in **Settings > Calls**. Meta's first-tier list rates used for the estimate (rate card effective 1 October 2026, US dollars per minute): | Customer's country | Per minute | | --- | --- | | India | $0.0053 | | Mexico | $0.0094 | | United Kingdom | $0.0099 | | Germany | $0.0103 | | Brazil | $0.0108 | | North America (US and Canada) | $0.0121 | | United Arab Emirates, Saudi Arabia | $0.0127 | | Indonesia | $0.0242 | | Other countries | $0.0132 | See [WhatsApp pricing](https://docs.theavoxai.com/whatsapp-platform) for how Meta's charges work in general. #### Countries that can't call customers WhatsApp doesn't allow calling customers from numbers in the US, Canada, Egypt, Vietnam or Nigeria. Customers can still call you ([AVX-5110](https://docs.theavoxai.com/error-codes/avx-5110)). This goes by your business number's country; the customer can be anywhere. To invite calls instead, add a call button to a message or template. ### The Calls page **Calls** lists every call on your numbers, newest first. - **Tabs:** **All**, **Missed to follow up** (with a count) and **Live now** (when a call is going on). - **Summary:** **Calls** (in and out), **Answered** (the share answered), **Missed** (with how many to follow up), **Wait to answer** (on average), **Talk time** (per answered call) and **Meta's charge** (an estimate for calls you made), for the last 30 days or the dates you filter. - **Search and filters:** search by name, last digits, call reference (`CAL-000123`) or call ID. Filter by status, which of your numbers, direction (**They called** or **Your team called**), the person who answered or placed it, dates, and calls with or without notes. - **Each row:** direction, the contact, your number (with more than one), the status, ring or talk time, who answered or placed it, the number of notes, and when. - **What each number can do with calls** sits above the list when you have numbers that work differently (for example one whose calls ring in the app). The [Overview](https://docs.theavoxai.com/overview) page has a Calls card too: **Calls today**, **Answered today**, **Missed today** and **To follow up** (missed calls this month nobody has followed up yet). #### Call statuses | Status | What it means | | --- | --- | | **Answered** | The call was answered. The row says who answered, how long it lasted and how it ended. | | **Missed** | Nobody answered. "Rang out" or "They hung up" says how long it rang. | | **Declined** | Someone on your team declined it. | | **Not rung** | The call didn't ring anyone in Avox, for example nobody was available, everyone was on a call, it came outside your call hours, the Switchboard was paused or the plan didn't include calls. | | **Failed** | The call couldn't connect. The details say why, with a code. | | **Voicemail** | The customer left a voicemail. It plays in the chat under the missed call. | | **Not answered** | A call you made that the customer didn't answer. | | **Declined by them** | A call you made that the customer declined. | | **Ended by your team** | A call you made that your team ended before it connected. | | **In the app** | The call rang in the WhatsApp Business app on the phone. | #### Missed to follow up Missed, not rung, failed and voicemail calls from customers wait in **Missed to follow up**. From each one you can **Call back** (when they allow calls), **Ask to call**, **Open chat** or **Mark followed up**, which takes it off the tab and records who followed up. **Not followed up** puts it back. #### Call details and timeline Click a row (or **Call details** in the call panel's **More** menu) to open the call's details beside the list. **Open on its own page** gives the call its own address (`/calls/CAL-000123`) to share with your team. - its reference, status, direction and which of your numbers it was on; - the customer, with **Open chat**; - **Came in** or **Placed**, **Rang for**, **Talked for**, **Answered by**, **Called by** or **Declined by**, who was rung, and **Followed up**; - the **timeline**: every step with its time and who did it, such as "Rang 3 people on 4 devices", "Priya pressed Answer", "Audio connected", "Priya muted" and "Call ended". When WhatsApp gives an error, the timeline shows its plain words and the Avox code; - **call quality**: Good, Fair or Poor in plain words, such as how much audio was lost; - for calls you made, **Permission to call them** and **Meta's charge** (the estimate); - **Follow up**: **Call back** (or **Call again**), **Ask to call**, **Open chat** and **Mark followed up**; - **Notes**. Calls also show in the customer's chat in the [Inbox](https://docs.theavoxai.com/inbox), in time order between messages (for example "Missed voice call" or "Voice call, answered by Priya"), together with permission updates such as "They allowed calls until 3 Dec". They don't count as unread messages. The contact's activity lists them too. Calls from before this version of calling show grouped and read-only, marked "Older call: details limited". #### Call notes Add notes during a call (**Write a note** in the call panel, or **Note** on the header call bar) or any time after, from the call's details. The note stays open after the call ends, so you can finish it, and an unsent note is kept in this browser. - A note can be up to 2,000 characters of plain text ([AVX-5143](https://docs.theavoxai.com/error-codes/avx-5143)). - You can edit your own notes at any time. Edited notes are marked "edited", and earlier versions are kept. - You can remove your own notes. People with **Set up calling** can remove anyone's ([AVX-5145](https://docs.theavoxai.com/error-codes/avx-5145)). A removed note shows who removed it; its words are kept for 30 days, then cleared. - Notes show in the call's details, the chat's call row (the first note and a count), the Calls page and the contact's activity. ### Who can do what Five permissions control calling. An Admin can change them for each person in [Members and roles](https://docs.theavoxai.com/switchboard/members#permissions). | Permission | What it allows | Admin | Manager (default) | | --- | --- | --- | --- | | **See calls** | Call history, live calls, call details, timelines, notes and cost estimates. | Yes | Yes | | **Answer calls** | Get rung for calls in Avox and answer, decline or silence them; mark calls followed up. | Yes | Yes | | **Make calls** | Ask customers for permission to call and call them from Avox (Meta charges your WhatsApp account per minute). | Yes | No | | **Write call notes** | Add notes to calls, and edit and remove your own. | Yes | Yes | | **Set up calling** | Calling on or off, who gets rung, call hours, the call button, callback requests and voicemail; remove anyone's call notes. | Yes | No | Answer calls, Make calls, Write call notes and Set up calling each need **See calls**. Asking a customer for permission to call also needs **Reply in the Inbox**, as the request is a WhatsApp message. People with **Manage connections** can also turn calling on or off for a number. ### Plans Two plan features cover calling: **WhatsApp calls in Avox** (answering calls and each number's call settings) and **Calling customers**. See [Plans](https://docs.theavoxai.com/plans) for what each plan includes. - Without answering in your plan, calls aren't rung in Avox ([AVX-5138](https://docs.theavoxai.com/error-codes/avx-5138)). - Without calling customers in your plan, the call button shows **Not in your plan** ([AVX-5139](https://docs.theavoxai.com/error-codes/avx-5139)). - There's no minute limit from Avox: Meta bills your WhatsApp account for calls you make. ### Privacy - **No recording or transcription.** Avox doesn't record or transcribe calls, and there's no setting for it. - **No audio through Avox.** Call audio is encrypted between your browser and WhatsApp's call servers (DTLS-SRTP), and WhatsApp carries it to the customer's phone. The audio never passes through Avox, and Avox doesn't record calls. - **What Avox keeps:** who called, when, how long, who answered and the team's notes, for as long as the contact exists. The detailed timeline is kept for 13 months. - **Private numbers stay hidden.** A call from a private number, or from a number that isn't on a number's "Only bring in chats from these numbers" list, is never shown to anyone in your team and nothing about it is kept. - **Deleting a contact** deletes their calls, notes and timeline too. ### Troubleshooting | What happens | What to do | | --- | --- | | Calls don't ring in Avox at all | Check the number is used with Avox only ([AVX-5156](https://docs.theavoxai.com/error-codes/avx-5156)), calling is on for it ([AVX-5100](https://docs.theavoxai.com/error-codes/avx-5100)), your plan includes calls ([AVX-5138](https://docs.theavoxai.com/error-codes/avx-5138)) and the Switchboard isn't paused ([AVX-5140](https://docs.theavoxai.com/error-codes/avx-5140)). | | Calls ring for others but not for me | Check you have **Answer calls**, you're on the **Who gets rung** list, and **Ring me for calls** and **Ring on this device** are on. | | Calls show as "Not rung: Nobody available" | Nobody who answers calls was online with ringing on. Keep Avox open, ring more people, or turn on voicemail. | | No ring sound | Click anywhere on the page so the browser allows sound, and check the call sound and quiet hours in Personalisation. | | "Allow your microphone to take calls." | Allow the microphone from the lock icon in the address bar and reload ([AVX-5130](https://docs.theavoxai.com/error-codes/avx-5130)). | | The call connects but there's no sound, or it drops | Your network may block calls. Try another network or turn off a VPN ([AVX-5134](https://docs.theavoxai.com/error-codes/avx-5134), [AVX-5113](https://docs.theavoxai.com/error-codes/avx-5113), [AVX-5116](https://docs.theavoxai.com/error-codes/avx-5116)). | | "This browser can't make calls." | Use a recent Chrome, Edge, Firefox or Safari ([AVX-5133](https://docs.theavoxai.com/error-codes/avx-5133), [AVX-5122](https://docs.theavoxai.com/error-codes/avx-5122)). | | Calls fail with "Add a payment method" | Add a payment method to the WhatsApp account in WhatsApp Manager ([AVX-5118](https://docs.theavoxai.com/error-codes/avx-5118)). | | Calling won't turn on | Meta turns calling on only from a messaging limit of 2,000 ([AVX-3931](https://docs.theavoxai.com/error-codes/avx-3931)), or another system may handle the number's calls ([AVX-5121](https://docs.theavoxai.com/error-codes/avx-5121)). | | "This customer hasn't allowed your calls." | Ask them first with **Ask to call** ([AVX-5106](https://docs.theavoxai.com/error-codes/avx-5106)). | | Can't ask for permission | After 24 hours, ask with a template ([AVX-5142](https://docs.theavoxai.com/error-codes/avx-5142)). WhatsApp allows 1 request a day and 2 a week ([AVX-4170](https://docs.theavoxai.com/error-codes/avx-4170)). | | Can't call a customer who allowed it | Check **Calling customers from Avox** in **Settings > Calls** ([AVX-5157](https://docs.theavoxai.com/error-codes/avx-5157)), your plan ([AVX-5139](https://docs.theavoxai.com/error-codes/avx-5139)), your number's country ([AVX-5110](https://docs.theavoxai.com/error-codes/avx-5110)) and the daily limit ([AVX-5109](https://docs.theavoxai.com/error-codes/avx-5109)). | | "WhatsApp calling in Avox is paused for a short while" | Avox paused calling for a short while. Calls already going on continue. Try again later and follow the status page ([AVX-4018](https://docs.theavoxai.com/error-codes/avx-4018)). | | "Calling isn't switched on in Avox yet." | Calling is still being set up. Try again later ([AVX-5159](https://docs.theavoxai.com/error-codes/avx-5159)). | #### Every calling code [AVX-5100](https://docs.theavoxai.com/error-codes/avx-5100) calling is off for this number, [AVX-5101](https://docs.theavoxai.com/error-codes/avx-5101) this customer can't get calls right now, [AVX-5102](https://docs.theavoxai.com/error-codes/avx-5102) too many calls going on for this number, [AVX-5103](https://docs.theavoxai.com/error-codes/avx-5103) already on a call with this customer, [AVX-5104](https://docs.theavoxai.com/error-codes/avx-5104) WhatsApp couldn't connect the call, [AVX-5105](https://docs.theavoxai.com/error-codes/avx-5105) too many calls in a short time, [AVX-5106](https://docs.theavoxai.com/error-codes/avx-5106) the customer hasn't allowed your calls, [AVX-5107](https://docs.theavoxai.com/error-codes/avx-5107) the call didn't connect in time, [AVX-5108](https://docs.theavoxai.com/error-codes/avx-5108) this number can't call without asking first, [AVX-5109](https://docs.theavoxai.com/error-codes/avx-5109) 100 calls a day to this customer reached, [AVX-5110](https://docs.theavoxai.com/error-codes/avx-5110) calling customers isn't allowed from this number's country, [AVX-5111](https://docs.theavoxai.com/error-codes/avx-5111) calling paused because of call quality, [AVX-5117](https://docs.theavoxai.com/error-codes/avx-5117) daily limit for calls without permission, [AVX-5118](https://docs.theavoxai.com/error-codes/avx-5118) payment method needed, [AVX-5119](https://docs.theavoxai.com/error-codes/avx-5119) test number recipient list, [AVX-5120](https://docs.theavoxai.com/error-codes/avx-5120) the customer's app is too old, [AVX-5121](https://docs.theavoxai.com/error-codes/avx-5121) another system handles calls for this number, [AVX-5141](https://docs.theavoxai.com/error-codes/avx-5141) this number isn't connected, [AVX-5156](https://docs.theavoxai.com/error-codes/avx-5156) calls ring in the WhatsApp Business app. [AVX-5112](https://docs.theavoxai.com/error-codes/avx-5112) the call couldn't be set up, [AVX-5113](https://docs.theavoxai.com/error-codes/avx-5113) the audio couldn't reach WhatsApp, [AVX-5114](https://docs.theavoxai.com/error-codes/avx-5114) no audio came from the customer, [AVX-5115](https://docs.theavoxai.com/error-codes/avx-5115) your audio stopped reaching WhatsApp, [AVX-5116](https://docs.theavoxai.com/error-codes/avx-5116) connected but no audio flowed, [AVX-5122](https://docs.theavoxai.com/error-codes/avx-5122) WhatsApp didn't accept this browser's call setup, [AVX-5130](https://docs.theavoxai.com/error-codes/avx-5130) allow your microphone, [AVX-5131](https://docs.theavoxai.com/error-codes/avx-5131) no microphone found, [AVX-5132](https://docs.theavoxai.com/error-codes/avx-5132) your microphone was unplugged, [AVX-5133](https://docs.theavoxai.com/error-codes/avx-5133) this browser can't make calls, [AVX-5134](https://docs.theavoxai.com/error-codes/avx-5134) the audio couldn't connect. [AVX-5135](https://docs.theavoxai.com/error-codes/avx-5135) someone else answered, [AVX-5136](https://docs.theavoxai.com/error-codes/avx-5136) the call has already ended, [AVX-5137](https://docs.theavoxai.com/error-codes/avx-5137) you're already on a call, [AVX-5142](https://docs.theavoxai.com/error-codes/avx-5142) ask by template after 24 hours, [AVX-5143](https://docs.theavoxai.com/error-codes/avx-5143) note too long, [AVX-5144](https://docs.theavoxai.com/error-codes/avx-5144) couldn't save the note, [AVX-5145](https://docs.theavoxai.com/error-codes/avx-5145) you can only change your own notes, [AVX-5146](https://docs.theavoxai.com/error-codes/avx-5146) couldn't answer the call, [AVX-5147](https://docs.theavoxai.com/error-codes/avx-5147) couldn't place the call, [AVX-5148](https://docs.theavoxai.com/error-codes/avx-5148) couldn't end the call from Avox, [AVX-5149](https://docs.theavoxai.com/error-codes/avx-5149) couldn't load this call, [AVX-4170](https://docs.theavoxai.com/error-codes/avx-4170) call request limit, [AVX-4171](https://docs.theavoxai.com/error-codes/avx-4171) the customer already allows your calls. [AVX-5150](https://docs.theavoxai.com/error-codes/avx-5150) call hours ranges, [AVX-5151](https://docs.theavoxai.com/error-codes/avx-5151) holidays, [AVX-5152](https://docs.theavoxai.com/error-codes/avx-5152) time zone, [AVX-5153](https://docs.theavoxai.com/error-codes/avx-5153) voicemail greeting file, [AVX-5154](https://docs.theavoxai.com/error-codes/avx-5154) Meta didn't save the settings, [AVX-5155](https://docs.theavoxai.com/error-codes/avx-5155) voicemail needs call hours off, [AVX-5157](https://docs.theavoxai.com/error-codes/avx-5157) calling customers is off in Settings > Calls, [AVX-5158](https://docs.theavoxai.com/error-codes/avx-5158) settings changed somewhere else, [AVX-3931](https://docs.theavoxai.com/error-codes/avx-3931) messaging limit under 2,000, [AVX-5138](https://docs.theavoxai.com/error-codes/avx-5138) plan without answering calls, [AVX-5139](https://docs.theavoxai.com/error-codes/avx-5139) plan without calling customers, [AVX-5140](https://docs.theavoxai.com/error-codes/avx-5140) Switchboard paused, [AVX-4018](https://docs.theavoxai.com/error-codes/avx-4018) calling paused for a short while, [AVX-5159](https://docs.theavoxai.com/error-codes/avx-5159) calling isn't switched on yet. ### Related Questions? Email hello@theavoxai.com. --- ## Analytics URL: https://docs.theavoxai.com/analytics Section: Workspace Analytics shows how your WhatsApp messaging is trending: how much you send and receive, how much of it gets delivered and read, and how quickly your team replies. The header reads "Message volume and response time". ### Who can see Analytics Analytics is on every plan. See [Plans](https://docs.theavoxai.com/plans). Every member of the Switchboard - **Admins** and **Managers** - can open Analytics. It also needs a WhatsApp connection; until your Switchboard has one, the sidebar item shows a lock with "This feature needs a WhatsApp connection first." ([AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). Analytics is read-only. ### Choosing a range Use the `7d`, `30d`, and `90d` buttons in the top right. Analytics opens on `30d`. Everything on the page - tiles, charts, and insights - follows the range you pick. The range is part of the page address (`/analytics?days=90`), so you can bookmark it. ### Stat tiles | Tile | What it shows | | --- | --- | | **Messages sent** | Messages your Switchboard sent in the range. | | **Messages received** | Messages your customers sent you in the range. | | **Avg. response time** | The average number of minutes between a customer's message and your next reply, averaged across the days in the range. | **Messages sent** and **Messages received** carry the same trend badge. Avox splits the range in half and compares total message volume (sent plus received) in the second half with the first half: - A green upward arrow with `+25%` means volume grew by more than 3%. - A red downward arrow with `-18%` means volume fell by more than 3%. - A grey dash means volume held steady (within 3% either way). The badge doesn't show when there's nothing to compare yet. When the first half had no messages and the second half did, the badge reads `+100%`. ### Charts | Chart | What it shows | | --- | --- | | **Message volume** | Messages sent and received, per day. | | **Delivery funnel** | Three bars - **Sent**, **Delivered**, **Read** - each with a count and a percentage of the Sent bar. See [Reading the delivery funnel](#reading-the-delivery-funnel). | | **Avg. response time** | The average minutes to your reply, per day. | | **Delivery rate** | For each day, the percentage of messages you sent that reached delivered or read. | Days are calendar days in UTC. A quiet day shows as zero, never a gap. #### Reading the delivery funnel The funnel groups the messages you sent in the range by their latest status - each message counts in exactly one bar - and shows each bar's size as a share of the **Sent** bar. Hover the info icon for a reminder of how to read it: - **A big Delivered or Read bar next to a small Sent bar** is a good sign: most of your messages already moved past "sent". - **A big Delivered bar with a small Read bar** usually means customers received the message but haven't opened WhatsApp yet - the message didn't fail. - **A big Sent bar** points at delivery itself: the number, the template, or your account's quality. Check [Health](https://docs.theavoxai.com/health) and [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - **Failed messages** sit outside the funnel. When there are any, a red line under the bars reads, for example, "3 messages failed outright, outside this funnel." #### How response time is measured Avox calculates response time itself. For each contact, it pairs a customer message with the next reply you sent after it and measures the gap in minutes. It's a reliable signal of your team's speed, not a figure WhatsApp reports. [Overview](https://docs.theavoxai.com/overview) uses the same calculation, so the two pages always agree. ### Wait times Under the charts, **Wait times** shows how long customers wait for your team, for the same range: - **First reply** - how long a new chat waited for the team's first answer. - **Reply time** - how long customers waited for any answer from the team, not just the first one. - **Waiting now** - chats whose customer wrote last, in the past 7 days, and hasn't had an answer from the team yet. - **Reply time by day** - the median reply time each day, and the time 90% of replies came within (UTC days). - **Time to answer by signal** - for each [chat signal](https://docs.theavoxai.com/chat-signals), how many times it was raised and how long the team took to answer after it appeared. Unlike **Response time** above, wait times count only replies from your team: the Inbox, the WhatsApp Business app on your phone, or the Avox API. Automated messages, smart link follow-ups and broadcasts don't count. The big number on each card is the median (half were faster); **90% within** is how long it took to answer 9 in 10 chats. See [Wait times](https://docs.theavoxai.com/chat-signals#wait-times). ### The Insights rail On the right of the page, the **Insights** card ("What's worth noticing right now") reads your numbers for you. Each insight has a green tick when it's good news or an amber warning sign when it deserves a look. The [Avox Avatar](https://docs.theavoxai.com/avox-avatar) at the top of the card looks smug when everything is good news, and unsure when at least one insight deserves a look. Insights you may see: | Insight | When it appears | | --- | --- | | Message volume is up 32% in the second half of this window. | Volume grew by 15% or more. | | Message volume dropped 20% in the second half of this window. | Volume fell by 15% or more. | | Average response time is 45 minutes - customers may be waiting a while. | Average response time is over 30 minutes. | | Replies are going out fast - average response time is under 5 minutes. | Average response time is 5 minutes or less (and above zero). | | Only 28% of sent messages get read - see the funnel below. | The **Read** bar of the delivery funnel is less than 40% of the **Sent** bar. | | Nothing unusual this window - volume and response time both look steady. | None of the above apply. | Under the card, **Learn more in the docs** opens this page. ### Marketing opt-outs How many people stopped or started again your marketing messages in the range, day by day, and where each came from: **In WhatsApp** (WhatsApp's own setting), **By replying STOP or START**, **By your team** or **By an automation**. It also shows how many contacts have marketing stopped in WhatsApp right now. A late change that arrives after a newer one isn't counted. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe#stopped-in-whatsapp). ### From your ads For click-to-WhatsApp ads, when **Automatic events** is switched on for your WhatsApp account in Meta (see [Leads and purchases from ads](https://docs.theavoxai.com/whatsapp/webhooks#leads-and-purchases-from-ads)): - **Leads and purchases Meta found** in those chats, day by day. - **Total value** of the purchases, one line per currency (nothing is converted). - **Top ads**: each ad's chats, leads and purchases, by its headline. - **From ad to sale**: of the chats that started from an ad, how many led to a lead and how many to a purchase. Meta finds these by reading new chats from ads; Avox only shows what Meta reports. The card says when the last event arrived, or that none has. Hide it in **Settings, WB events** (the events are still kept). ### Before you have data Until your connected number has message history in the selected range, every chart shows zeros with "No messages yet - connect WhatsApp to see activity here". Analytics never fills in sample data. ### Related pages - [Overview](https://docs.theavoxai.com/overview) - the same data at a glance, plus Flows, templates, and alerts. - [Health](https://docs.theavoxai.com/health) - delivery health right now, and a live check from Meta. - [Templates insights](https://docs.theavoxai.com/templates/insights) - per-template performance. --- ## Smart links URL: https://docs.theavoxai.com/chat-links Section: Workspace A **smart link** is a short link, with its own QR code, that opens a WhatsApp chat with one of your numbers. The message is already typed in for the customer, so all they do is press Send. Put the link in a bio, an ad or an email, and the QR code on a poster, a menu or a parcel, and Avox counts every scan, every click and every chat it starts. Open **Smart links** in the dashboard sidebar to see your links, make a new one, and see how each is doing. 20 starting designs, frames, a centre logo, the scan meter and downloads. Keep your favourite QR designs and your brand's colours, logo and font for the whole team. A button for your own website that opens the link, with your colours and icon. Scans, clicks, chats started and conversions, and what counts as a visit. What counts towards your plan, drafts, and buying extra links. Start an automation when a chat comes from a link. ### Before you start - You need a connected WhatsApp number. Without one, **Smart links** asks you to connect a number first ([AVX-3809](https://docs.theavoxai.com/error-codes/avx-3809)). See [Connections](https://docs.theavoxai.com/connections). - Making and changing links needs the **Create and edit smart links** permission. Seeing them needs **See smart links**. Admins and Managers have both unless an Admin changes it. See [Who can do what](#who-can-do-what). - Your plan sets how many smart links a Switchboard can have. See [Smart link limits and extra links](https://docs.theavoxai.com/chat-links/limits). ### How a smart link works On a phone or tablet, WhatsApp opens straight away. On a computer, a short "Opening WhatsApp" page shows for about half a second, then WhatsApp Desktop or WhatsApp Web opens. The chat is with the number you picked for the link, and the message box already holds the text you wrote, with a short reference at the end. The message arrives in your [Inbox](https://docs.theavoxai.com/inbox) like any other. Avox matches it to the link, counts the chat, and does whatever the link is set to do next. Every smart link opens a WhatsApp chat with your number. It never sends people to an outside website, so nobody can turn it into a trick link. ### Create a smart link Click **Create smart link** on the **Smart links** page. You can also start one from a published Flow, an approved template or a table row: their pages have a **Create a link or QR** button that fills in what the link sends. The wizard has seven steps, and a preview of the link, its QR code and the WhatsApp chat sits beside them. **Name** is for you and your team only ("Shop window poster"). Pick the **WhatsApp number it opens** (with one connected number, it's picked for you) and, if you like, a **Folder**. What people type, tap or scan. Pick one of the [three address forms](#addresses). The full address is shown as you type, with a live check that it's free. Just the chat, or the chat plus a Flow, a template or details from a table. See [What a link can send](#what-a-link-can-send). The message they start with, and optional [campaign labels](#campaign-labels). Optional [start and end dates](#start-and-end-dates) and [conversion counting](#conversions). Design the QR code: a starting design, one of your team's [saved designs](https://docs.theavoxai.com/chat-links/qr-designs) or your brand kit, then anything you like. Downloads open on the link's **QR code** tab once the link is live. See [QR codes](https://docs.theavoxai.com/chat-links/qr-codes). Check each part (**Change** jumps back to its step), then **Save as draft** or **Create and go live**. With a start date in the future, the button reads **Create and schedule**. #### Your link is live Straight after **Create and go live**, a window shows **Your smart link is live** with the QR code and the address, ready to use: - **Download QR code** downloads it as a PNG, 1024 pixels wide, in your design. - **Copy link** copies the address. - **Share** opens your phone's or computer's share menu. Where there isn't one, it opens WhatsApp with "Chat with us on WhatsApp" and the link, ready to send. The same window opens when you **Switch on** a draft or **Resume** a paused link from its page. For a link with a start date in the future it reads **Your smart link is scheduled** and says when it goes live: you can download and share the QR code already, and it opens WhatsApp once the link is live. ### Drafts You don't have to finish a link in one go. Once it has a name and a WhatsApp number, the wizard saves it as a draft as you type: the heading shows **Saving...**, then **Saved as draft**. If a save doesn't go through ("Not saved yet"), what you typed is kept in this browser and saves with your next change, or when you press **Save as draft**. - **Carry on later.** Drafts are in the list with the **Draft** state (filter by **Draft** to see them all). Click one to open the wizard where you left off, at the furthest step you reached. If an earlier step now needs a fix (say, its address was taken meanwhile), it opens there instead. - **Up to 5 drafts.** Each Switchboard keeps up to 5 smart link drafts at a time ([AVX-3835](https://docs.theavoxai.com/error-codes/avx-3835)). The list shows "Drafts 3 of 5" under **Smart links used**. While you're at 5, a new link isn't saved as a draft as you type (it's kept in this browser only), but you can still create it and go live while your plan has a free place. - **Drafts are free.** They don't count towards your plan's smart links, only towards the 5-draft cap. You can keep building and save drafts even when every place on your plan is used. Switching a draft on takes a place: when none is free, **Switch on** and **Create and go live** say so ([AVX-1170](https://docs.theavoxai.com/error-codes/avx-1170)) and the link stays a draft. See [Smart link limits](https://docs.theavoxai.com/chat-links/limits). - **Delete a draft** with the bin button on its row, like any other link (see [Deleting a link](#deleting-a-link)). A draft never opened WhatsApp, so there are no visits or chats to lose. ### Addresses Every link gets a **code**: six random letters and numbers, picked when you save. The code never changes. Characters that are easy to mix up (0 and o, 1, l and i) are never used, so a code is easy to read off a poster. The address can take one of three forms: | Form | Example | Good for | | --- | --- | --- | | **Six characters** | `chat.theavoxai.com/ab3x9k` | Short and random. Nobody can guess your other links. | | **Six characters plus your ending** | `chat.theavoxai.com/ab3x9k-summer-sale` | Random, with words people can read. | | **Your ending only** | `chat.theavoxai.com/summer-sale` | The easiest to say out loud, if it's free. | An ending is 3 to 40 lowercase letters, numbers and hyphens, starting and ending with a letter or number, one hyphen at a time ([AVX-3807](https://docs.theavoxai.com/error-codes/avx-3807)). Every address is unique across Avox, so a popular ending may already be taken ([AVX-3805](https://docs.theavoxai.com/error-codes/avx-3805)). A few words are kept for Avox, like `api`, `admin`, `help` or `whatsapp`, and so is anything containing `avox`, so no link can look like an official page ([AVX-3806](https://docs.theavoxai.com/error-codes/avx-3806)). The addresses above show the link domain Avox uses. Your dashboard always shows the exact address of each link, with a copy button. ### What a link can send Every link opens the chat. Under **What it does**, you can also have Avox send something as soon as the chat starts: | Option | What happens | You pick | | --- | --- | --- | | **Your chat** | Their message arrives in your Inbox. You (or your automations) reply. | Nothing more | | **A Flow** | Avox sends one of your [Flows](https://docs.theavoxai.com/flows) as soon as the chat starts. | A published Flow, the **Button text** that opens it (up to 20 characters) and an optional message with it | | **A template** | Avox sends an approved [template](https://docs.theavoxai.com/templates) as soon as the chat starts. | An approved template, and fixed values for its variables (the same for everyone) | | **Details from a table** | Avox sends chosen columns of one row, like a price or opening hours, as one message with a line per column. | A [table](https://docs.theavoxai.com/tables), the row, up to 20 columns and an optional first line | - What a link sends goes out **once**, right after the customer's first message, inside WhatsApp's [24-hour reply window](https://docs.theavoxai.com/whatsapp/messaging-window) that their message opens. - These sends use no [automation credits](https://docs.theavoxai.com/automation/credits): they aren't automations. - A template that needs a picture, video or file in its header can't be used here: pick one with a text header or none. - If what a link sends stops being ready (a Flow is unpublished, a template loses its approval, or the row is deleted), the link page says so ([AVX-3811](https://docs.theavoxai.com/error-codes/avx-3811)). The chat still opens, but nothing extra is sent until you pick it again in **Edit**. Each chat on the [Chats tab](https://docs.theavoxai.com/chat-links/analytics#the-chats-tab) shows whether its follow-up was sent. ### The message and its reference **Message they start with** is the text the customer's WhatsApp opens with, up to 500 characters. It starts as "Hi! I'd like to know more." and you can change it to anything. Avox adds a reference to it so it knows which link, and which visit, a chat came from, whatever the address looks like and however the customer reached it. #### How Avox recognises a chat When a message arrives, Avox looks at every clue it carries and gives each of your links on that number a confidence from 0 to 100%: A short reference at the end of the message, like `(ref AB3X9K)`, built from the link's code. Avox finds it anywhere in the message, in upper or lower case, with or without the brackets or the word "ref". A reference with a small typo, or only its first 4 or 5 characters, still helps, just a little less. Marks written inside your text that the customer can't see: invisible characters after the first word, special spaces between words, letters that look exactly the same, and, when your text has an emoji, marks on the emoji. Each kind works on its own, so if a phone removes one kind, the others still count. They carry the link and a one-off number for that exact visit, so Avox also knows which click or scan led to the chat. Avox takes the marks out before the message shows in your [Inbox](https://docs.theavoxai.com/inbox), so you, your search and your keyword automations see the text exactly as you wrote it. How close the message is to the link's text (ignoring case, spacing, punctuation and emoji), how long ago someone opened the link, how many people opened it in that hour, whether the visit came from the same country as the customer's WhatsApp number, and whether this is their first message to you. The link with the highest confidence wins: | Confidence | What it means | What happens | | --- | --- | --- | | **90% and up** | A **sure** match | Counted as a chat started. The link's follow-up and your automations run. | | **50% to 89%** | A **possible match**, shown with its percentage | Kept on the link's [Chats tab](https://docs.theavoxai.com/chat-links/analytics#the-chats-tab) but not counted as a chat started. No follow-up or automation, unless you turn on **Act on possible matches too**. | | **Under 50%** | Not enough to go on | The chat reaches your Inbox like any other, with no link. | A typed reference with a visit to the link in the 7 days before is always a sure match. #### How we recognise chats On the **Message** step (and in **Edit**), **How we recognise chats** picks what the message carries: | Choice | What the customer sees | Good for | | --- | --- | --- | | **Visible and hidden reference** (recommended) | `Hi! I saw your poster. (ref AB3X9K)` | The most reliable: some phones remove some hidden marks, and the visible reference still works when they do. | | **Hidden reference only** | `Hi! I saw your poster.` | A message that reads exactly as you wrote it. A few chats may be possible matches instead of sure ones. | | **Visible reference only** | `Hi! I saw your poster. (ref AB3X9K)` | If hidden marks cause trouble for your customers. | A hidden-only link with no text of its own starts with "Hi!", so the hidden marks have somewhere to sit. Longer messages carry more hidden marks than short ones, and an emoji adds one more kind. If a hidden-only link gets plenty of visits but few sure chats, switch it to **Visible and hidden reference**. Hidden marks never identify a person: they only name the link and the visit. A message written in another alphabet, like Russian or Greek, is never changed. #### Sure and possible matches A chat is a **possible match**, not a sure one, when the clues point to the link but aren't certain: - it was found by the message text and the timing alone; - it carries a reference, but nobody opened the link in the 7 days before (someone copied or passed the message on); - WhatsApp marked the message as forwarded; - some hidden marks arrived, but not enough to be sure. Possible matches show as **Possible match** with their percentage on the link's [Chats tab](https://docs.theavoxai.com/chat-links/analytics#the-chats-tab), with the clues under **How we know**. They're counted apart and, by default, get no follow-up and don't start automations. Turn on **Act on possible matches too** (next to what the link sends) to treat them like sure ones. **Confirm or dismiss.** Anyone who can edit smart links can answer a possible match once, from the link's **Chats** tab or from where the chat came from in the [Inbox](https://docs.theavoxai.com/inbox) contact panel: - **Confirm** counts it as a chat started from the link. Follow-ups and automations don't run for it after the fact. - **Dismiss** means it's never counted for the link. Every answer is saved with who gave it. #### Customer devices For a chat that came from a visit, Avox keeps a few broad details of that visit: phone, tablet or computer, iPhone, Android, Windows or Mac, the country, and whether they scanned the QR code or tapped the link. Never an IP address or anything that identifies the person. The **Customer devices** card on the link's [Analytics](https://docs.theavoxai.com/chat-links/analytics) (and on template, Flow and automation analytics, "from smart link visits") adds these up. People whose chat didn't come from a smart link visit show as unknown. #### Make each link's text unique If two links use the same message, Avox can't tell their chats apart by the text when a reference goes missing. While you type, Avox warns you when another link already uses the same text, or when the text is too short or common (like "Hi" or "Good morning") to be recognised on its own. Write the message as the customer would say it, and name the offer or the place you shared it ("Hi, I'd like to book a table for Friday. I saw your poster at the station."). It tells you what they want before you've said a word, it's more likely to be sent unchanged, and it can still be recognised if the reference is lost. #### Good to know - **Timing** is taken from when the customer sent the message, not when Avox got to it. - **The same person again:** another message from the same contact to the same link within 24 hours is the same chat. After 24 hours it counts again, marked **Returning**. A chat from a different link counts for that link. - **Existing contacts** who had messaged you before opening the link still count, marked **Existing contact**. - **The right number:** a chat counts only when it arrives on the number the link opens, in the same Switchboard. - **Replies:** a reference in a message that replies to an earlier message is ignored. - **Unsubscribed contacts** are still counted, but get no follow-up. - **Ended links:** a chat from a visit made while the link was live still counts after the link ends. A deleted link counts nothing more and sends no follow-up. - **Old addresses:** a visit through an [old address](#changing-the-address) isn't counted as a visit, but a chat from it is still recognised. ### Campaign labels **Campaign labels** (on the **Message** step, closed until you open it) are optional UTM values: **Source**, **Medium**, **Campaign**, **Term** and **Content**, like `instagram`, `poster` or `summer-sale`. Every visit gets them, so you can group visits by where you shared the link. Values are saved in lowercase. You can also put campaign values on the address itself wherever you share it. A visit through an address that has its own `utm_` values keeps those, and the link's labels fill in the rest: ```text https://chat.theavoxai.com/summer-sale?utm_source=instagram&utm_medium=story ``` The values show on the link's [Analytics tab](https://docs.theavoxai.com/chat-links/analytics#campaign-labels-in-analytics), travel with each chat it starts, and can be used in automations as `{{link.utm_source}}` and friends. ### Start and end dates Under **When it works** on the **Extras** step, a link can have a **Starts** and an **Ends** date and time, in your own time zone. Leave them empty to start straight away and never end. The end has to be after the start ([AVX-3823](https://docs.theavoxai.com/error-codes/avx-3823)). Before the start and after the end, the link shows a short, friendly page instead of opening WhatsApp. ### Link states Each link shows its state next to its name, and the list can be filtered by it. | State | What it means | What a visitor sees | | --- | --- | --- | | **Draft** | Saved but not switched on. Open it from the list to carry on in the wizard; **Switch on** on its page makes it live (or scheduled). | "This link isn't open yet" | | **Live** | Opens WhatsApp and counts visits. | WhatsApp opens | | **Scheduled** | Switched on, waiting for its start date. | "This link isn't open yet" | | **Paused** | Paused by you, or paused because the Switchboard is paused, or paused by Avox. **Resume** brings back a link you paused. | "This link is paused" | | **Ended** | Past its end date, or ended with **End now**. **Switch on again** brings it back (and clears an end date that has passed). | "This link has ended" | #### End or delete? - **End now** (in the link's **...** menu) stops the link opening WhatsApp and keeps its numbers. It's for a link you might switch on again, like a seasonal offer. An ended link still counts towards your plan. - **Delete** is for a link you're done with for good. It frees a place on your plan straight away. See [Deleting a link](#deleting-a-link). Printed QR codes keep pointing at their link for good. Ending or deleting a link stops every printed code for it opening WhatsApp, so think about where it's printed before you do. ### Deleting a link **Delete** is in the link's **...** menu, and the bin button on its row in the list. It works for a link in any state, and frees its place on your plan (a draft frees its place among your 5 drafts). Deleting **can't be undone**: - **Its address stops working.** Printed QR codes and shared links show a page saying the link doesn't exist. - **The address stays reserved.** Nobody, you included, can ever use that address again, so a printed code can never open someone else's chat. - **Its visits, chats and follow-ups are removed**, with its analytics. Chats already in your [Inbox](https://docs.theavoxai.com/inbox) stay, with their messages. A link that something still uses can't be deleted ([AVX-3826](https://docs.theavoxai.com/error-codes/avx-3826)): a [Broadcast](https://docs.theavoxai.com/broadcasts) that sends people to it, an [automation](https://docs.theavoxai.com/automation) that starts from it or uses it in a step, or a [chat signal](https://docs.theavoxai.com/chat-signals) that watches for it. The delete window lists each one with a link to open it. Pick another link there, or remove the step or condition, then delete again. To stop a link for now without losing anything, **Pause** or **End now** instead. ### Conversions A chat is only the start. Turn on **Count conversions** on the **Extras** step to count the chats that got where you wanted: pick a **Tag**, like Paid or Booked, and **Within (days)**, 1 to 90 (30 to start with). A chat from this link counts as converted when its contact gets that tag within that many days of the chat, whether a teammate adds it in the [Inbox](https://docs.theavoxai.com/inbox) or an automation does. Conversions show on the link's [Analytics tab](https://docs.theavoxai.com/chat-links/analytics) and each converted chat is marked on the [Chats tab](https://docs.theavoxai.com/chat-links/analytics#the-chats-tab). See [Contacts](https://docs.theavoxai.com/contacts) for how tags work. ### Editing a link On a link's page, **Edit** opens every setting in a panel that slides in over the page, in six parts: **Name and number**, **Address**, **What it does**, **First message**, **When it works** and **Conversions**. Only what you change is saved, so a pause, a QR design or someone else's edit to other parts in the meantime is never undone. After **Save** the panel says "Saved" and closes. Changes to what it sends, the message or the dates apply to the next visit; the link's QR code keeps working, since it always points at the link. - **Cancel**, the X and Esc close the panel and drop your changes. - Clicking outside the panel, or leaving the page, closes it straight away when nothing changed; with changes, it asks "Discard changes?" first. - What you type is kept in this browser until you save or cancel. If your connection drops, your changes stay, with **Save now** once you're back online. - If the link changed somewhere else so the edit can't go on (it was paused by Avox or deleted), the page reloads the link. The **...** menu also has **Duplicate**, which makes a copy with a new code (the six-character form) and the same number, folder, message, sends, campaign labels, conversion rule and QR design. A draft copies as a draft, anything else as a live link. Dates aren't copied, and the copy counts towards your plan. #### Changing the address Changing the address of a link that's in use asks first. The old address keeps opening WhatsApp, but its visits **stop counting**, and printed QR codes and shared links still carry it. Print new codes and share the new link wherever the old one was. Old addresses are listed under **Old addresses** on the [Analytics tab](https://docs.theavoxai.com/chat-links/analytics#old-addresses), with when they changed and whether they still open WhatsApp. An old address opens WhatsApp only while the link is live. A draft's address can change freely. ### Sharing a link The link's **Share** tab has everything for putting the link in front of people. #### The link and the QR code - **Copy link** and **Open**. Opening the link yourself counts as a click, like anyone else's. - **Download PNG** downloads the QR code at 1024 pixels, in your design. More sizes, SVG and PDF are on the **QR code** tab ([QR codes](https://docs.theavoxai.com/chat-links/qr-codes#downloads)). - **Copy the QR code's address** copies the address the QR code holds. It ends in `?q=1`, which is how scans are counted apart from clicks. Use it if you make a QR code somewhere else. QR code downloads open only while the link is **Live**, so nobody prints a code that shows a "not open" page. For a draft, scheduled, paused or ended link, the button stays greyed out and says why. A link that isn't live or scheduled also shows a note at the top of the tab: people who use it see a friendly page instead of WhatsApp. #### Website chat button **Website chat button** makes a button for your own website that opens the smart link: pick the words, the colours (or your own) and an icon (or upload your own), check the preview on a light or dark page, and copy the code. See [Website chat button](https://docs.theavoxai.com/chat-links/website-button). #### Send in a chat **Send in a chat** puts the link into one of your WhatsApp conversations. Check or change the **Text** ("Chat with us on WhatsApp:" and the link, to start with), search for a conversation and pick it. The conversation opens in the [Inbox](https://docs.theavoxai.com/inbox#text-from-send-in-a-chat) with the text in the reply box. Nothing is sent until you press Send there, and the usual Inbox rules apply, including WhatsApp's 24-hour reply window. **Send in a chat** needs the **Reply in the Inbox** permission. ### Folders Folders keep links for one campaign, shop or event together. The row above the list shows **All**, **No folder** and each folder with how many links it holds. - **New folder** makes one. Names are unique in a Switchboard, whatever their capitals ([AVX-3814](https://docs.theavoxai.com/error-codes/avx-3814)), and a Switchboard can have up to 100 folders ([AVX-3815](https://docs.theavoxai.com/error-codes/avx-3815)). - Open a folder to **Rename folder** or **Delete folder**. Deleting a folder keeps its links: they move out of any folder. - Pick a link's folder when you create it, or move it later in its **Edit** panel. The list can also be searched by name or address and filtered by state. ### Limits and extra links Your plan sets how many smart links each Switchboard can have, and a plan can allow unlimited links. The **Smart links** page shows how many you've used ("Smart links used"), and so does **Settings > Usage**. - **Live, scheduled, paused and ended links count.** Drafts don't: they have their own cap of 5 [drafts](#drafts) per Switchboard. - [Deleting a link](#deleting-a-link) frees a place. - When every place is used, you can't switch on or create another live link until there's room ([AVX-1170](https://docs.theavoxai.com/error-codes/avx-1170)), but you can still save new links as drafts. Links you already made keep working. - To make room, delete a link you no longer use, **Buy more links**, or move to a plan with more. The full rules, extra link packs and links added by Avox: [Smart link limits and extra links](https://docs.theavoxai.com/chat-links/limits). ### Who can do what | To | You need | | --- | --- | | See links, their QR codes, analytics and the chats they started | **See smart links** | | Create, edit, pause, end, duplicate and delete links, design their QR codes, save designs and the brand kit, and manage folders | **Create and edit smart links** | | See the contact's name on the Chats tab | **See contacts** (without it, chats show without names) | | Use **Send in a chat** | **Reply in the Inbox** | | Buy extra links | **Manage billing** | | Pick a link in an automation's trigger | **See smart links** (without it, only **Any smart link** can be picked) | Admins and Managers have both smart link permissions by default. An Admin can change them per person: see [Members and roles](https://docs.theavoxai.com/switchboard/members). Someone who can see links but not change them gets the QR code downloads, without the designer's controls. ### Troubleshooting The Avox team paused this link, for example after a report that it was misused. The reason is shown on the link's page. Visitors see "This link is paused", and you can't switch it on again yourself ([AVX-3817](https://docs.theavoxai.com/error-codes/avx-3817)). Email hello@theavoxai.com with the link's reference (like `LNK-000123`, under its name). The WhatsApp number the link opens isn't connected now ([AVX-3810](https://docs.theavoxai.com/error-codes/avx-3810)). Until it is, visitors see "This chat isn't available right now". Reconnect the number on [Connections](https://docs.theavoxai.com/connections), or pick another number in **Edit**. Check these, in order: - **Is it live?** Drafts, scheduled, paused and ended links don't open WhatsApp, so nothing is counted. - **Is it the current address?** An [old address](#changing-the-address) opens WhatsApp but isn't counted. - **Was it a robot or a preview?** Link previews (the card a chat app draws when you paste a link), search engines and browser prefetches are never counted. See [What counts as a visit](https://docs.theavoxai.com/chat-links/analytics#what-counts-as-a-visit). - **Is it a possible match?** If the customer deleted the visible reference and their phone removed the hidden marks, the chat reaches your Inbox and may show as a **possible match** on the **Chats** tab. Possible matches aren't counted as chats started until you confirm them. See [How Avox recognises a chat](#how-avox-recognises-a-chat). - **Was there a visit in the last 7 days?** A reference without a recent visit is only a possible match. - **Same person within 24 hours?** That's the same chat, counted once. - **Did it arrive on the link's number?** Chats on another number never count for the link. Smart links are paused across Avox for a short while. Visitors see "Smart links are taking a short break", and changes wait until they're back ([AVX-4016](https://docs.theavoxai.com/error-codes/avx-4016)). Your links and their counts are kept. The [status page](https://docs.theavoxai.com/status-page) shows when smart links are back. Hover the disabled button to see why. If **Create and go live** or **Switch on** is greyed out, every place on your plan is used ([AVX-1170](https://docs.theavoxai.com/error-codes/avx-1170)) or there's no plan ([AVX-1171](https://docs.theavoxai.com/error-codes/avx-1171)): save the link as a draft meanwhile, then delete a link, buy more or change plan. If **Save as draft** is the one greyed out, you already have 5 drafts ([AVX-3835](https://docs.theavoxai.com/error-codes/avx-3835)): finish or delete one. A missing permission shows the same way. If creating smart links was turned off for your account, the message says so ([AVX-3819](https://docs.theavoxai.com/error-codes/avx-3819)): contact hello@theavoxai.com. Downloads open only while the link is **Live**. Hover the greyed-out button to see the link's state, then switch it on, resume it or wait for its start date. See [The link and the QR code](#the-link-and-the-qr-code). Open the link's **Chats** tab: each chat shows **Follow-up sent**, **Follow-up failed** or **Follow-up skipped**. A follow-up is skipped when the 24-hour window closed before it could go, the number was disconnected, the Switchboard was paused, or what it sends wasn't ready (see [What a link can send](#what-a-link-can-send)). ### Related --- ## QR codes URL: https://docs.theavoxai.com/chat-links/qr-codes Section: Workspace Every [smart link](https://docs.theavoxai.com/chat-links) comes with a QR code. Scan it with a phone camera and WhatsApp opens a chat with you, message already typed. The QR code designer lets you make it look like your business, tells you whether it will scan, and gives you files for a screen or a printer. You design the code on the **QR code** step when you create a link, and on the link's **QR code** tab afterwards. Changes on the tab save on their own a moment after you make them ("Saving", then "Saved"). If a save fails, **Not saved** shows with **Try again**. A QR code always points at its smart link, never at WhatsApp directly. Change the design, the message or what the link sends whenever you like: codes you've already printed keep working. ### The designer at a glance The code sits on one side, with two views: **Code** (the code on its own) and **On a phone** (the code on a printed card, seen through a phone camera). Under it is the [scan meter](#the-scan-meter). Beside the code are **Undo** (Ctrl + Z), **Redo** (Ctrl + Shift + Z) and **Export**. The other side holds the designs to start from (**Starting designs**, and your team's [**Saved designs** and **Brand kit**](https://docs.theavoxai.com/chat-links/qr-designs)), then six tabs: | Tab | What you change | | --- | --- | | **Pattern** | The shape of the small dots, the repair level and the blank margin | | **Eyes** | The three corner squares: their outer ring, their centre, and their colours | | **Colours** | The code's colour (solid, gradient or glow) and the background (filled or see-through) | | **Frame** | A frame around the code, and its colour | | **Centre** | The graphic in the middle: the Avox mark, your logo, an icon, letters, or nothing | | **Text** | The words on the frame, their font and colour | On a phone, the tabs are buttons under the code (with **Customise**), and each opens its options in a sheet from the bottom of the screen. While you create a link, its six-character code is picked when you save, so the designer shows a sample code in your design (with an [ending-only address](https://docs.theavoxai.com/chat-links#addresses), or once the draft is saved, it's already your real code). Downloads open on the link's **QR code** tab once the link is live. ### Starting designs 20 finished designs: ten for different kinds of business and ten looks. Every one is high contrast and checked to scan. Pick one, then change anything you like. Picking a design keeps the printed width you set on the scan meter. | Design | Frame and words | | --- | --- | | **Cafe** | Bottom banner: "Order ahead on WhatsApp", a "C" in the middle | | **Salon** | Card: "Book your next visit" and "Tap, chat, done" | | **Clinic** | Simple border: "Chat with our front desk", a "+" in the middle | | **Retail shop** | Label tag: "Scan to shop" | | **Restaurant** | Ribbon: "Reserve a table" | | **Real estate** | Top banner: "Ask about this home", "RE" in the middle | | **Gym** | Ticket: "Join on WhatsApp" and "First week free" | | **Education** | Speech bubble: "Ask us anything" | | **Events** | Round badge: "RSVP here" | | **Services** | Corners: "Get a quote on WhatsApp" | | **Minimal** | No frame, square dots and eyes, nothing in the middle | | **Midnight** | Dark card: "Scan to chat" and "We reply on WhatsApp", the Avox mark in the middle | | **Neon night** | Dark round badge in bright green: "Scan me" | | **Gold on black** | Black card in gold: "By appointment" and "Message us on WhatsApp", an "L" in the middle | | **Eco green** | Green label tag: "Chat with us" | | **Pastel** | Pink speech bubble: "Say hello" | | **Bold colour** | Yellow bottom banner: "SCAN TO CHAT" | | **Ocean** | Blue simple border: "Message us", the Avox mark in the middle | | **Sunset** | Orange ribbon: "Chat with us" | | **Typewriter** | Photo print: "scan me, say hi", "Hi" in the middle | Designs your team saves, and your brand kit, sit right under the starting designs. See [Saved QR designs and brand kit](https://docs.theavoxai.com/chat-links/qr-designs). ### Pattern, eyes and colours - **Pattern:** Square, Rounded, Dots, Diamond, Tall bars, Wide bars or Liquid. Square and Rounded are the easiest to read; the others are a little harder for older phones. - **Repair level:** how much of the code can be covered or damaged and still read: **Auto**, **Low**, **Medium**, **High** or **Highest**. **Auto** picks the highest level when there's a centre graphic, and that's the right choice almost every time. - **Blank margin:** the empty space around the code, 0 to 10. 4 is the standard, and it helps phones find the code. - **Eye frame** and **Eye centre:** the corner squares' ring (Square, Soft, Rounded, Circle, Leaf) and centre (Square, Soft, Circle, Leaf, Diamond). Matching shapes read best on older phones. **Eye colours** are **Same as code** to start with; keep them dark against the background. - **Code colour:** **Solid**, **Gradient** (a start and end colour and a **Direction**) or **Glow** (a middle and edge colour). - **Background:** **Filled** with a colour, or **See-through**. Place a see-through code on a light, plain surface. Every colour picker also shows your [brand kit](https://docs.theavoxai.com/chat-links/qr-designs#brand-kit) colours, once your team has saved one. A dark code on a light background is the safest choice. Some phone cameras can't read a light code on a dark background at all, and the scan meter warns you when you try. ### Frames and text A frame with a short call to action gets more scans. Pick one of twelve frames, or **No frame**: Simple border, Card, Bottom banner, Top banner, Speech bubble, Phone, Ticket, Round badge, Photo print, Label tag, Ribbon and Corners. On the **Text** tab, write the words for the frame, up to 40 characters a line, or tap an idea: "Scan to chat", "Chat with us on WhatsApp", "Order on WhatsApp", "Book on WhatsApp", "Scan for the menu" or "Get a quote". Card, Phone and Ticket frames have room for a second line. Pick the **Font** and the **Text colour** there too. There are 14 fonts, each shown in its own style in the list: Clean, Classic, Friendly, Typewriter, Narrow, Modern, Thin, Soft modern, Old style, Elegant, Slab, Poster, Script and Handwritten. They use the fonts already on your device, so a font can look slightly different on another phone or computer. Test-scan before you print. ### The centre graphic New codes have the **Avox mark** in the middle, in its own colours. It's yours to change: on the **Centre** tab, pick: - **None** for a plain code; - **Avox**, in **Brand colours** or the **Code colour**; - **Logo** to upload your own (PNG, JPG, WebP or SVG under 5 MB), or paste an `https://` link to an image; - **Icon** to pick one from the built-in set, in a colour of your choice. Choosing **Logo** or **Icon** opens its picker first; your code keeps its current centre until you upload a logo or tap an icon; - **Letters**, up to 3, with a font and colour of your choice. **Size and shape** sets how big it is and its shape (Circle, Rounded, Square), with an optional **Backing plate** behind it in a colour of your choice. A centre graphic covers part of the code, so Avox keeps it inside what the repair level can rebuild: if you ask for more, it's shown a little smaller so the code stays readable. An uploaded logo is kept with the design. A logo from a link has to load when you download: if it can't, it's left out of that file and the designer tells you, so upload the file instead. ### The scan meter The scan meter scores your design from 0 to 100 and says it in words: **Scans easily**, **Should scan well**, **Might be hard to scan** or **Likely won't scan**. Open it to see each check, marked as fine, worth a look or needs fixing, with plain advice for anything that isn't fine: | Check | What it looks at | | --- | --- | | **Contrast** | How different the code and its background are | | **Colours** | A dark code on a light background, or the riskier light-on-dark | | **Centre** | How much of the code's repair room the centre graphic uses | | **Corner eyes** | Whether the eye ring and centre shapes match | | **Margin** | The blank space around the code | | **Pattern** | How easy the dot shape is to read | | **Print size** | The size of each dot at your printed width, and how far away it scans | | **Link length** | A longer address makes a denser code | Set **Printed width** (15 to 300 mm) to the size you'll really print. The meter then says how big one dot prints and roughly how far away the code scans from. As a rule of thumb, a code scans from about ten times its own width, so a poster across a room needs a bigger code than a table card. The PDF download uses the same width. The scan meter is a guide, not a promise. Always test-scan with a phone before printing: print one copy at the real size, and scan it with two different phones, in the light where it will hang. ### Downloads Click **Export** beside the code. A panel opens next to the designer (on a phone, in its place until you close it) with **Format** and one **Download** button: | Format | What you get | Good for | | --- | --- | --- | | **PNG** | A picture in one of four **Size** choices: **Small** (512 pixels), **Medium** (1024), **Large** (2048) or **Print** (4096) | Chats, posts and websites | | **SVG** | A sharp file that stays crisp at any size | Designers and print shops | | **PDF** | A page ready to print, with the code at your **Printed width** | Printing it yourself | Every download is your design exactly as it looks in the designer: the same frame, words, centre graphic and colours, and a see-through background stays see-through. Nothing in the export panel changes how the code looks. The link's **Share** tab and the [go-live window](https://docs.theavoxai.com/chat-links#your-link-is-live) also have a quick **Download** of the PNG at 1024 pixels. Downloads open only while the link is **Live**, so nobody prints a code that leads to a "not open" page. For a draft, scheduled, paused or ended link, **Export** stays greyed out and says why: for example "This link is paused. Downloads open once the link is live." You can keep designing meanwhile. People who can see smart links but not change them get the downloads, without the design controls. ### Where to put a QR code - **Eye level, near where the question comes up.** On the counter by the till, on the menu, on the parcel's packing slip, on the "Back in 10 minutes" sign. - **Say what happens.** A frame with "Scan to chat" or "Book on WhatsApp" does better than a bare code. - **Give it room and light.** Keep the blank margin, and avoid glossy surfaces that reflect lights. - **One link per place.** A separate link for the window and the menu tells you which one works, on [Link analytics](https://docs.theavoxai.com/chat-links/analytics). [Folders](https://docs.theavoxai.com/chat-links#folders) keep them together. ### Troubleshooting The link isn't live. Hover **Export** to see its state, then switch it on, resume it, or wait for its start date. See [Link states](https://docs.theavoxai.com/chat-links#link-states). The logo came from a link that couldn't be loaded when you downloaded. Upload the image file on the **Centre** tab instead, then download again. Open the meter and fix the checks marked as needing a fix, starting from the top. The usual ones: make the code darker than its background, keep the blank margin at 4, make the centre graphic smaller, or set the repair level back to **Auto**. Try again, or pick a smaller PNG size. On a slow device the **Print** size can take a moment. ### Related --- ## Saved designs and brand kit URL: https://docs.theavoxai.com/chat-links/qr-designs Section: Workspace Once a QR code looks right, you don't have to rebuild it for the next link. The QR code designer keeps two things for each Switchboard, shared by everyone in it: - **Saved designs**: whole designs with a name, ready to put on any smart link in one click. - **Brand kit**: your brand's colours, logo and font, to bring to any design. Both show in the designer under **Starting designs**, on the **QR code** step when you create a link and on a link's **QR code** tab. See [QR codes](https://docs.theavoxai.com/chat-links/qr-codes) for the designer itself. ### Saved designs #### Save a design Start from a starting design, a saved one or a blank code, and change anything you like. Under **Saved designs**, type a name in **Name this design** (up to 60 characters), like "Shop window" or "Menu card". Click **Save design**. "Design saved" confirms it, and it appears first in the row. A saved design keeps everything you set: pattern, eyes, colours, frame, words, font and the centre graphic, an uploaded logo included. The code itself isn't part of it: each link always gets its own. #### Use a saved design Click a saved design to put it on the code you're designing. You can still change anything afterwards, and the saved design stays as it was. Like the starting designs, it keeps the printed width you set on the scan meter. On a link's **QR code** tab the change saves on its own, and every printed code for that link keeps working: the design changes, the address it holds doesn't. #### Delete a saved design Click the bin on a saved design, then **Delete?** to confirm. It's gone for everyone in the Switchboard. Links that already use that look keep it, because each link keeps its own copy of its design. #### How many Each Switchboard keeps up to 20 saved designs ([AVX-3841](https://docs.theavoxai.com/error-codes/avx-3841)). Delete one you no longer use to save another. Each design, with its logo, can be up to about 300 KB: a large photo or a very detailed logo can go over ([AVX-3842](https://docs.theavoxai.com/error-codes/avx-3842)). A logo a few hundred pixels wide, as a PNG or SVG, is plenty. ### Brand kit The **Brand kit** holds your brand's look: up to four colours, a logo and a font. One kit per Switchboard, shared by the whole team. #### Save your brand kit Design a code in your brand's look first: your main colour as the code colour, your second colour in the eye centres, your frame colour, your background, your logo in the centre and your font on the frame. Then click **Save as brand kit**. "Brand kit saved" confirms it. The kit takes from the design on screen: | Kept in the kit | Taken from | | --- | --- | | **Colours** | The code colour, the eye centre colour (or the code's second colour), the frame colour and the background colour, each once | | **Logo** | The logo in the centre, when the centre is a **Logo**. Otherwise the kit keeps the logo it already had | | **Font** | The font of the frame's words | Saving again replaces the kit. Before your team has a kit, the card says "Save your colours, logo and font to reuse them on every code." #### Use your brand kit The card shows your kit's colours and logo. Click **Use brand kit** to bring it to the design on screen: - the first colour becomes the code colour and the frame colour; - the second colour goes in the eye centres; - the font goes on the frame's words (and on letters in the centre); - the logo goes in the centre, when the kit has one. Everything else in the design stays as it is. Your kit's colours also show as quick picks in every colour picker in the designer, so you can use them anywhere: the background, the frame's words, the eye rings, the backing plate. ### Who can do what | To | You need | | --- | --- | | Use saved designs and the brand kit while designing | **Create and edit smart links** | | Save, delete and replace saved designs and the brand kit | **Create and edit smart links** | Someone with **See smart links** only gets a link's QR code downloads, without the designer, so they don't see the saved designs. ### Troubleshooting If the designer says saved designs and the brand kit aren't switched on yet ([AVX-3840](https://docs.theavoxai.com/error-codes/avx-3840)), they're on their way: the link's own design still saves as usual. If they couldn't be loaded ([AVX-3844](https://docs.theavoxai.com/error-codes/avx-3844)), refresh the page. Starting designs and everything else in the designer keep working either way. Almost always it's the logo ([AVX-3842](https://docs.theavoxai.com/error-codes/avx-3842)). Make it smaller, save it as a PNG or SVG, upload it again on the **Centre** tab, and save the design or brand kit again. That's the most a Switchboard keeps ([AVX-3841](https://docs.theavoxai.com/error-codes/avx-3841)). Delete one your team no longer uses, then save again. A teammate deleted it, or you've switched to another Switchboard: each Switchboard has its own ([AVX-3843](https://docs.theavoxai.com/error-codes/avx-3843)). Links that used it keep their look. ### Related --- ## Website chat button URL: https://docs.theavoxai.com/chat-links/website-button Section: Workspace The **Website chat button** turns a [smart link](https://docs.theavoxai.com/chat-links) into a button for your own website. A visitor clicks it, WhatsApp opens a chat with you, and the message you wrote for the link is already typed in. You design it in the dashboard and paste a few lines of code into your site. It's on every smart link's **Share** tab, under **Website chat button**. The button is a plain link with no script, no font and no outside file (your own icon goes inside the code too), so it works on any site builder that takes HTML and doesn't slow your page down. It tracks nothing of its own: clicks are counted by the smart link, like any other visit. See [Link analytics](https://docs.theavoxai.com/chat-links/analytics). ### Make your button **Button text** is what the button says, up to 40 characters. It starts as "Chat with us on WhatsApp". Try "Ask us on WhatsApp", "Book on WhatsApp" or "Order on WhatsApp". Under **Button colours**, pick **WhatsApp green**, **Dark**, **Light** or **Your own colours**. See [Colours](#colours). Under **Button icon**, pick one of fifteen icons, **Your own icon** (an SVG or PNG of your own), or **None**. See [Icons](#icons). **Preview** shows the button exactly as your visitors will see it. Switch **Preview on** between **Light page** and **Dark page** to see it on both kinds of website. Under **Code**, press **Copy**. The code box shows exactly what gets copied, and it changes as you change the button. **Wrap lines** wraps long lines so you can read them without scrolling sideways. The button isn't saved in Avox: it lives in your website once you paste it. To change it later, open the **Share** tab again, make it the way you want and copy the new code. ### Colours | Choice | Background | Text and icon | | --- | --- | --- | | **WhatsApp green** | WhatsApp's green | White | | **Dark** | Near black | White | | **Light** | White, with a soft grey edge | Near black | | **Your own colours** | Any colour you pick | Any colour you pick | **Your own colours** starts from the look you had picked, then gives you two colour boxes: **Background** and **Text and icon**. Click one to pick from quick colours (WhatsApp's greens, darks and lights, and a few bright brand colours), open your device's colour picker, or type a colour code like `#1d4ed8`. If the two colours are too close to read the words easily, a warning says so: "These two colours are close, so the words may be hard to read. Pick a darker or lighter text colour." The button still works; the warning is there to help your visitors. A very light background gets a soft grey edge so the button still shows on a white page. ### Icons The icon sits before the words, in the same colour as the text. Pick one of these, or **None** for words only: **WhatsApp** (the WhatsApp logo, picked to start with), **Chat bubble**, **Message**, **Conversation**, **Question**, **Phone**, **Support**, **Headset**, **Help**, **Send**, **Shopping bag**, **Cart**, **Shop**, **Booking** and **Smile**. #### Your own icon Pick **Your own icon** to use your logo or any icon you like: - **Upload a file**: an SVG or PNG, up to 50 KB. - **Paste SVG code**: paste the code of an SVG, from ``. Avox cleans every SVG before it shows it or puts it in the code: it keeps only the shapes, colours and gradients a button icon needs, and takes out anything that could run or load something on your website (scripts, links, outside pictures, text and animations). If it took something out, it says "We took out parts a button icon can't use." A PNG is checked to be a real PNG image. An SVG with colours of its own can **Keep its own colours**. Turn that off, or use an SVG without colours, and it's drawn in the button's **Text and icon** colour, like the built-in icons. A PNG always keeps its own colours. **Remove** takes it off. If an icon can't be used, Avox says why in one sentence: | Message | What to do | | --- | --- | | Use an SVG or PNG file. | Choose an `.svg` or `.png` file. | | That's over 50 KB. Use a smaller icon. | Export a smaller or simpler file. | | That isn't SVG code. It should start with <svg. | Copy the whole SVG code, from ``. | | We couldn't read that SVG. | Check it's a complete SVG, then try again. | | That SVG uses features we can't allow. | Export it again as a plain SVG. | | That SVG has no shapes we can use. | Text and pictures inside an SVG aren't allowed. Turn text into shapes (outlines) in your design app. | | That SVG is too detailed for a button icon. | Use a simpler icon. | | That file isn't a real PNG image. | Save the picture again as a PNG. | ### Add it to your website Paste the code where the button should appear, in any part of your page that accepts HTML: - **Website builders:** add an "HTML", "Embed" or "Custom code" block, and paste the code into it. - **Your own site:** paste it into the page's HTML where the button should go. It shows as a rounded button, opens WhatsApp in a new tab, and looks the same on phones and computers. The code looks like this (yours has your own link, words, colours and icon): ```html ... Chat with us on WhatsApp ``` Make a separate smart link for your website, so its visits and chats are counted apart from your posters and posts. [Campaign labels](https://docs.theavoxai.com/chat-links#campaign-labels) like `website` on that link make it easy to spot in your analytics. ### Good to know - The button works only while its smart link is live. If the link is paused or ended, visitors who click it see a friendly page instead of WhatsApp. See [Link states](https://docs.theavoxai.com/chat-links#link-states). - Changing the link's message, what it sends or its dates in Avox changes what the button does straight away, with no new code to paste. Changing the link's **address** does need new code: the old address keeps opening WhatsApp, but its visits stop counting. See [Changing the address](https://docs.theavoxai.com/chat-links#changing-the-address). - Anyone who can see smart links can make and copy a button. ### Related --- ## Link analytics URL: https://docs.theavoxai.com/chat-links/analytics Section: Workspace Every [smart link](https://docs.theavoxai.com/chat-links) keeps its own numbers, from the first scan to the chat that came of it. Open a link and its **Analytics** tab shows how it's doing; the **Chats** tab lists each chat it started. The **Smart links** list shows each link's last 30 days at a glance. ### What counts as a visit A **visit** is someone opening the link's current address while the link is live. Visits come in two kinds, counted apart: - **QR scans**: visits through the QR code. The address inside a link's QR code ends in `?q=1`, and that's how a scan is told apart from a click. - **Link clicks**: visits through the link itself: taps in bios, posts, emails, ads and the [website chat button](https://docs.theavoxai.com/chat-links#website-chat-button). Some openings are never counted, so the numbers stay about real people: - **Robots and link previews.** When you paste a link into a chat app or a post, the app fetches it to draw a preview card. Those fetches, search engines and other robots never count. - **Browser prefetches.** A browser that loads a page early, in case you tap it, isn't a visit. - **Bursts from one network.** Many visits from the same network within a minute are only counted up to a limit. - **Old addresses.** After you [change a link's address](https://docs.theavoxai.com/chat-links#changing-the-address), the old one still opens WhatsApp but isn't counted as a visit. Avox still notes it, only so a chat from it can be recognised. - **Links that aren't live.** A draft, scheduled, paused or ended link doesn't open WhatsApp, so there's nothing to count. Opening your own link counts as a click, like anyone else's. #### What's kept about a visit Smart links set no cookies, and no IP address is kept. For each visit Avox keeps only the time, scan or click, the country, the kind of device (phone, tablet or computer), its system (like iOS, Android or Windows), the campaign labels and a one-off random number for the visit (carried in the message's hidden marks). Visits are never tied to a named person: a visit only meets a contact when that person sends the link's message. Visits are kept for about 13 months (400 days). Each chat started from a link and each conversion is kept for 13 months. Older ones are removed every day, but the link's **all time** numbers keep counting them, so they never go down. ### What counts as a chat started Every chat that may have come from a link gets a confidence from 0 to 100%, worked out from the clues it carries: the typed reference like `(ref AB3X9K)`, the hidden marks inside the text, how close the message is to the link's text, and when and where someone opened the link. See [How Avox recognises a chat](https://docs.theavoxai.com/chat-links#how-avox-recognises-a-chat). A **chat started** is a **sure** match, 90% and up, arriving on the link's number. A message with the link's reference, sent after someone opened the link in the **7 days** before, is always sure. That's the message the link typed in for them, so most chats count the moment they press Send. - The visible reference can be anywhere in the message, in any case, so a customer who changed the greeting still counts. - Hidden marks tie the chat to the exact visit. Without them, the chat takes the scan or click, country and campaign labels of the latest visit before it. - The same contact messaging the same link again within 24 hours is the same chat. After 24 hours it counts again, as **Returning**. **Possible matches** (50% to 89%) are counted apart, next to **Chats started**: chats found by the message text and timing, chats with a reference but no recent visit, forwarded messages, and chats where only some hidden marks arrived. Your team can **Confirm** a possible match (it then counts as a chat started) or **Dismiss** it (it's never counted). Chats under 50% aren't tied to the link at all. When a sure chat is counted, the link [sends its Flow, template or table details](https://docs.theavoxai.com/chat-links#what-a-link-can-send) (if it has one) and starts any [Chat started from a link](https://docs.theavoxai.com/automation/triggers#chat-started-from-a-link) automations. Possible matches do too only when the link has **Act on possible matches too** on. A possible match confirmed later is counted, but its follow-up and automations don't run after the fact. ### Conversions When a link has **Count conversions** on, a chat from it counts as converted when its contact gets the link's tag (like Paid or Booked) within the number of days you set. See [Conversions](https://docs.theavoxai.com/chat-links#conversions) for setting it up. ### The Analytics tab Pick a range at the top: **7**, **30**, **90** or **365** days. Days follow UTC. | Figure | What it shows | | --- | --- | | **QR scans** | Visits through the QR code in the range, and all time. | | **Link clicks** | Visits through the link itself in the range, and all time. | | **Chats started** | Sure chats in the range (and possible matches your team confirmed), the share of visits that became a chat, the possible matches beside them, and all time. | | **Conversions** | Chats from this link whose contact got your conversion tag in time, in the range and all time. | Below the figures: - **Day by day** charts QR scans, link clicks and chats started for each day of the range. - **How chats were recognised** splits chats by visible reference, hidden reference and message text. - **How sure we are** shows how many chats were sure and how many were possible matches, the average confidence, how many possible matches your team confirmed or dismissed, and the clues that matched most. - **Sure chats by how they opened** shows how many came from QR code scans and how many from taps and clicks. - **Time to chat** is the middle time between opening the link and sending the message (over sure chats tied to a visit), with how many chats were from returning and existing contacts. - **Countries**, **Devices** (Phones, Tablets, Computers, Other) and **Systems** break visits down. A visit whose country isn't known shows as "Unknown". - **Customer devices** shows the people who chatted, by the visit their chat came from: phone, tablet or computer, iPhone, Android, Windows or Mac, country, and scanned or tapped. The same card is on template, Flow and automation analytics, marked "from smart link visits": people whose chat didn't come from a smart link visit show as unknown. Avox never keeps an IP address or anything that identifies the person. - **Campaign sources**, **Campaign mediums**, **Campaign names**, **Campaign terms** and **Campaign content** appear once visits carry [campaign labels](#campaign-labels-in-analytics), with the top values for each. - **Old addresses** lists the link's earlier addresses. #### Campaign labels in analytics Campaign labels come from the link's own **Campaign labels** (set in **Edit**) and from `utm_` values on the address where you shared it. A visit's own values win; the link's labels fill in the rest. Use them to share one link in several places and still tell the places apart: ```text https://chat.theavoxai.com/summer-sale?utm_source=instagram https://chat.theavoxai.com/summer-sale?utm_source=newsletter ``` For printed codes, a separate link per place is simpler: each gets its own QR code and its own numbers. #### Old addresses Each old address shows when it was changed and either "still opens WhatsApp, not counted" or "doesn't open WhatsApp now". An old address opens WhatsApp only while the link is live. ### The Chats tab The **Chats** tab lists every chat the link started, newest first, 25 to a page. Each row shows: - the contact's name, or "A contact" when your role can't see contacts (the **See contacts** permission); - whether they scanned the QR code or clicked the link; - the visit's country and campaign; - when the chat started; - how sure Avox is: **Sure**, or **Possible match** with its percentage (hover it for why), or your team's answer, **Confirmed by your team** or **Dismissed**; - how the chat was recognised: **Visible ref**, **Hidden ref** or **Message text**, and under **How we know** the clues behind it in plain words, like "Hidden mark found, tied to the exact visit" or "Opened the link 2 minutes before messaging"; - how long after the scan or click the message came; - **Returning** (started a chat from this link more than 24 hours before) and **Existing contact** (had messaged you before opening the link); - the follow-up, for a link that sends something: **Sending**, **Follow-up sent**, **Follow-up failed** or **Follow-up skipped** (hover it for why, for example an unsubscribed contact or a possible match); - **Converted**, when the contact got the conversion tag in time. With access to the Inbox, open a chat's conversation from its row. #### Confirm or dismiss a possible match With the **Create and edit smart links** permission, a possible match shows **Confirm** and **Dismiss** on its row. The same buttons are in the [Inbox](https://docs.theavoxai.com/inbox) contact panel, where it shows which link the chat came from. Each possible match can be answered once: - **Confirm**: it counts as a chat started from this link. Follow-ups and automations don't run for it after the fact. - **Dismiss**: it's never counted for this link, and the contact panel stops showing the link. Every answer is saved with who gave it. If an answer can't be saved, try again ([AVX-3827](https://docs.theavoxai.com/error-codes/avx-3827)); a chat that's already answered, or isn't a possible match, can't be answered again ([AVX-3828](https://docs.theavoxai.com/error-codes/avx-3828)). ### Using the numbers - **Compare places, not totals.** One link per poster, menu or ad tells you which place works. Put them in a [folder](https://docs.theavoxai.com/chat-links#folders) to keep a campaign together. - **Scans with no chats?** People are reaching WhatsApp but not sending. Try a message that says what they want ("Hi, I'd like to book a table"). - **Chats with no conversions?** The link works; the conversation after it is the place to look. - **Start automations from the link.** The [Chat started from a link](https://docs.theavoxai.com/automation/triggers#chat-started-from-a-link) trigger can tag the contact with the campaign or send a welcome offer. ### Related --- ## Limits and extra links URL: https://docs.theavoxai.com/chat-links/limits Section: Workspace Your plan sets how many [smart links](https://docs.theavoxai.com/chat-links) each Switchboard can have. Some plans allow unlimited links. This page explains what counts, how drafts work, how to free a place, and how to get more links without changing your plan. ### Where to see your count - On the **Smart links** page, **Smart links used** shows how many links count out of how many your plan allows (drafts aren't in it). Hover the Blobatar beside it to see how many of those are extra links, and how many drafts you have ("Drafts 2 of 5"). - **Settings > Usage** shows the same count, with "Includes ... extra links for this Switchboard" when you have some. - The link packs window (**Buy more links**) shows **Smart links in this Switchboard**. Each Switchboard has its own count. Links in one Switchboard never use another's places. ### What counts | Link state | Counts towards your plan? | | --- | --- | | **Live** | Yes | | **Scheduled** | Yes | | **Paused**, by you, by a paused Switchboard or by Avox | Yes | | **Ended** | Yes | | **Draft** | No (up to 5 per Switchboard, see [Drafts](#drafts)) | A paused or ended link holds its place, because it can be switched back on at any time. **Deleting** a link is what frees a place: **Delete** in the link's **...** menu, or the bin on its row in the list. It works in any state and can't be undone. The address stays reserved, so nobody can ever use it again, and the link's visits, chats and follow-ups are removed (chats already in your Inbox stay). A link that a Broadcast, an automation or a chat signal still uses can't be deleted until you remove it there ([AVX-3826](https://docs.theavoxai.com/error-codes/avx-3826)). More in [Deleting a link](https://docs.theavoxai.com/chat-links#deleting-a-link). **Duplicate** makes a new link, so a copy of a link that isn't a draft takes a place of its own. Deleting a link stops every printed QR code for it opening WhatsApp: the code shows a page saying the link doesn't exist. Pick a link you no longer use, like an old campaign, before deleting one that's printed on a menu or a sign. ### When every link is in use When every place on your plan is used, **Create and go live**, **Create and schedule** and a draft's **Switch on** are greyed out and say why ([AVX-1170](https://docs.theavoxai.com/error-codes/avx-1170)), and so is duplicating a link that isn't a draft. You can still make new links and **Save as draft**: drafts don't count. A draft you try to switch on stays a draft. Links you already have keep working, opening WhatsApp and counting visits as usual. To make room, do one of these: 1. Delete a link you no longer use. 2. [Buy extra links](#extra-link-packs) for this Switchboard. 3. Move to a plan with more smart links: see [Plans](https://docs.theavoxai.com/plans) and [Change plan](https://docs.theavoxai.com/billing/change-plan). ### Drafts A link you start but don't finish is kept as a draft, so you can carry on later where you left off. See [Drafts](https://docs.theavoxai.com/chat-links#drafts). - **Drafts are free.** They don't count towards your plan, so a full plan never stops you saving one. Switching a draft on (or creating a link and going live) is what takes a place. - Each Switchboard keeps **up to 5 drafts** at a time ([AVX-3835](https://docs.theavoxai.com/error-codes/avx-3835)). - At 5 drafts, a new link isn't saved as a draft as you type: it's kept in this browser until you create it. You can still create it and go live straight away while your plan has a free place. **Save as draft** is greyed out until you finish or delete a draft. ### Extra link packs When your plan has a limit, you can add links to one Switchboard without changing your plan. Click **Buy more links** on the **Smart links** page. Each pack is a card with the number of links it adds, a short description, the price and about what each link costs. A small tag marks the **Most popular** or **Best value** pack. The window shows how many links this Switchboard has now. **Extra links**, **Lasts** ("For good - nothing renews or expires") and **Total today**. One payment, nothing renews. The links are added straight away and you can use them at once. - **Kept for good.** Extra links never expire and stay with the Switchboard you bought them for, on top of what your plan includes. They also stay when you change plan. - **Priced in US dollars.** India accounts see the price in rupees first; PayPal charges the US dollar amount. - **Receipts.** You get an invoice and an email receipt, and the payment shows in your payment history as "Extra smart links bought". - **Who can buy.** People with the **Manage billing** permission. Others who can see billing see the packs with a note to ask an Admin. You can't buy packs when the Switchboard has no plan ([AVX-1171](https://docs.theavoxai.com/error-codes/avx-1171)) or when its plan already allows unlimited links ([AVX-1172](https://docs.theavoxai.com/error-codes/avx-1172)). More on paying and refunds: [Billing](https://docs.theavoxai.com/billing#smart-link-limits-and-extra-links). ### Extra links from Avox The Avox team can also add links to a Switchboard, for example as part of an offer. They show in your count the same way as links you bought ("Includes ... extra links"), and they work the same. ### Paused plans and no plan - **Paused plan.** While your plan is paused, it allows no smart links of its own. Extra links you bought or were given still count, so the Switchboard can have that many. Your plan's links come back as soon as you resume it. You can still buy extra links while it's paused. - **No plan.** A Switchboard with no plan (its own or its Owner's) can't make new smart links ([AVX-1171](https://docs.theavoxai.com/error-codes/avx-1171)). The links it already has keep working. Pick a plan to make new ones. Links you already have are never deleted because of a limit. While a Switchboard has more links than it allows, they keep working; you just can't switch on new ones until there's room (drafts are still fine). ### Who can do what | To | You need | | --- | --- | | See the count | **See smart links** | | Delete links | **Create and edit smart links** | | Buy extra links | **Manage billing** | ### Related --- ## Broadcasts URL: https://docs.theavoxai.com/broadcasts Section: Workspace A **broadcast** sends one approved Marketing template to a group of your contacts at once: a sale, a restock, an event, a seasonal greeting. You pick the template, choose who gets it, check the numbers, confirm that everyone on the list agreed to hear from you, and Avox sends it at a pace your WhatsApp number can handle. Then a live report shows what happened. Open **Broadcasts** in the dashboard sidebar to see your broadcasts and make a new one. Sales, restocks, invites, reviews and more, each with its template, a suggested list and tips. The check before sending, line by line, and the permission sentence. Sent, delivered, read, replies, failures, cost and who got it. What counts towards your monthly limit, drafts, and list and pace limits. How people ask to stop, and why broadcasts always skip them. ### Before you start - You need a connected WhatsApp number. Without one, **Broadcasts** asks you to connect a number first ([AVX-3855](https://docs.theavoxai.com/error-codes/avx-3855)). See [Connections](https://docs.theavoxai.com/connections). - You need at least one **approved Marketing template**. See [Why Marketing templates only](#why-marketing-templates-only). - Your plan sets how many broadcasts you can send each month. See [Broadcast limits](https://docs.theavoxai.com/broadcasts/limits). - Making and sending broadcasts needs the **Create and send broadcasts** permission. See [Who can do what](#who-can-do-what). Add the ready-made **Stop and unsubscribe** automation before your first broadcast, so anyone who replies STOP is left out of the next one. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). ### Why Marketing templates only WhatsApp lets a business start a conversation with someone only through a template Meta has approved. Offers, news, invitations and greetings sent to many people at once count as **Marketing** in WhatsApp's rules. Utility templates (an order update, a booking reminder) and authentication templates (sign-in codes) are for one person at a time, about something they did, so the wizard doesn't offer them. That's why the template step lists only your **approved Marketing templates**. If you have none yet, [create one](https://docs.theavoxai.com/templates/create) or add a ready-written one from the [template library](https://docs.theavoxai.com/templates/library), then come back once Meta approves it. See [Template categories](https://docs.theavoxai.com/whatsapp/template-categories) for how Meta sorts templates. ### Start from a ready-made broadcast Avox has written thirteen ready-made broadcasts: **New offer**, **Back in stock**, **Price drop**, **Event invite**, **Event reminder**, **We miss you**, **What's new**, **Appointment slots open**, **Order on WhatsApp**, **We're open again**, **Seasonal greeting**, **Feedback request** and **Ask for a review**. Each comes with its template from the Avox library, a suggested list and tips. **Start from a ready-made broadcast** on the **Broadcasts** page shows four of them, the ones whose template you already have first. **See all** opens the **Broadcasts library** with every one, a phone preview of its message and its tips. See [Broadcasts library and ready-made broadcasts](https://docs.theavoxai.com/broadcasts/library). Each card says **Template ready** when you have an approved copy of its template, or **Needs its template** when you don't: - **Use this** opens the wizard with the name, template, variables and suggested list filled in. Change anything before you send. - **Add its template** opens the template library with that template picked. Meta reviews it, usually within a day, then the broadcast is ready to use. ### Create a broadcast Click **New broadcast** (or **Use this** on a ready-made one). The wizard has six steps. Beside them, a phone shows your message the way WhatsApp will show it, and from the third step on, a count of who gets it. See [The phone preview](#the-phone-preview). **Name** is for you and your team only ("November sale"), up to 80 characters. Pick the **WhatsApp number it goes out from** (with one connected number, it's picked for you). Pick one of your approved Marketing templates. Each shows its language, its reference and a preview. Fill in each of the template's variables. See [Variables and fallbacks](#variables-and-fallbacks). Choose who gets it. See [Who gets it](#who-gets-it). Optional: the [pace](#pace), a smart link to [count clicks](https://docs.theavoxai.com/broadcasts/report#clicks-and-conversions) and a tag to [count conversions](https://docs.theavoxai.com/broadcasts/report#clicks-and-conversions). **Check** runs the check. The [before-you-send check](https://docs.theavoxai.com/broadcasts/before-you-send), the permission sentence to tick, and **Send now** or **Schedule for later**. #### Drafts Each **Next** saves the broadcast as a draft, and **Save draft** at the top saves it at any step ("Saved as a draft"). What you type is also kept in this browser until it's saved, so a closed tab doesn't lose your work. - **Carry on later.** Drafts are on the **Broadcasts** page under **Drafts**. Open one and click **Carry on editing**: the wizard opens at the furthest step you reached, or at an earlier step that now needs a fix (for example, its template is no longer approved). - **Up to 10 drafts.** Each Switchboard keeps up to 10 broadcast drafts at a time ([AVX-3894](https://docs.theavoxai.com/error-codes/avx-3894)). The page shows "Drafts 4 of 10" under **Broadcasts this month**. At 10, a new broadcast can't be saved: send or delete a draft first. What you typed stays in this browser meanwhile. - **Drafts don't count** towards your monthly limit. Change them as often as you like. - **Delete draft** on a draft's page deletes it for good. #### The phone preview The phone beside the wizard shows the template you picked as WhatsApp shows it: header, text, footer and buttons, under your business name. From the **Variables** step on, it fills in the variables for a sample contact from your list ("Preview for ..."), so you read the message the way they will. A template with a picture, video or document header shows a short line about where the file goes. ### Who gets it The **Audience** step narrows down your contacts. Every part is optional: with nothing set, the broadcast goes to every contact. Parts you set all have to match. | Part | Options | | --- | --- | | **Tags** | **Has any of**, **Has all of**, **Has none of**. Leave all three empty to ignore tags. | | **Categories** | **In any of**, **In none of**. | | **Contact fields** | A field's name as it is on the contact, then **is**, **is not**, **contains**, **has a value** or **is empty**. Every condition has to match. | | **Last active** | **Any time**, **Active in the last** a number of days, or **Not active for at least** a number of days. A message either way, from them or from you, counts. | | **Only people who messaged you in the last few days** | A switch, then **Within (days)**. Only messages from them count. | | **Country** | One or more countries, from each number's country code. Empty means any country. | Beside the steps, the count updates as you change the list: how many people get it, how many contacts match, how many are left out and why, and a few examples. One broadcast can go to at most 100,000 contacts ([AVX-3863](https://docs.theavoxai.com/error-codes/avx-3863)): narrow the list or split it into more than one broadcast. Contacts with the **Unsubscribed** tag are always left out, whatever the list says. This can't be switched off. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). #### Who is skipped Some contacts who match the list don't get the broadcast. The check, the count beside the wizard and the report all say how many, and why: | Shown as | What it means | | --- | --- | | **Opted out in WhatsApp (stopped your marketing messages)** | The person turned off your marketing messages inside WhatsApp: WhatsApp told Avox when they did, or an earlier broadcast to them came back refused for that reason in the last 180 days. Counted here first, even if they also have the Unsubscribed tag, and checked again right before their message goes. See [Stopped in WhatsApp](https://docs.theavoxai.com/contacts/unsubscribe#stopped-in-whatsapp). | | **Asked to stop messages (Unsubscribed tag)** | The contact has the [Unsubscribed tag](https://docs.theavoxai.com/contacts/unsubscribe). They're checked again right before their message goes, so someone who replies STOP while a broadcast is sending is still left out. | | **No WhatsApp number saved** | The contact has no number. | | **Number isn't a valid phone number** | The number can't be a real phone number, so WhatsApp couldn't deliver it. | | **Same number as another contact in the list** | Two contacts share a number. The first one gets it, once. | | **A variable had no value and no fallback** | A variable uses a contact field this contact doesn't have, and no fallback was given. See [Variables and fallbacks](#variables-and-fallbacks). | | **Not sent because the broadcast was stopped** | The broadcast was stopped before their turn came. | When a contact matches more than one reason, the first one in this table is shown. ### Variables and fallbacks Most templates have variables, like `{{1}}` for a name or a discount. On the **Variables** step, pick what goes in each one: - **The same text for everyone**, like "20% off" or "Saturday 15 November". - **Their name**, **Their first name** or **Their last 4 digits of the number**, from each contact. - **Another contact field**: type the field's name as it is on the contact (letters, numbers and underscores, like `city`). A variable from a contact has **If they don't have it**: the fallback for contacts without that detail, like "there" for a missing first name ("Hi there"). Leave it empty and those contacts are skipped instead of getting a message with a gap ([AVX-3860](https://docs.theavoxai.com/error-codes/avx-3860)). Templates can also need: - **A header file link**, for a template with an image, video or document header: an `https://` link that opens for anyone. Everyone gets the same file. - **A button's link ending**, for a link button whose address ends in a variable. The preview beside the wizard fills the variables in for a sample contact from your list, so you can read the message the way they will. A template with no variables needs nothing on this step: everyone gets the same message. ### Sending now or scheduling On the **Review** step, after the [check](https://docs.theavoxai.com/broadcasts/before-you-send) and the [permission sentence](https://docs.theavoxai.com/broadcasts/before-you-send#the-permission-sentence): - **Send now** starts sending straight away. - **Schedule for later**, then **Send on**: a date and time in your own time zone, at least 5 minutes from now and up to 60 days ahead ([AVX-3867](https://docs.theavoxai.com/error-codes/avx-3867)). The button reads **Schedule**. When you press the button, Avox runs the check once more. If anything changed since you looked (a contact was tagged, the draft or its template changed), nothing is sent: the new numbers show, and you tick the sentence again ([AVX-3866](https://docs.theavoxai.com/error-codes/avx-3866)). The list itself is put together when sending starts, with the same rules as the check: straight away for **Send now**, at the chosen time for a scheduled one. Contacts tagged or untagged in between are counted as they are then. Once a broadcast is sent or scheduled, it can't be changed ([AVX-3864](https://docs.theavoxai.com/error-codes/avx-3864)), so its report always matches what was sent. **Duplicate** (in the **...** menu) copies it into a new draft. ### Pace A broadcast goes out at a steady pace, in messages a minute, never all at once. **Pace it for me** (on the **Extras** step, on by default) picks a speed from your number's messaging limit, the number of different people WhatsApp lets it start chats with in 24 hours: | Your number can reach | Automatic pace | | --- | --- | | 50 people a day | 10 a minute | | 250 people a day | 20 a minute | | 1,000 or 2,000 people a day | 60 a minute | | 10,000 people a day | 300 a minute | | 100,000 people a day | 600 a minute | | Unlimited | 1,000 a minute | | Not known | 60 a minute | Switch it off to set **Messages a minute** yourself, from 1 to 1,000 ([AVX-3892](https://docs.theavoxai.com/error-codes/avx-3892)). Slower is safer for your number's quality: complaints that arrive while a broadcast is still sending can pause it before it reaches everyone. Two more things set the pace: - **Your number's daily limit.** Avox never sends more broadcast messages from a number in 24 hours than its limit allows. A bigger list waits and carries on as soon as the number can reach more people, usually the next day. The check says how many days it will take. - **WhatsApp's speed limit.** If WhatsApp says a number is sending too fast, Avox waits half a minute and tries those messages again. If it keeps happening, the broadcast pauses (see below). See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits#messaging-limits-and-tiers) for how messaging limits work and grow. ### Broadcast states Each broadcast shows its state next to its name. The list can be filtered (**All**, **Drafts**, **Scheduled**, **Sending**, **Paused**, **Completed**, **Stopped**), and searched by name or reference (like `BRD-000123`). | State | What it means | | --- | --- | | **Draft** | Not sent yet. **Carry on editing** reopens it in the wizard; change it as much as you like, or delete it. | | **Scheduled** | Confirmed, waiting for its time. | | **Sending** | Going out now. A note under the title says when it's [waiting](#waiting-while-sending). | | **Paused** | Paused by your team. **Resume** carries on. | | **Paused by Avox** | Paused automatically to protect your number, or by the Avox team. See [Automatic pauses](#automatic-pauses). | | **Stopped** | Stopped for good, by your team or by Avox. | | **Sent** | Everyone on the list got their turn. | | **Couldn't send** | The list couldn't be put together. | While a broadcast is scheduled, sending or paused, its page shows **Sent so far** and refreshes every few seconds. ### Pausing, resuming and stopping On a broadcast's page: - **Pause** stops it where it is, from **Scheduled** or **Sending**. Nothing more goes out until you resume ([AVX-3873](https://docs.theavoxai.com/error-codes/avx-3873)). - **Resume** carries on from where it stopped. A scheduled broadcast whose time hasn't come goes back to **Scheduled** ([AVX-3874](https://docs.theavoxai.com/error-codes/avx-3874)). - **Stop for good** (in the **...** menu) ends it. Nobody else gets it, and it can't be started again. Messages already sent stay sent and the report stays; everyone still waiting shows as **Not sent because the broadcast was stopped** ([AVX-3875](https://docs.theavoxai.com/error-codes/avx-3875)). To send it later, duplicate it instead. - **Duplicate** copies any broadcast into a new draft. **Delete draft** deletes a draft for good. When you resume, your number's quality at that moment becomes the new starting point for the [quality check](#automatic-pauses), and only messages sent after you resumed count towards the failure checks. ### Automatic pauses Avox watches every batch while a broadcast sends, and pauses it to protect your number when something goes wrong. The broadcast shows **Paused by Avox** with the reason and what to do, and the team is told: a notice in the bell at the top of the dashboard, and an email to your Admins (unless **WhatsApp account alerts** is turned off in [Email preferences](https://docs.theavoxai.com/compliance#email-preferences)). | Why it paused | What to do | | --- | --- | | **Your number's quality dropped** since sending started, for example from High to Medium ([AVX-3880](https://docs.theavoxai.com/error-codes/avx-3880)) | Wait until your number's quality is back up (it shows on [Connections](https://docs.theavoxai.com/connections) and [Health](https://docs.theavoxai.com/health)), then resume. Sending to people who know you lowers the risk. | | **Too many messages failed**: more than 1 in 5 of the latest 100, once at least 20 were tried ([AVX-3881](https://docs.theavoxai.com/error-codes/avx-3881)) | Open the [report](https://docs.theavoxai.com/broadcasts/report#why-some-failed) to see why they failed. Fix the cause (a wrong file link, an old list), then resume. | | **WhatsApp is limiting messages from your number**: three or more "slow down" answers in the latest 100 ([AVX-3882](https://docs.theavoxai.com/error-codes/avx-3882)) | Wait a few hours, then resume. A slower pace in a copy of this broadcast also helps. | | **WhatsApp refused messages from your number**, for example a spam limit, a locked account or a payment problem on your Meta account ([AVX-3882](https://docs.theavoxai.com/error-codes/avx-3882)) | Check your number and your Meta Business account for warnings, then resume. | | **The template isn't approved by Meta right now** ([AVX-3883](https://docs.theavoxai.com/error-codes/avx-3883)) | Check the template's status on [Templates](https://docs.theavoxai.com/templates). Resume once Meta approves it again. | | **The WhatsApp number isn't connected**, or Avox's access to it expired ([AVX-3884](https://docs.theavoxai.com/error-codes/avx-3884)) | Reconnect the number on [Connections](https://docs.theavoxai.com/connections), then resume. | | **Your plan's broadcasts for this month are used up**, so it couldn't start ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)), or there's no active plan ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)) | Resume it from the 1st of next month, or after you [change your plan](https://docs.theavoxai.com/billing/change-plan). It isn't counted until it starts. See [Broadcast limits](https://docs.theavoxai.com/broadcasts/limits). | People who turned off marketing messages in WhatsApp don't count towards the failure check: that's their choice, not a problem with your list. A broadcast the Avox team paused can't be resumed from your dashboard ([AVX-3876](https://docs.theavoxai.com/error-codes/avx-3876)), and one the Avox team stopped stays stopped ([AVX-3893](https://docs.theavoxai.com/error-codes/avx-3893)). The reason shows on the broadcast's page. Email hello@theavoxai.com with its reference (like `BRD-000123`). #### Waiting while sending Sometimes a sending broadcast waits on its own and carries on by itself. It stays **Sending**, with a note that says why: - **Your number has reached how many people it can message in 24 hours.** The rest goes out as soon as it can ([AVX-3885](https://docs.theavoxai.com/error-codes/avx-3885)). - **Avox has paused broadcasts, or WhatsApp sending, for a short while.** Sending carries on once it's back ([AVX-3886](https://docs.theavoxai.com/error-codes/avx-3886)). The [status page](https://docs.theavoxai.com/status-page) shows when. - **This Switchboard is paused.** Sending carries on once it's resumed ([AVX-3887](https://docs.theavoxai.com/error-codes/avx-3887)). - **Avox is putting the list together.** Large lists take a short while. Nothing is sent twice while a broadcast waits. ### In the Inbox Each message a broadcast sends shows in that contact's conversation in the [Inbox](https://docs.theavoxai.com/inbox), and their replies arrive there like any other message, ready for your team. Broadcast messages never count as a reply from your team, so they don't clear [chat signals](https://docs.theavoxai.com/chat-signals) like "Waiting for a person" or change your [wait times](https://docs.theavoxai.com/chat-signals#wait-times). ### Monthly limits Your plan sets how many broadcasts a Switchboard can send each calendar month, and a plan can allow unlimited broadcasts. See [Plans](https://docs.theavoxai.com/plans) and [Broadcast limits](https://docs.theavoxai.com/broadcasts/limits). - A broadcast counts once it **starts sending**, in the month it starts, and keeps counting even if it's paused or stopped later. Ones scheduled for this month that haven't started yet are held for it, so **Send now** and **Schedule** can't go past the limit. Drafts, and broadcasts stopped before they started, don't count. One waiting only because the Switchboard is paused counts once it starts after you resume. - If a broadcast is due to start when the month is already full, it doesn't start: it's **Paused by Avox** ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)) and your team is told. Resume it next month or after a plan change. See [Broadcast limits](https://docs.theavoxai.com/broadcasts/limits#when-a-broadcast-is-due-but-the-month-is-full). - The count starts again on the 1st of each month (UTC). - The count is on the **Broadcasts** page ("Broadcasts this month"), on **Settings > Usage**, and in the check before sending. - When every broadcast this month is used, new ones can't be sent until the next month ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)). Drafts can still be made and saved. To send more now, see [Change plan](https://docs.theavoxai.com/billing/change-plan). - Broadcasts need an active plan. With no plan, or a paused one, they can't be sent ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)). The limit counts broadcasts, not messages. What Meta charges for the messages is separate and billed to your own Meta account: see the [cost estimate](https://docs.theavoxai.com/broadcasts/before-you-send#estimated-cost). ### Who can do what | To | You need | | --- | --- | | See broadcasts, their reports, who they went to, and download the list | **See broadcasts** | | Create, schedule, send, pause, resume, stop, duplicate and delete drafts | **Create and send broadcasts** | | See names and numbers on the **Recipients** tab and in the download | **See contacts** (without it, recipients show without names) | Broadcasts reach many people at once, so Managers can see them but not send them by default. Admins have both. An Admin can give **Create and send broadcasts** to anyone: see [Members and roles](https://docs.theavoxai.com/switchboard/members). ### Troubleshooting The list shows only templates that are **Marketing** and **approved** by Meta right now ([AVX-3858](https://docs.theavoxai.com/error-codes/avx-3858), [AVX-3859](https://docs.theavoxai.com/error-codes/avx-3859)). Check its category and status on [Templates](https://docs.theavoxai.com/templates). A template still in review appears once Meta approves it. Hover it to see why. Usually it's one of these: - The permission sentence isn't ticked yet. - The check found something that **stops sending** (shown at the top of the check), like a number that isn't connected or a list nobody can get. - This month's broadcasts are used up ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)), or there's no active plan ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)). - A scheduled time is less than 5 minutes away, or has passed. - You don't have **Create and send broadcasts**. Something changed between the check and pressing the button, so Avox showed the new numbers instead of sending ([AVX-3866](https://docs.theavoxai.com/error-codes/avx-3866)). Look them over, tick the sentence again and send. Look for the note under the title: the number may have reached its daily limit, the Switchboard may be paused, or Avox may have paused sending for a short while. See [Waiting while sending](#waiting-while-sending). It carries on by itself. Every contact in the list was skipped ([AVX-3862](https://docs.theavoxai.com/error-codes/avx-3862)). The check shows why, for each reason. Change who it goes to, or give a variable a fallback. Broadcasts skip only contacts with the **Unsubscribed** tag. If they replied STOP and the **Stop and unsubscribe** automation wasn't on, or they asked in other words, add the tag to them by hand. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). Your Switchboard already has 10 broadcast drafts ([AVX-3894](https://docs.theavoxai.com/error-codes/avx-3894)). Open **Broadcasts**, pick **Drafts**, then send one you're happy with or delete one you no longer need. If broadcasts, or creating them, were turned off for your account, the message says so ([AVX-3870](https://docs.theavoxai.com/error-codes/avx-3870), [AVX-3871](https://docs.theavoxai.com/error-codes/avx-3871)). Contact hello@theavoxai.com. Broadcasts are paused across Avox for a short while ([AVX-4017](https://docs.theavoxai.com/error-codes/avx-4017)). Nothing new can be sent, scheduled ones wait, and ones already sending carry on by themselves once it's back. Drafts can still be edited. The [status page](https://docs.theavoxai.com/status-page) shows when broadcasts are back. ### Related --- ## Before you send URL: https://docs.theavoxai.com/broadcasts/before-you-send Section: Workspace Before a [broadcast](https://docs.theavoxai.com/broadcasts) goes out, the **Review** step runs a check. It counts who gets it and who doesn't, reads your number's standing from Meta, estimates the cost, works out how long it will take, and says plainly anything that could hurt your number. Then you confirm, in one sentence, that everyone on the list agreed to hear from you. The check runs when you reach the **Review** step. **Check again** runs it once more, and it runs again by itself when you press **Send now** or **Schedule**, so the numbers that go out are the numbers you saw. ### What the check found The top of the check lists what it found, most serious first. With nothing to say, it reads **Nothing risky found**. - **Stops sending** (red): the broadcast can't go out until you fix it. - **Worth a look** (amber): it can go out, but think twice. - **Good to know** (blue): something to keep in mind. | Message | Level | What to do | | --- | --- | --- | | Pick a connected WhatsApp number to send from. | Stops sending | Pick a number on the **Name** step. | | The WhatsApp number isn't connected right now. Reconnect it first. | Stops sending | Reconnect it on [Connections](https://docs.theavoxai.com/connections). | | Meta rejected this WhatsApp Business Account, or hasn't finished reviewing it. | Stops sending | Open the number's page on [Connections](https://docs.theavoxai.com/connections) for what Meta decided and what to do ([AVX-3977](https://docs.theavoxai.com/error-codes/avx-3977)). See [Account review](https://docs.theavoxai.com/whatsapp/webhooks#account-review). | | Meta disabled or deleted this account, moved the number off the platform, or restricted it from starting conversations. | Stops sending | The number's page explains what Meta did and until when ([AVX-3978](https://docs.theavoxai.com/error-codes/avx-3978)). A restriction ends on its own. | | Pick an approved Marketing template. / Broadcasts use Marketing templates only. | Stops sending | Pick another template on the **Template** step. | | The template isn't approved by Meta right now. | Stops sending | Wait for approval, or pick another template. | | Fill in ... | Stops sending | Fill in the variables it names on the **Variables** step. | | Nobody in this list can get the broadcast. | Stops sending | Change who it goes to. The skipped reasons below say why. | | A broadcast can go to at most 100,000 contacts. | Stops sending | Narrow the list, or split it. | | There's no active plan, or this month's broadcasts are all sent. | Stops sending | See [Monthly limits](https://docs.theavoxai.com/broadcasts#monthly-limits). | | Your number's quality is Medium. | Worth a look | A large send may lower it. Consider a smaller, more engaged list. | | Your number's quality is Low. | Worth a look | A broadcast now could get your number limited. Wait, or send to people who know you best. | | This is more than your number can reach in a day. | Worth a look | Nothing to change: the rest goes out as soon as your number can reach more people, usually the next day. | | Contacts who haven't messaged you in 90 days. | Good to know, or Worth a look when they're more than half the list | People who don't remember you block and report more often. Think about leaving them out. | | Meta rates this template's quality as low. | Worth a look | People may be blocking or reporting it. Try another template. | | Contacts will be skipped. | Good to know | Shown when as many are skipped as get it. See why under **Who gets it**. | | Avox couldn't read your number's quality, or its daily reach, from Meta just now. | Good to know | Nothing to do: Avox still pauses the broadcast if quality drops or a limit is reached while it sends. | ### Your number - **Number**: the WhatsApp number it goes out from. - **Quality**: Meta's quality rating for that number, **High**, **Medium** or **Low**. It's how Meta judges whether people want your messages, mostly from blocks and reports in the last few days. See [Quality rating](https://docs.theavoxai.com/whatsapp/quality-and-limits#quality-rating). - **Can reach**: how many different people WhatsApp lets the number start chats with in 24 hours (its messaging limit), or **Unlimited**. See [Messaging limits and tiers](https://docs.theavoxai.com/whatsapp/quality-and-limits#messaging-limits-and-tiers). - **Broadcast messages in the last 24 hours**: what this number has already sent in broadcasts. Avox counts them against the daily reach, so two broadcasts on the same day share it. Avox asks Meta for the quality and the limit when the check runs. If Meta doesn't answer, a small note says the figures come from WhatsApp's last update instead, or that they aren't known. ### Template The template's **Name**, **Language**, **Meta's status** (it has to be **Approved**) and **Template quality**, Meta's own rating of how people react to that template. See [Template quality](https://docs.theavoxai.com/whatsapp/quality-and-limits#template-quality). ### Who gets it How many people get the broadcast, then how many are **left out** and why, one line per reason (see [Who is skipped](https://docs.theavoxai.com/broadcasts#who-is-skipped)). Under them: how many of the people on the list haven't messaged you in the last 90 days or more, including anyone who never has. These are the same rules the broadcast uses when it sends. If contacts change before sending starts, the real list follows the change. **Opted out in WhatsApp (stopped your marketing messages)** counts people who turned off your marketing messages inside WhatsApp, whether WhatsApp told Avox when they did it or a broadcast to them failed for that reason in the last 180 days. They're counted here even if they also have the Unsubscribed tag, and they're checked again right before each message goes. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe#stopped-in-whatsapp). ### Estimated cost A rough guide to what Meta will charge for the broadcast, in US dollars: - **The total**: the people who get it times **Per message**, the Marketing rate per message Avox uses. - **By country**: the four countries with the most people, with their share of the total. Meta bills these charges to your own Meta account, never through Avox, and Avox adds nothing to them. Meta's real price depends on the country of each number, and some messages are free, so the bill can differ from the estimate. **Per message: Not known** means no rate was available, so no cost is shown. After sending, the [report](https://docs.theavoxai.com/broadcasts/report#cost) shows the cost from what Meta reported. For how Meta prices messages, see [Pricing](https://docs.theavoxai.com/whatsapp-platform) and [Meta charges](https://docs.theavoxai.com/billing#meta-charges-and-payment-problems). ### This month How many broadcasts you've sent this month and how many your plan allows, or **Unlimited broadcasts** with this month's count. See [Monthly limits](https://docs.theavoxai.com/broadcasts#monthly-limits). ### Pace - **Speed**: messages a minute, with "(picked for you)" when **Pace it for me** is on. See [Pace](https://docs.theavoxai.com/broadcasts#pace). - **Takes**: about how long sending takes at that speed. - When the list is bigger than your number's daily reach, a line says it spreads over about how many days. ### Numbers that aren't known When Meta hasn't shared something yet (your number's quality or daily reach, the template's quality, the price per message), the check says which, and leaves it as "Not known". It never guesses. ### The permission sentence Under the check is one sentence with a box to tick: ```text I confirm everyone in this list agreed to get messages like this from Riverside Cafe on WhatsApp. ``` It uses your business name from [Settings > Business](https://docs.theavoxai.com/settings/business). **Send now** and **Schedule** stay greyed out until it's ticked ([AVX-3865](https://docs.theavoxai.com/error-codes/avx-3865)), and ticking it again is needed whenever the check's numbers change. #### Why it matters - **It's WhatsApp's rule.** WhatsApp's Business Messaging Policy says a business may message people only after they agreed to hear from it on WhatsApp, and only about what they agreed to. A broadcast is exactly that kind of message. - **It protects your number.** People who don't expect your message block and report it. Enough blocks and reports lower your number's quality, and Meta can then lower how many people it can message, or restrict it. One careless broadcast can undo months of good conversations. - **It's a record.** The sentence, who ticked it and when are kept with the broadcast, on its **What was confirmed** tab, and in your [activity log](https://docs.theavoxai.com/logs). Good lists are people who messaged you, bought from you or signed up to hear from you on WhatsApp, and recently. Bought or copied lists, and old lists of people who never chatted with you, are the fastest way to a Low quality rating. ### After you confirm The numbers you saw, the sentence and who confirmed it are kept on the broadcast's **What was confirmed** tab: when it was checked, how many it was going to, each reason people were left out, the estimated cost and rate per message, your number's quality and its daily reach at the time. Compare them with the [report](https://docs.theavoxai.com/broadcasts/report) once it's sent. ### Related --- ## Broadcast report URL: https://docs.theavoxai.com/broadcasts/report Section: Workspace Once a [broadcast](https://docs.theavoxai.com/broadcasts) starts sending, its page has three tabs: **Report** for the numbers, **Recipients** for who got it, and **What was confirmed** for the check you saw before sending. While it's scheduled, sending or paused, the page refreshes every few seconds. The report counts things. It never shows what anyone wrote, and names appear only on the **Recipients** tab, for people who can see contacts. ### The report #### Sent, delivered, read, replied, failed The five figures at the top, each with its share: | Figure | What it counts | Share of | | --- | --- | --- | | **Sent** | Messages WhatsApp accepted from your number. Delivered and read ones are included. | The messages Avox tried to send | | **Delivered** | Messages WhatsApp says reached the person's phone. | Sent | | **Read** | Messages WhatsApp says were opened. People who turned off read receipts never show as read, so this can be lower than the truth. | Sent | | **Replied** | People who messaged you within 3 days of their broadcast, or replied to it directly. | Sent | | **Failed** | Messages that couldn't be sent or delivered. See [Why some failed](#why-some-failed). | The messages Avox tried to send | Delivered and read come from WhatsApp's own updates, so they can keep rising for a few days after sending ends. A reply counts towards the latest broadcast the person got in the 3 days before it. #### After the broadcast | Figure | What it counts | | --- | --- | | **Asked to stop within 7 days** | People who got the [Unsubscribed tag](https://docs.theavoxai.com/contacts/unsubscribe) within 7 days of their message, for example by replying STOP. Watch this one: a high number means the list or the message missed. | | **Opt-outs after this broadcast** | People who stopped your marketing messages within 7 days of getting it, in WhatsApp itself or by replying STOP: most likely because of this broadcast. Shows once the latest Avox update is in place. | | **Button taps** | Taps on the template's quick reply buttons, all together. The **Button taps** card lists each button. | | **Chats through the smart link** | Shown when you picked a smart link on the **Extras** step. See below. | | **Converted within N days** | Shown when you picked a conversion tag. See below. | #### Clicks and conversions Both are optional, on the wizard's **Extras** step: - **Count clicks with a smart link.** If the message points people to one of your [smart links](https://docs.theavoxai.com/chat-links) (in a button or the text), pick it here. Someone who got the broadcast and then started a chat through that link within 7 days counts as a click. - **Count conversions.** Pick a **Tag**, like Paid or Booked, and **Within (days)**, from 1 to 90 (7 to start with). Someone who got the broadcast counts as converted when they get that tag within that many days, whether a teammate adds it in the [Inbox](https://docs.theavoxai.com/inbox) or an automation does. With neither picked, the report shows "No smart link picked" and "No conversion tag picked". #### Delivery over time A chart of sent, delivered, read, failed and replied, hour by hour, for the first 14 days after the broadcast started. #### Why some failed Each reason a message failed, with how many and what it means in plain words. The common ones: | Reason | What it means | | --- | --- | | **Couldn't be delivered** | The number isn't on WhatsApp, or the person's app is too old or can't receive messages right now. | | **Held back by WhatsApp** | WhatsApp limits how many marketing messages one person gets from all businesses. This person had enough for now. | | **Stopped marketing messages** | The person told WhatsApp they don't want marketing messages from businesses. Avox skips them in later broadcasts. | | **Media couldn't be loaded** | The header file couldn't be downloaded. Check that its link opens for anyone. | | **Sending too fast** | WhatsApp's speed limit was reached. Avox slows down, and pauses if it keeps happening. | | **Spam limit reached**, **Account locked**, **Payment problem**, **Temporarily blocked** | A problem with your number or Meta account. Avox [pauses the broadcast](https://docs.theavoxai.com/broadcasts#automatic-pauses). | | **Template paused**, **Template disabled**, **Variables don't match**, **Text too long** | A problem with the template or its values. Avox pauses the broadcast. | | **WhatsApp had a problem**, **WhatsApp was unavailable** | Something went wrong on WhatsApp's side. | | **The send was interrupted, so it may or may not have gone out** | Avox didn't get an answer from WhatsApp. It's never sent twice, so the person gets at most one message. | Under the failures, **Left out before sending** lists the [skipped contacts](https://docs.theavoxai.com/broadcasts#who-is-skipped) by reason. #### Countries For each country: the people, and the share delivered and read, and how many failed. #### Cost - **Estimated before sending**: the estimate from the check you confirmed. - **So far, from what Meta reported**: the messages Meta marked as charged on their delivery updates, times the Marketing rate per message Avox uses. Under them: how many messages were charged, how many were free and how many Meta hasn't reported yet. Meta bills your Meta account directly, and its own invoice is the final word. See [Meta charges](https://docs.theavoxai.com/billing#meta-charges-and-payment-problems). #### Your number's quality The number's quality **Before sending** and the **Latest**, with its daily reach. Quality comes from Meta and can take a while to change, so check it again a day or two later. If it drops while sending, Avox [pauses the broadcast](https://docs.theavoxai.com/broadcasts#automatic-pauses). ### Recipients The **Recipients** tab lists everyone on the broadcast's list, a page at a time (**Show more** for the next). Each row shows: - the contact's name and the last 4 digits of their number, for people with **See contacts**; - the country and the time of the latest update; - what happened after: replied, the button they tapped, clicked, converted, asked to stop; - why they were left out, or why it failed, in plain words; - the state: **Waiting**, **Sending**, **Sent**, **Delivered**, **Read**, **Failed** or **Left out**. **Show** filters the list: **Everyone**, **Waiting**, **Sent**, **Delivered**, **Read**, **Replied**, **Clicked**, **Converted**, **Asked to stop**, **Failed** or **Left out**. With the Inbox open to you, a recipient's name opens their chat on the broadcast's WhatsApp number, so you can follow up a reply straight away. The broadcast's page also links its template and its smart link, and shows its number when you have more than one. #### Download CSV **Download CSV** downloads the list as it's filtered, up to 100,000 rows. The file has the country, the state, why they were left out, the error, and the time of each step (sent, delivered, read, failed, replied, button tapped, clicked, asked to stop, converted). With **See contacts**, it starts with the name and the last 4 digits of the number; full numbers are never in the file. Each download is recorded in your [activity log](https://docs.theavoxai.com/logs). #### How long it's kept The recipients list (who it went to and what happened to each message) is kept for **13 months after the broadcast finishes** (completed or stopped), then removed for good, along with what can be downloaded. The **Report** stays as it was: its totals, chart, countries, failures, taps and cost are kept with the broadcast, so they never shrink. ### What was confirmed The **What was confirmed** tab shows the [permission sentence](https://docs.theavoxai.com/broadcasts/before-you-send#the-permission-sentence) that was ticked, who ticked it ("you" or "a team member") and when, and the numbers from the check at that moment: who it was going to, who was left out and why, the estimated cost, the rate per message, your number's quality and its daily reach. ### Reading the numbers - **Many failures marked "Couldn't be delivered"?** The list has old or wrong numbers. Send to people who messaged you more recently. - **Low read, but delivered is high?** Try a different time of day, or a first line that says what's in it for them. - **Asked to stop is climbing?** Send less often, to a narrower list, about what they signed up for. - **Replies but no conversions?** The broadcast did its job; the conversation after it is the place to look. [Chat signals](https://docs.theavoxai.com/chat-signals) can flag the chats that need a quick answer. ### Related --- ## Ready-made broadcasts URL: https://docs.theavoxai.com/broadcasts/library Section: Workspace You don't have to start a [broadcast](https://docs.theavoxai.com/broadcasts) from a blank page. Avox has written ready-made broadcasts for the messages businesses send most: a sale, a restock, an invitation, a review request. Each one comes with: - **its template** from the Avox template library, written to be approved as a Marketing template; - **a suggested list**: who it's best sent to, filled in for you; - **tips** for getting the most out of it. Pick one and the broadcast wizard opens with everything filled in. Change anything you like before you send. ### Where to find them - On the **Broadcasts** page, **Start from a ready-made broadcast** shows four, the ones whose template you already have first. **See all** opens the library. - The **Broadcasts library** (**Broadcasts > See all**) has every ready-made broadcast, with search, a filter and a preview. ### The Broadcasts library **Search ready-made broadcasts** looks through names, descriptions, lists and tips. The filter shows **All**, **Template ready** or **Needs its template**, each with how many there are. Click one to see its message on a phone, with sample values and your business name, as WhatsApp will show it. Under it: **Who it's for** and the tips. A picture, video or document header shows as "(Your image shows here)". With **Template ready**, click **Use this** to open the wizard filled in. With **Needs its template**, click **Add its template** first (see below). #### Template ready or needs its template A broadcast can only send a template Meta has approved. Each ready-made broadcast checks whether your Switchboard has an approved copy of its template: - **Template ready**: you have it. **Use this** uses your approved copy ("It uses your approved copy of the ... template. Everything stays editable in the wizard."). - **Needs its template**: you don't have it yet. **Add its template** opens the [template library](https://docs.theavoxai.com/templates/library) with that template picked. Meta reviews it, usually within a day, then the broadcast is ready to use. Come back to the library and it says **Template ready**. ### The ready-made broadcasts | Ready-made broadcast | What it's for | Suggested list | Its template | | --- | --- | --- | --- | | **New offer** | A sale or a new offer to customers who know you, with a button to shop | Customers who messaged you or bought in the last 90 days | New offer | | **Back in stock** | Tell the people who asked about a product that it's back, with a link to buy it | Contacts tagged when they asked about it (for example "Asked: linen shirt") | Back in stock | | **Price drop** | Let people who showed interest know a product now costs less | Contacts tagged as interested, or who messaged in the last 60 days | Price drop alert | | **Event invite** | An event, with buttons to say whether they'll come | Local customers, or a tag such as VIP or Regulars | Event invitation | | **We miss you** | Win back customers you haven't heard from in a while | Customers who haven't messaged you for 90 days or more | We miss you | | **Appointment slots open** | Tell regular clients new appointment slots are open | Clients who booked or messaged in the last 6 months | Appointment slots open | | **Seasonal greeting** | A festival or the new year, from your whole team | Customers who messaged you in the last year | Festive greeting | | **Feedback request** | Ask recent customers to rate their experience with one tap | Customers who messaged you in the last 30 days | Feedback request | | **Ask for a review** | Ask happy recent customers to leave a public review, with a button to your review page | Customers who messaged you or bought in the last 30 days (add a tag like "Happy customer" to narrow it down) | Review request | | **Event reminder** | Remind customers about an event a few days before, with buttons to save a place or say they can't come | People you invited, or a tag such as Coming to the event | Event coming up | | **What's new** | A short catch-up with one piece of news for customers you haven't heard from in a couple of months | Customers who haven't messaged you for 60 days or more | What's new since your last visit | | **Order on WhatsApp** | Tell customers they can now order from you on WhatsApp, with a link to your menu or shop | Customers who bought from you or messaged you in the last 6 months | Order on WhatsApp | | **We're open again** | Let regular customers know you're open again after a holiday, a break or a renovation | Customers who messaged you in the last 3 months | We're open again | #### Tips for each - Add a clear picture of the offer as the header. - Say exactly what's on offer and until when. - Send it when your customers usually message you. - Send it only to people who asked about this product: they are the most likely to buy. - The button's link ending is the product's page on your site. - Show both the old and the new price. - Keep the list to people who were interested: a price drop nobody asked about reads as spam. - Pick a conversion tag like "Coming to the event" to count who said yes. - Send it a week or two before the event. - Start small: people who haven't heard from you in a long time block more often. - Mention something new so there's a reason to come back. - Send it when the slots open, not days later. - Pair it with an automation that answers "Book me in" with your booking link. - Keep it warm and short: no offer needed. - Send it on the day, in the morning. - The report shows which rating button each person tapped. - Follow up personally with anyone who rates you low. - Send it a few days after people received what they bought, while it's fresh. - Name what they bought in general words (for example "your new coffee machine") so it reads right for everyone. - Point the button at the review page you care about most, like Google or your own site. - Send it two or three days before the event, not on the day. - Pick a conversion tag like "interested" and add the **Answer broadcast button taps** automation to count who saves a place. - One clear piece of news works better than a long list. - Start with a small group: people who haven't heard from you in a while block more often. - Make a [smart link](https://docs.theavoxai.com/chat-links) with a QR code for your counter so people who walk in can order the same way. - Put your real menu or shop page in the button before you send. - Send it the day before you open, so people can plan a visit. - Keep someone free to answer: "Book me in" taps come in quickly. ### What "Use this" fills in **Use this** opens the [broadcast wizard](https://docs.theavoxai.com/broadcasts#create-a-broadcast) with: - the **Name**, ready to change; - the **Template**: your approved copy of the ready-made broadcast's template; - the **Variables**, for example each contact's first name, with "there" when a contact has none, and empty boxes for what only you know (like what's on offer); - the suggested list on the **Audience** step, as a starting point. Nothing is sent until you go through the [check](https://docs.theavoxai.com/broadcasts/before-you-send), tick the permission sentence and press **Send now** or **Schedule**. Check the suggested list against your own contacts and tags: it's a starting point, not a rule. Like every broadcast, a ready-made one always skips contacts with the **Unsubscribed** tag. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). ### When Use this is greyed out Hover it to see why. It's greyed out when: - you don't have **Create and send broadcasts**; - creating broadcasts is turned off for your account ([AVX-3871](https://docs.theavoxai.com/error-codes/avx-3871)); - there's no active plan ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)); - this month's broadcasts are used up ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)); - your Switchboard already has 10 broadcast drafts ([AVX-3894](https://docs.theavoxai.com/error-codes/avx-3894)). See [Broadcast limits](https://docs.theavoxai.com/broadcasts/limits). ### Related --- ## Broadcast limits URL: https://docs.theavoxai.com/broadcasts/limits Section: Workspace [Broadcasts](https://docs.theavoxai.com/broadcasts) reach many people at once, so a few limits keep them safe for your WhatsApp number and fair across plans. This page lists them all. | Limit | How much | Set by | | --- | --- | --- | | [Broadcasts each month](#broadcasts-each-month) | Your plan's number, or unlimited. See [Plans](https://docs.theavoxai.com/plans) | Your plan | | [Drafts](#drafts) | Up to 10 at a time | Avox | | [Contacts in one broadcast](#contacts-in-one-broadcast) | Up to 100,000 | Avox | | [Scheduling](#scheduling) | At least 5 minutes ahead, up to 60 days ahead | Avox | | [Pace](#pace-and-your-numbers-daily-limit) | 1 to 1,000 messages a minute | You, or Avox from your number's limit | | [People a day](#pace-and-your-numbers-daily-limit) | Your number's messaging limit | WhatsApp | ### Broadcasts each month Your plan sets how many broadcasts each Switchboard can send each calendar month, and a plan can allow unlimited broadcasts. #### What counts A broadcast counts once it **starts sending**, in the calendar month (UTC) it starts. From then on it keeps counting for that month, whatever happens next. Broadcasts you've already sent or scheduled for this month that haven't started yet are held for it, so **Send now** and **Schedule** can't go past the limit. | Broadcast | Counts this month? | | --- | --- | | **Sent**, or **Sending**, started this month | Yes | | **Paused** or **Stopped** after it started this month | Yes | | **Scheduled** for this month, not started yet | Held for it, so Send can't go past the limit. It counts once it starts. | | **Scheduled** for next month | No. It counts in the month it starts. | | Waiting because the **Switchboard is paused** | No, not until it starts after the Switchboard is resumed. | | **Stopped** before it started | No, never. | | **Draft** | No | Stopping or pausing a broadcast after it started doesn't give it back. **Duplicate** makes a new draft, which counts only once it starts sending. #### When a broadcast is due but the month is full Right before a broadcast starts, Avox checks the month again. If this month's broadcasts are already used up (for example, several were waiting while your Switchboard was paused), it doesn't start: it shows **Paused by Avox** with "Your plan's broadcasts for this month are used up" ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)), and your team is told in the bell and by email. Nothing is counted. **Resume** it from the 1st of next month, or straight away after you [change your plan](https://docs.theavoxai.com/billing/change-plan) to one with more broadcasts. With no active plan it pauses the same way ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)). The limit counts broadcasts, not messages: a broadcast to 50 people and one to 5,000 people count the same. What Meta charges for the messages is separate and billed to your own Meta account: see the [cost estimate](https://docs.theavoxai.com/broadcasts/before-you-send#estimated-cost). #### Where to see it - The **Broadcasts** page: **Broadcasts this month**, with "A broadcast counts once it starts sending, in the month it starts; ones scheduled for this month are held for it. Drafts don't count. The count starts again on the 1st of each month (UTC)." - **Settings > Usage**. - The [check before sending](https://docs.theavoxai.com/broadcasts/before-you-send). #### When the month is used up The count starts again on the 1st of each month (UTC). Until then, new broadcasts can't be sent or scheduled ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)). You can still make and save drafts (up to 10), ready for the 1st. To send more now, move to a plan with more broadcasts: see [Change plan](https://docs.theavoxai.com/billing/change-plan). There are no extra broadcasts to buy. Broadcasts need an active plan. With no plan, or a paused one, none can be sent or scheduled ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)). ### Drafts Each Switchboard keeps up to 10 broadcast drafts at a time ([AVX-3894](https://docs.theavoxai.com/error-codes/avx-3894)), so unfinished ones don't pile up. The **Broadcasts** page shows "Drafts 4 of 10" next to the monthly count. - At 10, a new broadcast can't be saved, and **Use this** on a ready-made broadcast is greyed out. Send a draft you're happy with, or delete one (**Delete draft** on its page). - Drafts never count towards the monthly limit. See [Drafts](https://docs.theavoxai.com/broadcasts#drafts). ### Contacts in one broadcast One broadcast can go to up to 100,000 contacts ([AVX-3863](https://docs.theavoxai.com/error-codes/avx-3863)). For a bigger list, narrow it down on the **Audience** step, or split it into more than one broadcast (for example by country or tag). Contacts who are [skipped](https://docs.theavoxai.com/broadcasts#who-is-skipped), like anyone with the **Unsubscribed** tag, are never sent anything. ### Scheduling **Schedule for later** takes a date and time in your own time zone, at least 5 minutes from now and up to 60 days ahead ([AVX-3867](https://docs.theavoxai.com/error-codes/avx-3867)). For anything sooner, use **Send now**. ### Pace and your number's daily limit - **Pace**: a broadcast goes out at a steady number of messages a minute. **Pace it for me** picks one from your number's messaging limit; switch it off to set **Messages a minute** yourself, from 1 to 1,000 ([AVX-3892](https://docs.theavoxai.com/error-codes/avx-3892)). See [Pace](https://docs.theavoxai.com/broadcasts#pace). - **People a day**: WhatsApp limits how many different people each number can start chats with in 24 hours. Avox never sends more broadcast messages from a number in 24 hours than that limit allows; a bigger list waits and carries on by itself, usually the next day ([AVX-3885](https://docs.theavoxai.com/error-codes/avx-3885)). The check says how many days it will take. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits#messaging-limits-and-tiers). ### Related --- ## Shop URL: https://docs.theavoxai.com/shop Section: Workspace **Shop** puts your WhatsApp catalogue to work. You make or link a catalogue, add and change its products from Avox, send products in chats, receive the orders customers send from their WhatsApp cart, and, on Indian numbers, ask for payment inside WhatsApp. Everything is kept in step with Meta, where the catalogue itself lives. Open **Shop** in the dashboard sidebar. It opens into three pages: **Overview**, **Products** and **Orders**. Its settings are in **Settings > Shop**. See [Find your way around the Shop](#find-your-way-around-the-shop). ### Before you start - **A connected WhatsApp number.** Without one, Shop shows "No WhatsApp number yet" ([AVX-4405](https://docs.theavoxai.com/error-codes/avx-4405)). See [Connections](https://docs.theavoxai.com/connections). - **A catalogue linked to the number's WhatsApp account.** You can make or link one from Shop - see [Set up your catalogue](#set-up-your-catalogue). - **For payments in WhatsApp:** an Indian (+91) number, a payment setup made in WhatsApp Manager, and a plan that includes WhatsApp payments. See [Ask for payment in WhatsApp](#ask-for-payment-in-whatsapp). - **The right permission.** Seeing the shop needs **See the shop**; changing anything needs **Run the shop**. See [Who can do what](#who-can-do-what). If your number also uses the WhatsApp Business app, read [Numbers that also use the WhatsApp Business app](#numbers-that-also-use-the-whatsapp-business-app) first: Meta treats catalogue and order tools differently on those numbers. ### How the shop fits together - **The catalogue lives at Meta, on a WhatsApp account.** Meta allows one catalogue per WhatsApp Business Account, and every number on that account shows the same catalogue. See [Accounts and numbers](https://docs.theavoxai.com/whatsapp/accounts-and-numbers). - **Avox keeps a copy of the products** so you can manage them, pick them in messages and name them in orders. Changes you make in Avox go to Meta; changes made in Commerce Manager come back to Avox. - **Customers order with WhatsApp's cart.** They add products from your catalogue and send the cart to you. Avox turns each cart into an order. - **Payments in WhatsApp (India).** For an order on an Indian number, you can send a "Review and pay" message. The customer pays by UPI or card inside WhatsApp. Avox never sees card or bank details. ### Find your way around the Shop While you're in the Shop, its sidebar item opens into three pages. Each has its own address, so you can bookmark it or share it with your team. | Page | What's on it | | --- | --- | | **Overview** | Counts that open the matching orders (**New orders**, **Waiting for payment**, **All orders**, **Products**), **Set up your shop** with what's left to do for the number, **Recent orders** and the products (click one to open its page). **Docs**, **Sync products** and **Add product** sit at the top. | | **Products** | Every product of the catalogue, with search, filters and bulk actions. Each product opens its own page. See [Products](#products). | | **Orders** | Every order, with filters, and each order's own page. A count beside **Orders** (and beside **Shop** while you're elsewhere) shows how many orders are still **New**. See [Orders](#orders). | With two or more WhatsApp numbers, a **WhatsApp number** picker on Overview, Products and **Settings > Shop** chooses which number's shop you see (see [Several WhatsApp numbers](#several-whatsapp-numbers)). On Overview, **Recent orders** then shows that number's orders. #### Set up your shop The Overview lists what the number still needs before customers can order: **Link a catalogue**, **Add your products**, **Show the catalogue in chats**, **Let customers use a cart** and, on Indian numbers, **Take payments in WhatsApp**. Each step has a button that opens the right page. The list goes away once every step is done. #### Shop settings The Shop's settings live with the rest of your settings: open **Settings > Shop** (in the Switchboard group). Older links to the Shop's own settings page open it too. It has three cards for the picked number: | Part | What it does | | --- | --- | | **Your catalogue** | The catalogue's name and id, **Linked** in green, how many products Avox has and when they were last synced. | | **Refresh from Meta** | Asks Meta again for the number's linked catalogue, its two switches and its payment setups. Shows "Refreshed from Meta". | | **Sync products** | Copies the linked catalogue's products into Avox. Shows "Products synced". Needs a linked catalogue and a connected number. | | **Show the catalogue in chats** | "Adds the shop icon to your chat with every customer." Saved at Meta. | | **Let customers use a cart** | "Customers add products and send them to you as an order." Saved at Meta. | | **Payments in WhatsApp** | The number's payment setups and whether each one is **Ready** (green). See [Ask for payment in WhatsApp](#ask-for-payment-in-whatsapp). | A switch that reads "Not read from Meta yet. Press Refresh from Meta." can't be changed until Avox has read it. If Meta refused something earlier, the page says what and how to fix it, with **Reconnect with Meta** when the number's Meta access needs renewing. Without **Run the shop**, you can see these settings but not change them. ### Set up your catalogue When a number has no catalogue yet, Shop and **Shop > Products** show **Set up your catalogue**: "A catalogue holds the products customers see in WhatsApp. Meta allows one per WhatsApp account." Open **Settings > Shop** (or **Set up** on the Shop overview). With two or more numbers, pick the number in **WhatsApp number**. **Make a new catalogue:** type a **Catalogue name** (up to 100 characters; it starts as the number's name followed by "shop") and click **Make catalogue**. Meta makes the catalogue for your business and Avox links it to the number's WhatsApp account ("Catalogue made and linked"). **Link a catalogue you already have:** click **Show my catalogues**, pick one in **Catalogue** and click **Link** ("Catalogue linked"). With no catalogue in your Meta business yet, it says so: make a new one instead. Sometimes Meta doesn't let Avox link the catalogue ([AVX-4704](https://docs.theavoxai.com/error-codes/avx-4704)). The card then reads "Your catalogue is made: link it to finish" and shows **Link it in WhatsApp Manager** with the catalogue to pick. You can also open these steps yourself with **Prefer to link it yourself in WhatsApp Manager?** The WhatsApp Manager steps, as Avox shows them: 1. Open WhatsApp Manager and pick the WhatsApp account this number belongs to. 2. Open Catalog in the menu on the left. 3. If another catalogue is connected, choose Disconnect catalog first (Meta allows one per WhatsApp account). 4. Choose a catalogue, pick the one named below and choose Connect catalog. 5. Come back here and press Check link. **Open WhatsApp Manager** opens it in a new tab, and **Check link** reads the link from Meta again ("The catalogue is linked"). Other states of the card: - **The catalogue isn't linked any more** - "Meta no longer shows a catalogue on this number's WhatsApp account. Link one again to show products in chats." Make or link one again as above. - **Catalogue access needed** - the number's Meta access doesn't include catalogue access yet ([AVX-4701](https://docs.theavoxai.com/error-codes/avx-4701)). Click **Reconnect with Meta** and allow catalogue access when Meta asks. #### Switching or unlinking a catalogue Meta lets apps link a catalogue, but not unlink or switch one ([AVX-4729](https://docs.theavoxai.com/error-codes/avx-4729)), and an account that already has a catalogue can't get a second one ([AVX-4702](https://docs.theavoxai.com/error-codes/avx-4702)). To switch: in WhatsApp Manager, open Catalog, choose Disconnect catalog, connect the other catalogue, then press **Refresh from Meta** in **Settings > Shop**. To stop selling on an account, disconnect the catalogue there and press **Refresh from Meta**: every number on that account then shows no catalogue. ### Products **Shop > Products** shows one catalogue: its name, how many products it has, and your plan's product allowance across all your shops. The counts show **Live in WhatsApp**, **On the way to Meta**, **Rejected by Meta** and **Over plan limit**. | Button | What it does | | --- | --- | | **Add product** | Opens **Add product**, a page of its own with a live preview. See [Add or change a product](#add-or-change-a-product). | | **Docs** | Opens this page. | | **Import** | Adds or changes many products from a CSV file. See [Import and export](#import-and-export). | | **Export** | Downloads the products as a CSV file you can edit and import again. | | **Sync now** | Reads the catalogue from Meta straight away, so changes made in Commerce Manager show here. Avox also reads it regularly by itself. | Each row shows the product's photo, name, state, Content ID, stock and price (the old price struck through when it's on sale). Click a product to open its page. Find products with the search box ("Search by name, Content ID or brand"), the state chips (**All**, **Live**, **Waiting to sync**, **Syncing**, **Rejected**, **Over plan limit** when there are any, and **Removed**), **Stock**, and **Category** when your products have categories. #### Add or change a product Click **Add product** to open the **Add product** page, or open a product and click **Edit** to change it beside its page. Both show a live preview of the product card as customers see it (beside the form on a computer, below it on a phone), and both use the same form in sections: **Basics**, **Price**, **Photo**, **Stock and condition**, **Link and details**, **Variants** and **Content ID**. - **Photo:** drop a photo on the box or click it to pick one. It shows straight away while it uploads; **Replace** and **Remove** change it. - **Checks as you go:** each field is checked when you leave it, with the same rules Avox uses when saving, and the problem shows under the field. **Save** checks everything and takes you to the first field to fix. - **Category** suggests categories you used before. | Field | Rules | | --- | --- | | **Photo** | Required: Meta needs one for every product. "JPG or PNG, at least 500 x 500 pixels, up to 8 MB. Square works best." Avox removes location data from the photo before Meta gets it. | | **Title** | Required, up to 100 characters. | | **Description** | Required, up to 5,000 characters. | | **Price** and **Currency** | Required. A price above zero, like 1299 or 1299.50. | | **Sale price (optional)** | "Lower than the price. Leave empty for none." | | **Stock** | In stock, Out of stock, Available to order or Discontinued. | | **Condition** | New, Refurbished or Used. | | **Brand** | Required, up to 100 characters. | | **Link** | "The page where it can be bought (https://)." Left empty, Avox uses the website on the number's profile, or a chat link to the number. | | **Content ID** | "Your SKU. Leave empty and Avox makes one." "Can't change once a product exists." Up to 100 characters. | | **Category (optional)** | "Meta's product category name or number." | | **Variants (optional)** | **Variant group**, **Size** and **Colour**. Products that are versions of one item (sizes, colours) share the same **Variant group**. | Click **Add product** or **Save changes**. A new product opens its own page. The status box says where it is: "Changes go to Meta within a minute, then WhatsApp reviews it", how long it has been waiting, why Meta rejected it, or "Ready to send in chats". The product's **History** lists every change, made in Avox or outside it. If someone else changed the product while you were editing, Avox keeps your edits on top of the newer version and asks you to check and save again ([AVX-4719](https://docs.theavoxai.com/error-codes/avx-4719)). Closing the editor with unsaved changes asks **Discard your changes?** first. #### Product states | State | What it means | | --- | --- | | **Waiting to sync** | Saved in Avox, on its way to Meta. | | **Syncing** | Meta is working on the change. | | **Live** | Meta accepted it. Meta reviews a product before customers see it. | | **Rejected** | Meta didn't accept it. The product shows why in plain words, for example the photo, the price or the link. Fix it and save again, or pick rejected products and click **Send again**. | | **Over plan limit** | Past your plan's product limit. It stays in your catalogue but can't be picked in messages. See [Plan limits](#plan-limits). | | **Removed** | Deleted, in Avox or outside it. | When Meta is limiting catalogue changes, your changes stay saved and go to Meta a few minutes later ([AVX-4725](https://docs.theavoxai.com/error-codes/avx-4725)). #### Changes made outside Avox Products added or changed in Commerce Manager, or by another app, come into Avox when it reads the catalogue (regularly, or with **Sync now**). When the same product changed in both places, the newer change wins, and the product's history says which one was kept ("Changed in both places: the newer Avox change was kept" or "...the newer change outside Avox was kept"). #### Bulk actions Tick products (or **Pick this page**), up to 500 at a time ([AVX-4727](https://docs.theavoxai.com/error-codes/avx-4727)), then click **In stock**, **Out of stock**, **Send again** (for rejected products) or **Delete**. Deleting asks first: "They are removed from your WhatsApp catalogue. Orders that already have them keep their names." A single product is deleted from its **Edit** panel with **Delete**; it is removed for every number on the WhatsApp account. #### Import and export **Import** opens **Import products**: "Add or change many products from a CSV file. Products not in the file stay as they are." Click **Pick a CSV file**. **Example file** downloads a sample with every column. Pick the **Currency for prices without one**. Click **Check file**. Avox counts the rows **To add**, **To change**, **Unchanged** and **With problems**, lists the rows to fix and shows a preview. If your plan has no room for every new product, it says how many fit. Click **Add** (it names how many products). They show **Waiting to sync** until Meta takes them, usually within a few minutes. The columns are named as in Meta's own product feed (`id`, `title`, `description`, `availability`, `condition`, `price`, `sale_price`, `currency`, `link`, `image_link`, `brand`, `fb_product_category`, `item_group_id`, `size`, `color`), so a file exported from Commerce Manager reads too. `title`, `description`, `price` and `image_link` are required. A file can have up to 5,000 products and be up to 3 MB ([AVX-4720](https://docs.theavoxai.com/error-codes/avx-4720)). **Export** downloads the catalogue's products as a CSV file in the same columns. #### A product's page Every product has its own page and a short reference like `PRD-000012`, shown at the top with a copy button; the page's address uses it. At the top: the product's name and state, then **Docs**, **Edit** (with **Run the shop**) and **More** (**Copy Content ID**, **Open its web page**, **Send it from a chat**). A summary card shows the photo, price and sale price, stock, which numbers show the catalogue, and what the product is waiting for. **Insights** shows, for the last 7 days, 30 days, 90 days or year: | Figure | What it counts | | --- | --- | | **Times sent** | Product and product list messages Avox sent that named it, split under **Sent from** into Inbox, Automations, Broadcasts, Smart links and API. Messages sent from the WhatsApp Business app on the phone, and whole-catalogue messages, aren't counted. | | **In carts** | Carts customers sent with it. | | **Orders** and **Units** | Orders with it, cancelled ones left out, and how many of it. | | **Order value** and **Paid** | Its lines' value per currency (the sale price when lower), and the part paid (Paid, Shipped or Delivered, or paid in WhatsApp). | | **Sent to ordered** | Of the people it was sent to, how many then ordered it. | A chart shows sends, orders and units over time. With two or more numbers, **By WhatsApp number** splits them. **Top customers** lists who bought most of it, and **Recent orders** its newest orders. **Details** shows every field and the product's **History**. WhatsApp doesn't tell businesses which phone or computer a customer uses, so there is no device split. ### Product messages There are three kinds of product message. All of them are free-form messages, so they go only while the 24-hour window with the customer is open ([AVX-4411](https://docs.theavoxai.com/error-codes/avx-4411)). See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). | Kind | What the customer gets | Rules | | --- | --- | --- | | **Product from your catalogue** (one product) | One product card from your catalogue. | A message is optional (up to 1,024 characters), and so is a footer (up to 60). | | **Products from your catalogue** (several) | A list of products in named sections. | A heading (up to 60 characters), a message (up to 1,024), and up to 30 products in up to 10 sections ([AVX-4413](https://docs.theavoxai.com/error-codes/avx-4413)). Each section needs a name (up to 24 characters). | | **Your whole catalogue** | A button that opens your whole catalogue. | A message is required (up to 1,024 characters). Optional footer, and an optional product whose picture shows. | Where you can send them: - **From a chat in the Inbox.** Click the shop button in the reply box (**Products and payments**) and open **Products**. Pick up to 30 products. One product takes an optional **Message**; several take a **Heading**, a **Section name** and a **Message**. Click **Send product** or **Send products**. - **From an automation.** The **Send a message** step offers all three kinds; you pick products with **Pick a product**. See [Automation](https://docs.theavoxai.com/automation). - **From a smart link.** The **Products** follow-up sends a product, a list of products or your whole catalogue when a chat starts from the link. See [Smart links](https://docs.theavoxai.com/chat-links). - **From your own server.** With the Avox API. See [Products from your catalogue](https://docs.theavoxai.com/avox-api/messages#products-from-your-catalogue). Products always go from the catalogue linked to the number the chat is on. In the Inbox you can only pick products that are live in that catalogue and within your plan; otherwise the send is refused with "Some products aren't in the catalogue linked to this number. Sync your products and try again." ([AVX-4412](https://docs.theavoxai.com/error-codes/avx-4412)). Multi-product, carousel and limited-time offer **templates** are a different thing: they're templates, so they can start a conversation, and they need a plan that includes them. See [Templates](https://docs.theavoxai.com/templates). ### Orders An order comes from one of two places: - **From a WhatsApp cart** - a customer added products from your catalogue and sent the cart. This needs **Let customers use a cart** on. Avox saves one order per cart, with the product names from your synced catalogue and the customer's note. - **Made in Avox** - when you ask for payment from a chat (see below), or an automation's **Create an order** step makes one. Every order has a short reference like `ORD-000123`. #### The Orders list Open **Shop > Orders**. At the top, **New**, **Waiting for payment** and **All orders** show how many there are; click one to show those orders. Filter by **All**, **Waiting for payment**, **New**, **Confirmed**, **Paid**, **Shipped**, **Delivered** or **Cancelled**, search by order number or customer, and pick **When** (**Any time**, **Last 24 hours**, **Last 7 days**, **Last 30 days** or **Last 90 days**). With two or more WhatsApp numbers, each order shows its number, and **WhatsApp number** shows one number's orders or **Every number**. Other pages open the list already filtered to one **Customer** (a contact's **All orders**), one **Product** (a product's insights) or one **Ad** (an ad's page); each shows as a chip you can remove. The filters stay in the page's address, so a reload or a shared link opens the same list. Each order shows the customer's Blobatar and name, its status and payment in colour, and its total. The list updates by itself when an order arrives. An order of a number removed since shows "A removed number". The Inbox contact panel and a contact's page also have an **Orders** card with that person's orders, and a **Mark shipped** button. #### New order alerts When a customer sends an order from their WhatsApp cart, everyone who can **See the shop** hears about it, the same way as a new message: - **A sound**, in one Avox tab only. Turn it off with the **Orders** sound in Settings > Personalisation; quiet hours and volume apply as for messages. - **A note under the search bar** with the customer's Blobatar and name, the total, the number (with two or more numbers) and **View order**. With the tab in the background, a desktop alert shows when desktop alerts are on. - **A count** beside **Shop** in the sidebar, and beside **Orders** inside the Shop, of the orders still **New**. It goes down as orders move on. - **The bell** lists new orders from the last 24 hours. Turn them off with **New orders** in your notification settings. - **An email** to the Switchboard's Admins, only when **New order emails** is on in Compliance > Email preferences (off unless you turn it on). While you're on the Orders page there is no sound or note: the list just updates. Orders you make in Avox, and orders of private numbers, never alert. #### An order's page The order's page shows its reference with its status, payment state and number at the top, with **Change status** and **Ask for payment**. Below, **Customer** shows the customer's Blobatar and name with **Contact** and **Open the chat**, then the items with each product's photo and current name ("No longer in the catalogue" when it was deleted since) and the sums (**Items**, **Tax**, **Shipping**, **Discount** and **Total**). On the side, **Payment** shows the payment setup, the reference, how it was paid and the transaction, and **History** lists everything that happened to the order. Where the order came from shows at the top too, each linked to its page: **From ad** when the chat started from one of your ads, **From smart link** when the customer's latest [smart link](https://docs.theavoxai.com/chat-links) chat was in the 30 days before the order, and **Automations this order started**, with how each run went (for example **Done**, **Waiting** or **Stopped**). Each item line links to its product, and **Open the chat** opens it on the order's WhatsApp number. Each part needs its own "See" permission. #### Order statuses | Status | Can move to | | --- | --- | | **New** | Confirmed, Paid, Shipped, Delivered, Cancelled | | **Confirmed** | Paid, Shipped, Delivered, Cancelled | | **Paid** | Shipped, Delivered | | **Shipped** | Delivered | | **Delivered** | Final | | **Cancelled** | Final | Click **Change status**, pick the new status and click **Save**. Set **Paid** by hand only for an order paid outside WhatsApp; a WhatsApp payment marks the order paid by itself. A paid order can't be cancelled in WhatsApp: refund it with your payment provider first ([AVX-4422](https://docs.theavoxai.com/error-codes/avx-4422)). When the order has a WhatsApp payment request, **Tell the customer in WhatsApp** "Sends WhatsApp's order update on their payment message", with an optional **Note for the customer** (up to 120 characters). Like every free-form message, the update needs the 24-hour window to be open. ### Ask for payment in WhatsApp On an Indian (+91) number, you can ask for an order's total inside WhatsApp. The customer gets a **Review and pay** message and pays by UPI or card in WhatsApp. Avox never sees card or bank details. #### Set up payments Asking for payment needs a plan that includes **WhatsApp payments** ([AVX-4665](https://docs.theavoxai.com/error-codes/avx-4665)). See [Plans](https://docs.theavoxai.com/plans#what-each-feature-means). In WhatsApp Manager open Payment configurations, choose India and link Razorpay, PayU, Zaakpay or BillDesk. Finish connecting it and make the test payment Meta asks for. Press **Refresh from Meta** in **Settings > Shop**. Each setup shows under **Payments in WhatsApp** as **Ready**, **Needs connecting in WhatsApp Manager**, **Needs a test payment in WhatsApp Manager** or **Status unknown**. A setup whose provider can't be used for WhatsApp orders says so. #### Send a payment request Two ways: - **From an order:** open it and click **Ask for payment**. The dialog **Ask for ... in WhatsApp** names the order's total. - **From a chat:** in the Inbox reply box, click **Products and payments** and open **Ask for payment**. Add the items with **From catalogue**, **From a store app** or **Type an item**, and any **Tax**, **Shipping** and **Discount** in rupees. Avox makes the order ("Made in Avox") and sends the request with **Send payment request**. | Field | What to fill in | | --- | --- | | **Payment setup** | One of the number's ready setups. | | **What you're selling** | **Things you deliver** or **Digital goods or services**. | | **Message** | What the customer reads above the button. | | **Small print (optional)** | A footer under the message. | | **Request ends** | **Never**, **In 1 hour**, **In 1 day**, **In 3 days** or **In 7 days**. | | Items not in your catalogue | Meta asks where they're from: **Made in**, **Sold or imported by**, **Address**, **City**, **State** and **PIN code** (6 digits) ([AVX-4438](https://docs.theavoxai.com/error-codes/avx-4438)). | Avox works out the total from the order's own lines. It must be more than zero ([AVX-4419](https://docs.theavoxai.com/error-codes/avx-4419)), and UPI payments are capped at ₹5,00,000 ([AVX-4420](https://docs.theavoxai.com/error-codes/avx-4420)). Only orders that are **New** or **Confirmed** and in rupees can be asked for, and only once at a time ([AVX-4423](https://docs.theavoxai.com/error-codes/avx-4423)). A failed payment can be asked for again. #### Payment states | State | What it means | | --- | --- | | **Payment asked for** | The Review and pay message was sent. | | **Payment started** | The customer started paying; WhatsApp hasn't confirmed it yet. | | **Paid in WhatsApp** | WhatsApp confirmed the payment. The order moves to **Paid**. | | **Payment failed** | The payment didn't go through. Ask again, or contact the customer. | An order is marked paid only when the amount paid is exactly the order's total. A different amount is recorded, and the order's page says "The amount paid (...) differs from the order total." **Check with Meta** on the order's page asks Meta for the payment's latest state ("Payment updated from Meta" or "No change at Meta"). ### Several WhatsApp numbers - **A catalogue belongs to a WhatsApp account, not a number.** Numbers on the same WhatsApp account share one catalogue, its products and its payment setups. With two or more numbers, the **WhatsApp number** picker on Shop and **Shop > Products** says so, for example "Shared with 1 other number on the same WhatsApp account, so they share one catalogue and its payment setups". - **Numbers on different WhatsApp accounts each have their own catalogue.** Pick each number and set up its shop. - **Each number has its own switches.** **Show the catalogue in chats** and **Let customers use a cart** are set per number. - **Products go only from the catalogue linked to the sending number:** the chat's number in the Inbox, the number an automation or smart link chat is on, and the API key's number. A product that isn't in that catalogue isn't sent. - **Orders keep their number.** Each order belongs to the number its chat is on, and the Orders list can show one number's orders. - **Shops are counted per number.** Every number whose WhatsApp account has a catalogue linked counts as one shop, so two numbers on the same account with a catalogue count as two. Making or linking a catalogue needs room for every number on that account. See [Plan limits](#plan-limits). - **Shops past your plan's limit.** If you have more shops than your plan allows (after a plan change, or a catalogue linked in WhatsApp Manager), the numbers you connected first keep working, up to the limit. The others can't send product or catalogue messages, and their switches can't be turned on ([AVX-4660](https://docs.theavoxai.com/error-codes/avx-4660)). ### Plan limits Each plan sets these per Switchboard. The numbers below are live from the plans: | Limit | Starter | Growth | Business | What counts | | --- | --- | --- | --- | --- | | **Shops** | 1 | 3 | 10 | WhatsApp numbers with a catalogue linked. | | **Products** | 100 | 1,000 | 5,000 | Products in Avox across all your catalogues, removed ones left out. | | **Orders a month** | 100 | 1,000 | 10,000 | Orders made in the calendar month (UTC), from carts and from Avox. | Two plan features matter here too: **WhatsApp payments** (asking for payment in chats) and **Offer, carousel and multi-product templates**. See which plans include them on [Plans](https://docs.theavoxai.com/plans#what-each-feature-means), and every limit on [Plans](https://docs.theavoxai.com/plans#limits-on-each-plan). What happens at each limit: - **Shops** - making or linking a catalogue, or turning on a switch on another number, is refused ([AVX-4660](https://docs.theavoxai.com/error-codes/avx-4660)). Shops past the limit stop sending product messages, as above. A number counts while its WhatsApp account has a catalogue linked, so turning its two switches off doesn't free a place. To free one, disconnect the catalogue in WhatsApp Manager on an account you don't sell from and press **Refresh from Meta** in **Settings > Shop** (every number on that account stops counting), remove a number you don't use on [Connections](https://docs.theavoxai.com/connections), or change your plan. - **Products** - adding or importing past the limit is refused ([AVX-4661](https://docs.theavoxai.com/error-codes/avx-4661)). Products that come in from Commerce Manager past the limit stay in your catalogue, marked **Over plan limit**, and can't be picked in messages. - **Orders a month** - orders are never lost. Past the limit they're still saved, but order automations and payment requests for them wait until next month or a plan change ([AVX-4662](https://docs.theavoxai.com/error-codes/avx-4662)). Shop shows how many orders are over. - **A smaller plan** keeps what you already have and only stops new things. Templates you already made stay, for example, but new offer, carousel and multi-product templates can't be made or sent ([AVX-4667](https://docs.theavoxai.com/error-codes/avx-4667)). Shop shows a notice when your shops or products are full, or orders are over the month's limit. ### Shop automations Automations can start from the shop and act on orders: - **Triggers:** **An order arrives from WhatsApp** (a customer sends a cart), **Order paid**, **Payment failed** and **Order status changed**. - **Steps:** **Ask for payment**, **Update order status** and **Create an order**. Steps started by an order can use its number, total and items. See [Triggers](https://docs.theavoxai.com/automation/triggers) and [Actions](https://docs.theavoxai.com/automation/actions). ### Who can do what | Action | Needs | | --- | --- | | See Shop, the products, orders and payment states, and **Check with Meta** | **See the shop** | | Send products from a chat | **See the shop** and **Reply in the Inbox** | | Make or link a catalogue, **Refresh from Meta**, sync, and the two switches | **Run the shop** | | Add, change, import, delete and bulk-change products | **Run the shop** | | Change an order's status, ask for payment, make an order | **Run the shop** | Admins can do everything. Managers start with **See the shop**; an Admin can give a Manager **Run the shop**. See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). ### Numbers that also use the WhatsApp Business app On a number that also uses the WhatsApp Business app, Shop shows: "This number also uses the WhatsApp Business app. Meta lists catalogue and order tools as not available through the API for these numbers, so some of this may be refused. Avox shows Meta's answer when it is." Avox still tries every action. When Meta refuses one, you see [AVX-4410](https://docs.theavoxai.com/error-codes/avx-4410): manage the catalogue in the WhatsApp Business app, or use a number connected to Avox alone. See [Coexistence](https://docs.theavoxai.com/connections/coexistence). ### Error codes Each code links to its own page with causes and fixes. #### The shop and the catalogue | Code | What it says | | --- | --- | | [AVX-4400](https://docs.theavoxai.com/error-codes/avx-4400) | Shop isn't switched on yet. Try again later. | | [AVX-4401](https://docs.theavoxai.com/error-codes/avx-4401) | Shop is paused for a short while, so nothing was sent or changed. | | [AVX-4402](https://docs.theavoxai.com/error-codes/avx-4402) | Couldn't load your shop. Try again. | | [AVX-4403](https://docs.theavoxai.com/error-codes/avx-4403) | Couldn't save that. Nothing was changed. Try again. | | [AVX-4404](https://docs.theavoxai.com/error-codes/avx-4404) | That order or product couldn't be found. | | [AVX-4405](https://docs.theavoxai.com/error-codes/avx-4405) | Connect a WhatsApp number first. | | [AVX-4406](https://docs.theavoxai.com/error-codes/avx-4406) | No Meta catalogue is linked to this WhatsApp number yet. | | [AVX-4407](https://docs.theavoxai.com/error-codes/avx-4407) | Meta hasn't given Avox access to your catalogue or payments yet. | | [AVX-4408](https://docs.theavoxai.com/error-codes/avx-4408) | Meta is limiting requests for this number right now. | | [AVX-4409](https://docs.theavoxai.com/error-codes/avx-4409) | Meta no longer accepts Avox's access to this number. Reconnect it. | | [AVX-4410](https://docs.theavoxai.com/error-codes/avx-4410) | Meta doesn't allow this on a number that also uses the WhatsApp Business app. | | [AVX-4424](https://docs.theavoxai.com/error-codes/avx-4424) | A product sync is already running for this number. | | [AVX-4425](https://docs.theavoxai.com/error-codes/avx-4425) | Too many requests. Wait a minute and try again. | | [AVX-4426](https://docs.theavoxai.com/error-codes/avx-4426) | Shop has been turned off for your account. | | [AVX-4427](https://docs.theavoxai.com/error-codes/avx-4427) | This Switchboard is paused. Resume it in Settings first. | | [AVX-4430](https://docs.theavoxai.com/error-codes/avx-4430) | Only the first 5,000 products were synced. | | [AVX-4434](https://docs.theavoxai.com/error-codes/avx-4434) | This WhatsApp number isn't connected right now. | | [AVX-4437](https://docs.theavoxai.com/error-codes/avx-4437) | You don't have permission to do this. | | [AVX-4700](https://docs.theavoxai.com/error-codes/avx-4700) | Catalogue management isn't switched on yet. | | [AVX-4701](https://docs.theavoxai.com/error-codes/avx-4701) | Avox can't manage catalogues for this number yet. Reconnect with Meta. | | [AVX-4702](https://docs.theavoxai.com/error-codes/avx-4702) | This WhatsApp account already has a catalogue. | | [AVX-4703](https://docs.theavoxai.com/error-codes/avx-4703) | Meta didn't create the catalogue. Nothing was changed. | | [AVX-4704](https://docs.theavoxai.com/error-codes/avx-4704) | Meta didn't let Avox link the catalogue. Link it in WhatsApp Manager. | | [AVX-4705](https://docs.theavoxai.com/error-codes/avx-4705) | Meta doesn't show a catalogue linked to this WhatsApp account yet. | | [AVX-4726](https://docs.theavoxai.com/error-codes/avx-4726) | Avox can't change this catalogue: it belongs to a business Avox can't reach. | | [AVX-4728](https://docs.theavoxai.com/error-codes/avx-4728) | A catalogue sync is already running. | | [AVX-4729](https://docs.theavoxai.com/error-codes/avx-4729) | Meta doesn't let apps unlink or switch a catalogue. | | [AVX-4730](https://docs.theavoxai.com/error-codes/avx-4730) | Avox doesn't know which Meta business owns this number. Reconnect with Meta. | | [AVX-4732](https://docs.theavoxai.com/error-codes/avx-4732) | That catalogue isn't one this business owns. | #### Products and imports | Code | What it says | | --- | --- | | [AVX-4708](https://docs.theavoxai.com/error-codes/avx-4708) | Another product in this catalogue already uses this Content ID. | | [AVX-4709](https://docs.theavoxai.com/error-codes/avx-4709) | Something in this product isn't right. Check the highlighted fields. | | [AVX-4710](https://docs.theavoxai.com/error-codes/avx-4710) | Enter a price above zero in the product's currency. | | [AVX-4711](https://docs.theavoxai.com/error-codes/avx-4711) | The sale price must be above zero and lower than the price. | | [AVX-4712](https://docs.theavoxai.com/error-codes/avx-4712) | The link must be a full web address that starts with https://. | | [AVX-4713](https://docs.theavoxai.com/error-codes/avx-4713) | Add a photo. Meta needs one for every product. | | [AVX-4714](https://docs.theavoxai.com/error-codes/avx-4714) | Photos must be JPG or PNG. | | [AVX-4715](https://docs.theavoxai.com/error-codes/avx-4715) | Photos can be up to 8 MB and 10,000 pixels a side. | | [AVX-4716](https://docs.theavoxai.com/error-codes/avx-4716) | Photos must be at least 500 x 500 pixels. | | [AVX-4717](https://docs.theavoxai.com/error-codes/avx-4717) | Couldn't upload that photo. Try again. | | [AVX-4731](https://docs.theavoxai.com/error-codes/avx-4731) | That photo couldn't be read. Save it again as a JPG or PNG. | | [AVX-4718](https://docs.theavoxai.com/error-codes/avx-4718) | That product couldn't be found. It may have been deleted. | | [AVX-4719](https://docs.theavoxai.com/error-codes/avx-4719) | This product changed a moment ago. Check it and save again. | | [AVX-4720](https://docs.theavoxai.com/error-codes/avx-4720) | A file can have up to 5,000 products and be up to 3 MB. | | [AVX-4721](https://docs.theavoxai.com/error-codes/avx-4721) | Some rows have problems. Fix them in the file and check it again. | | [AVX-4722](https://docs.theavoxai.com/error-codes/avx-4722) | The file or your catalogue changed since it was checked. | | [AVX-4723](https://docs.theavoxai.com/error-codes/avx-4723) | The file has no products in it. | | [AVX-4724](https://docs.theavoxai.com/error-codes/avx-4724) | The file is missing columns Avox needs. | | [AVX-4725](https://docs.theavoxai.com/error-codes/avx-4725) | Meta is limiting catalogue changes right now. Your changes go in a few minutes. | | [AVX-4727](https://docs.theavoxai.com/error-codes/avx-4727) | Pick up to 500 products at a time. | #### Product messages | Code | What it says | | --- | --- | | [AVX-4411](https://docs.theavoxai.com/error-codes/avx-4411) | The 24-hour window is closed, so product and payment messages can't be sent. | | [AVX-4412](https://docs.theavoxai.com/error-codes/avx-4412) | Some products aren't in the catalogue linked to this number. | | [AVX-4413](https://docs.theavoxai.com/error-codes/avx-4413) | A message can show up to 30 products in up to 10 sections. | | [AVX-4414](https://docs.theavoxai.com/error-codes/avx-4414) | Something in this form isn't right. Check the highlighted fields. | | [AVX-4415](https://docs.theavoxai.com/error-codes/avx-4415) | WhatsApp didn't send that message. Try again. | #### Orders and payments | Code | What it says | | --- | --- | | [AVX-4416](https://docs.theavoxai.com/error-codes/avx-4416) | Payments in WhatsApp work only on Indian WhatsApp numbers (+91). | | [AVX-4417](https://docs.theavoxai.com/error-codes/avx-4417) | This number has no payment setup yet. | | [AVX-4418](https://docs.theavoxai.com/error-codes/avx-4418) | That payment setup isn't ready. | | [AVX-4419](https://docs.theavoxai.com/error-codes/avx-4419) | The total must be more than zero. | | [AVX-4420](https://docs.theavoxai.com/error-codes/avx-4420) | UPI payments are capped at ₹5,00,000. Split the order into smaller ones. | | [AVX-4421](https://docs.theavoxai.com/error-codes/avx-4421) | This order can't move to that status from where it is now. | | [AVX-4422](https://docs.theavoxai.com/error-codes/avx-4422) | A paid order can't be cancelled in WhatsApp. | | [AVX-4423](https://docs.theavoxai.com/error-codes/avx-4423) | A payment request was already sent for this order. | | [AVX-4428](https://docs.theavoxai.com/error-codes/avx-4428) | This order is already paid, delivered or cancelled. | | [AVX-4429](https://docs.theavoxai.com/error-codes/avx-4429) | Couldn't load products from your store app. | | [AVX-4431](https://docs.theavoxai.com/error-codes/avx-4431) | Couldn't check this payment with Meta. Try again in a minute. | | [AVX-4432](https://docs.theavoxai.com/error-codes/avx-4432) | An order can have up to 50 lines, each up to 999 of one item. | | [AVX-4433](https://docs.theavoxai.com/error-codes/avx-4433) | That contact couldn't be found. | | [AVX-4435](https://docs.theavoxai.com/error-codes/avx-4435) | Someone changed this order a moment ago. It has been reloaded. | | [AVX-4436](https://docs.theavoxai.com/error-codes/avx-4436) | This order has no WhatsApp payment request. | | [AVX-4438](https://docs.theavoxai.com/error-codes/avx-4438) | Items that aren't in your catalogue need where they're made and who imports them. | #### Plan limits | Code | What it says | | --- | --- | | [AVX-4660](https://docs.theavoxai.com/error-codes/avx-4660) | Your plan has no room for a shop on another number. | | [AVX-4661](https://docs.theavoxai.com/error-codes/avx-4661) | Your plan has no room for more products. | | [AVX-4662](https://docs.theavoxai.com/error-codes/avx-4662) | This month's orders are over your plan's limit. New orders are still saved. | | [AVX-4665](https://docs.theavoxai.com/error-codes/avx-4665) | Your plan doesn't include WhatsApp payments. | | [AVX-4667](https://docs.theavoxai.com/error-codes/avx-4667) | Your plan doesn't include limited-time offer, carousel or multi-product templates. | ### Related Send products and ask for payment from a chat. Shop triggers and steps, and product messages. Send products when a chat starts from a link. Send product messages from your own server. Shops, products and orders on each plan. How WhatsApp accounts and numbers fit together. Questions? Email hello@theavoxai.com. --- ## Ads URL: https://docs.theavoxai.com/ads Section: Workspace **Ads** lets you make click-to-WhatsApp ads without leaving Avox. Each ad runs on Facebook and Instagram, and tapping it opens a WhatsApp chat with the number you pick. Avox makes the ad in your own Meta ad account, follows Meta's review, and shows what each ad brings in: spend, chats, orders and revenue. Open **Ads** in the dashboard sidebar. The pages are **Overview** (results of every click-to-WhatsApp ad, made in Avox or not), **Campaigns** (ads made in Avox), **Audiences** and **Creative library**. The ad account, Pages, conversions and alerts are in **Settings > Ads**. **Create ad** starts the wizard. Meta bills your own ad account for every ad. Avox never takes, holds or handles ad money and never sees your payment details. It only shows whether Meta says your ad account can run ads. ### Before you start - **A plan with ad creation.** Creating ads is on the Growth and Business plans, each with a number of ads launched a month and of ad audiences. See [Plans and limits](#plans-and-limits). - **A connected WhatsApp number.** The ad opens a chat with it. See [Connections](https://docs.theavoxai.com/connections). - **A Meta ad account with a payment method**, connected in **Settings > Ads**. Without a payment method Meta won't run ads ([AVX-4945](https://docs.theavoxai.com/error-codes/avx-4945)). - **A Facebook Page linked to the WhatsApp number.** Every click-to-WhatsApp ad runs as a Page, and Meta only runs it when that Page has the number linked. See [Link your Page to the WhatsApp number](#link-your-page-to-the-whatsapp-number). - **Meta access that allows managing ads.** When you connect (or reconnect) the number with Meta, include your ad account and your Facebook Page. See [Permissions and reconnecting](#permissions-and-reconnecting). - **The right permission in Avox.** Seeing ads needs **See ads**; creating and changing them needs **Create and run ads** (Admins have it; an Admin can give it to a Manager). ### Permissions and reconnecting Avox makes ads with the access your WhatsApp number gave it when you connected with Meta. To create ads, that access needs four Meta permissions: managing ads (`ads_management`), managing ads for your Pages (`pages_manage_ads`), reading your Page (`pages_read_engagement`) and seeing your Pages (`pages_show_list`). - **"Reconnect with Meta to allow creating ads"** means the number's access doesn't include them yet ([AVX-4942](https://docs.theavoxai.com/error-codes/avx-4942)). Press **Reconnect with Meta**, and in Meta's window include your ad account and your Facebook Page. - **"Waiting for Meta's approval"** means Meta hasn't approved Avox to manage ads for businesses yet ([AVX-4941](https://docs.theavoxai.com/error-codes/avx-4941)). Nobody can turn ad creation on until it does. Your ad results and ad conversions keep working. - With several numbers, each number has its own access. Avox uses the access of the number the ad opens, then another number on the same WhatsApp account. ### Link your Page to the WhatsApp number Open your Facebook Page and go to **Settings**, then **Linked accounts**. Pick **WhatsApp**, choose **Connect**, enter the WhatsApp number the ad should open with its country code, and confirm with the code WhatsApp sends. In **Settings > Ads** (or the wizard's number step), pick the Page for that number and press **Check again**. Avox asks Meta whether the Page links that number. If the Page links another number, Avox refuses the ad ([AVX-4947](https://docs.theavoxai.com/error-codes/avx-4947)). If Meta doesn't say which number a Page links, Avox lets Meta decide at launch and shows Meta's answer. ### Create an ad Press **Create ad** in **Ads > Campaigns**, or start from a ready-made ad in the library. The wizard has these steps: **More chats**, **Leads** or **Sales**. Each one asks Meta to show the ad to people most likely to start a WhatsApp chat. Also say whether the ad is about housing, jobs or credit (see [Special ad categories](#special-ad-categories)). The number the ad opens a chat with, and its Facebook Page. With one number this step only shows the Page. Countries, ages (18 to 65+), genders and interests, your own audiences to show the ad to or leave out, and where it runs: **Automatic** (recommended), Facebook only, Instagram only, or both. With **Let Meta find more people** on, Meta may go beyond your ages and interests when it finds people likely to chat; your youngest age can then be 18 to 25. Meta's estimate of how many people the choices reach shows when Meta gives one. **More options** adds regions and cities (with an area of 17 to 80 km around a city), places to leave out, only people who live there, languages, and phones or computers (iPhone or Android). **Pick the spots** chooses each place on Facebook and Instagram. **Add ad set** makes another ad set with its own audience and the same ads, up to your plan's number. A **daily** budget, or a **total** budget with an end date, in your ad account's currency. Avox shows the lowest budget Meta takes for your account. With a total budget you can pick the hours the ad runs. A **spending limit** stops the ad at Meta once it has spent that much in total (Meta's lowest is about USD 100 or the same in your currency). Under **More options**: one budget for the whole ad (Meta's Advantage campaign budget moves it to the ad sets that get chats for less) or one per ad set, each ad set's own amount, the bid strategy (most chats for the budget, keep the average cost per chat, or never bid above an amount) and an **A/B test**. An image, a video, or a carousel of 2 to 5 images from your creative library. The main text, a headline and an optional description. The message typed for people when the chat opens, or up to 4 questions they can tap. An optional greeting. Pictures and videos come from your uploads, from your ad account's own images and videos, or from your Shop's product photos. **Add a version** makes another version of the ad (other words or another picture): every ad set runs every version, and Meta shows more of the ones that get chats. **Advantage+ creative** lets Meta adjust the picture and words for each spot, or leaves Meta's defaults. Optionally a welcome automation: one that starts with **Chat started from an ad** (Avox adds the new ads to it when it only runs for picked ads). Meta's own preview of the ad, for the feed and for stories. Everything in one place. **Launch** sends the ad to Meta for review. **Save paused** makes the ad at Meta without running it. Leave web links out of the headline, description and message: the button opens WhatsApp, and links elsewhere are a common reason Meta rejects these ads ([AVX-4956](https://docs.theavoxai.com/error-codes/avx-4956)). #### What happens at launch Avox checks everything first: your plan, the number, the Page link, your ad account's standing and payment method, the budget for your currency and the files. Then it makes the campaign, each ad set, and each ad with its creative at Meta, one after another, with the campaign paused until the last step, so nothing can spend on a half-made ad. If Meta doesn't answer part-way, the launch carries on from where it stopped ([AVX-4985](https://docs.theavoxai.com/error-codes/avx-4985)); pressing launch again never makes a second ad. If Meta refuses, Avox removes what it made, shows Meta's reason, and the launch doesn't count on your plan. ### Review status | Status | What it means | | --- | --- | | **In review** | Meta is reviewing the ad. Most reviews take less than a day. | | **Running** | Meta approved it and it's running. | | **Scheduled** | Approved, and it starts at its start time. | | **Paused** | Paused by you. Nothing is spent. | | **Rejected** | Meta rejected it. Meta's reason is shown on the ad's page. | | **Has issues** | Meta found a problem that may stop it from running. | | **Payment needed** | Meta can't charge your ad account. Fix the payment method in Meta's Billing. | | **Ended** | It reached its end date or spending limit. | | **Deleted** | Deleted in Avox or in Ads Manager. Its results stay in Avox. | | **Didn't launch** | Meta refused it at launch. Nothing was spent. | Avox reads each ad's status from Meta every few minutes while it's in review, and every 30 minutes while it runs. You get a notification when Meta rejects an ad, finds an issue or can't charge your account. #### Fix a rejected ad Open the ad, read Meta's reason, press **Change the ad**, fix the words or the image or video, and send it again. Meta can't edit an ad's content, so Avox makes a new version and puts it on the same ad (or a new ad in the same ad set, when Meta won't swap it). It goes back to review. ### Manage an ad On an ad's page in **Ads > Campaigns**: - **Pause** and **Resume**. Pausing always works, even when your plan no longer includes ad creation. - **Change the budget** or the spending limit. Meta allows 4 budget changes an hour ([AVX-4969](https://docs.theavoxai.com/error-codes/avx-4969)), and a total budget can't go below 10% above what was already spent. - **Change the end date.** - **Change the ad** (words, image or video), keeping its format. - **Duplicate** makes a new ad from it, saved paused. It counts as a launch. - **Delete** deletes it at Meta for good. Its results stay in Avox. - **Open in Ads Manager** for anything Avox doesn't change. The ad's page also shows **Chats from this ad** (the 50 newest people who started a chat from it, each opening their chat on the ad's WhatsApp number) and **Orders from this ad**, with **All orders** opening the Orders list filtered to the ad. It names the welcome automation and the audiences it uses, each linked. Seeing who chatted needs access to the Inbox or Contacts. In the [Inbox](https://docs.theavoxai.com/inbox), a chat that started from an ad in the last 90 days shows **From an ad**, linked to the ad's page when it was made in Avox, and the audiences and creative library list the ads that use them. ### A/B tests Meta has no split test for click-to-WhatsApp ads, so Avox runs one itself: each side is its own ad set with the same budget. **Compare audiences** gives each ad set its own audience and the same ads; **Compare versions** gives each version its own ad set with the same audience. The ad's page shows which side gets chats for less once each has enough chats. People can see more than one side, so treat it as a guide. A/B tests are on the Business plan ([AVX-4675](https://docs.theavoxai.com/error-codes/avx-4675)). ### Results **Ads > Overview** shows every click-to-WhatsApp ad, made in Avox or not, for the dates you pick: spend, chats, cost per chat, revenue and return on ad spend, a chart over time, a map by country, and results by age and gender, region, where the ad showed and device. Each ad's page shows the same for that ad, with each ad set and version. Reach counts people once a day, so a date range shows the busiest day's reach, and the ad's page shows Meta's reach for the whole run. An order counts for an ad when the person's latest chat from an ad came in the 28 days before the order. Revenue counts paid orders only, and return on ad spend uses revenue in your ad account's currency only. Chats from private numbers are never counted. ### Spend alerts In **Settings > Ads**, pick when to be told about spend: at 50%, 80%, 90% or 100% of an ad's total budget or spending limit. You get a notification, and an email if you keep **Email me** on. Each alert comes once per budget. ### Audiences Audiences are lists Meta can show ads to (or leave out), made in **Ads > Audiences**. - **From your contacts**: all contacts who allow marketing, contacts with a tag, people who chatted recently, people who chatted from an ad but didn't buy, people who bought from your shop, people who bought a product, people who spent over an amount, people with a Chat signal, people who replied to a Broadcast, people who came from a Smart link, or people who ordered but didn't pay. You confirm you may use these contacts for ads before Avox makes the list. - **Lookalikes**: people like one of your lists (1% to 10%), such as **Customers like your buyers**, built by Meta from a list of at least 100 people ([AVX-4988](https://docs.theavoxai.com/error-codes/avx-4988)). Meta shows them in the places your ad sets pick. Avox leaves out anyone who stopped marketing messages, is tagged Unsubscribed or is kept private. Each phone number is turned into Meta's one-way code (a SHA-256 hash) inside Avox's database, and only those codes go to Meta. Avox doesn't keep them, and no name or message is ever sent. Lists refresh by themselves every 7 days, or when you press **Refresh**, so someone you tag Unsubscribed drops out. Meta matches people over a few hours; lookalikes take 1 to 6 hours. Before the first list, someone in your business has to accept Meta's Custom Audience terms for the ad account ([AVX-4961](https://docs.theavoxai.com/error-codes/avx-4961)). Meta can flag a list that suggests health or money details and won't let ads use it ([AVX-4994](https://docs.theavoxai.com/error-codes/avx-4994)). ### Creative library **Ads > Creative library** keeps the images and videos for your ads: JPG or PNG up to 8 MB, MP4 or MOV up to 200 MB, 500 files a Switchboard. With an ad account connected, uploads go straight to it. The library also shows your ad account's own images and videos and your Shop's product photos, ready to use. Videos are processed by Meta first; an ad can use one once it shows **Ready**. A file an ad uses can't be removed ([AVX-4992](https://docs.theavoxai.com/error-codes/avx-4992)). ### Special ad categories | Category | In Avox | | --- | --- | | **None of these** | Most businesses. All targeting is available. | | **Housing, jobs, credit and financial services** | Allowed with Meta's limits: ages 18 to 65+, all genders, no interests, no own audiences or lookalikes ([AVX-4952](https://docs.theavoxai.com/error-codes/avx-4952)). | | **Social issues, elections or politics** | Not made in Avox: they need Meta's authorisation and a disclaimer. Use Ads Manager ([AVX-4951](https://docs.theavoxai.com/error-codes/avx-4951)). | | **Online gambling or gaming** | Not made in Avox: they need Meta's written permission. Use Ads Manager. | ### Plans and limits - **Ad creation** is on Growth and Business ([AVX-4672](https://docs.theavoxai.com/error-codes/avx-4672)). - **Ads launched a month**: Growth 5, Business 25 ([AVX-4673](https://docs.theavoxai.com/error-codes/avx-4673)). A duplicate counts as a launch; a launch Meta refuses doesn't. Ads already running keep running. - **Ad audiences**: Growth 5, Business 25 ([AVX-4674](https://docs.theavoxai.com/error-codes/avx-4674)). - **Ad sets in one ad**: Growth 3, Business 10 ([AVX-4676](https://docs.theavoxai.com/error-codes/avx-4676)). - **Ads in one ad** (every version in every ad set): Growth 6, Business 30 ([AVX-4677](https://docs.theavoxai.com/error-codes/avx-4677)). - **Lookalikes**: Growth 2, Business 10 ([AVX-4678](https://docs.theavoxai.com/error-codes/avx-4678)). - **A/B tests**: Business ([AVX-4675](https://docs.theavoxai.com/error-codes/avx-4675)). Exact numbers for your plan are on [Plans](https://docs.theavoxai.com/plans). ### Several WhatsApp numbers Each ad opens one number. With several numbers the wizard asks which one, and each number has its own Page. Pick a default number in **Settings > Ads**. ### What Avox can't do with ads Meta doesn't offer these to apps like Avox for click-to-WhatsApp ads, or doesn't document them, so they're done in Ads Manager: Meta's own split tests, dynamic creative, instant forms, boosting an existing post, ads in WhatsApp Status, catalogue product ads (use a product photo instead), and audiences of people who messaged you on WhatsApp (build one from your contacts instead). ### Error codes Ad creation codes run from [AVX-4940](https://docs.theavoxai.com/error-codes/avx-4940) to [AVX-4995](https://docs.theavoxai.com/error-codes/avx-4995) and [AVX-5000](https://docs.theavoxai.com/error-codes/avx-5000) to [AVX-5036](https://docs.theavoxai.com/error-codes/avx-5036), and plan limits [AVX-4672](https://docs.theavoxai.com/error-codes/avx-4672) to [AVX-4678](https://docs.theavoxai.com/error-codes/avx-4678). See [Error codes](https://docs.theavoxai.com/error-codes) for each one. --- ## Connections URL: https://docs.theavoxai.com/connections Section: Connections A **connection** is a WhatsApp number linked to your Switchboard. The Connections page lists every connection, and each connection has its own page for its settings. This page covers managing a number you've already connected. To connect one, see [Setup](https://docs.theavoxai.com/connections/setup) or [Getting started](https://docs.theavoxai.com/getting-started). ### Who can do what | Action | Admin | Manager | | --- | --- | --- | | View connections, their settings and the message forwarding log | Yes | Yes | | Connect a new number (the setup wizard) | Yes | Yes | | Choose "Also send messages to my own server" in the wizard, or delete a setup in progress | Yes | No | | Run **Check health now** on [Health](https://docs.theavoxai.com/health) | Yes | Yes | | Rename a connection | Yes | No | | Set the WhatsApp username | Yes | No | | Turn Calling or Identity-Key Check on or off | Yes | No | | Change message forwarding (switch, URL, secret, test event, resend) | Yes | No | | Create, rotate or revoke API keys | Yes | No | | Pause, resume or delete a connection | Yes | No | The **Owner** is the Switchboard's first Admin - normally whoever created it. The Owner has every Admin permission, and a few account emails go only to the Owner, including the [delete confirmation code](#delete). The Manager column shows the defaults: an Admin can give a Manager the **Manage connections** permission (rename, pause, resume, delete, forwarding, calling and username) or the **Manage API keys** permission, person by person. A change the person isn't allowed to make doesn't save, and where a section is read-only it says so - for example "Only an Admin can change message forwarding." See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). ### The Connections page **Connections** is in the sidebar under **Connect & Monitor**, next to **Apps**, **Health**, **Logs** and **API logs**. The header reads "Your WhatsApp numbers, and how each one is set up." With no number connected yet, you see the [empty Connections page](#before-your-first-number). Once you have a number (or a setup in progress), a strip shows: - **Your Switchboard's name**, next to the [Avox Avatar](https://docs.theavoxai.com/avox-avatar). Hover the avatar to see how many more numbers you can connect (for example "Room for 2 more."). - **The usage chip** - for example `1/3` **connections used**. The bar fills as you use your plan's connections. - **View setup docs** - opens [Getting started](https://docs.theavoxai.com/getting-started). - **Connect another number** - opens the [setup wizard](https://docs.theavoxai.com/connections/setup). When **Connect another number** can't be used, it's greyed out and the reason shows under it - the same reasons as on the [empty page](#before-your-first-number). For example, when every connection your plan allows is in use, it reads "You've used every connection your plan allows." ([AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009)) with **See plans in Billing**. Pause or delete a connection, or upgrade on [Change plan](https://docs.theavoxai.com/billing/change-plan), to free a slot. Below the strip you'll find: - **A Setup in progress card** when you finished step 2 of the wizard but didn't connect with Meta. It shows the connection name you typed (or "New connection"), when you started, and your choice ("Avox handles everything." or "Avox, plus forwarding to your server."). Click **Resume setup** to reopen the wizard where you left off. Admins also see **Delete**, which asks you to confirm, then removes the saved setup (name, choice, endpoint URL and signing secret). Nothing on WhatsApp changes, and the deletion is recorded in the audit log. - **One card per connection**, newest first. - **Related docs** - quick links to setup, webhook setup, Meta Embedded Signup, and managing a connection. #### Before your first number A Switchboard with no connections and no saved setup shows a short page instead of the list. The setup wizard never opens by itself: you start it when you're ready. - **Connect your WhatsApp number** - the heading, with a line on what connecting does: Avox sends and receives this number's WhatsApp messages through Meta, so the rest of your dashboard can work. - **Coexistence in one line** - "Already use the WhatsApp Business app? Keep it: the app keeps working on your phone and Avox works alongside it." See [Coexistence](https://docs.theavoxai.com/coexistence-explained). - **Three cards** - **One shared inbox**, **Templates, Flows and automations**, and **Health and logs**: what a connected number opens up. - **Connect a WhatsApp number** - opens the [setup wizard](https://docs.theavoxai.com/connections/setup). Next to it, **How connecting works** opens [Getting started](https://docs.theavoxai.com/getting-started). When the button can't be used yet, it's greyed out and the reason shows under it: | Reason shown | What to do | | --- | --- | | Choose a plan before connecting a WhatsApp number. ([AVX-3109](https://docs.theavoxai.com/error-codes/avx-3109)) | Click **Choose a plan in Billing**. Without access to Billing, the note reads "Ask an Admin of this Switchboard." | | Only an Admin, or a Manager given "Manage connections", can connect a number. | Ask an Admin to connect the number, or to give you **Manage connections** (see [Permissions](https://docs.theavoxai.com/switchboard/members#permissions)). | | You've used every connection your plan allows. ([AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009)) | Click **See plans in Billing**, or pause or delete a number in another Switchboard on your plan. Without access to Billing, the note reads "Ask an Admin of this Switchboard." | Below that, **Connect apps** shows a few of the apps you can link (all of them are on **Apps** in the sidebar, see [Apps](https://docs.theavoxai.com/connections/apps)), then the related docs. #### Leaving the setup wizard The wizard has a step row at the top. **Back**, on its left, goes to the previous step, and from the first step back to Connections. **Exit setup**, in the wizard's header, leaves the wizard at any point. The browser's own Back button works too. Leaving never loses a saved setup: once you've saved your choices, they stay saved and Connections shows them as a **Setup in progress** card with **Resume setup**. The full walkthrough is on [Setup](https://docs.theavoxai.com/connections/setup). #### How the connection limit works Your plan sets how many numbers you can connect (see [Plans](https://docs.theavoxai.com/plans)). The limit is one shared pool across every Switchboard you own on that plan, not a separate limit per Switchboard. Spend it however you like: several numbers in one Switchboard, or one each across several. Only connections with the **Connected** status count toward the pool. A paused connection doesn't, so pausing a number frees its slot. One WhatsApp number can be connected to only one Switchboard at a time, across all of Avox. If you try to connect a number that's already connected, the wizard says so with a code: "That WhatsApp number is already connected to an Avox account. Disconnect it there first, then connect it again." ([AVX-3119](https://docs.theavoxai.com/error-codes/avx-3119), it doesn't say which account) or, when it's on this Switchboard, "That WhatsApp number is already connected to this Switchboard. Open Connections to see it." ([AVX-3120](https://docs.theavoxai.com/error-codes/avx-3120)). Delete the number from the Switchboard that holds it, then connect it again. A number that's still registered with another WhatsApp provider, or on another site's WhatsApp account, may also be refused by Meta inside its window; remove it from there first. ### Connection cards Each card shows: - **The name** - hover it and click the pencil to rename it. See [Renaming a connection](#renaming-a-connection). - **The phone number.** - **The status** - see [Connection statuses](#connection-statuses). - **The forwarding Endpoint URL**, when one is saved. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). For a **Connected** or **Paused** connection, the card also shows: - **Connected** - the date you connected it - and **Active** - how long ago Avox last received an event for this number ("Just now", "5m ago", "3h ago", "2d ago", or "Never"). - **Calling** - a switch. See [Calling](https://docs.theavoxai.com/connections/calling). - **The WhatsApp username** - see [Your WhatsApp username](#your-whatsapp-username). At the bottom are **Settings** (with a gear icon) and **Open in Meta**. **Settings** opens a menu: **All settings** opens the [connection's own page](#the-connection-page), then **Pause**, **Resume** and **Delete**. If you can't manage connections, **Settings** opens the connection's own page straight away. **Open in Meta** opens this number's WhatsApp Business Account in Meta's WhatsApp Manager in a new tab. ### Connection statuses | Status | Meaning | | --- | --- | | **Connected** | The number is live. Messages, statuses and calls flow through Avox. | | **Connecting** | Avox is finishing the setup with Meta. This normally takes seconds. | | **Disconnected** | The number is no longer linked. Connect it again with the setup wizard. | | **Error** | Setup didn't complete, or Meta reported a problem. See [Troubleshooting](#troubleshooting-a-connection). | | **Paused** | Paused from the **Settings** menu (or by Avox support). Sending stops until it's resumed. | | **Paused - billing issue** | Paused because the Switchboard's subscription was canceled. The card reads "This Switchboard's subscription was canceled - every connection is paused until payment resumes." with a **Review billing** link. | ### Renaming a connection The name is a label for your team - it shows across the dashboard and in emails about the connection. It isn't sent to Meta and customers never see it. Admins only. Hover the connection's name on its card or its own page, then click the pencil. Type 1 to 60 characters and click the check mark. The [Avox Avatar](https://docs.theavoxai.com/avox-avatar) says "Renamed." | Message | What it means | | --- | --- | | Give this connection a name / Keep it under 60 characters | The name is empty or longer than 60 characters. | | Couldn't rename that connection. Try again. | The name didn't save - try again ([AVX-3019](https://docs.theavoxai.com/error-codes/avx-3019)). A Manager sees this too, because renaming is Admin-only. | ### Your WhatsApp username A WhatsApp username lets customers find and message your business by a name such as `@acme_support` instead of only your phone number, and open a chat with a short link like `wa.me/acme_support`. Avox sets it through Meta's Username API. It needs an Admin (or the **Manage connections** permission), the connection must be **Connected**, and the Switchboard needs an active plan. Changing the username needs an active plan, with no grace period. When the plan behind your Switchboard has stopped (or there has never been one), the username row shows "Needs a plan" with **Choose a plan** for the Switchboard's Owner, or "Ask the owner to renew." for everyone else. Your current username stays as it is. A change sent anyway is refused with "Changing your WhatsApp username needs an active plan. Choose a plan first." ([AVX-3422](https://docs.theavoxai.com/error-codes/avx-3422)). See [What happens when a plan stops](https://docs.theavoxai.com/billing/cancel#what-happens-when-a-plan-stops). Usernames are Meta's feature, and Meta decides which names are available. Meta is opening them up country by country and account by account, and each name is unique across all of WhatsApp - so a name that's taken or protected (for example, a well-known brand) goes to its owner. Meta's own suggestions for your number are the most likely to be approved. On the connection's card, or in the **WhatsApp username** section of its own page, click **Set a WhatsApp username** (or your current `@username` to change it). Type one, or click one of **Suggested by Meta for this number** - names Meta proposes for your number, which Meta says are more likely to be approved. A checklist under the field turns green as each rule is met: - 3 to 35 characters - only letters, numbers, periods (`.`) and underscores (`_`) - capitals become lowercase - at least one letter - no period at the start or end, and no two periods in a row - doesn't start with `www` - doesn't end like a web address (`.com`, `.org` and so on) Click **Save**. Avox sends the name to Meta and shows Meta's answer: - **Live** - approved, and WhatsApp users can see it. - **Reserved** - approved, but not shown yet because usernames aren't live in that region. It turns on automatically once they are. If Meta doesn't return username details for your number, the editor says so: usernames may not be open to it yet, but you can still try saving one. | Message | What it means | | --- | --- | | Username rule not met: ... | One of the rules above isn't met yet ([AVX-3017](https://docs.theavoxai.com/error-codes/avx-3017)). | | Meta didn't accept that username. It may be taken, protected, or not available for this number yet. | Usernames are unique across all of WhatsApp, not only Avox. Try another, or one of Meta's suggestions ([AVX-3018](https://docs.theavoxai.com/error-codes/avx-3018)). | | This number needs to be connected first. | Usernames can only be set on a **Connected** number. | | Changing your WhatsApp username needs an active plan. Choose a plan first. | The plan behind this Switchboard has stopped, or there has never been one. Choose a plan on [Billing](https://docs.theavoxai.com/billing), or ask the Owner ([AVX-3422](https://docs.theavoxai.com/error-codes/avx-3422)). | ### Managing a connection The **Settings** menu on each card (and the **Danger zone** at the bottom of the connection's own page) holds **Pause**, **Resume** and **Delete**. Admins only. #### Pause Available when the connection is **Connected**. Pausing is an Avox setting - nothing changes on Meta's side, and your number stays registered with WhatsApp. While a connection is paused: - It stops counting toward your plan's connection pool, so you can use that slot elsewhere. The avatar says "Paused - this frees up a slot in your plan." - Sending from Avox stops: Inbox replies, [automations](https://docs.theavoxai.com/automation), and the [Avox API](https://docs.theavoxai.com/avox-api) (requests return `connection_paused` - see [API errors](https://docs.theavoxai.com/api/errors#connection_paused)). - The **Calling** and **Identity-Key Check** switches are turned off for editing. If the pause fails, you see "Couldn't pause that connection" with "Couldn't pause that connection. Try again." ([AVX-3020](https://docs.theavoxai.com/error-codes/avx-3020)). #### Resume Available when the connection is **Paused**. Resuming takes a slot in your plan's connection pool again, so Avox checks you still have room first. The avatar says "Back and connected." | Message | What to do | | --- | --- | | Resuming this would put you over your plan's connection limit. | Pause or delete another connection, or upgrade your plan ([AVX-3021](https://docs.theavoxai.com/error-codes/avx-3021)). | | This connection is paused because this Switchboard's subscription was canceled - resolve it on the Billing page first. | Fix the subscription on [Billing](https://docs.theavoxai.com/billing). The connection resumes automatically once payment is back in good standing ([AVX-3082](https://docs.theavoxai.com/error-codes/avx-3082)). | | Couldn't pause that connection. Try again. | Shown under "Couldn't resume that connection" for any other problem ([AVX-3020](https://docs.theavoxai.com/error-codes/avx-3020)). Try again. | A connection paused for billing doesn't show **Resume** in its menu at all - it resumes by itself when the payment is resolved. A connection paused by Avox support is resumed by Avox support: contact [Support](https://docs.theavoxai.com/support). #### Delete Deleting removes the connection from your Switchboard. Because it's permanent after a short grace period, Avox confirms it with a one-time code sent to the Owner. Choose **Delete** in the **Settings** menu. A red box opens under the menu and reads "Sending a code to the Switchboard owner's email...". Avox emails a 6-digit code to the Switchboard's Owner - even when another Admin clicked Delete. The box now reads "Enter the 6-digit code emailed to the Switchboard owner to confirm deleting this connection." The code is valid for 10 minutes. If you're not the Owner, ask them for it. Requesting a new code cancels the previous one. Type the code and click **Confirm delete**, on the same account that clicked Delete. You see "Connection deleted - It's kept for 6 days before being permanently removed." Click **Cancel** instead to stop. What happens next: - The connection disappears from your dashboard straight away and stops counting toward your plan. - The number is free in Avox straight away, so it can be connected again, here or in another Switchboard. - Every Admin gets an email saying who removed which number, and the date it can be recovered until. - The connection is kept for **6 days** in case it was a mistake, then removed permanently. Need a deleted connection back? Contact [Support](https://docs.theavoxai.com/support) within the 6 days. After that, connect the number again from scratch with the [setup wizard](https://docs.theavoxai.com/connections/setup). | Message | What to do | | --- | --- | | Couldn't start the delete request - Couldn't send the delete confirmation code. Try again. | Try again shortly ([AVX-3022](https://docs.theavoxai.com/error-codes/avx-3022)). | | That code is invalid or expired. | Check the code, or click **Delete** again for a new one if 10 minutes have passed ([AVX-3023](https://docs.theavoxai.com/error-codes/avx-3023)). | | Enter the 6-digit code from your email. | The code must be exactly 6 digits. | After 5 wrong attempts the code stops working; click **Delete** again to get a new one. ### The connection page Click **Settings** on a card, then **All settings**, to open the connection's own page. Its title is the connection's name, with "Everything about this WhatsApp connection - status, message forwarding, and Meta-side management." and a **Docs** button. **Back to connections** returns to the list. At the top, the summary shows the [Avox Avatar](https://docs.theavoxai.com/avox-avatar), the name (with the rename pencil), the phone number, status, Connected date, Active time and **Open in Meta**. Below it, the page has these sections (some show only when they apply to the number): 1. **Health and limits** - the number's health, quality and messaging limit. 2. **What runs on this number** - see [What runs on this number](#what-runs-on-this-number). 3. **Meta access** - what Meta lets Avox do with this number, and reconnecting. 4. **Identity** - the display name, profile and your WhatsApp username (see [Your WhatsApp username](#your-whatsapp-username)). 5. **Conversation starters**, **Billing at Meta**, **Chats and contacts**, **Blocked people** and **Which chats Avox keeps**. 6. **Calling** - the **WhatsApp calls** switch and a link to its call settings. See [Calling](https://docs.theavoxai.com/connections/calling). 7. **Groups** - on numbers used with Avox only. 8. **API and forwarding** - see [Message forwarding](#message-forwarding) and [Outbound API key](#outbound-api-key). 9. **Danger zone** - **Move to another Switchboard** (see [Move a number](https://docs.theavoxai.com/connections/move-number)), **Pause** and **Delete**. #### What runs on this number **What runs on this number** lists everything that uses the number, so you know what stops if it's paused, removed or moved: **Automations** that answer on it, **Broadcasts** and **Smart links** that use it, **Calls in the last 30 days**, its **Shop**, **Live Flows**, **API keys** and **Message forwarding**. Each part links to where it lives (**Go there**, or **See all** for a longer list). Parts you don't have permission to see are left out. It only tells you; nothing changes from here. ### Message forwarding Sends each new incoming customer message on this number to your own HTTPS endpoint, signed by Avox (this section used to be called **Webhook Override**). It has an on/off switch, the **Endpoint URL** with **Save URL**, the **Signing secret** with **Rotate secret** (or **Create secret** before the first one exists), **Send test event**, and **Recent deliveries** with **Payload** and **Resend**. Admins can change it; everyone can see it and the delivery log. Only customer messages are forwarded - delivery statuses, calls and messages your team sends stay in Avox. The full guide is on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### Outbound API key The **Outbound API keys** section lets your own server send WhatsApp messages from this connection through the [Avox API](https://docs.theavoxai.com/avox-api), without ever holding Meta's access token: ``` POST https://api.theavoxai.com/api/messages/send Authorization: Bearer avx_live_... ``` - Each key belongs to exactly one connection. - Admins choose **Live key** (sends real messages) or **Test key** (never sends anything), then click **Create live key** or **Create test key**. The full key is shown **once**, in "Your new API key" - copy it then, because it can't be shown again. - Active keys are listed with their first characters, a **Live** or **Test** badge, the key's name, and when it was created and last used. **Rotate** swaps a key for a new one with a grace period, and the bin button revokes a key immediately. A rotated key shows "Expires in ..." until its grace period ends. - With no keys, the section reads "No key yet - create one when your server is ready to send through Avox." Managers see "Only an Admin of this Switchboard can create, rotate or revoke keys." - Under the list, **API logs** opens every request made with this connection's keys, and **Settings > API keys** opens every key across all your connections, with **Test** and each key's recent requests. See [API keys](https://docs.theavoxai.com/connections/api-keys) for every step, and [Authentication](https://docs.theavoxai.com/avox-api/authentication) for how to send the key. ### Identity-Key Check A switch for WhatsApp's recipient identity protection. When it's on, Meta blocks a message with error `137000` if the WhatsApp account behind the recipient's phone number has changed since you last messaged them - for example a recycled phone number or a customer moving to a new account. It's recommended for sensitive messages such as login codes and payment details. Admins only, and the connection must be **Connected**. Turning it on or off asks Meta to change the setting first; the switch stays only when Meta confirms, and the avatar says "Identity checks are on." or "Identity checks are off." If it fails, the switch goes back and you see "Couldn't update identity-check settings. Try again." ([AVX-3052](https://docs.theavoxai.com/error-codes/avx-3052)). The switch is turned off for editing while the connection is paused. See [Meta error codes](https://docs.theavoxai.com/meta-error-codes) for `137000`. ### Emails about your connections | Email | Who gets it | When | | --- | --- | --- | | Your number is connected | Every Admin | A new connection finishes setup. | | A number was removed | Every Admin | A connection is deleted. Includes who deleted it and the recovery date. | | Delete confirmation code | The Owner | Someone clicks **Delete** on a connection. | | Access expiring | Every Admin | Meta's access for a connection is about to expire. | | Message forwarding paused | Every Admin | Your endpoint failed 5 forwarded messages in a row. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override#retries-and-auto-pause). | | API key created, revoked, or flagged | Every Admin | See [API keys](https://docs.theavoxai.com/connections/api-keys#emails-about-api-keys). | | Critical account alert | The Owner | Meta sends an alert about your account. Controlled by **WhatsApp account alerts** on [Compliance](https://docs.theavoxai.com/compliance). | See [Emails](https://docs.theavoxai.com/emails) for every email Avox sends. ### Troubleshooting a connection - **Messages aren't sending.** Open [Health](https://docs.theavoxai.com/health) and click **Check health now** for Meta's own answer. If a check row is red, follow its suggested fix. For a specific Meta error number, see [Meta error codes](https://docs.theavoxai.com/meta-error-codes). - **Status is Error or Disconnected.** Use **Open in Meta** to look at the number in WhatsApp Manager, then connect it again with the [setup wizard](https://docs.theavoxai.com/connections/setup). - **The setup popup didn't finish.** See [If the connection doesn't go through](https://docs.theavoxai.com/connections/setup#if-the-connection-doesnt-go-through). Closing the popup early changes nothing - you can safely try again. - **"That WhatsApp number is already connected".** A number can be on only one Switchboard at a time. Delete it from the Switchboard that holds it, then connect it again ([AVX-3119](https://docs.theavoxai.com/error-codes/avx-3119), [AVX-3120](https://docs.theavoxai.com/error-codes/avx-3120)). If the wizard says "We couldn't save that connection. Try again.", just try again ([AVX-3121](https://docs.theavoxai.com/error-codes/avx-3121)). - **"Choose a plan before connecting a WhatsApp number".** Subscribe on [Billing](https://docs.theavoxai.com/billing) first ([AVX-3109](https://docs.theavoxai.com/error-codes/avx-3109)). - **Your server isn't receiving messages.** Check **Recent deliveries** in [Message forwarding](https://docs.theavoxai.com/connections/webhook-override#recent-deliveries), or the **Received** tab of [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). - **Still stuck?** Contact [Support](https://docs.theavoxai.com/support) with the connection's Phone Number ID from the connection page. --- ## Setup URL: https://docs.theavoxai.com/connections/setup Section: Connections The setup wizard connects a WhatsApp number to your Switchboard in three or four steps (the test step only appears when you also forward messages to your own server). This page is the full reference for every field, button and message in it. For a lighter first-time guide, see [Getting started](https://docs.theavoxai.com/getting-started); for a one-screen checklist, see [Connect WhatsApp](https://docs.theavoxai.com/walkthrough/connect-whatsapp). ### Before you start - **Onboarding finished.** The dashboard opens only once you've answered the onboarding questions, so finish those first. See [Details asked during onboarding](https://docs.theavoxai.com/settings/profile#details-asked-during-onboarding). - **A plan.** You need an active plan to connect a number. Without one, connecting stops with "Choose a plan before connecting a WhatsApp number". See [Billing](https://docs.theavoxai.com/billing). - **A free connection slot.** Your plan sets how many numbers you can connect. When they're all in use, **Connect another number** is turned off ([AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009)). See [How the connection limit works](https://docs.theavoxai.com/connections#how-the-connection-limit-works). - **A number that isn't connected anywhere else in Avox.** One WhatsApp number can be connected to only one Switchboard at a time, across all of Avox. If it's already connected in another account or Switchboard, delete it there first (deleting a connection frees the number straight away). A number that's still registered with another WhatsApp provider, or on another site's WhatsApp account, may also be refused by Meta, so remove it from there first. - **Admin access to the WhatsApp Business Account** on Meta's side, if the number already belongs to one. - **For an existing number:** the phone with the WhatsApp Business app on it, nearby. You'll scan a QR code with it and confirm the connection in the app. - **A computer browser** with pop-ups allowed for the Avox dashboard, opened over `https://`. Any member of the Switchboard - Admin or Manager - can run the wizard with **Use Avox for everything**. Setting up **Also send messages to my own server**, and deleting a setup in progress, need an Admin. ### Opening the wizard - With no connections and no saved setup, the Connections page opens straight into the wizard. - With connections already, click **Connect another number** on [Connections](https://docs.theavoxai.com/connections). - With a half-finished setup, click **Resume setup** on the **Setup in progress** card. The heading reads "Set up your WhatsApp connection - Pick your number type and how messages are handled, then continue to Meta's secure signup." When you resume a saved setup, it reads "Welcome back - continuing your setup" and "Your choices are saved. Check them, then continue to Meta." When you have at least one connection or a saved setup, **Back to connections** in the top right returns to the list. Your saved details are kept. #### Deleting a setup in progress Once step 2 is saved, an Admin sees **Delete setup** in the top right of the wizard (and **Delete** on the **Setup in progress** card on [Connections](https://docs.theavoxai.com/connections)). A confirmation explains what goes: the saved name, your message handling choice, the endpoint URL and its signing secret. Nothing on WhatsApp changes, because nothing has been connected yet. Click **Delete setup** to confirm, or **Keep it**. The deletion is recorded in your Switchboard's audit log. If it fails you see "Couldn't delete that setup. Try again." ([AVX-3118](https://docs.theavoxai.com/error-codes/avx-3118)). #### The step bar The bar across the top shows where you are: **1. Number type**, **2. Webhook setup**, then **3. Send test event** (only when you forward messages to your own server) and **Connect with Meta**. A finished step turns green with a check mark; a step with a problem turns red with a warning shield. Every step also has a **Docs for this step** link. The current step is part of the page address (for example `/connections?step=test`), so reloading the page brings you back to the same step. ### Step 1: Number type Choose the kind of number you're connecting. This decides which Meta signup path you get, and how it works with the WhatsApp Business app. | Choice | Pick it when | | --- | --- | | **Existing number (Coexistence)** | The number is already active in the WhatsApp Business app. Avox connects alongside it - your team keeps using the app, and nothing already there is disrupted. This is the default. | | **New number (Bot only)** | The number isn't used in the WhatsApp Business app. It'll be dedicated to Avox's bot and API - a simpler setup, with nothing existing to keep in sync. | Click **Next**. If your team already chats with customers from a phone today, you want Coexistence. See [Coexistence, explained](https://docs.theavoxai.com/coexistence-explained) and [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). ### Step 2: Webhook setup Name the connection, then choose how its WhatsApp messages are handled. The step reads "Name this connection and choose how its WhatsApp messages are handled. You can change message forwarding later on the connection's page." **Connection name** is required, 1 to 60 characters - a label for your team, such as "Acme Support EU". You can [rename it](https://docs.theavoxai.com/connections#renaming-a-connection) later. Then pick one of two paths: | Choice | What happens | | --- | --- | | **Use Avox for everything** (Recommended) | Avox receives all of this number's WhatsApp events from Meta and powers the shared team inbox, message templates, WhatsApp Flows, automation, Avox AI, WhatsApp calls, analytics, connection health and webhook logs. Avox sets up the webhook with Meta and checks it with its own verify token - you don't need a server, and there's nothing to fill in. | | **Also send messages to my own server** | Everything above, plus [Message forwarding](https://docs.theavoxai.com/connections/webhook-override): Avox forwards each new incoming customer message to your HTTPS endpoint, signed with a secret so you can check it came from Avox. Only incoming customer messages are forwarded - not delivery statuses, calls, or messages your team sends. Admins only. | Some features need a plan that includes them - for example, Analytics isn't on the Starter plan. See [Billing](https://docs.theavoxai.com/billing). #### If you forward to your own server **Your endpoint URL** must start with `https://`, use the standard port, and be reachable from the public internet. Private network addresses, `localhost` and addresses that don't resolve are refused when you click **Next**. Redirects aren't followed. Avox saves the setup and creates a signing secret (it starts with `whsec_`). It's shown once, decoding onto the screen, with a copy button. Copy it into your server's settings (for example as `AVOX_WEBHOOK_SECRET`). After you hide it or move on, only `whsec_••••` is shown - Avox stores it encrypted and never shows it again. The wizard moves on to the test step. Click **Next** on either path. Avox saves your choice as a draft for this Switchboard, so you can leave and come back: the **Setup in progress** card on [Connections](https://docs.theavoxai.com/connections) reopens the wizard where you left off (the test step when forwarding, otherwise Connect with Meta). | Message | What to do | | --- | --- | | Give this connection a name / Keep it under 60 characters | Fix the Connection name. | | Enter your endpoint URL / The endpoint URL must start with https:// | Use a full `https://` address. | | Check your connection name and, if you're forwarding messages, your endpoint URL. | One of the fields above needs fixing ([AVX-3006](https://docs.theavoxai.com/error-codes/avx-3006)). | | Only an Admin can set up message forwarding. | Choose **Use Avox for everything**, or ask an Admin. Forwarding can also be turned on later from the connection's page. | | Couldn't save your setup, with "Finish setting up your account first." ([AVX-1122](https://docs.theavoxai.com/error-codes/avx-1122)) under it | Your onboarding isn't finished, for example because Avox asked you to answer the questions again. Finish them, then come back to the wizard. | | Couldn't save your setup | Check that the endpoint URL is a public address on the standard `https` port, then try again ([AVX-3007](https://docs.theavoxai.com/error-codes/avx-3007)). | Testing on your own computer? Avox can't reach `localhost`. A tunnelling tool gives your local server a public HTTPS address to use while you build. ### Step 3: Send test event This step only appears when you chose **Also send messages to my own server**. Avox sends a sample message marked `"test": true` to your endpoint, signed exactly like a real one. The step shows your **Endpoint URL** with a copy button and your signing secret, hidden. Lost the secret? **Make a new secret** replaces it straight away (the old one stops working) and shows the new one once. Avox POSTs the sample to your endpoint with the `Avox-Signature` header. Your server should check the signature and answer with any `2xx` status. See [How to check the signature](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). "Delivered - your endpoint answered 200." in green, or the reason it failed in red ([AVX-3101](https://docs.theavoxai.com/error-codes/avx-3101)). **Next** is available once you've sent at least one test. A failed test doesn't stop you: you can continue and fix your server later. Forwarding still turns on when the connection completes, failed deliveries are retried, and you can send another test from the connection's page. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### Step 4: Connect with Meta The last step (step 3 when Avox handles everything, step 4 when you forward to your server), **Review & connect with Meta**, reads "Check your choices, then see what Meta's setup flow looks like." It hands you over to Meta's own secure signup window. #### What's on this step - **Your choice from step 2** - "Avox handles everything", or "Avox, plus forwarding to your server" with your forwarding endpoint and a copy button. **Change this** takes you back to step 2. - **What to expect during setup** - an illustrated walkthrough of Meta's window: - The **Desktop** tab shows the 9 screens of Meta's window on your computer, from "Start the Meta onboarding" to "Click Finish". - The **Mobile** tab shows the 4 screens you see on your phone in WhatsApp Business during a Coexistence signup. - Use **Back**, **Next**, the dots, or swipe the picture. The last Desktop screen's button reads **Next: mobile setup**, and the very last screen's reads **I understood**; **Watch again** restarts it. Watching it is optional. - The status chip in its header shows the live state of your signup: **Waiting**, **Connecting** (with Meta's current step), **Error**, or **Connected**. - **A summary of the flow.** For Coexistence: "Halfway through, you'll confirm coexistence inside the WhatsApp Business app on your phone, then return to the popup to finish. The WhatsApp Business app continues to work after connecting." For a new number: "Since this is a new, bot-only number, there's no phone confirmation step - the popup completes the whole signup itself." - **A reminder** that once connected you can set a WhatsApp username for the number, where Meta makes usernames available. - **The agreement.** Continuing confirms that you're authorized to connect this WhatsApp Business Account, that you agree to Avox's Terms of Service, and that you acknowledge the Privacy Policy. #### Connecting The blue button opens Meta's window. Keep the Avox tab open behind it. Choose or enter your number, confirm your business profile, pick your business portfolio, and review what you're sharing with Avox. For Coexistence, scan the QR code with the WhatsApp Business app when asked, confirm the connection on your phone, and choose whether to share your chat history. See [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup) for each of Meta's screens. Meta closes the window and Avox finishes the connection. You're taken back to [Connections](https://docs.theavoxai.com/connections), where the new number shows **Connecting** and then **Connected**. #### What happens after you connect - Avox confirms the number belongs to the WhatsApp Business Account you just authorized, then subscribes to that account's events with Meta. When that succeeds, the connection becomes **Connected**; otherwise the connection shows **Error**. - Your Connection name moves from the draft onto the new connection. If you chose **Also send messages to my own server**, your endpoint URL becomes the forwarding **Endpoint URL**, the signing secret you copied moves with it, and Message forwarding is switched on. The draft is then cleared. - Every Admin gets a "your number is connected" email. - With Coexistence, chat history (if you chose to share it) and contacts start arriving. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). - The [Inbox](https://docs.theavoxai.com/inbox), [Contacts](https://docs.theavoxai.com/contacts), [Health](https://docs.theavoxai.com/health), [Logs](https://docs.theavoxai.com/logs) and the rest of the dashboard unlock. Next steps: set a [WhatsApp username](https://docs.theavoxai.com/connections#your-whatsapp-username) (subject to Meta's availability), turn on [Calling](https://docs.theavoxai.com/connections/calling), turn on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override), or create an [API key](https://docs.theavoxai.com/connections/api-keys). ### If the connection doesn't go through A red panel titled "The connection didn't go through" explains what happened, with the code [AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002) and, when Meta sent one, Meta's own error number. It lists things to try under **Try this**, with a **Retry connection** button and **View troubleshooting docs**. A connection that didn't finish changes nothing on your account or your WhatsApp number. It's always safe to close Meta's window and try again. | The panel says | What to try | | --- | --- | | You closed the Meta signup window before the connection finished. | Click **Retry connection** and keep Meta's window open until it closes on its own. Make sure pop-ups are allowed for the dashboard, that you're an admin on the WhatsApp Business Account, and - for Coexistence - that you tapped **Connect** on your phone too. | | Meta confirmed the signup, but Avox couldn't finish setting up the connection on our end. | Check you have an active plan and a free connection slot, then retry. If the number belongs to a different WhatsApp Business Account than the one you authorized, start again and pick the right one. | | Meta blocks its signup popup from opening on a plain http:// page. | Open the dashboard over `https://`. Meta only allows its window on secure pages. | | Meta's popup never responded - most likely it hit an error of its own and didn't hand back control. | Avox waits up to 3 minutes. Close any leftover Meta window from the attempt, then retry. | | That WhatsApp number is already connected to an Avox account. Disconnect it there first, then connect it again. ([AVX-3119](https://docs.theavoxai.com/error-codes/avx-3119)) | The number is connected to another Switchboard or account (Avox doesn't say which). Open **Connections** there, delete the number, then connect it again here. If Meta still refuses it, the number may be registered with another WhatsApp provider or on another site's WhatsApp account: remove it from there first. | | That WhatsApp number is already connected to this Switchboard. Open Connections to see it. ([AVX-3120](https://docs.theavoxai.com/error-codes/avx-3120)) | Open [Connections](https://docs.theavoxai.com/connections) and find the number in the list. If it shows **Error**, delete it there and connect it again. | | We couldn't save that connection. Try again. ([AVX-3121](https://docs.theavoxai.com/error-codes/avx-3121)) | Meta accepted the sign-in but Avox couldn't save the connection, so nothing was connected. Your setup answers are kept: click **Retry connection**. If it keeps happening, contact [Support](https://docs.theavoxai.com/support) with the code. | | Meta's own message, word for word | The error came from inside Meta's window. If it mentions a phone number or code, that number couldn't be verified - try again with a reachable number. Otherwise search Meta's error number in Meta's Embedded Signup documentation. | Still stuck? Contact [Support](https://docs.theavoxai.com/support) with the AVX code and Meta's error number from the panel. ### Related pages - [Getting started](https://docs.theavoxai.com/getting-started) - the whole first-time path, from sign-up to first message. - [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup) - Meta's side of the signup window. - [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) - send each new customer message to your own server, signed, with retries. - [Managing connections](https://docs.theavoxai.com/connections) - everything after setup. --- ## Coexistence sync URL: https://docs.theavoxai.com/connections/coexistence Section: Connections With a **Coexistence** connection, the same WhatsApp number works in the WhatsApp Business app on your phone and in Avox at the same time. This page explains what moves between the two, and where you see it in your dashboard. For the idea behind Coexistence itself, see [Coexistence, explained](https://docs.theavoxai.com/coexistence-explained). You choose Coexistence in step 1 of the [setup wizard](https://docs.theavoxai.com/connections/setup) as **Existing number (Coexistence)**. A **New number (Bot only)** connection has no phone app, so nothing on this page applies to it. ### What syncs, at a glance | From the WhatsApp Business app | When | Where it shows in Avox | | --- | --- | --- | | Your chat history | Once, right after you connect - only if you chose to share it | The [Inbox](https://docs.theavoxai.com/inbox), and new contacts in [Contacts](https://docs.theavoxai.com/contacts) | | Your contacts and their names | After you connect, and whenever the app's contact list changes | Contact names in [Contacts](https://docs.theavoxai.com/contacts), the Inbox, and Calls | | Messages your team sends from the app | As they're sent | The customer's conversation in the [Inbox](https://docs.theavoxai.com/inbox) | | Messages customers send to your number | As they arrive | The [Inbox](https://docs.theavoxai.com/inbox) | Each of these reaches Avox as an event from Meta, which you can see in [Logs](https://docs.theavoxai.com/logs) under the event types `history`, `smb_app_state_sync`, `smb_message_echoes`, and `messages`. See [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks) for what each contains. ### Chat history import During signup, the WhatsApp Business app on your phone asks how to handle your existing chats: share all of them, or start new threads with current customers. This is a one-time choice made in the app and it can't be changed later. If you share your history: 1. Meta sends the history to Avox shortly after you connect, in batches. 2. Each message is added to the matching customer's conversation in the [Inbox](https://docs.theavoxai.com/inbox) at its original date and time - both what customers sent and what you sent from the phone - with a new contact created for any number Avox hasn't seen yet. 3. Imported messages are stored once. If Meta resends a batch, nothing is duplicated. Customer messages in the imported history count toward the received totals on [Overview](https://docs.theavoxai.com/overview) for the days they cover. Sent totals and the delivery rate follow the messages you send from Avox. [Automations](https://docs.theavoxai.com/automation) respond only to new messages, so imported history never triggers them. ### Contact sync Your WhatsApp Business app's contacts sync into Avox. For each synced contact: - A contact is created in [Contacts](https://docs.theavoxai.com/contacts) if the number is new to Avox. - The name from your app's contact list becomes the contact's name in Avox. When a name changes later in the app's contact list, Avox picks up the new name. You can still rename a contact in Avox at any time - see [Renaming a contact](https://docs.theavoxai.com/contacts#renaming-a-contact) - but a later change in the app's contact list replaces it. Removing someone from the phone's contact list keeps them in Avox, with their whole conversation. ### Messages sent from the phone app When someone on your team replies from the WhatsApp Business app instead of Avox, Meta tells Avox about it, and the reply appears in that customer's conversation in the [Inbox](https://docs.theavoxai.com/inbox) at the time it was sent. Everyone sees the full conversation, whichever device each reply came from, so nobody answers the same customer twice. ### New messages Every message a customer sends to your number arrives in Avox and in the WhatsApp Business app. Your team can answer from either. ### Things to know - **Keep the app installed and signed in.** The phone app and Avox share one number. Removing the number from the WhatsApp Business app, or registering it somewhere else, affects the connection. If your connection shows **Disconnected** or **Error**, see [Health](https://docs.theavoxai.com/health). - **The 24-hour window applies everywhere.** Replies from the Inbox follow WhatsApp's [messaging window](https://docs.theavoxai.com/whatsapp/messaging-window) rules. - **Your team sees everything.** Everyone in the Switchboard - Admins and Managers - sees synced history and contacts. See [Members and roles](https://docs.theavoxai.com/switchboard/members). - **Forwarding sends new customer messages only.** With [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) on, new messages customers send are forwarded to your server; imported history and replies sent from the phone stay in Avox. - **Event timing.** Sync arrives as events from Meta and is processed in the order received. A large history import can take a little while. Watch progress in [Logs](https://docs.theavoxai.com/logs). ### Troubleshooting | You see | Try this | | --- | --- | | No chat history after connecting | History arrives only if you chose to share it on your phone during signup. Check [Logs](https://docs.theavoxai.com/logs) for `history` events. That choice can't be changed later. | | A contact's name keeps changing back | The name comes from your phone's WhatsApp Business contact list. Change it there, or rename the contact in Avox after the sync. | | Replies from the phone don't appear | Check [Logs](https://docs.theavoxai.com/logs) for `smb_message_echoes` events and their status, and the connection on [Health](https://docs.theavoxai.com/health). | | An event shows `failed` in Logs | Open it to read the error, then see [Logs](https://docs.theavoxai.com/logs#when-events-fail). | --- ## Calling URL: https://docs.theavoxai.com/connections/calling Section: Connections Each WhatsApp number has its own calling switch. Turning it on asks Meta to switch on WhatsApp calling for that number, so customers can call your business over WhatsApp, your team answers in the browser, and people with the right permission can call customers who allowed it. Everything about taking and making calls is on [Calls](https://docs.theavoxai.com/calls). For how calling works on WhatsApp's side, see [Calling on WhatsApp](https://docs.theavoxai.com/whatsapp/calling). ### Which numbers can use calling - **A number used with Avox only.** Meta allows calling in Avox only on a number that isn't also used in the WhatsApp Business app. On a number that is, calls ring in the app on your phone and Avox only logs them ([AVX-3930](https://docs.theavoxai.com/error-codes/avx-3930)). See [Calls](https://docs.theavoxai.com/calls#which-numbers-can-use-calling). - **A messaging limit of at least 2,000 people a day.** Meta turns calling on only from that limit. It opens up as your messaging limit grows ([AVX-3931](https://docs.theavoxai.com/error-codes/avx-3931)). See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - **A payment method on your WhatsApp account**, added in WhatsApp Manager, before calls can connect ([AVX-5118](https://docs.theavoxai.com/error-codes/avx-5118)). - **An active plan.** Turning calling on or off needs one, with no grace period ([AVX-3423](https://docs.theavoxai.com/error-codes/avx-3423)). ### Who can turn calling on | Action | Admin | Manager (default) | | --- | --- | --- | | Turn calling on or off for a number | Yes | No | | Change a number's call settings | Yes | No | | See whether calling is on | Yes | Yes | The switch on the number needs the **Manage connections** permission; in **Settings > Calls** it also works with **Set up calling**. The number's other call settings need **Set up calling**. An Admin can give these to anyone in [Members and roles](https://docs.theavoxai.com/switchboard/members#permissions). Without them, the switch is greyed out. ### Turn calling on On [Connections](https://docs.theavoxai.com/connections), the number's card has a **Calling** row. It's also on the number's own page, in its **Calling** section (**WhatsApp calls**). Avox asks Meta to switch calling on for this number. The switch stays on only once Meta confirms, and the [Avox Avatar](https://docs.theavoxai.com/avox-avatar) says "Calling's on." Press **Call settings** under the switch. It opens **Settings > Calls > Each number** for this number: the call button, the countries it shows in, call hours, callback requests and voicemail. Press **Save to WhatsApp** when you're done. See [Each number's call settings](https://docs.theavoxai.com/calls#each-numbers-call-settings). In **Settings > Calls**, under **How calls work here**, choose who gets rung and what Decline and Silence do. See [Settings > Calls](https://docs.theavoxai.com/calls#how-calls-work-here). The switch is shown on **Connected** and **Paused** numbers, and can't be changed while the number is paused: resume it first. When the plan behind your Switchboard has stopped (or there has never been one), the switch is greyed out and the **Calling** row shows that a plan is needed, with **Choose a plan** for the Owner. The number keeps its current calling setting until a plan is active again. See [What happens when a plan stops](https://docs.theavoxai.com/billing/cancel#what-happens-when-a-plan-stops). ### What changes when calling is on - **Customers can call your number** on WhatsApp, and the call rings in Avox for the people you chose. See [Answering a call](https://docs.theavoxai.com/calls#answering-a-call). - **You can ask customers for permission to call them**, and call those who allowed it. See [Calling customers](https://docs.theavoxai.com/calls#calling-customers). - **Every call is on [Calls](https://docs.theavoxai.com/calls)**, in the customer's chat in the [Inbox](https://docs.theavoxai.com/inbox), and in their contact's activity. - **New callers become contacts.** A number that calls you for the first time is added to [Contacts](https://docs.theavoxai.com/contacts), unless it's a private number or not on the number's list of chats to bring in. ### Ways to ask a customer for permission WhatsApp needs the customer's permission before your business calls them. Once calling is on, you can ask in several places: **Ask to call** in the chat header. **Ask to call** on a missed call, a call's details, or the contact's page. The **Request a call** action asks automatically when an automation runs. A Utility template that asks for permission, for customers outside the 24-hour window. A permission request sent as a normal message follows the [24-hour reply window](https://docs.theavoxai.com/whatsapp/messaging-window). Templates can also carry a **Call on WhatsApp** button: see [Buttons](https://docs.theavoxai.com/templates/create#buttons). ### Turn calling off Turn the same switch off. Avox asks Meta to switch calling off for the number, and the avatar says "Calling's off." Customers can't call the number on WhatsApp and you can't call them from it. Calls already logged stay on [Calls](https://docs.theavoxai.com/calls). ### If the switch won't change When the change doesn't go through, the switch moves back to where it was and a note under it says why. | What you see | What to do | | --- | --- | | The switch is greyed out | You don't have **Manage connections**, the number is paused, or the plan has stopped. Ask an Admin, resume the number, or choose a plan first. | | "Turning calling on or off needs an active plan. Choose a plan first." | Choose a plan on [Billing](https://docs.theavoxai.com/billing), or ask the Owner to renew ([AVX-3423](https://docs.theavoxai.com/error-codes/avx-3423)). | | "Calling isn't available on a number that also uses the WhatsApp Business app." | Meta only allows calling in Avox on numbers used with Avox alone. Calls on this number ring in the app ([AVX-3930](https://docs.theavoxai.com/error-codes/avx-3930)). | | "Meta turns calling on only once this number can message at least 2,000 people a day." | Wait until your messaging limit grows ([AVX-3931](https://docs.theavoxai.com/error-codes/avx-3931)). | | "Meta didn't change calling for this number. Try again in a few minutes." | Try again later. If it keeps failing, click **Check health now** on [Health](https://docs.theavoxai.com/health) and check the number in WhatsApp Manager ([AVX-3934](https://docs.theavoxai.com/error-codes/avx-3934)). | | Another system handles calls for this number | Turn calling off in that system first ([AVX-5121](https://docs.theavoxai.com/error-codes/avx-5121)). | Still stuck? Contact [Support](https://docs.theavoxai.com/support) with the number's reference (`NUM-000123`) from its page. --- ## Message forwarding URL: https://docs.theavoxai.com/connections/webhook-override Section: Connections **Message forwarding** sends each new message your customers send to a WhatsApp number to your own server, as it arrives. Avox signs every request so your server can check it really came from Avox. Everything still shows up in the [Inbox](https://docs.theavoxai.com/inbox) as usual - forwarding is an extra copy for your own systems. Only **incoming customer messages** are forwarded. Delivery statuses, calls, messages your team sends (from Avox or the WhatsApp Business app), chat history imports, template updates and Flow submissions stay in Avox, where you can see them: statuses and events on [Logs](https://docs.theavoxai.com/logs), calls on [Calls](https://docs.theavoxai.com/calls), Flow answers on [Flows](https://docs.theavoxai.com/flows). ### Webhook override This section used to be called **Webhook Override**, and only saved a URL and verify token. It now forwards messages for real, and there's no verify token to manage: Meta's webhook goes to Avox and is checked with Avox's own token. Forwarded requests are authenticated with the signing secret. You can set forwarding up in two places: - **In the [setup wizard](https://docs.theavoxai.com/connections/setup)** - choose **Also send messages to my own server** on step 2, enter your endpoint, copy the signing secret (shown once) and send a test event. Forwarding switches on by itself when the connection completes, with that same secret. - **On the connection's page afterwards** - turn the switch on, as described below. ### Who can change it | Action | Admin | Manager | | --- | --- | --- | | See whether forwarding is on, the Endpoint URL and the delivery log | Yes | Yes | | Open a delivery's **Payload** | Yes | Yes | | See forwarded messages on the **Received** tab of [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs) | Yes | Yes | | Turn forwarding on or off, change the Endpoint URL | Yes | No | | Create or rotate the signing secret | Yes | No | | **Send test event** and **Resend** | Yes | No | Managers see the switch and the Endpoint URL greyed out, with "Only an Admin can change message forwarding." The signing secret is shown only once, to the Admin who creates or rotates it - after that nobody can see it again, not other Admins and not the Avox team. ### Find the section 1. Open [Connections](https://docs.theavoxai.com/connections). 2. Click **Settings** on the connection. 3. Scroll to **Message forwarding**, under **Meta identifiers**. ### The fields | Field | What it does | | --- | --- | | **On/off switch** | Starts or stops forwarding new customer messages. Turning it on needs an Endpoint URL, and creates the signing secret the first time. | | **Endpoint URL** | Where Avox sends messages. "Must be https:// on the standard port and reachable from the internet. Redirects aren't followed." It also can't contain a user name or password. Click **Save URL** after changing it. | | **Signing secret** | Starts with `whsec_` and is shown masked. Shown in full once, when it's created or rotated. Your server uses it to check the `Avox-Signature` header. Before one exists, the row reads "No secret yet - one is created when you turn forwarding on." with a **Create secret** button. | | **Send test event** | Sends a sample message, marked `"test": true`, right away, and shows the result next to the button. | | **Recent deliveries** | Every forwarded message with its status, HTTP code, attempts and time. **Payload** shows exactly what was sent; **Resend** sends it again. | ### Turn it on Set up a route on your server that checks the signature and answers `200` quickly - see [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages) for the payload and ready-made code. Type the `https://` address of your endpoint and click **Save URL**. You see "Endpoint URL saved". Flip the switch. The first time, the **Your signing secret** dialog opens: "Copy it now and add it to your server. Avox stores it encrypted and won't show it again." Copy the secret, add it to your server (for example as `AVOX_WEBHOOK_SECRET`), then click **Done**. You see "Message forwarding is on". Click **Send test event**. **Delivered - your endpoint answered 200** means your server accepted it. Otherwise the message says why, for example "Your endpoint answered 401". The test shows up under **Recent deliveries** with a **Test** badge. From now on each new customer message appears there as it's sent. Want to check your server before any real message reaches it? Click **Create secret**, add the secret to your server, and use **Send test event**. Test events work whether forwarding is on or off, as long as an Endpoint URL and a signing secret exist. ### What gets forwarded Each new customer message of these types: text, image, audio, video, document, sticker, location, shared contacts, button and list replies, quick-reply buttons from templates, and reactions. Media arrives as Meta's media id with its type and caption, not the file itself. A reply that quotes an earlier message includes the quoted message's id. Forwarding is how incoming messages reach your own systems as they arrive - an [API key](https://docs.theavoxai.com/connections/api-keys#what-a-key-can-do-and-what-it-cant) only sends and can't read anything. (The one other way is an automation's [Send to webhook](https://docs.theavoxai.com/automation/actions#send-to-webhook) step, which posts what that step describes to the address you give it.) Each forwarded request is one `message.received` event for one message, and holds only these fields: | Field | What it is | | --- | --- | | `id` | The event id (`evt_...`), the same on every retry and resend of that message. Also in the `Avox-Event-Id` header. | | `type` | Always `message.received`. | | `api_version` | The payload version, `2026-10-01`. | | `created_at` | When Avox created the event (UTC). | | `connection_id` | Which of your connections (WhatsApp numbers) the message was sent to. | | `test` | Only on test events: `true`. | | `data.message_id` | WhatsApp's id for the message (`wamid...`). | | `data.from` | The customer's number, with a leading `+`. | | `data.contact_name` | The customer's WhatsApp profile name, or `null`. | | `data.timestamp` | When the customer sent it (UTC). | | `data.type` | The message type: `text`, `image`, `audio`, `video`, `document`, `sticker`, `location`, `contacts`, `interactive`, `button` or `reaction`. | | `data.context` | Only on a reply that quotes an earlier message: that message's id. | | `data.text` | Text messages: the text. | | `data.media` | Images, video, audio, stickers and documents: Meta's media id, the file type, the caption if there is one, and a document's file name. Never the file itself. | | `data.location` | Shared locations: latitude and longitude, plus the place name and address when the customer shared a named place. | | `data.contacts` | Shared contact cards: each card's name and phone numbers only. | | `data.interactive` | A tap on your reply buttons or list: whether it was a button or a list row, the id you gave it, its title, and a list row's description. | | `data.button` | A tap on a template's quick reply button: its text and payload. | | `data.reaction` | A reaction: the id of the message reacted to, and the emoji (`null` when it was removed). | Only the part that matches `data.type` is there (`text`, `media`, `location`, `contacts`, `interactive`, `button` or `reaction`). Examples for every type are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). #### Marketing opt-outs (optional) Turn on **Send opt-outs to your webhook** in **Settings, WB events** and Avox also sends a `contact.marketing_preference` event whenever a customer stops or resumes your marketing messages in WhatsApp. It's off by default, so an endpoint that only expects messages never sees it: check `type` (or the `Avox-Event-Type` header) before reading `data`. ```json { "id": "evt_5f0c2a9d8b7e4c1a9e3f6d2b1c0a9876", "type": "contact.marketing_preference", "api_version": "2026-10-01", "created_at": "2026-11-10T09:30:12.000Z", "connection_id": "6f3b2c1d-1111-4a2b-9c3d-123456789abc", "data": { "from": "+16505551234", "preference": "stopped", "category": "marketing_messages", "changed_at": "2026-11-10T09:30:05.000Z" } } ``` `preference` is `stopped` or `resumed`; `changed_at` is when the customer changed it. The same change always has the same `id`, so repeats are easy to skip. It's signed and retried exactly like `message.received`. #### What's never sent - **Anything from another number or Switchboard.** Each event is one message sent to this connection. - **What your team keeps in Avox** - replies, notes, tags and categories, contact fields, or anything else about the contact. - **Billing, plan or account details.** - **Keys and secrets** - no API keys, no signing secret, and never the WhatsApp access token for your number. - **Media files.** Only Meta's media id, the file type and the caption travel; download the file from Meta with your own access if you need it. - **WhatsApp's raw payload** or your Meta account ids. ### What your endpoint must do Avox sends a `POST` with a JSON body and these headers: | Header | Value | | --- | --- | | `Avox-Signature` | `t=,v1=` - see below | | `Avox-Event-Id` | The event's `id` (`evt_...`), the same on every retry and resend of that message | | `Avox-Event-Type` | `message.received` | | `User-Agent` | `Avox-Webhooks/1.0` | | `Content-Type` | `application/json` | A text message looks like this: ```json { "id": "evt_5f0c9a7e1b2d4c6e8f00a1b2c3d4e5f6", "type": "message.received", "api_version": "2026-10-01", "created_at": "2026-10-10T10:00:02.000Z", "connection_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d", "data": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdGRDA2QzQ1MTk1NkU2NDhCRgA=", "from": "+15551234567", "contact_name": "Maria Lopez", "timestamp": "2026-10-10T10:00:00.000Z", "type": "text", "text": { "body": "Hi! Is my order on the way?" } } } ``` The signature is a hex HMAC-SHA256 of `.`, using the whole signing secret (including `whsec_`) as the key. For each request: 1. **Check the signature** over the raw body, and refuse anything older than 5 minutes. Accept the request if any `v1=` value matches. 2. **Answer `2xx` within 10 seconds.** Acknowledge first, then do your own work in the background. 3. **Skip repeats.** Use `Avox-Event-Id` (or `data.message_id`) to ignore an event you've already handled. Every message type, the signature check in Node.js, Next.js, FastAPI and Flask, and the full retry rules are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### Retries and auto-pause If your endpoint doesn't answer `2xx` within 10 seconds, Avox tries again after about 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours (a little randomness is added). After the seventh failed attempt, about 21 hours after the first, the delivery is marked **Failed**. Redirects count as failures, because they aren't followed. If **5 deliveries in a row** end up **Failed**, Avox pauses forwarding for the connection, marks anything still queued as **Failed**, and emails every Admin once, with the last failure reason and a link to the connection. The section shows an amber notice: "Paused ...: your endpoint failed 5 deliveries in a row, so Avox stopped sending to it and emailed your Admins. Fix your endpoint, send a test event, then turn forwarding back on." ([AVX-3104](https://docs.theavoxai.com/error-codes/avx-3104)). To recover: 1. Fix your endpoint. 2. Click **Send test event** until it shows **Delivered**. 3. Turn the switch back on. 4. Use **Resend** on any message you missed. Test events are sent once and never retried, and they never count toward auto-pause. ### Rotate the signing secret Click **Rotate secret**. The **Rotate the signing secret?** dialog explains: "Avox starts signing with a new secret right away. Your current secret keeps working for 24 hours (requests carry both signatures), so you have time to update your server." Click **Rotate secret** again, then copy the new secret from **Your signing secret** - it's shown once. For the next 24 hours each request carries two `v1=` signatures - one made with the new secret, one with the old - and the section reads "Your previous secret also works until ...". After 24 hours only the new secret is used. ### Recent deliveries The list shows this connection's forwarded messages, newest first, 50 at a time - click **Show older deliveries** for more, or the refresh button to reload. Each row shows its status, a **Test** badge for test events, the message id, the time, and a line with the HTTP code, the number of attempts, the next try time and the last error. | Status | Meaning | | --- | --- | | **Queued** | Waiting for its next attempt (usually a few seconds). | | **Sending** | Being sent right now. | | **Retrying** | The last attempt failed; the next try time is shown. | | **Delivered** | Your endpoint answered `2xx`. | | **Failed** | Out of retries, a test event your endpoint didn't accept, or forwarding was turned off or paused while it was queued. **Resend** to try again. | | Error in the log | What it means | | --- | --- | | Your endpoint answered 401 (or another code) | Your server answered, but not with `2xx`. Often a signature check using the wrong secret. | | Your endpoint answered 301 (redirects aren't followed) | Point the Endpoint URL at the final address. | | Your endpoint didn't answer within 10 seconds | Answer first, then do the work in the background. | | That host doesn't resolve / The connection was refused / The connection was dropped | Check the address and that your server is running and reachable. | | Your endpoint's TLS certificate isn't valid | Renew or fix the certificate on your server. | | Forwarding was turned off / Forwarding was paused | The message was still queued when forwarding stopped. Resend it once forwarding is back on. | **Resend** (Admins only) appears on **Delivered**, **Retrying** and **Failed** deliveries while forwarding is on. It queues the message again with a fresh set of retries - "Queued - it goes out within a few seconds" - and keeps the same event id, so your server still recognises a repeat. Deliveries are kept for 30 days, or your **Webhook Logs** retention on [Compliance](https://docs.theavoxai.com/compliance) if that's shorter. With nothing forwarded yet, the list reads "Nothing forwarded yet. Turn forwarding on to start sending new customer messages to your endpoint." (or, once forwarding is on, "...or send a test event."). Every forwarded message, across all your connections, is also on the **Received** tab of [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs), with filters, search by message or event id, and CSV export. ### Turn it off Flip the switch off. You see "Message forwarding is off". New messages stop being forwarded straight away, and anything still queued is marked **Failed** (you can resend it later). The Endpoint URL and signing secret are kept. ### Sending replies This section is about incoming messages. To send messages from your server, create an [API key](https://docs.theavoxai.com/connections/api-keys) and call the [Avox API](https://docs.theavoxai.com/avox-api). A key is send-only: it answers each send with its outcome and never returns incoming messages, so forwarding is how they reach your server. ### Errors | Message | What to do | | --- | --- | | The endpoint URL must start with https:// / Enter a valid endpoint URL / Only https:// URLs are allowed | Use a full `https://` address. | | That host isn't reachable from the internet / Only the standard https port is allowed / That host doesn't resolve / URLs with credentials aren't allowed | Use a public address on the standard `https` port, with no user name or password in it - private network addresses and `localhost` can't be used. For local testing, use a tunnel. | | Enter your endpoint URL first | Add the Endpoint URL before turning forwarding on. | | Save your endpoint URL first / Turn forwarding on (or create a signing secret) first | A test event needs a saved Endpoint URL and a signing secret. | | Only an Admin can change message forwarding | Ask an Admin to make the change. | | Couldn't load message forwarding. Try again. | Click **Try again** or refresh the page ([AVX-3098](https://docs.theavoxai.com/error-codes/avx-3098)). | | Couldn't save message forwarding. Try again. | Check the URL and try again ([AVX-3099](https://docs.theavoxai.com/error-codes/avx-3099)). | | Couldn't create a new signing secret. Try again. | Wait a few minutes and try again; your current secret keeps working ([AVX-3100](https://docs.theavoxai.com/error-codes/avx-3100)). | | Your endpoint didn't accept the test event / Couldn't send a test event. Try again. | Read the reason shown next to the button ([AVX-3101](https://docs.theavoxai.com/error-codes/avx-3101)) and see [Troubleshooting](https://docs.theavoxai.com/avox-api/webhooks#troubleshooting). | | Couldn't load the delivery log. Try again. | Click **Try again** or refresh ([AVX-3102](https://docs.theavoxai.com/error-codes/avx-3102)). | | Turn message forwarding on first / That delivery is already on its way / Couldn't resend that delivery. Try again. | Turn forwarding on before resending, or wait for a queued delivery to finish ([AVX-3103](https://docs.theavoxai.com/error-codes/avx-3103)). | --- ## API keys URL: https://docs.theavoxai.com/connections/api-keys Section: Connections An Avox API key lets your own server send WhatsApp messages from one of your connected numbers through the [Avox API](https://docs.theavoxai.com/avox-api). Your server holds only the Avox key - Meta's access token for the number stays with Avox. With more [permissions](#key-permissions), the same key can also build tables, rows, Flows, templates and automations through the [builder API](https://docs.theavoxai.com/avox-api/builder), from your own code or an [AI assistant](https://docs.theavoxai.com/avox-api/ai-assistants) you trust. ``` POST https://api.theavoxai.com/api/messages/send Authorization: Bearer avx_live_... ``` You manage keys in two places: - **The connection's page** - the **Outbound API keys** section lists, creates, rotates and revokes keys for that one connection. - **Settings > API Keys** - every key across all your connections, plus **Test**, **Permissions**, **Rotate**, each key's usage and recent requests, and security warnings. Every request made with your keys, and every message forwarded to your endpoint, is on the [API logs](#api-logs) page. ### Who can do what | Action | Admin | Manager | | --- | --- | --- | | See keys and when they were last used | Yes | With **See API keys** | | **Test** a key | Yes | With **Manage API keys** | | See the [API logs](#api-logs) and export them as CSV | Yes | Yes | | Create a live or test key | Yes, with an emailed code | With **Manage API keys**, and an emailed code | | Rotate a key | Yes, with an emailed code | With **Manage API keys**, and an emailed code | | Revoke a key | Yes, with an emailed code | With **Manage API keys**, and an emailed code | | Change a key's [permissions](#key-permissions) | Yes, with an emailed code | With **Manage API keys**, and an emailed code (only permissions they have themselves) | | See a key's [usage](#key-usage) | Yes | With **See API keys** | | Resend a forwarded message from the logs | Yes | No | An Admin gives a Manager **See API keys** or **Manage API keys** on the [Members](https://docs.theavoxai.com/switchboard/members) page. Without **Manage API keys**, the connection's page reads "Only people who can manage API keys in this Switchboard can create, rotate or revoke them." ### Confirmation codes Creating, rotating and revoking a key, and changing its permissions, each need a 6-digit code that Avox emails to **you** - the person doing it - at your sign-in address. It's the same code box used for two-factor sign-in. - A code works **once**, for **10 minutes**, and only for the one action and the one key (or number, for a new key) it was sent for. A code sent to revoke one key can't revoke another, and a code for revoking can't be used to rotate. - Asking for a new code cancels the earlier one. **Resend code** is available after a minute. - After **5 wrong tries** the code stops working, even if the right digits are typed next: "Too many wrong codes. Ask for a new code and try again." ([AVX-3242](https://docs.theavoxai.com/error-codes/avx-3242)). - A wrong or expired code shows "That code is wrong or has expired. Check the email, or ask for a new code." ([AVX-3241](https://docs.theavoxai.com/error-codes/avx-3241)). - Avox checks the action first, so you never get a code for something that would be refused anyway (a name that's already used, a key that's already revoked). Deleting a Switchboard uses the same kind of code - see [Settings](https://docs.theavoxai.com/settings). ### How keys work - **One key, one number.** Every key belongs to exactly one connection and always sends from that number. Nothing in a request can point it at another number or Switchboard. - **Several numbers, several keys.** A request has no `from` field, and a key can't move to another number (rotating keeps its number). To send from more than one number, create a key for each. The 24-hour window, private numbers and blocks are per number, and templates must be on the key's number's WhatsApp account. See [Which number sends the message](https://docs.theavoxai.com/avox-api/messages#which-number-sends-the-message). - **Live or test.** Live keys start with `avx_live_` and send real messages. Test keys start with `avx_test_` and never send anything - see [Live and test keys](#live-and-test-keys). - **Shown once.** The full key appears only once, right after you create or rotate it, and Avox can't show it again - copy it straight into your server's secret storage. Lost a key? Rotate it. - **Several keys per connection.** Create one per server or environment, so you can revoke one without touching the others. Each has its own name - see [Key names and identity](#key-names-and-identity). - **Only what you allow.** A key sends messages, and with more permissions reads or changes tables, rows, Flows, templates and automations - nothing else. It can't sign in to the dashboard, and a dashboard sign-in can't call the API. See [What a key can do, and what it can't](#what-a-key-can-do-and-what-it-cant) and [Key permissions](#key-permissions). - **Your plan decides.** Keys work only while your plan includes API access. See [API access and your plan](#api-access-and-your-plan). ### What a key can do, and what it can't A key does only what its [permissions](#key-permissions) allow. With **Send messages** (every key has it to start with, and keys made before permissions existed have only that), it works on `POST https://api.theavoxai.com/api/messages/send` and only sends from the number it was made for. With **Read** or **Write** for **Tables**, **Table rows**, **Flows**, **Templates** or **Automations**, it can also use the [builder API](https://docs.theavoxai.com/avox-api/builder) for those areas of its own Switchboard, acting with the permissions of the person who set them. A key never reads your contacts, conversations, messages, tags, notes, other Switchboards, billing, team or account settings, and can't connect numbers or apps or manage keys. Those need a dashboard sign-in, which a key can't make. The rest of this section is about sending; the builder API's answers are on [Builder reference](https://docs.theavoxai.com/avox-api/reference). **What a request contains** - only what your server chooses to send: - `to` - the recipient's full international number. - `type` and the message itself: text, a template name with its language and values, a media link or id with an optional caption, a location, contact cards, reply buttons or a list, or a reaction. See [Message types](https://docs.theavoxai.com/avox-api/messages). - Optionally `context.message_id` (to quote a message), `biz_opaque_callback_data` (your own reference) and an `Idempotency-Key` header. **What the response returns:** | Field | What it is | | --- | --- | | `ok` | `true` when the message was handed to WhatsApp, `false` when it wasn't. | | `request_id` | Avox's id for the request, also in the `X-Request-Id` header. | | `message_id` | WhatsApp's id for the message (`wamid...`), on a successful send. | | `result` | WhatsApp's own reply to the send: the number you sent to, the recipient's WhatsApp id, and the message id. | | `test` | Only on [test key](#live-and-test-keys) responses: `true`. | | `error` | Only on a failure: a stable `code`, a plain `message`, a `docs_url`, the `request_id`, and when they apply `details` (which fields to fix) and `meta_code` (WhatsApp's own error number). The HTTP status says what kind of failure it is. See [API errors](https://docs.theavoxai.com/api/errors). | That's all a key ever gets back. Delivery statuses (sent, delivered, read, failed) are on [Logs](https://docs.theavoxai.com/logs). Messages your customers send reach your own server through [Message forwarding](https://docs.theavoxai.com/connections/webhook-override), which an Admin turns on for each number - see [What gets forwarded](https://docs.theavoxai.com/connections/webhook-override#what-gets-forwarded) - or through an automation's [Send to webhook](https://docs.theavoxai.com/automation/actions#send-to-webhook) step, if you add one. ### API access and your plan API access depends on your plan: each plan either includes it or doesn't. The plan cards on [Plans](https://docs.theavoxai.com/plans) and on **Billing > Change plan** list **API access** on the plans that include it. On a plan without API access: - **Settings > API Keys** and the connection's **Outbound API keys** section read "API access isn't included in your plan", with a **See plans with API access** link to **Billing > Change plan**. - Your keys stay listed, with their logs, and you can still revoke them. New keys can't be created and existing keys can't be rotated. - Existing keys stop sending: requests return [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan) (HTTP 403), and **Test** on a key says so too. - Move to a plan with API access and the same keys work again (allow up to a minute) - nothing to create or redeploy. A paused plan has no API access either: the notice reads "Your plan is paused", keys can't send (requests return [`subscription_inactive`](https://docs.theavoxai.com/api/errors#subscription_inactive)), and they work again once you resume your plan on [Billing](https://docs.theavoxai.com/billing). With no active plan at all, the notice asks you to pick a plan with API access. ### Key names and identity Every key has its own identity, shown wherever keys appear - the connection's page, **Settings > API Keys**, the [API logs](#api-logs) and Avox support's tools: - **Name** - required, 2 to 60 characters, and different from every other working key in the Switchboard (capital letters and extra spaces are ignored, so "Shop key" and "shop KEY" count as the same). Revoked keys, and an old key that is being replaced after a rotation, don't block a name. The form suggests one, like "Sales line live key". - **What it's for** - an optional description, up to 300 characters, such as "Order updates from our Shopify store". - **WhatsApp number** - the number it sends from, with the number partly hidden (for example `+91 98••••3210`). - **Live or Test**, its first characters, **who created it** and **when**, and when it was **last used**. - **Its own limits** - any [allowed IPs and limits](#allowed-ips-and-limits) Avox support set on it. Name a key after the system that uses it ("Website orders live key", "CRM sync test key") so the logs and any security warning point straight at the right server. ### Live and test keys When you create a key you choose **Live key** or **Test key**: - **Live key** - "Sends real WhatsApp messages from this number. Counts toward your limits." - **Test key** - "Never sends anything. Checks your requests and answers with a pretend result, so you can build and test safely." | | Live key (`avx_live_...`) | Test key (`avx_test_...`) | | --- | --- | --- | | Sends a real WhatsApp message | Yes | Never | | Checks the key, number, plan, limits and request body | Yes | Yes - exactly the same checks | | Response | WhatsApp's answer, with a real `message_id` | A pretend success with a `wamid.TEST...` id, `"test": true`, and the `Avox-Test-Mode: true` header | | Rate limits | [Live limits](https://docs.theavoxai.com/avox-api/rate-limits) | Separate [test limits](https://docs.theavoxai.com/avox-api/rate-limits#test-keys) - test traffic never uses up your live allowance | | In the API logs | **Live** badge | **Test** badge | Use a test key while you build and in your automated tests, and a live key in production. Special test numbers let you trigger each kind of error on purpose - see [Testing](https://docs.theavoxai.com/avox-api/testing). ### Create a key in Settings API Keys"> Open **Settings**, choose the **API Keys** tab, and click **Create a key**. **Switchboard** starts on the one you're in; the list only has Switchboards where you can manage keys. If the Switchboard has more than one number, open **WhatsApp number** and pick one - each shows its name, the number partly hidden, and whether it's **Connected** or **Paused**. Avox never picks a number for you; without one you see "Choose which WhatsApp number this key sends from." ([AVX-3245](https://docs.theavoxai.com/error-codes/avx-3245)). The card under each choice says what it does. Under **What this key may do**, **Send messages** is on to start with. To let the key use the [builder API](https://docs.theavoxai.com/avox-api/builder), set **Tables**, **Table rows**, **Flows**, **Templates** and **Automations** each to **Off**, **Read** or **Write**. See [Key permissions](#key-permissions). A key needs at least one permission ([AVX-3623](https://docs.theavoxai.com/error-codes/avx-3623)). **Key name** is filled in for you (for example "Sales line live key") - change it to something you'll recognise. Optionally add **What it's for**. See [Key names and identity](#key-names-and-identity). Avox emails a 6-digit code to your sign-in address. Type it in the boxes - the key is created as soon as the last digit is in. See [Confirmation codes](#confirmation-codes). The **Your new API key** dialog shows the full key: "Copy it now - Avox only ever stores its hash, so this is the only time it's shown." A test key adds "This is a test key: requests made with it never send a real message." Click the copy button ("Copied"), store the key in your server's secret storage, then click **Done**. With no connected numbers, the card reads "Connect a WhatsApp number first - a key always sends from one number." The **How this works** button opens this page, and **API logs** opens the [API logs](#api-logs). A key you create in another Switchboard shows up in that Switchboard's list. ### Create a key on the connection's page On [Connections](https://docs.theavoxai.com/connections), click **Settings** on the number, scroll to **Outbound API keys** and click **Create a key for this number**. It's the same form with the Switchboard and number already set: choose Live or Test, name the key, click **Email me a code**, and type the code. With no keys yet the section reads "No key yet - create one when your server is ready to send through Avox." Each key in the list shows its name, first characters, a **Live** or **Test** badge, the number, what it's for, who created it and when, when it was last used, any limits, **Rotate**, and a bin button to revoke it. Under the list, **API logs** opens this number's requests and **Settings > API keys** opens every key. ### The Settings > API Keys tab API Keys: the Create a new key card with API logs, How this works and Create a key, above Active keys listing a Test key and a Live key with Test, Rotate and revoke buttons." caption="Two active keys on one number: a test key for staging and a live key for production. Only the first characters of each key are ever shown." /> #### Active keys Each key shows: - **Its name, first characters**, a **Live** or **Test** badge, and the WhatsApp number it sends from (name and partly hidden number). - **Its permissions** as small pills, for example **Send**, **Tables: write**, **Flows: read**. Write pills are amber. - **What it's for**, when the key has a description. - **Created** - the date and who created it - and **Last used** ("just now", "5m ago", "3h ago", or a date; "Never" until it's used). - **Limits** - any per-minute, daily or allowed-IP limits on the key, with "(kept when you rotate)". - **Expires in ...** in amber, with "replaced by ..." and the new key's first characters, for an old key that was [rotated](#rotate-a-key) and is still in its grace period. - **Test** - see [Test a key](#test-a-key). - **Permissions** - see [Key permissions](#key-permissions). - **Rotate** - see [Rotate a key](#rotate-a-key). - **The chart button** (**Usage**) - shows the key's [usage](#key-usage). - **The arrow** - shows the key's [recent requests](#recent-requests). - **The bin** - revokes the key. See [Revoke a key](#revoke-a-key). With no keys, the card reads "No active keys yet." #### Revoked and expired keys Revoked keys, and old keys whose rotation grace period has ended, move to their own **Revoked and expired keys** card, crossed out with a **Revoked**, **Rotated** or **Expired** badge, so you keep a record of every key that existed. A key the Avox team revoked also shows "Revoked by the Avox team" with their reason. ### Key permissions A key's permissions (scopes) decide what it may do: | Permission | Off / Read / Write | | --- | --- | | **Send messages** (on or off) | Send WhatsApp messages from this key's number. | | **Tables** | Read: see tables and their columns. Write: create, rename, archive and restore tables, and add, change or delete columns. | | **Table rows** | Read: read, filter and search rows. Write: add, change and delete rows, and import CSV files. | | **Flows** | Read: see Flows, their JSON, live data settings, request logs and answers. Write: create Flows, change drafts, publish, deprecate and change live data settings. | | **Templates** | Read: see templates and their review status. Write: create templates, send them to WhatsApp for review and delete them. | | **Automations** | Read: see automations, their steps, run logs and credit use. Write: create and change automations and turn them on or off. | Existing keys keep **Send messages** only until you change them. In **Settings > API Keys**. The **Key permissions** dialog reads "Choose what this key may do. It then acts with your permissions in this Switchboard, and a rotated key keeps them." Turn **Send messages** on or off, and set each area to **Off**, **Read** or **Write**. A level you don't have yourself in this Switchboard can't be picked ("You don't have this permission in this Switchboard"). Any **Write** shows a warning: anything holding the key can change your Switchboard. **Confirm it's you** asks for the 6-digit code ([Confirmation codes](#confirmation-codes)). Once it's in, you see "Permissions saved": the key can do what you picked from its next request. - **The key acts with your permissions.** Whoever last saved a key's permissions is the person it acts for. If you later leave the Switchboard or lose a permission, the key's calls in that area are refused (`scope_owner_no_access`) until someone sets its permissions again. - **Rotation keeps them**, for the old key and its replacement alike. - **Test keys only read and check**, whatever their permissions: "Test keys never change anything: they can read and check only." - A revoked or expired key's permissions can't change ([AVX-3625](https://docs.theavoxai.com/error-codes/avx-3625)). - Every change is written to your Switchboard's activity log. Write permissions let anything holding the key create, change and delete what you allowed. Give them only to code or an AI assistant you trust, keep the key secret, and revoke it when you no longer need it. Giving a key to an AI? Point it at [API for AI assistants](https://docs.theavoxai.com/avox-api/ai-assistants). ### Key usage The chart button (**Usage**) on a key opens its builder API use: calls to tables, rows, Flows, templates and automations (sends aren't counted here; they're on the [API logs](#api-logs)). - **Today's caps** - "Today (UTC), every key of this Switchboard: 120 of 2,000 reads and 14 of 200 writes on your plan." See [Daily builder limits](https://docs.theavoxai.com/avox-api/rate-limits#daily-builder-limits). - **Last 30 days** - a chart of this key's reads and writes per day (UTC), its rotations included. With none: "No calls to tables, Flows, templates or automations in the last 30 days." - **Last use per area** - for **Tables**, **Table rows**, **Flows**, **Templates** and **Automations**: when the key last read and last wrote it ("5m ago", or "Never"). If it doesn't load, you see "Couldn't load this key's usage. Try again." ([AVX-3624](https://docs.theavoxai.com/error-codes/avx-3624)). ### Rotate a key Rotating swaps a key for a new one without downtime. **Nothing is reset**: the new key gets the old key's name, number, mode (live or test), description, permissions and the [limits](#allowed-ips-and-limits) it has at that moment - allowed IPs, the per-minute limit and the daily allowance. The counts carry on too: requests made with the old key today still count toward the new key's daily allowance, and both keys share the per-minute limit while both work. So rotating is never a way around a limit. In **Settings > API Keys** or on the connection's page. The **Rotate ...?** dialog shows the key, its number and its limits, and explains that you'll get a new key with the same name, number, description and limits, and that both keys work until the old one stops. Under "When should the old key stop working?", pick **Immediately**, **In 1 hour**, **In 24 hours** (the default) or **In 7 days**. Choosing **Immediately** warns "Anything still using the old key gets "key expired" errors straight away." The key is rotated as soon as the last digit is in. See [Confirmation codes](#confirmation-codes). The **Your rotated API key** dialog shows the new key once, and says how long the old one keeps working - for example "The old key keeps working for 24 hours, then stops." Deploy it everywhere the old key was used. On the old key, "Expires in ..." counts down. When the grace period ends, requests with the old key return `key_expired` ([API errors](https://docs.theavoxai.com/api/errors#key_expired)) and it moves to **Revoked and expired keys** with a **Rotated** badge. Check the [API logs](#api-logs) filtered to the old key: once nothing uses it, you're done. Choose **Immediately** only when the old key may have leaked - anything still using it fails at once. A key can be rotated once; to rotate again, rotate its replacement. Both changes are written to your Switchboard's activity log, and every Admin gets the "API key created" email for the new key. If rotating fails, you see "Couldn't rotate that API key. Your current key still works - try again." ([AVX-3105](https://docs.theavoxai.com/error-codes/avx-3105)). ### Test a key **Test** is a safe dry run. It checks that the key is active, that its connection is connected, and that the connection is ready to send - **without** sending a WhatsApp message or using any Meta credit. Admins, and Managers with **Manage API keys**, can run it from **Settings > API Keys**. | Result | What to do | | --- | --- | | Working - routes to Support EU. | Nothing - the key is ready to send from that connection. A test key adds "Test key: sends are simulated, nothing reaches WhatsApp." | | This key has been revoked - create a new one to test. | Create a new key. | | This key has expired - use the key that replaced it, or create a new one. | The key was rotated and its grace period ended. Use the new key. | | This key's connection no longer exists. | The connection was deleted. Create a key for a current connection. | | This key's connection is paused - resume it to send. | Resume the connection on [Connections](https://docs.theavoxai.com/connections), or fix billing if it was paused for payment. | | This key's connection isn't active right now. | Check the connection on [Health](https://docs.theavoxai.com/health). | | This connection needs to be reconnected before it can send. | Connect the number again with the [setup wizard](https://docs.theavoxai.com/connections/setup). | | API access isn't included in your plan, so this key can't send. Move to a plan with API access and it works again. | Move to a plan with API access on **Billing > Change plan**. See [API access and your plan](#api-access-and-your-plan). | | This account doesn't have an active plan, so this key can't send. | Renew or resume your plan on [Billing](https://docs.theavoxai.com/billing). | | API access is turned off for this account. Contact support if you need it. | Contact [Support](https://docs.theavoxai.com/support). | | Couldn't verify that key. Try again. | Try again ([AVX-3055](https://docs.theavoxai.com/error-codes/avx-3055)). | Each test is recorded with the source **Test** and the endpoint "Dashboard test", kept apart from real sends. To test your own code end to end, use a [test key](https://docs.theavoxai.com/avox-api/testing). ### Recent requests Click the arrow on a key to open **Recent requests** - the key's latest 20 requests, newest first, with a **See all in API logs** link that opens the logs filtered to that key. Each row shows: - **A green tick or red cross** - whether the request succeeded. - **What it did** - **Send** for a message, **Test** for a dashboard test, or the builder action, like `tables.create` or `rows.update`. - **The HTTP status** returned, such as `200` or `409`. - **The recipient, masked** - only a few digits of the number are shown. - **The error code**, linked to its explanation on [API errors](https://docs.theavoxai.com/api/errors), or **Replayed** when an [idempotent retry](https://docs.theavoxai.com/avox-api/idempotency) returned the original result. - **The IP address** the request came from. - **When** it happened. With no requests, it reads "No requests logged yet - this key hasn't been used." If the list doesn't load, you see "Couldn't load recent activity for that key." ([AVX-3056](https://docs.theavoxai.com/error-codes/avx-3056)). ### API logs **API logs** is in the sidebar under **Connect & Monitor** (and in search) once the Switchboard has at least one API key - live, test, revoked or expired. Before that it's hidden, and opening the page directly shows "No API keys in this Switchboard yet" with a **Create an API key** button. It's also linked from **Settings > API Keys** (the **API logs** button), from each key's **See all in API logs**, and from each connection's **Outbound API keys** section. The header reads "Every request made with your API keys, and every message forwarded to your endpoint.", with **API keys** and **Docs** buttons. #### The two tabs | Tab | Columns | | --- | --- | | **Sent** | Every request made with your API keys, including dashboard tests: **Time**, **Key** (name with its **Live** or **Test** badge), **Connection**, **Endpoint**, **Outcome** (a tick or cross, the HTTP status, and the error code linked to [API errors](https://docs.theavoxai.com/api/errors), or "replayed"), **Recipient** (masked), **Request ID** and **Latency** (how long Avox took to answer, in ms). | | **Received** | Every incoming message Avox forwarded to your endpoint with [message forwarding](https://docs.theavoxai.com/connections/webhook-override): **Time**, **Connection**, **Event** (with a **Test** badge for test events), **Message ID**, **Delivery** (Queued, Sending, Retrying, Delivered or Failed), **Attempts** and **Response** (your endpoint's HTTP code). | Builder API calls appear on **Sent** too, with their **Endpoint** (for example `POST /api/v1/tables`) and no recipient. #### Filters and search | Filter | Options | | --- | --- | | Key (Sent only) | **All keys**, or one key. Each key in the list shows its name, a **Live** or **Test** badge, its first characters and its number; revoked and expired keys are crossed out and marked. With many keys, type to search by name, first characters or number. | | Mode | **Live and test**, **Live only**, **Test only**. On Received, this picks real messages or test events. | | Connection | **All connections**, or one connection. | | Status | Sent: **Any status**, **Success**, **Error**. Received: **Any status**, **Delivered**, **Failed or retrying**, **Queued or sending**. | | Error code (Sent only) | **Any error code**, or one of the [API error codes](https://docs.theavoxai.com/api/errors). Picking one also sets Status to Error. | | From and To | A date range. Each date covers the whole day in UTC. | - **Search** - paste a request id (`req_...`, from the `X-Request-Id` header) or a message id (`wamid...`) on Sent, or a message id or event id (`evt_...`) on Received, then click **Search**. Search matches whole ids only - never message text or phone numbers. - **Clear filters** resets everything. - **Requests per key** - on Sent, a row of chips under the filters shows each key's name with the number of requests and errors for the chosen dates and mode. Click a chip to show only that key's requests; click it again to show all keys. - Filters, search, the tab and the page number are part of the page's address, so you can bookmark or share a filtered view. Switching tabs clears the key, status and error code filters. The table shows 25 rows a page, with "Page 1 of 4 · 80 requests" (or "messages" on Received) and **Previous** / **Next** when there are more. | Empty state | Meaning | | --- | --- | | No API requests yet. Requests made with your keys show up here within seconds. | None of your keys has been used. | | No requests match those filters. / No forwarded messages match those filters. | Loosen or clear the filters. | | Nothing forwarded yet. Turn on message forwarding on a connection's page to send incoming messages to your server. | See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). | #### Details Click any row (or select it and press Enter) to open its details in a sidebar beside the table on a wide screen, or under the table on a narrower one. The table stays usable while it's open: the selected row is highlighted, ↑ and ↓ move to the previous or next row, and Esc (or the close button, or clicking the row again) closes the details. Each section of the details can be collapsed on its own. - **Request details** (Sent): - **Request** - **Key** (name, first characters and mode), **Endpoint**, **Connection**, **Recipient** (masked), **Request ID** with a copy button, **Source** ("Your server" or "Test button in the dashboard") and **IP address**. - **Response** - the outcome with the HTTP status and the **Message ID** with a copy button. An idempotent replay shows "Replayed from an earlier request with the same Idempotency-Key. Nothing was sent again." - **Error** (only when it failed) - the error code and a link to what it means and how to fix it. - **Timing** - the time (also in full UTC) and the latency. - **Related forwarding delivery** - **Show forwarded events for this message** opens the Received tab searched by the message ID, so you can see the status updates and replies forwarded to your endpoint. - **Forwarded message** (Received): - **Request** - **Event type**, **Connection**, **Event ID** and **Message ID** with copy buttons. The message itself isn't shown - read it in your Inbox. - **Response** - delivery status, your endpoint's **Response code** and **Attempts**. - **Error** (when it failed or is retrying) - the last error and a link to how retries work. - **Timing** - when it was received, delivered, and the **Next try** for a delivery that's retrying. On a forwarded message, an Admin sees **Resend to your endpoint** at the bottom of the details ("Already on its way" while it's queued or sending). Resending needs forwarding to be on, keeps the same event id, and shows "Queued - it goes out to your endpoint in a few seconds." #### Export CSV **Export CSV** downloads every row that matches the current tab, filters and search - newest first, up to 10,000 rows - as `avox-api-logs-sent-.csv` or `avox-api-logs-received-.csv`. Times are in UTC. The file opens safely in Excel or Google Sheets. The button is turned off when nothing matches. | Tab | CSV columns | | --- | --- | | Sent | Time (UTC), Key name, Key prefix, Mode, Connection, Endpoint, Status code, Outcome, Error code, Recipient (masked), Request ID, Message ID, Latency (ms), IP address | | Received | Time (UTC), Connection, Event type, Event ID, Message ID, Test event, Delivery status, Attempts, Response code, Last error, Delivered at (UTC) | #### What the logs contain The logs never contain message content, forwarded payloads or full phone numbers - recipients are masked when the request is recorded. Admins and Managers can read them. If the page doesn't load, you see "Couldn't load your API logs. Try again." with a **Try again** button ([AVX-3106](https://docs.theavoxai.com/error-codes/avx-3106)); if an export fails, "Couldn't export your API logs. Try again." ([AVX-3107](https://docs.theavoxai.com/error-codes/avx-3107)). For the events Meta sends Avox about your number (messages, statuses, template updates, calls), see [Logs](https://docs.theavoxai.com/logs). ### Security warnings Avox watches how each live key is used. When something looks unusual, the key gets an amber border, a warning appears under it in **Settings > API Keys**, and the **Active keys** card reads, for example, "1 key needs your attention - see the warning below." | Warning | What happened | Revoke? | | --- | --- | --- | | **Used from a new place** | The key was used from an IP address it hasn't been used from before. | If you don't recognise it | | **Blocked request from an unknown address** | A request came from an address that isn't on the key's allowed list and was stopped. | If you don't recognise it | | **Far more requests than usual** | The key sent far more requests in an hour than it normally does. | If you didn't expect it | | **Requests are failing** | Many requests failed in 15 minutes - usually a bug in the calling code. Check the [API logs](#api-logs). | Usually not | | **Hit its per-minute limit** | Extra requests were refused for going over the key's per-minute limit. | No - slow down the sender | | **Hit its daily limit** | The key used its daily allowance and works again tomorrow (UTC). | No | When the key may be in the wrong hands, the warning reads "If you don't recognise this, rotate or revoke this key - a revoked key stops working immediately." Revoking clears the key's warnings. Every Admin also gets an email when a key is used from a new IP address or a request is blocked. See [Emails about API keys](#emails-about-api-keys). ### Allowed IPs and limits On request, Avox support can set extra rules on a key: - **Allowed IP addresses** - the key works only from the addresses you list. Requests from anywhere else return `ip_not_allowed` ([API errors](https://docs.theavoxai.com/api/errors#ip_not_allowed)). - **A per-minute limit** - extra requests return `rate_limited` with a `Retry-After` header ([API errors](https://docs.theavoxai.com/api/errors#rate_limited)). - **A daily allowance** - once used, requests return `quota_exceeded` until midnight UTC ([API errors](https://docs.theavoxai.com/api/errors#quota_exceeded)). These rules belong to the key and are shown with it. Rotating a key keeps them on the new key, and the per-minute and daily counts carry on across the rotation, so a new key never starts with a fresh allowance. A rule change also applies to an old key that's still in its grace period. To set or change any of them, contact [Support](https://docs.theavoxai.com/support) with the key's name and first characters. See also [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). ### Revoke a key Click the bin next to the key - on the connection's page or in **Settings > API Keys**. The **Revoke ...?** dialog shows the key and its number; click **Email me a code to revoke** and type the code ([Confirmation codes](#confirmation-codes)), or **Keep it** to back out. Once the code is in, the key stops working immediately: requests with it return `key_revoked` ([API errors](https://docs.theavoxai.com/api/errors#key_revoked)). It moves to **Revoked and expired keys**, and every Admin gets an email. Revoke a key when: - It may have leaked (shared in a chat, committed to code, used by someone who left) - or [rotate](#rotate-a-key) it with **Immediately**, which gives you the replacement in the same step. - A security warning says it was used from somewhere you don't recognise. - The server or integration using it is retired. The Avox team can also revoke a key that's being misused. When they do, every Admin gets an email with the reason, and the key shows "Revoked by the Avox team" with the reason in **Revoked and expired keys**. If revoking fails, you see "Couldn't revoke that API key. Try again." ([AVX-3054](https://docs.theavoxai.com/error-codes/avx-3054)). ### When keys stop working | Situation | API error | | --- | --- | | The key was revoked | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) | | The key was rotated and its grace period ended | [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | | The connection is paused | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | | The connection was deleted | [`connection_not_found`](https://docs.theavoxai.com/api/errors#connection_not_found) | | The connection isn't connected | [`connection_inactive`](https://docs.theavoxai.com/api/errors#connection_inactive) | | The connection needs to be reconnected | [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready) | | The subscription isn't active, or the plan is paused | [`subscription_inactive`](https://docs.theavoxai.com/api/errors#subscription_inactive) | | Your plan doesn't include API access | [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan) - see [API access and your plan](#api-access-and-your-plan) | | API access was turned off for your account | [`api_access_disabled`](https://docs.theavoxai.com/api/errors#api_access_disabled) | When API access is turned off for your account (whatever your plan), **Settings > API Keys** reads "API keys have been turned off for your account, so new keys can't be created and existing ones won't send. Contact support if you need them." and the connection's page reads "API keys have been turned off for your account - contact support if you need them." Contact [Support](https://docs.theavoxai.com/support) to turn them back on. ### Emails about API keys | Email | Sent to | Includes | | --- | --- | --- | | API key created | Every Admin | The key's name and first characters, its connection, and when it was created (also sent for the new key of a rotation). | | API key revoked | Every Admin | Which key, and whether your team or Avox revoked it (with Avox's reason). | | API key alert | Every Admin | A key used from a new IP address, or a request blocked by the allowed list. | Every email links to **Settings > API Keys**. See [Emails](https://docs.theavoxai.com/emails). ### Sending your first message ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "text", "text": { "body": "Hello from Avox!" } }' ``` With a test key the same request answers `"test": true` and sends nothing. See [Avox API](https://docs.theavoxai.com/avox-api) for the full reference, [Authentication](https://docs.theavoxai.com/avox-api/authentication) for sending the key, and [Message types](https://docs.theavoxai.com/avox-api/messages) for every message type. ### Errors in the dashboard | Message | Code | | --- | --- | | Couldn't create that API key. Try again. | [AVX-3053](https://docs.theavoxai.com/error-codes/avx-3053) | | Couldn't revoke that API key. Try again. | [AVX-3054](https://docs.theavoxai.com/error-codes/avx-3054) | | Couldn't verify that key. Try again. | [AVX-3055](https://docs.theavoxai.com/error-codes/avx-3055) | | Couldn't load recent activity for that key. | [AVX-3056](https://docs.theavoxai.com/error-codes/avx-3056) | | Couldn't rotate that API key. Your current key still works - try again. | [AVX-3105](https://docs.theavoxai.com/error-codes/avx-3105) | | Couldn't load your API logs. Try again. | [AVX-3106](https://docs.theavoxai.com/error-codes/avx-3106) | | Couldn't export your API logs. Try again. | [AVX-3107](https://docs.theavoxai.com/error-codes/avx-3107) | | Couldn't resend that message. Try again. | [AVX-3103](https://docs.theavoxai.com/error-codes/avx-3103) | | Couldn't send the confirmation code. Try again. | [AVX-3240](https://docs.theavoxai.com/error-codes/avx-3240) | | That code is wrong or has expired. Check the email, or ask for a new code. | [AVX-3241](https://docs.theavoxai.com/error-codes/avx-3241) | | Too many wrong codes. Ask for a new code and try again. | [AVX-3242](https://docs.theavoxai.com/error-codes/avx-3242) | | Another key in this Switchboard already has that name. Pick a different name. | [AVX-3243](https://docs.theavoxai.com/error-codes/avx-3243) | | Give the key a name between 2 and 60 characters. | [AVX-3244](https://docs.theavoxai.com/error-codes/avx-3244) | | Choose which WhatsApp number this key sends from. | [AVX-3245](https://docs.theavoxai.com/error-codes/avx-3245) | | Couldn't load your Switchboards and numbers. Try again. | [AVX-3246](https://docs.theavoxai.com/error-codes/avx-3246) | | Couldn't change this key's permissions. Try again. | [AVX-3620](https://docs.theavoxai.com/error-codes/avx-3620) | | You can only give a key permissions you have yourself in this Switchboard. | [AVX-3621](https://docs.theavoxai.com/error-codes/avx-3621) | | Key permissions beyond sending aren't switched on yet. Try again later. | [AVX-3622](https://docs.theavoxai.com/error-codes/avx-3622) | | Give the key at least one permission. | [AVX-3623](https://docs.theavoxai.com/error-codes/avx-3623) | | Couldn't load this key's usage. Try again. | [AVX-3624](https://docs.theavoxai.com/error-codes/avx-3624) | | That key is revoked or expired, so its permissions can't change. Create a new key instead. | [AVX-3625](https://docs.theavoxai.com/error-codes/avx-3625) | | Nothing changed. Pick different permissions first. | [AVX-3626](https://docs.theavoxai.com/error-codes/avx-3626) | Some errors show a more specific line from Avox instead, for example "That key was already rotated. Rotate its replacement instead." or "That key is revoked - create a new key instead." --- ## Apps URL: https://docs.theavoxai.com/connections/apps Section: Connections **Apps** has its own page in the dashboard sidebar, under **Connect & Monitor**, next to **Connections** (your WhatsApp numbers). Connect the tools your business already uses, like Razorpay, Stripe, PayPal, Google, Zoom, Shopify or HubSpot, and Avox can use them for you: send a payment link in a chat, book a meeting, see your store's orders, save a customer to your CRM. Avox keeps working without any app. An app only adds to what Avox does, and if an app is disconnected or down, only the steps that use it fail, and each one stops the run or carries on, as you choose. Avox only ever uses an app to do what you set up. Keys and sign-ins are stored encrypted, never shown again (not even to you), and never written to any log. ### The apps | Use case | Apps | What Avox can do | | --- | --- | --- | | Payments | Razorpay, Stripe, PayPal | Send a payment link in a chat, check whether it was paid, refund, get paid updates instantly | | Meetings and calendars | Google, Microsoft 365, Zoom, Calendly | Create, move and cancel meetings; see free and busy times; block time; see bookings | | Stores | Shopify, WooCommerce | See your store's orders and products in Avox and get order updates (read only) | | Shipping | Shiprocket | Track a shipment by AWB or order ID, check a cash on delivery order, create a return, get picked up, delivered, NDR and RTO updates instantly | | Invoices and accounting | Zoho Books | Add a customer with their GSTIN, create a GST invoice with Zoho Books' own taxes, send its link, record a payment, see whether it was paid | | CRM | HubSpot, Zoho CRM | Add or update a contact (or a Zoho lead) from a chat or a Flow answer | | Sheets | Google Sheets, Airtable | Read rows and add new ones; with Airtable also find, update, upsert and delete records, add files and comments | Google is one connection for Calendar, Meet and Sheets, so it shows under both Meetings and calendars and Sheets. ### Connect an app In the dashboard, open **Apps** in the sidebar (under **Connect & Monitor**). Search, or pick a use case at the top. The **Connect apps** section on the Connections page shows a few apps too, with **See all apps**. The app's connect page opens, in three steps, with **Back** at the top left: 1. **What Avox can do**: what Avox will be allowed to do with the app, and the pages of its data you'll see in Avox. 2. **Sign in** or **Your keys**: - **Sign-in apps** (Google, Microsoft 365, Zoom, Calendly, Shopify, HubSpot, Zoho CRM, Zoho Books): click **Continue to** the app, sign in there and allow what Avox asks for. Shopify first asks for your store's myshopify.com address. You come back to the same page. - **Key apps** (Razorpay, Stripe, PayPal, WooCommerce, Shiprocket, Airtable): paste the keys (Airtable: a personal access token, with the permissions the page lists as Required or Optional; Shiprocket: an API user's email and password) from the app's dashboard. Avox tries them with the app before saving them. 3. **Done**: connected, with the way to the app's pages, or what went wrong with its code and **Try again**. Every app has its own pages: the overview with the account and health, a page for each kind of its data, and its activity. Click **Test connection** any time to check it still works. An app that shows **Coming soon** isn't ready to connect in Avox yet. Every other app works the moment you connect it. ### Each app's pages Click an app (or **Manage** on its card) to open it. Its own menu (on the left, or as tabs along the top on a phone) has: - **Overview**: the status, the account, who connected it and when, when it last worked, and the last problem with its [error code](https://docs.theavoxai.com/error-codes); **Test connection**, **Reconnect** and **Disconnect** (needs the Manage connected apps permission); **Setup in** the app (for Razorpay, Stripe, PayPal, WooCommerce, Shiprocket and Zoho Books: a checklist of every step at the app with links and every value ready to copy, a **Setup check** that shows what works and what needs a fix, **Check everything**, and for Stripe and PayPal **Set up the webhook for me**, see [The setup checklist](https://docs.theavoxai.com/connections/apps/payments#the-setup-checklist)); and **Used for**: the tables, Flows and automations that use the app. - **One page for each kind of its data**: Payments, Meetings, Bookings, Orders, Products, Contacts, Leads or Sheets, depending on the app. See [Your app's data in Avox](#your-apps-data-in-avox). - **Activity**: **Usage** (calls per day by action, the success rate, the average time and the updates received, over 7, 30 or 90 days) and the **Log**: every call Avox made to the app (what, from where, whether it worked, how long it took, its code) and every update the app sent. Click an entry to see what was asked and what came back. ### Your app's data in Avox Once an app is connected, its data shows inside Avox, so you don't have to switch to the app: | Page | Apps | What it shows | | --- | --- | --- | | Payments | Razorpay, Stripe, PayPal | Every payment link Avox sent and the payments in the app: amount, status, who paid, when, what for, which chat and which automation or Flow sent it | | Meetings | Google, Microsoft 365, Zoom | Meetings and blocked time Avox created, and what's coming up in your calendar: title, time with time zone, guests, meeting link | | Bookings | Calendly | Upcoming bookings with their invitees and meeting link | | Orders and Products | Shopify, WooCommerce | Latest orders (number, total, status, items, tracking) and your products (price, stock, variants) | | Shipments | Shiprocket | Your shipments with courier, AWB, status, cash on delivery amount and a tracking timeline, and every update Shiprocket sent | | Invoices | Zoho Books | Invoices Avox created and the ones in your books: number, total, what's still due, status and line items | | Contacts and Leads | HubSpot, Zoho CRM | Contacts and leads Avox saved, and the ones in your CRM | | Sheets | Google, Airtable | The spreadsheets and tables Avox read or wrote, with their tabs or fields and first rows; for Airtable also every table the token can open and each record | Most pages have two lists: **Sent by Avox** (what Avox itself sent or saved, kept by Avox) and **In** the app (the app's own list, read live, with **Load more** for the next ones). Contacts, Leads and Products can be searched. **Refresh** reads the app again. Click anything to open its own page: all its details, its links, and where it came from in Avox (the automation or Flow, and **Open chat** for the contact it was for). Lists hide most of people's details (like a***@example.com); an item's own page shows them to people who can see apps. #### What you can do from Avox | On | Actions | | --- | --- | | Every item | Copy or open its link, **Open in** the app | | A payment | **Check status now**; **Refund** (all or part of what's left; you type the amount again to confirm); **Cancel link** while it's unpaid. See [Payment statuses](https://docs.theavoxai.com/connections/apps/payments#payment-statuses) | | A meeting | **Reschedule** (in your own time zone) and **Cancel meeting** (and choose whether the guests are told), before it starts | | A Calendly booking | **Cancel booking**, with a reason the invitee sees. Calendly doesn't let apps move a booking: the invitee reschedules from their own email. | | An Airtable record | **Add a comment** and **Delete record** (asks first). An action whose permission the token doesn't have is greyed out and says why. | | Orders, shipments, invoices, products, contacts, sheets | Read only here ([AVX-3725](https://docs.theavoxai.com/error-codes/avx-3725)): change them in the app, or with an automation step. | Actions need the Manage connected apps permission, happen in the app itself, show in the app's log and are recorded in your Switchboard's audit log. When an app is down, needs reconnecting, asks Avox to slow down, or your Switchboard is paused, its pages still open: they show what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and the reason's own code. Actions wait until the app answers again. The log never holds keys, tokens or passwords, and personal details (names, emails, phone numbers, addresses) are masked before anything is saved. #### Statuses | Status | What it means | | --- | --- | | Connected | Working. | | Needs reconnecting | The app stopped accepting Avox's access (removed in the app, uninstalled, or ran out). Steps that use it fail with "app isn't connected" until you click **Reconnect**. See [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692). | | Having trouble | Several calls in a row failed on the app's side. It goes back to Connected by itself once a call works. | | Disconnected | Avox deleted its access. The log and usage stay. | Sign-in apps stay connected on their own: Avox renews their access before it runs out. When an app needs reconnecting, the Switchboard's Admins get an email with a link straight to it, once each time it happens. ### Start automations from your apps Under **Your connected apps** in the automation wizard, five triggers start an automation from what happens in an app: - **Payment received**, **Payment failed or ended**, **Payment refunded** and **Payment disputed**: a payment in your PayPal, Stripe or Razorpay changes. - **Something happens in an app**: a store order arrives or changes in Shopify or WooCommerce, a Calendly booking is made or cancelled, a Zoom meeting starts, ends or is cancelled, a Shiprocket parcel moves, or a Zoho Books invoice is paid, overdue or voided. Each runs once per real change, however many times the app tells Avox about it. Until one of its apps is connected, a trigger's tile is greyed out with a link, like **Connect PayPal, Stripe or Razorpay first**. See [Automation triggers](https://docs.theavoxai.com/automation/triggers#payment-received-failed-refunded-or-disputed), and the steps that use your apps on [Automation actions](https://docs.theavoxai.com/automation/actions#tables--apps). ### Who can do what Two permissions in **Settings > Switchboard** cover apps: - **See connected apps**: the Apps page, each app's pages and its data in Avox, its usage and log. Admins have it, and Managers have it by default. - **Manage connected apps**: connect, reconnect, test, add webhook secrets, disconnect, and the actions on an app's data (refund, cancel, reschedule). Admins have it; an Admin can give it to a Manager. ### Plans Your plan sets how many apps one Switchboard can connect. Reconnecting an app never counts twice, and a disconnected app doesn't count. Compare plans on [Plans](https://docs.theavoxai.com/plans). ### Disconnecting **Disconnect** on an app's page first shows what uses it. Avox then: - asks the app to drop Avox's access, where the app allows it (Google, Zoom, Calendly, Shopify, HubSpot, Zoho CRM, Zoho Books; Shiprocket: Avox signs out); - deletes the keys or sign-in it saved; - keeps the log and usage for your retention period. Steps that used the app fail ([AVX-3691](https://docs.theavoxai.com/error-codes/avx-3691)) until you connect it again, and each follows its stop or carry-on choice. For key apps, also delete or roll the key in the app. For Microsoft 365, remove Avox in your account's app permissions. ### Your data - Calls and updates are kept as long as your webhook log retention on the [Compliance](https://docs.theavoxai.com/compliance) page, then deleted. What Avox saved about the app's things (payment links it sent, invoices it made, meetings, bookings, shipments, contacts it saved, updates the app sent) is business history: payments and invoices are kept 25 months after their last change, everything else 13 months. Usage counts are kept for 25 months. - What Avox saves never holds keys or tokens. Meeting links are saved without their passcode, and people's details only masked; the full details are read from the app when you open an item. - A data export from Compliance includes your connected apps and their log (never the keys). - Avox reads from and writes to an app only what an action needs, when a step asks for it. ### Related --- ## Payment apps URL: https://docs.theavoxai.com/connections/apps/payments Section: Connections Connect a payment app and Avox can send a payment link in a chat, check whether it was paid, refund a payment, and hear about payments the moment they happen. Money always goes straight to your own account at the app; Avox never holds it. All three connect with keys from the app's own dashboard. Avox tries the keys with the app before saving them, stores them encrypted and never shows them again. In an automation step, type the amount the normal way, like `499` or `499.50`: Avox converts it for the app. ### The setup checklist Each payment app has a checklist, **Setup in** the app, with every step you take at the app, in the app's own words, links straight to the right page, and every value ready to copy, so you never type or look anything up: - **Before you connect** (on the connect page): the key or app to make at the provider. Where the provider asks for a name, Avox gives you one to copy: "Avox - " and your Switchboard's name. - **After you connect** (on the app's **Overview**): the webhook steps with this connection's own address (keep it private: it belongs to your Switchboard only), the exact event names with **Copy all**, and the box for the webhook secret (Razorpay, Stripe) or **Webhook ID** (PayPal). Above the steps, **Setup check** shows how far you are. Each line is **Done**, **To do**, **Needs a fix** or **Not checked yet**, and a line that needs a fix says what is wrong in plain words, with **How to fix** taking you to the step that fixes it. | Line | Green when | | --- | --- | | Keys work | The app accepts the saved keys. | | Live or test | Shows the mode: "Live: real money moves." or "Test mode: no real money moves." | | Webhook added with every event | The app has a webhook for this connection's address with every event ticked (Stripe and PayPal; Avox asks the app). | | Webhook check saved | The secret or Webhook ID is saved in Avox. Until then Avox can't check updates and refuses them ([AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709)). | | Updates arriving and checked | An update from the app arrived and passed the check. The time it last happened shows next to it. | Two buttons sit under the check (they need the **Manage connected apps** permission): - **Check everything** asks the app right now: whether the keys still work and, for Stripe and PayPal, whether the webhook is there with every event. Any event still missing is named. - **Set up the webhook for me** (Stripe and PayPal) adds Avox's webhook at the app with the keys you saved, ticks every event and saves the signing secret or Webhook ID by itself. Once it's done the button reads **Set up the webhook again**. If the app refuses, you see [AVX-3740](https://docs.theavoxai.com/error-codes/avx-3740) and the steps to add it by hand appear. **Add the webhook by hand instead** shows them any time. When an update fails the check, **Updates arriving and checked** turns to **Needs a fix** with the reason: | What it says | What to do | | --- | --- | | An update arrived, but the webhook secret (or PayPal's Webhook ID) isn't saved in Avox yet | Paste the secret or Webhook ID in Avox. | | An update arrived without the app's signature | Add the webhook again with the steps on the checklist. | | The update's signature didn't match the secret saved in Avox | Paste the secret from the app again. | | An update arrived more than 5 minutes after it was signed | Check the server clock or a proxy in between. | | PayPal said the update's signature isn't valid for this Webhook ID | Check that the Webhook ID belongs to this app and address. | | PayPal couldn't be asked to check an update just now | Nothing: PayPal sends it again later. | | An update from test mode reached a live connection (or the other way round) | Use keys and a webhook of the same mode. | | An update from a different account reached this connection | Add this address only in the account you connected. | An update that arrives twice is kept once, and a late or out-of-order update never moves a payment backwards (see [Payment statuses](#payment-statuses)). ### Razorpay Full guide: [Razorpay](https://docs.theavoxai.com/connections/apps/razorpay) **What you need:** a Razorpay account and an API key. A live key (`rzp_live_`) takes real money and needs your Razorpay account activated with Payment Links switched on. A test key (`rzp_test_`) charges nothing. In Razorpay open **Account & Settings**, **API Keys** (switch to Test Mode at the top to try it first). Click **Generate Key** and copy the **Key Id** and the **Key Secret**. Razorpay shows the secret only once. Open **Apps** in the sidebar, then **Razorpay**, and click **Connect**. Paste both and click **Connect**. On Razorpay's **Overview** in Avox, follow **Setup in Razorpay**. In Razorpay open **Account & Settings**, **Webhooks** and click **Add New Webhook**. Paste the address from Avox as the Webhook URL. In Avox press **Generate** next to **Webhook secret**, copy it into Razorpay's Secret box and save it in Avox. Under **Active Events**, tick every event below and click **Create Webhook**. Send yourself a payment link and pay it (in Test Mode with a test card or UPI). **Updates arriving and checked** turns green. Events to tick: `payment_link.paid`, `payment_link.partially_paid`, `payment_link.expired`, `payment_link.cancelled`, `payment.captured`, `refund.processed`, `refund.failed`, `payment.dispute.created`, `payment.dispute.won`, `payment.dispute.lost` and `payment.dispute.closed`. - Payment links are Razorpay Payment Links. Avox sends the link in the chat itself, so Razorpay's own SMS, email and reminders are off. - Status works with a payment link id (`plink_...`) or a payment id (`pay_...`). - A refund of a link refunds its captured payment; leave the amount out for a full refund. ### Stripe Full guide: [Stripe](https://docs.theavoxai.com/connections/apps/stripe) **What you need:** a Stripe account and a restricted key. A live key (`rk_live_`) takes real money; a test key (`rk_test_`) uses Stripe's test cards and charges nothing. In Stripe open **Developers**, **API keys** (switch Test mode on first to try it without real money) and click **Create restricted key**. Type the key name Avox gives you. Set **Write** on Checkout Sessions, Refunds and Webhook Endpoints (that last one lets Avox add its webhook for you), and **Read** on PaymentIntents and Charges. Click **Create key** and copy it. A secret key (`sk_...`) works too, but a restricted key can do less if it's ever leaked. A publishable key (`pk_...`) is refused. Open **Stripe** under Apps, click **Connect** and paste the key. On Stripe's **Overview**, press **Set up the webhook for me**: Avox adds its endpoint with every event and saves the signing secret. Or add it by hand: **Developers**, **Webhooks**, **Add endpoint**, the address from Avox as the Endpoint URL, the events below, then paste the endpoint's signing secret (`whsec_...`) in Avox. Send yourself a payment link and pay it (in test mode with card 4242 4242 4242 4242). Events: `checkout.session.completed`, `checkout.session.async_payment_succeeded`, `checkout.session.async_payment_failed`, `checkout.session.expired`, `charge.refunded`, `charge.dispute.created` and `charge.dispute.closed`. - Payment links are Stripe Checkout pages, open for 30 minutes to 24 hours (24 hours unless the step says otherwise). - Status works with the checkout id (`cs_...`) or a payment id (`pi_...`), and shows refunds too. - Updates are accepted only with a valid signature from the last 5 minutes. ### PayPal Full guide: [PayPal](https://docs.theavoxai.com/connections/apps/paypal) **What you need:** a PayPal Business account and an app in the PayPal Developer Dashboard. **Live** takes real money. **Sandbox** is PayPal's test world: its test buyers pay and nothing is charged. Open **Apps & Credentials** and pick **Live** (or **Sandbox**) at the top. Click **Create App**, type the app name Avox gives you, keep the type **Merchant** and click **Create App**. Under **Features**, keep **Invoicing** ticked: Avox's payment requests are PayPal invoices. On the app's page copy the **Client ID**, click **Show** under Secret and copy it too. In Avox open **PayPal** under Apps, click **Connect**, paste both and pick the same **Environment**. On PayPal's **Overview**, press **Set up the webhook for me**: Avox adds its webhook with every event and saves the Webhook ID. Or add it by hand: on the app's page at PayPal, **Webhooks**, **Add Webhook**, the address from Avox as Webhook URL, tick the events below and **Save**, then paste the **Webhook ID** PayPal shows in Avox. Send yourself a payment request and pay it (in Sandbox with a test buyer). Events: `INVOICING.INVOICE.PAID`, `INVOICING.INVOICE.CANCELLED`, `INVOICING.INVOICE.REFUNDED`, `PAYMENT.CAPTURE.REFUNDED`, `PAYMENT.CAPTURE.REVERSED`, `CUSTOMER.DISPUTE.CREATED` and `CUSTOMER.DISPUTE.RESOLVED`. - Payment links are PayPal invoices your customer pays in a tap. With the customer's email, PayPal also emails it; otherwise Avox only shares the link in the chat. - Status works with the invoice id (`INV2-...`); refunds use the invoice id (or the PayPal payment id). - Every update is checked with PayPal before Avox accepts it. - A PayPal app holds at most 10 webhooks. If it's full, **Set up the webhook for me** says so: delete one you don't use, then try again. ### Payments in Avox Open the app, then **Payments**: - **Sent by Avox**: every payment link Avox sent with this app, newest first: the amount (with the right decimals for its currency), the status, what it was for, your reference, the automation or Flow that sent it and the chat it was for. - **In** the app: what the app itself reports. Razorpay lists every payment on the account; Stripe lists its payment pages (Checkout); PayPal lists its payment requests (invoices). Open a payment for its details, who paid, the items and any refunds. From there: **Copy payment link**, **Open payment link**, **Open in** the app, **Check status now**, **Refund** (all or part; you type the amount again to confirm, [AVX-3723](https://docs.theavoxai.com/error-codes/avx-3723)) and **Cancel link** while it's unpaid (Razorpay payment links, Stripe payment pages, PayPal payment requests). Updates from the app's webhook change the status in Avox as they arrive: paid, partly paid, refunded, expired, cancelled and disputed. When something fails, Avox shows the app's own words, like "Stripe says this payment is already fully refunded" or "The PayPal app can't use Invoicing. Tick Invoicing under the app's Features at PayPal", so you know exactly what to change. The last problem also shows on the app's **Overview** with its code. #### Payment statuses | Status | What it means | | --- | --- | | Pending | Sent, not paid yet. | | Partly paid | Part of the amount was paid (a link that allows part payments). | | Paid | Paid in full. | | Partly refunded | Some of it was refunded. | | Disputed | The customer opened a dispute (a chargeback) with their bank or the app. | | Refunded | All of it went back to the customer, by a refund or a lost dispute. | | Failed, Expired, Cancelled | Ended without money. | A payment only moves forward: Pending, then Partly paid, Paid, Partly refunded, Disputed and Refunded. Failed, Expired and Cancelled happen only to a pending payment, so a paid link that later "expires" stays Paid, and money that really moved wins over a cancel that crossed with it. Two ways back exist: a dispute you **win** returns the payment to Paid (or Partly refunded), and a refund the app couldn't make (Razorpay's `refund.failed`) takes the refund off again. A dispute you **lose** makes it Refunded. #### Refunds - Only a paid payment can be refunded ([AVX-3720](https://docs.theavoxai.com/error-codes/avx-3720)), never more than what's left on it ([AVX-3719](https://docs.theavoxai.com/error-codes/avx-3719)). Avox reads the payment from the app first, so the amount left is the real one. - A payment that's already fully refunded is refused, with the app's own words. - Razorpay: a payment that's authorised but not captured can't be refunded yet. Capture it in Razorpay first, or let it lapse. - Stripe: a page that hasn't been paid (or is still processing) has nothing to refund yet. A part refund needs **Read** on PaymentIntents on the key, so Avox can learn the currency; otherwise refund it all. - PayPal: a request you marked as paid by hand (cash, bank) has no PayPal payment behind it, so it can't be refunded from Avox. Refund part of a payment from its payment request (`INV2-...`). - A refund is made once. When Avox asks Stripe or PayPal again after a lost answer, it sends the same repeat key, so the app gives the first refund back instead of making a second one. Razorpay refunds are never repeated by Avox on its own. If a refund timed out, open the payment in the app before trying again. #### Paid and disputed alerts When a payment in a connected app is paid or disputed, everyone with **See connected apps** gets it in the header bell, and a toast while they're in the Inbox: the app, the amount and what it was for, never the payer's details. While a payment is disputed, a dot shows on **Apps**. Alerts belong to the Switchboard you're viewing. A payment linked to a private number's contact never alerts. If an app stops letting Avox in and needs reconnecting, the Switchboard's Admins get an email with a link straight to the app's page, once each time it happens. ### What a payment step can send In the automation builder, **Use a connected app**, then **Create a payment link**: | Detail | Notes | | --- | --- | | Amount | The normal amount, like `499` or `499.50`, above zero, or a value like `{{row.price}}`. | | Currency | 3 letters, like `INR`, `USD`, `EUR`. | | What it's for | Up to 200 characters; the customer sees it. | | Your reference | Optional: your own order number (up to 40 letters, numbers, `-` and `_`). | | Customer name, email, phone | Optional. | | Link works for (minutes) | Optional: 30 minutes to 30 days. | | Allow part payments (Razorpay, PayPal) | Optional: the customer can pay in parts. | | Least first payment | Optional, with part payments on: the first part must be at least this much, and less than the full amount. | | UPI only (Razorpay, INR) | Optional: the link opens UPI apps straight away. INR only. | What each app does with them: | Option | Razorpay | Stripe | PayPal | | --- | --- | --- | --- | | Link works for | Used as set | 30 minutes to 24 hours: longer is cut to 24 hours, none means 24 hours | Not used: a request stays open until it's paid or cancelled | | Part payments | Yes, with the least first payment | No: the step says to turn part payments off, or use Razorpay or PayPal | Yes, with the least first payment as the minimum due | | UPI only | Yes, INR only | No: the step says to turn it off | No: the step says to turn it off | | Currencies | INR at least ₹1.00; three-decimal currencies must end in 0 | Zero-decimal currencies (like JPY) in whole amounts; three-decimal ones must end in 0 | PayPal's own list (like USD, EUR, GBP); HUF, JPY and TWD in whole amounts | **One step, one link.** A step that runs again (after a crash, a retry or a lost answer) gets the same link back, never a second one. Stripe and PayPal are sent a repeat key; Razorpay links carry a reference (Avox makes one for the step when you don't give one), and Razorpay never makes two links with the same reference. Using one of your own references again for a different payment is refused with "Use a new reference" (in Stripe, within 24 hours of the first). The step's values go in the next message: `{{payment.url}}`, `{{payment.id}}` and `{{payment.status}}`. Two more steps work with a link it made: **Check a payment** (how it's doing now: paid, partly paid, refunded, with the amount and when it was paid) and **Cancel a payment link** (stops an unpaid link; a paid one stays as it is). See [Automation actions](https://docs.theavoxai.com/automation/actions#tables--apps). ### Start automations from payments Four automation triggers listen to these apps: **Payment received**, **Payment failed or ended**, **Payment refunded** and **Payment disputed**. Each runs once per real change, however many times the app tells Avox about it, and gives every step the payment's details as `{{payment.*}}` values, like `{{payment.amount_text}}`. Pick the app (or any payment app), a currency and amount range, and whether only this automation's own payment links count. See [Automation triggers](https://docs.theavoxai.com/automation/triggers#payment-received-failed-refunded-or-disputed). ### Related --- ## Meetings and calendars URL: https://docs.theavoxai.com/connections/apps/meetings-and-calendars Section: Connections Connect your calendar or meeting app and Avox can create a meeting and share its link in a chat, move or cancel it from the app's pages, block time, and see the bookings people make. All four connect by signing in with the app. Avox renews the access on its own; you only sign in again if the access is removed in the app. ### Google Full guide: [Google](https://docs.theavoxai.com/connections/apps/google) One Google connection covers **Google Calendar**, **Google Meet** and **Google Sheets** (see [Google Sheets](https://docs.theavoxai.com/connections/apps/crm-and-sheets#google-sheets)). Open **Apps** in the sidebar, then **Google**, click **Connect**, then **Continue to Google**. Sign in with the Google account whose calendar you use, and leave every box ticked: create and change calendar events, see free and busy times, and read and add rows in Google Sheets. - **Meetings** are events in your main calendar with a Google Meet link; guests get Google's own invitation and updates. - **Free and busy** reads your main calendar, up to 31 days at a time. - **Block time** adds a busy event; **unblock** removes it. - If you untick a permission, the rest keeps working and the app's page lists what's missing. Click **Reconnect** to allow it. ### Microsoft 365 Full guide: [Microsoft 365](https://docs.theavoxai.com/connections/apps/microsoft-365) **What you need:** a Microsoft account. Teams meeting links need a work or school account. Open **Microsoft 365** under Apps, click **Connect**, then **Continue to Microsoft 365**. Sign in and accept: sign in and read your profile, and see and change your Outlook calendar. Some work accounts need an IT admin to approve apps first. - **Meetings** are Outlook events with a Teams link (work or school accounts); attendees get Outlook's invitation. Cancelling sends them Outlook's cancellation. - **Free and busy** reads your Outlook calendar; events marked Free don't count. - To fully remove Avox after disconnecting, open your account's app permissions (myapps.microsoft.com for work accounts, account.live.com/consent/Manage for personal ones). ### Zoom Full guide: [Zoom](https://docs.theavoxai.com/connections/apps/zoom) Open **Zoom** under Apps, click **Connect**, then **Continue to Zoom**, and allow Avox. - **Meetings** are scheduled Zoom meetings with a waiting room; the join link goes in the chat. - **Move** changes the time and length; **cancel** deletes the meeting and can email the invitees. - If Avox is removed from your Zoom account, Zoom tells Avox and the app shows as disconnected. ### Calendly Full guide: [Calendly](https://docs.theavoxai.com/connections/apps/calendly) Open **Calendly** under Apps, click **Connect**, then **Continue to Calendly**, and allow Avox. - Avox reads your upcoming bookings (up to 50 at a time). - On paid Calendly plans Avox turns on instant updates by itself, so new and cancelled bookings reach Avox as they happen. The app's page shows whether they're on. - Disconnecting removes Avox's webhook and its access at Calendly. ### Meetings and bookings in Avox - **Meetings** (Google, Microsoft 365, Zoom): **Sent by Avox** lists the meetings and blocked time Avox created; **In** the app lists what's coming up (Google and Outlook calendars from now on, Zoom's upcoming meetings). Open one for its time, guests, meeting link and notes. **Reschedule** moves it (you pick the time in your own time zone) and **Cancel meeting** cancels it, telling the guests or not. Both work until the meeting starts. - **Bookings** (Calendly): upcoming bookings with their invitees and meeting link. **Cancel booking** cancels it in Calendly with a reason the invitee sees. Calendly doesn't let apps move a booking: the invitee reschedules from their own Calendly email. Bookings Calendly tells Avox about (paid Calendly plans) stay visible when Calendly can't be read. Zoom's host start link is never shown in Avox, and Avox saves meeting links without their passcode. A join link shown on a Zoom page can still carry the meeting's passcode. ### Times and time zones Avox sends times to the apps in universal time (UTC, like `2026-11-02T15:00:00Z`), so meetings land at the right moment wherever the business or the customer is. A step can also name a time zone (like `Asia/Kolkata`) for how the event shows in the calendar; Microsoft 365 ignores that box. Check the time of your first meeting after you build a step. ### Related --- ## Store apps URL: https://docs.theavoxai.com/connections/apps/stores Section: Connections Connect your store and Avox shows your orders (payment and delivery status) and your products with prices and stock on the app's pages, and hears about order changes as they happen. Avox only reads from your store. No automation or Flow step uses the store apps yet; to send WhatsApp messages from order events, see [Shopify with the Avox API](https://docs.theavoxai.com/integrations/shopify). ### Shopify Full guide: [Shopify](https://docs.theavoxai.com/connections/apps/shopify) **What you need:** your store's myshopify.com address and permission to install apps on the store. In Shopify admin open **Settings**, then **Domains**, and copy the address ending in `.myshopify.com` (even if customers use another domain). Open **Apps** in the sidebar, then **Shopify**, click **Connect**, paste the address and click **Continue to Shopify**. Shopify shows what Avox may see: your orders and your products. Click **Install**. You come back to Shopify's page in Avox. - The **Orders** page lists your orders with payment and fulfilment status, total and tracking links. Shopify lets apps see orders from the last 60 days. - **Products** lists active products by title, with the lowest price and whether they're in stock. - Order updates arrive by themselves; nothing to set up. - Uninstalling Avox in Shopify disconnects it in Avox too. ### WooCommerce Full guide: [WooCommerce](https://docs.theavoxai.com/connections/apps/woocommerce) **What you need:** a WordPress site with WooCommerce, at an `https://` address on the internet. In WordPress open **WooCommerce**, then **Settings**, **Advanced**, **REST API**, and click **Add key**. Pick a user, set **Permissions** to **Read**, and generate it. Copy the **Consumer key** (`ck_...`) and **Consumer secret** (`cs_...`). Open **WooCommerce** under Apps, click **Connect**, and paste your site's address and both keys. Follow **Setup in WooCommerce** on its Overview in Avox. In WooCommerce open **Settings**, **Advanced**, **Webhooks**, and add a webhook: topic **Order updated** (and another for **Order created**), delivery URL Avox's address, and the secret Avox generates for you. Save the same secret in Avox. - The **Orders** page lists your store's orders with their status. - **Products** lists published products with their price and stock status. - Avox only calls your store over `https://`, and only at public internet addresses. - If your host blocks the usual sign-in header, Avox switches to WooCommerce's other way of sending the key over `https://` by itself. ### Orders and products in Avox Open the app, then **Orders** or **Products**: - **Orders**: the store's latest orders, newest first: number, total, status (Paid, Pending, Fulfilled, Refunded, Cancelled), items. Open one for its items, payment and delivery, tracking links and refunds. Orders the store tells Avox about stay visible when the store can't be read. - **Products**: your products by name with price and stock; search by name. Open one for its variants, SKUs and stock. Avox only reads your store, so changes are made in Shopify or WooCommerce: **Open in** the app takes you straight there. Shopify shows apps the orders of the last 60 days, without customer details; WooCommerce orders show the customer's name, email and phone on the order's own page. ### Related --- ## Shipping apps URL: https://docs.theavoxai.com/connections/apps/shipping Section: Connections Connect your shipping account and Avox tracks your parcels: where an order is, what a cash on delivery order has to collect, and every scan from pickup to delivery. Automations can answer "where is my order?" in a chat, confirm cash on delivery orders, create a return, and start when a parcel is out for delivery, delivered, fails delivery (NDR) or comes back to you (RTO). ### Shiprocket Full guide: [Shiprocket](https://docs.theavoxai.com/connections/apps/shiprocket) **What you need:** a Shiprocket account, and an email address only for Avox's API user. In Shiprocket open **Settings**, **API**, **Configure** and click **Create an API User**, with an email address that isn't the one you sign in with and a password. Open **Shiprocket** under Apps, click **Connect**, and paste the API user's email and password. Follow **Setup in Shiprocket** on its Overview: copy Avox's address and press **Generate** for a webhook token. In Shiprocket open **Settings**, **API**, **Webhooks**, paste the address and the token, switch it on and save. Save the same token in Avox. - The **Shipments** page lists your orders with courier, AWB and status; open one for its tracking timeline. - Cash on delivery amounts are exact to the paisa, never rounded. - Returns can be made only for delivered orders. - Shiprocket sends updates for every shipment in your account. ### Shipments in Avox Open the app, then **Shipments**: Shiprocket's orders, newest first, searchable by order ID or AWB. Open one for its status, scans with time and place, expected delivery, tracking page, items and the cash to collect. The customer's details show only on a shipment's own page. Orders are created and shipped in Shiprocket itself. ### Related --- ## Invoices and accounting URL: https://docs.theavoxai.com/connections/apps/invoices-and-accounting Section: Connections Connect your accounting app and Avox can make proper GST invoices for the people who buy from you on WhatsApp, send the link in the chat, and record their payments in your books. Your accounting app works out every tax: Avox never calculates GST itself. ### Zoho Books Full guide: [Zoho Books](https://docs.theavoxai.com/connections/apps/zoho-books) **What you need:** a Zoho Books organization with GST set up under **Settings**, **Taxes**, and your items with their HSN or SAC codes. Open **Apps** in the sidebar, then **Zoho Books**, click **Connect** and sign in at Zoho with the account that owns the organization. Customers, invoices, payments, and reading your organization and taxes. Avox works in your default organization. What Avox can do with it: - Add a customer, with their GSTIN, GST treatment and state ([AVX-3743](https://docs.theavoxai.com/error-codes/avx-3743) when a GSTIN isn't valid). - Create an invoice with your items, quantities, prices before tax and the tax you set up in Zoho Books. Zoho Books works out the GST and the total. - Send the invoice's link to paste in a chat, or have Zoho Books email it. - Record a payment against an invoice, never more than what's still due ([AVX-3744](https://docs.theavoxai.com/error-codes/avx-3744), [AVX-3745](https://docs.theavoxai.com/error-codes/avx-3745)). - Check whether an invoice was paid. Avox reads open invoices again every 15 minutes, because Zoho Books doesn't send signed updates to apps. The **Invoices** page lists the invoices Avox made and every invoice in Zoho Books, with the total and what's still due. It only reads: change invoices in Zoho Books itself. E-invoicing (the IRN and QR code) and credit notes stay in Zoho Books. If the sign-in ends with [AVX-3746](https://docs.theavoxai.com/error-codes/avx-3746), the Zoho account has no Zoho Books organization yet. ### Related --- ## CRM and Sheets URL: https://docs.theavoxai.com/connections/apps/crm-and-sheets Section: Connections Connect your CRM and Avox can save the people who message you as contacts (or Zoho leads), with what they told you in a chat or a Flow. Connect Google Sheets and Avox can read rows from a sheet and add new ones. Connect Airtable and Avox can find, add, update, upsert and delete records in your bases, add files and comments, and read your tables and fields. ### HubSpot Full guide: [HubSpot](https://docs.theavoxai.com/connections/apps/hubspot) Open **Apps** in the sidebar, then **HubSpot**, click **Connect**, then **Continue to HubSpot**. Choose the HubSpot account and allow Avox to see and change contacts. - **Save contact** updates the contact with the same email, or creates one. Without an email it looks for the same phone number first. - Avox fills email, phone, first name, last name and company. ### Zoho CRM Full guide: [Zoho CRM](https://docs.theavoxai.com/connections/apps/zoho-crm) Open **Zoho CRM** under Apps, click **Connect**, then **Continue to Zoho CRM**. Sign in in your own region (Zoho picks it) and accept: contacts, leads, and reading users and your organisation. - **Save contact** adds or updates a **Contact**, matching on email (or mobile number without an email). An automation can't save a Zoho **Lead** yet; the Leads page in Avox only shows leads that are already in Zoho. - A lead needs a company; Avox uses the one the step gives. - A note from the step goes in the record's description. ### Google Sheets Full guide: [Google](https://docs.theavoxai.com/connections/apps/google) Sheets come with the [Google](https://docs.theavoxai.com/connections/apps/meetings-and-calendars#google) connection: connect Google once and allow **Read and add rows in Google Sheets**. - **Read rows** reads a range like `Sheet1!A1:D50` (up to 500 rows of 50 cells). - **Add a row** adds one row at the end of a range like `Sheet1!A:D`, up to 50 cells. - Values are written exactly as given and never run as formulas. - The sheet id is the long part of its link: `docs.google.com/spreadsheets/d//edit`. The Google account you connected must be able to open the sheet. **In automations**, use **Find a row in a sheet** and **Add a row to a sheet** in a [Use a connected app](https://docs.theavoxai.com/automation/tables#google-sheets-and-airtable) step. Paste the sheet's whole link (Avox takes the id from it), type the tab's name, and click **Read the column names**. For example, after a **Row added** trigger on your Leads table, a row of `{{row.name}}`, `{{row.phone}}` and `{{row.email}}` goes to your sheet. The premade **Add new leads to Google Sheets** is set up this way. ### Airtable Full guide: [Airtable](https://docs.theavoxai.com/connections/apps/airtable) Airtable connects with a **personal access token** that you make in Airtable and paste into Avox. Nobody at Avox has to set anything up, and the token only opens the bases you choose. #### Make the token In Airtable, open [airtable.com/create/tokens](https://airtable.com/create/tokens) and click **Create new token**. Name it **Avox**. Add the scopes in the table below. The three required ones are needed to connect; the two comment scopes are optional. Under **Access**, add the bases Avox may use (or a whole workspace). Avox can't open any other base. Click **Create token** and copy it. Airtable shows it only once. Open **Apps** in the sidebar, then **Airtable**, and click **Connect**. Paste the token, and the **Default base ID** if you like (the part of a base's link that starts with `app`), then click **Connect**. Avox checks the token and its scopes with Airtable before saving it ([AVX-3727](https://docs.theavoxai.com/error-codes/avx-3727) when one is missing). | Scope | | What it lets Avox do | | --- | --- | --- | | data.records:read | Required | Find, read and get records | | data.records:write | Required | Add, update, upsert and delete records, and add files | | schema.bases:read | Required | See your bases, tables and fields (Avox uses each field's type to write values the right way) | | data.recordComments:read | Optional | Read the comments on a record | | data.recordComments:write | Optional | Add a comment to a record | Without an optional scope, only the actions that need it are switched off, and they say why on the record's page ([AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690)). To add one later, edit the token in Airtable (the token stays the same) and click **Test connection**, or make a new token and **Reconnect**. The token is stored encrypted and never shown again, not even to you. To stop it working, delete it in Airtable's Builder hub too when you disconnect. #### What Avox can ask Airtable Every action names its **base** (the base ID, or the default base when it's left out) and its **table** (its name exactly as in Airtable, or its ID, which starts with `tbl` and survives a rename). | Action | What you fill in | Limits | | --- | --- | --- | | **List bases** | Nothing | Every base the token can open | | **Tables and fields** | Base | Each table with its fields, their types and options, and its views | | **Find records** | Table; optional view, filter formula, sort (up to 5 fields), fields to return, page size (up to 100) and most records (up to 1,000) | Pages of up to 100, with a marker for the next page | | **Get a record** | Table, record ID (starts with `rec`) | | | **Add records** | Table, the records' fields | Up to 10 records ([AVX-3733](https://docs.theavoxai.com/error-codes/avx-3733)) | | **Update records** | Table, each record's ID and the fields to change | Up to 10; only the fields given change | | **Add or update records** | Table, the records' fields, 1 to 3 fields to match on (like Email) | Up to 10; a match is updated, the rest are added ([AVX-3738](https://docs.theavoxai.com/error-codes/avx-3738)) | | **Delete records** | Table, record IDs | Up to 10. Airtable keeps them in its trash for a while. | | **Add files to a record** | Table, record ID, a files field, https links (and file names) | Up to 10 links; the files already there stay ([AVX-3735](https://docs.theavoxai.com/error-codes/avx-3735)) | | **Read comments** | Table, record ID | Needs data.recordComments:read | | **Add a comment** | Table, record ID, the text | Needs data.recordComments:write; up to 5,000 characters | | **Read rows** and **Add a row** | The base ID as the sheet, the table (or `Table!View`) as the range | The same actions as Google Sheets, so a sheets step works with Airtable too. A row's values fill the table's fields in order. | **In automations**, every action except listing bases and reading comments is a [Use a connected app](https://docs.theavoxai.com/automation/tables#google-sheets-and-airtable) step: **Find Airtable records**, **Get**, **Add**, **Update**, **Add or update**, **Delete** (confirmed in the step first), **Add files** and **Comment**, one record at a time. The step picks the base, table, view and fields from Airtable, and later steps use the record's fields by name, like `{{record.first_name}}` for First Name. For example, a **Flow submitted** trigger and **Add or update an Airtable record** that fills Email with `{{flow.email}}` and Name with `{{flow.name}}`, matching on Email, keeps one record per customer however often they send the Flow. The premade **Save Flow answers to Airtable** starts you off. **Values by field type.** Avox turns text into each field's kind before writing, and lets Airtable add new options to select fields: - **Number, currency, percent, rating**: a number like `1250` or `12.5`. - **Checkbox**: yes, no, true, false, 1 or 0. - **Single select**: the option's name. **Multiple select**: names separated by commas. - **Date**: a date like `2026-10-25`. **Date and time**: like `2026-10-25T10:30:00Z`. - **Files**: one or more https links. - **Linked records**: record IDs separated by commas. - Fields Airtable works out itself (formula, rollup, lookup, count, created time and the like) can't be written ([AVX-3731](https://docs.theavoxai.com/error-codes/avx-3731)). **Filter formulas** are Airtable's own, for example `{Status} = 'Open'` or `AND({City} = 'Pune', {Paid})`. Build one in a formula field in Airtable first if you're unsure ([AVX-3732](https://docs.theavoxai.com/error-codes/avx-3732)). #### Examples - **Save a Flow answer**: when a customer submits a booking Flow, add a record to your `Bookings` table with their name, phone, date (a date field) and party size (a number field). - **Keep one row per customer**: an automation uses **Add or update records**, matching on `Phone`, so a returning customer updates their row instead of adding a new one. - **Look something up in a chat**: an automation runs **Find records** on `Orders` with the formula `{Order number} = '1042'` and replies with the status it finds. - **Live data in a table**: a table reads `Products!Available` (the Available view) with **Read rows**, so a Flow can show what's in stock. #### Limits and paging - Airtable allows 5 requests a second per base. Avox spaces its calls out and, when Airtable says slow down, waits a second and tries again, then two seconds; after that the step stops with [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695). - Airtable's free plan has a monthly limit on API calls and records per base ([AVX-3737](https://docs.theavoxai.com/error-codes/avx-3737)). - Lists come in pages of up to 100 records with a marker for the next page; a marker only works for a while ([AVX-3724](https://docs.theavoxai.com/error-codes/avx-3724)). - Avox doesn't change your bases' structure (tables, fields, views) and doesn't use Airtable's webhooks: it reads Airtable when a step or a page asks. #### Airtable in Avox Open **Airtable**, then **Sheets**: - **Sent by Avox** lists the tables Avox read or wrote, with how often and how many records it added. - **In Airtable** lists every table of every base the token can open. - A table's page shows its fields with their types and options, its views, and its first 20 records. Click a record to open it: every field, its comments, **Open in Airtable**, **Add a comment** and **Delete record** (asks first; needs the Manage connected apps permission). #### When something goes wrong | Code | What to do | | --- | --- | | [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686) | Airtable didn't accept the token: copy it again, or make a new one. | | [AVX-3727](https://docs.theavoxai.com/error-codes/avx-3727) | Add the missing required scope to the token, then connect again. | | [AVX-3728](https://docs.theavoxai.com/error-codes/avx-3728) | Add the base to the token's Access, or fix the base ID. | | [AVX-3729](https://docs.theavoxai.com/error-codes/avx-3729) | Check the table's name, or use its ID. | | [AVX-3730](https://docs.theavoxai.com/error-codes/avx-3730) | Check the field names in the step. | | [AVX-3731](https://docs.theavoxai.com/error-codes/avx-3731) | Fix the value named under the code, or leave calculated fields out. | | [AVX-3732](https://docs.theavoxai.com/error-codes/avx-3732) | Fix the filter formula. | | [AVX-3733](https://docs.theavoxai.com/error-codes/avx-3733) | Send 10 records or fewer at a time. | | [AVX-3734](https://docs.theavoxai.com/error-codes/avx-3734) | Find the record again and use its new ID. | | [AVX-3735](https://docs.theavoxai.com/error-codes/avx-3735) | Use a public https link and a files field. | | [AVX-3736](https://docs.theavoxai.com/error-codes/avx-3736) | Name the base in the step, or set a default base. | | [AVX-3737](https://docs.theavoxai.com/error-codes/avx-3737) | Your Airtable plan hit a limit: upgrade, or wait for it to reset. | | [AVX-3738](https://docs.theavoxai.com/error-codes/avx-3738) | Pick 1 to 3 match fields and fill them in every record. | | [AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690) | A comment action needs its optional scope: add it to the token. | | [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) | Airtable asked Avox to slow down: try again in a minute. | ### Contacts, leads and sheets in Avox - **Contacts** (HubSpot, Zoho CRM) and **Leads** (Zoho CRM): **Sent by Avox** lists the ones Avox saved (added or updated) with the chat they came from; **In** the CRM lists and searches the CRM's own. Open one for its details and **Open in** the CRM. Changes are made in the CRM. Deals, companies and accounts stay in the CRM. - **Sheets** (Google): the spreadsheets Avox read or added rows to, with how often. Open one for its title, tabs and first rows, and **Open sheet link**. Avox can't list every file in your Drive. - **Sheets** (Airtable): the tables Avox used, and every table the token can open. See [Airtable in Avox](#airtable-in-avox). ### Related --- ## Shopify URL: https://docs.theavoxai.com/connections/apps/shopify Section: Connections Connect your Shopify store and your team can see its latest orders and its products inside Avox, next to the chats, without switching tabs. Avox also hears about order changes from Shopify as they happen. This page covers everything from connecting to disconnecting, including what Avox does when Shopify is slow, down or says no. ### What Avox can and cannot do with Shopify Avox can: - show your store's latest orders: number, total, payment and delivery status, items and tracking links; - list your active products with the lowest price and the stock left; - receive order updates from Shopify by itself, with nothing to set up. Avox cannot: - change anything in your store. Avox only reads, so you edit orders and products in Shopify ([AVX-3725](https://docs.theavoxai.com/error-codes/avx-3725)); - see orders older than 60 days. Shopify only lets apps read the last 60 days; - show who placed an order. Shopify keeps customer details from apps like this one; - use Shopify inside an automation or a Flow step. Today, Shopify's data appears on its own pages in Avox. To send a WhatsApp message when an order is placed or ships, see [WhatsApp Messages from Shopify Orders](https://docs.theavoxai.com/integrations/shopify). ### What you need before you start - A Shopify store, and its `.myshopify.com` address: in Shopify admin open **Settings**, then **Domains**. Use that address even if customers see another domain. - A Shopify login that is allowed to install apps on the store. - A plan with room for another connected app, and the **Manage connected apps** permission in **Settings > Switchboard** (Admins have it; an Admin can give it to a Manager). Anyone with **See connected apps** can look at the data afterwards. ### Connect Shopify In the dashboard open **Apps** in the sidebar (under **Connect & Monitor**), then **Shopify**, and click **Connect**. The first screen, **What Avox can do**, lists what Avox will be allowed to do. Click **Continue**. Type the address, like `your-store.myshopify.com`, and click **Continue to Shopify**. If it isn't a valid Shopify address you see [AVX-3712](https://docs.theavoxai.com/error-codes/avx-3712) before anything leaves Avox. Shopify opens its own permission screen. It lists what Avox is asking for: to see your orders and to see your products. Allow both and click **Install**. Finish within 10 minutes of starting, or start again ([AVX-3688](https://docs.theavoxai.com/error-codes/avx-3688)). You come back to Avox with **Shopify is connected** and two buttons: **Open Shopify in Avox** and **See orders**. If the button says **Coming soon**, Avox has not switched on its connection to Shopify yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). Nothing on your side is wrong, and the rest of Avox works as usual. If Shopify says the sign-in was cancelled or you left a permission unticked, you see [AVX-3687](https://docs.theavoxai.com/error-codes/avx-3687) or [AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690): connect again and allow everything. ### What you see in Avox afterwards Shopify has its own menu under **Apps**: **Overview**, **Orders**, **Products** and **Activity** (tabs along the top on a phone). - **Overview** shows the status, your store, who connected it and when, when it last worked, the last problem with its code, and what uses Shopify. **Test connection** checks the access in a second. **Reconnect** and **Disconnect** are next to it. Under **Instant updates** it says there is nothing to set up. - **Orders** lists the newest 20 first, with **Load more** for the next ones. Each shows a status: Paid, Pending, Fulfilled, Refunded, Partly refunded, Cancelled, Closed or Open. Open one for its items, payment, delivery and tracking links, then **Open in Shopify** to change anything. - **Products** lists active products by title with price and stock, and you can search by name. A product whose stock Shopify doesn't track shows no stock count. Open one for its variants and SKUs. - **Activity** has **Usage** (calls a day over 7, 30 or 90 days, success rate, average time, updates received) and the **Log**, with **Calls** and **Webhooks** tabs. Click an entry to see what Avox asked and what came back. The status of the connection is one of: | Status | What it means | | --- | --- | | Connected | Working. | | Needs reconnecting | Shopify no longer accepts Avox's access. Click **Reconnect**. | | Having trouble | Several calls in a row failed on Shopify's side. It recovers by itself. | | Disconnected | Avox deleted its access. The log stays. | ### Using Shopify in Avox Open **Apps**, then **Shopify**, then **Orders** whenever a customer asks about an order. Example (hypothetical): a customer writes in the Inbox asking where their parcel is and gives the order number. A teammate opens **Shopify > Orders**, opens that order, sees it is Fulfilled with a tracking link, and pastes the link into the chat. ### Limits - Orders: the last 60 days, with no customer details. Order pages show up to 50 items. - Lists load 20 at a time. Product pages show up to 50 variants. - Avox allows 120 calls a minute per Switchboard to Shopify. Past that, calls are refused for the rest of the minute ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)). - Each call gives up after 10 seconds, and an answer larger than 1 MB is not read. - Lists you have just seen are reused for 30 seconds. **Refresh** reads Shopify again. ### When Shopify fails or says no 1. **Avox tries again when that is safe.** Every call Avox makes to Shopify only reads, so on a network problem, or when Shopify answers busy or unavailable (HTTP 429, 502, 503 or 504), Avox tries up to two more times, after about 0.4 seconds and then 1.2 seconds. If Shopify says how long to wait, Avox waits, up to 5 seconds. 2. **The status changes only when it should.** - If Shopify says Avox's access is gone (uninstalled, removed, no longer valid), the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). - If 5 calls in a row fail on Shopify's side (not answering, asking Avox to slow down or refusing the request), it becomes **Having trouble** ([AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694), [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695), [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713)). - After that, one good call puts it back to **Connected** by itself. - A bad detail, or a permission that was unticked ([AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690)), does not count against its health. 3. **The call is logged.** The **Log** keeps the time, action, result, number of tries, Shopify's answer and the code. Secrets are removed, personal details masked and links cut down to their address. 4. **Your automations and Flows are not affected.** None of them use Shopify, so a Shopify problem cannot stop one. If your Switchboard is paused, Avox does not call Shopify ([AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711)). 5. **The pages show what Avox saved.** Orders Shopify has told Avox about are kept, so when Shopify cannot be read **Orders** shows them with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and the reason's own code. **Products** has nothing saved, so it shows only the notice until Shopify answers again. If Shopify refuses with a message, you see [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) and the log has Shopify's words. Click **Test connection** or **Refresh** once the cause is fixed. ### Disconnect Shopify Click **Disconnect** on Shopify's **Overview**. Avox first lists what uses Shopify, then asks Shopify to remove its access (it uninstalls Avox's app from your store), deletes the access it saved and keeps the log for your retention period. If Shopify could not be told, you see [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697): remove Avox in Shopify admin's app settings yourself. If you uninstall Avox in Shopify first, Shopify tells Avox and the connection shows Disconnected. ### Common questions Shopify only lets apps read the last 60 days of orders. Avox cannot change this. Older orders are in Shopify. Shopify keeps customer details from apps like this one, so Avox shows the order, its items and its status but not who placed it. Not through this connection, which only reads. To send order messages, use Shopify's own webhooks with the Avox API: see [WhatsApp Messages from Shopify Orders](https://docs.theavoxai.com/integrations/shopify). Use the `.myshopify.com` address from Shopify admin, **Settings**, **Domains**, not your own domain ([AVX-3712](https://docs.theavoxai.com/error-codes/avx-3712)). Shopify stopped accepting Avox's access. Click **Reconnect** and sign in to the same store ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703) if you pick a different one). ### Related --- ## WooCommerce URL: https://docs.theavoxai.com/connections/apps/woocommerce Section: Connections Connect your WooCommerce store and your team can see its latest orders and its products inside Avox, next to the chats. With one extra step in WooCommerce, Avox also hears about new and changed orders the moment they happen. This page covers everything from connecting to disconnecting, including what Avox does when your store is slow, down or says no. ### What Avox can and cannot do with WooCommerce Avox can: - show your store's latest orders, newest first, with status, total, items and refunds; - list your published products with price, stock and SKU, and search them by name; - receive order updates from your store when you add Avox's address as a webhook. Avox cannot: - change anything in your store. The key you give Avox is read only, so you edit orders and products in WooCommerce ([AVX-3725](https://docs.theavoxai.com/error-codes/avx-3725)); - reach a store that is not on the public internet over `https://`; - use WooCommerce inside an automation or a Flow step. Today the data appears on its own pages in Avox. ### What you need before you start - A WordPress site with WooCommerce, at an `https://` address that anyone on the internet can reach. A local or private test site cannot connect, and Avox only accepts the standard port. - A WordPress login that can create a WooCommerce key. - A plan with room for another connected app, and the **Manage connected apps** permission in **Settings > Switchboard** (Admins have it; an Admin can give it to a Manager). ### Connect WooCommerce In WordPress open **WooCommerce**, then **Settings**, **Advanced**, **REST API**, and click **Add key**. Pick a user, set **Permissions** to **Read** (that is enough), and generate it. Copy the **Consumer key** (starts with `ck_`) and the **Consumer secret** (starts with `cs_`) before you leave the page. In Avox open **Apps** in the sidebar (under **Connect & Monitor**), then **WooCommerce**, click **Connect**, read **What Avox can do** and click **Continue**. Fill in **Store address** (like `https://shop.example.com`), **Consumer key** and **Consumer secret**. **Webhook secret** is optional and can be added later. Click **Connect**. Avox asks your store for one product to try the key before saving anything. The check gives up after 10 seconds. If it works you see **WooCommerce is connected**. The keys are stored encrypted and never shown again. A wrong address gives [AVX-3702](https://docs.theavoxai.com/error-codes/avx-3702), a key that doesn't start with `ck_` or `cs_`, or that your store refuses, gives [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686). **Coming soon** does not apply here: WooCommerce connects with your own keys, so it is ready as soon as you are. #### Turn on instant updates Without this, Avox still shows your orders whenever you open the page. With it, new and changed orders arrive by themselves. WooCommerce's **Overview** in Avox has **Setup in WooCommerce**: every step, a link straight to your store's webhooks page, and the name and address ready to copy. 1. In WordPress open **WooCommerce**, **Settings**, **Advanced**, **Webhooks** and click **Add webhook**. 2. Name: the name from Avox. Status: **Active**. Topic: **Order updated**. Delivery URL: the address from Avox. It belongs to your Switchboard only, so keep it private. 3. In Avox click **Add** next to **Webhook secret** and press **Generate**. Copy the secret into WooCommerce's **Secret** box, then click **Save** in Avox. 4. Click **Save webhook** in WooCommerce. Add a second one the same way with the topic **Order created**. 5. Change any order's status in WooCommerce. **Updates arriving and checked** turns green. Until the secret is saved, Avox shows [AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709) and refuses the updates, because it cannot check they came from your store. WooCommerce's first test message when you save the webhook is answered normally. ### What you see in Avox afterwards WooCommerce has its own menu under **Apps**: **Overview**, **Orders**, **Products** and **Activity**. - **Overview**: status, store address, who connected it, when it last worked, the last problem with its code, **Test connection**, **Reconnect**, **Disconnect**, **Setup in WooCommerce** with **Check everything**, and what uses WooCommerce. - **Orders**: the newest 20, with **Load more**. Statuses: Pending (pending, on hold), Paid (processing), Fulfilled (completed), Refunded, Cancelled and Failed. Open an order for its items, payment method, refunds and the customer's name, email and phone, then **Open in WooCommerce**. Lists hide most personal details; an order's own page shows them to people who can see apps. Orders can't be searched here. - **Products**: published products by name, searchable, with price and stock; open one for its SKU, regular and sale price. - **Activity**: **Usage** (7, 30 or 90 days) and the **Log**, with **Calls** and **Webhooks** tabs. Connection statuses are **Connected**, **Needs reconnecting** (your store refuses the key: click **Reconnect** with a new one), **Having trouble** (several calls in a row failed) and **Disconnected**. ### Using WooCommerce in Avox Example (hypothetical): a customer messages about an order. Your team opens **WooCommerce > Orders**, opens the order and sees it is Paid and still processing, then tells the customer in the chat. Once your webhook is on, an order marked completed in WooCommerce shows as Fulfilled in Avox without anyone refreshing. ### Limits - 120 calls a minute per Switchboard to WooCommerce ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) after that). - Each call gives up after 10 seconds. Answers up to 2 MB are read. - Lists load 20 at a time. Lists you just saw are reused for 30 seconds; **Refresh** reads again. - Prices use your store's currency, which Avox reads from your store's settings. If it can't be read, the price may be left out. - If your host blocks the usual sign-in header, Avox tries WooCommerce's other way of sending the key, over `https://`, by itself. ### When your store fails or says no Your store runs on your own hosting, so slowness and security tools are the usual causes. 1. **Avox tries again when that is safe.** Every call to WooCommerce only reads, so on a network problem, or when your store answers busy or unavailable (HTTP 429, 502, 503 or 504), Avox tries up to two more times, after about 0.4 and then 1.2 seconds, and waits up to 5 seconds if your store says how long. 2. **The status changes only when it should.** If your store refuses the key (deleted, revoked or wrong), the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692); the log shows [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686)). If 5 calls in a row fail on your store's side (not answering, busy or refusing the request: [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694), [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695), [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713)), it becomes **Having trouble**. One good call after that puts it back to **Connected** by itself. A wrong detail, like an address Avox may not call ([AVX-3702](https://docs.theavoxai.com/error-codes/avx-3702)) or an order that doesn't exist, does not count against its health. 3. **The call is logged**, with time, action, result, tries and the code. Secrets are removed and personal details masked. 4. **Your automations and Flows are not affected.** None of them use WooCommerce. If your Switchboard is paused, Avox does not call your store ([AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711)). 5. **The pages show what Avox saved.** Orders your webhook has told Avox about are kept, so when your store cannot be read **Orders** shows them with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and the reason's code. **Products** has nothing saved and shows only the notice. If your store refuses with a message, you see [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) and the log has its words. Updates that fail the check are counted under **Setup in WooCommerce**, with the reason on **Updates arriving and checked**; this never changes the status. Fix the secret and the count starts over. ### Disconnect WooCommerce Click **Disconnect** on the **Overview**. Avox lists what uses WooCommerce, deletes the keys it saved and keeps the log for your retention period. Avox can't tell WooCommerce itself, so to be sure the key can't be used again, revoke it under **WooCommerce > Settings > Advanced > REST API** and delete Avox's webhook under **Webhooks**. ### Common questions The address must start with `https://`, be reachable from the internet, use the standard port, and have no password in it ([AVX-3702](https://docs.theavoxai.com/error-codes/avx-3702)). A site on a private network can't be reached. No. Orders and products always load when you open the pages. The webhook only makes new and changed orders arrive without waiting. Your store no longer accepts the key. Create a new read key and click **Reconnect**, then paste it. Leave **Webhook secret** empty to keep the one saved. Avox reuses lists for 30 seconds. Click **Refresh**, or turn on instant updates. ### Related --- ## Razorpay URL: https://docs.theavoxai.com/connections/apps/razorpay Section: Connections Connect Razorpay and Avox can send a payment link in a WhatsApp chat, check whether it was paid, refund a payment and hear about payments the moment they happen. Customers pay with whatever your Razorpay account offers, such as UPI, cards and netbanking. The money goes straight to your own Razorpay account; Avox never holds it. This page covers everything from connecting to disconnecting, including what Avox does when Razorpay is slow, down or says no. ### What Avox can and cannot do with Razorpay Avox can: - create a Razorpay Payment Link from an automation and send it in the chat, with part payments or UPI only if you like; - check a payment link or a payment, and show every payment on your account; - refund a paid payment, all of it or part of it, and cancel a link that is still unpaid; - update a payment's status by itself when Razorpay sends a paid, partly paid, expired, cancelled, refund or dispute update; - start an automation when a payment is received, fails, is refunded or is disputed. Avox cannot: - hold or move your money, or change your Razorpay settings; - send Razorpay's own SMS or email reminders. Those are switched off so the link only comes in the chat; - refund more than what is left on a payment ([AVX-3719](https://docs.theavoxai.com/error-codes/avx-3719)), or refund a payment that was not paid ([AVX-3720](https://docs.theavoxai.com/error-codes/avx-3720)). ### What you need before you start - A Razorpay account and someone in it who can create an API key. A live key takes real payments; a test key is for trying things out. - A plan with room for another connected app, and the **Manage connected apps** permission in **Settings > Switchboard** (Admins have it; an Admin can give it to a Manager). ### Connect Razorpay In the Razorpay Dashboard open **Account & Settings**, then **API keys**, and generate a key. Copy the **Key ID** (it starts with `rzp_live_` or `rzp_test_`) and the **Key secret**. Razorpay shows the secret once, so copy it before you leave. In Avox open **Apps** in the sidebar (under **Connect & Monitor**), then **Razorpay**, click **Connect**, read **What Avox can do** and click **Continue**. Fill in **Key ID** and **Key secret**, and click **Connect**. **Webhook secret** is optional here and can be added later. Avox tries the keys with Razorpay before saving them. The check gives up after 10 seconds. If Razorpay refuses them you see [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686) and nothing is saved. Otherwise you see **Razorpay is connected**, and the keys are stored encrypted and never shown again, not even to you. #### Add Avox's webhook Razorpay's **Overview** in Avox has **Setup in Razorpay**: a checklist with every step, links straight to the right Razorpay page and everything ready to copy. 1. In Razorpay open **Account & Settings**, **Webhooks** and click **Add New Webhook**. 2. Copy the address from the checklist and paste it as the **Webhook URL**. Keep it private: it belongs to your Switchboard only. 3. In Avox click **Add** next to **Webhook secret** and press **Generate**. Copy the secret, paste it in Razorpay's **Secret** box, then click **Save** in Avox. Once saved, Avox won't show it again. 4. Under **Active Events** in Razorpay, tick each event below (**Copy all** copies the list) and click **Create Webhook**. 5. Send yourself a payment link and pay it (in Test Mode with a test card or UPI). **Updates arriving and checked** turns green. Events: `payment_link.paid`, `payment_link.partially_paid`, `payment_link.expired`, `payment_link.cancelled`, `payment.captured`, `refund.processed`, `refund.failed`, `payment.dispute.created`, `payment.dispute.won`, `payment.dispute.lost` and `payment.dispute.closed`. Without the secret, Avox shows [AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709) and refuses the updates, because it cannot check they came from Razorpay. Every update is signed by Razorpay with that secret, and one that arrives twice is kept once. Razorpay doesn't let Avox look at your webhooks, so the checklist knows the webhook works once the first good update arrives. See [The setup checklist](https://docs.theavoxai.com/connections/apps/payments#the-setup-checklist) for every line and what a problem means. ### What you see in Avox afterwards Razorpay has its own menu under **Apps**: **Overview**, **Payments** and **Activity** (tabs along the top on a phone). - **Overview**: the status, your account and its mode (Live or Test), who connected it, when it last worked, the last problem with Razorpay's own words and its code, **Setup in Razorpay** with **Check everything**, and what uses Razorpay. **Test connection**, **Reconnect** and **Disconnect** are here too. - **Payments** has two lists. **Sent by Avox** is every payment link Avox sent, with the automation that sent it and the chat it was for. **In Razorpay** is every payment on your account, 20 at a time with **Load more**. Statuses are Pending, Partly paid, Paid, Partly refunded, Disputed, Refunded, Failed, Expired and Cancelled (see [Payment statuses](https://docs.theavoxai.com/connections/apps/payments#payment-statuses)). - Open a payment for its details, then **Copy payment link**, **Open payment link**, **Open in Razorpay**, **Check status now**, **Refund** (you type the amount again to confirm, [AVX-3723](https://docs.theavoxai.com/error-codes/avx-3723)) and **Cancel link** while it is unpaid. Refund, cancel and check need the **Manage connected apps** permission. - **Activity**: **Usage** (calls a day over 7, 30 or 90 days, success rate, average time) and the **Log** with **Calls** and **Webhooks** tabs. Click an entry for what Avox asked and what came back. The connection status is **Connected**, **Needs reconnecting**, **Having trouble** or **Disconnected**. **Test connection** asks Razorpay for one payment and says whether the key is accepted and in which mode. ### Using Razorpay in Avox Payment links come from an automation. In the builder add the step **Use a connected app**, choose **Create a payment link**, pick Razorpay (or another payments app you connected) and fill in: | Detail | Notes | | --- | --- | | Amount | Required. Type it the way you write it, like `499` or `499.50`, or a value like `{{item.price}}`. | | Currency | Required. 3 letters, like `INR`. | | What it's for | Required. Up to 200 characters; the customer sees it. | | Your reference | Optional. Up to 40 letters, numbers, `-` and `_`. | | Customer name, email, phone | Optional. | | Link works for | Optional, in minutes: from 30 minutes to 30 days. | | Allow part payments | Optional. The customer can pay in parts; the link shows as Partly paid until the rest is paid. | | Least first payment | Optional, with part payments on. The first part must be at least this much, and less than the full amount. | | UPI only | Optional, INR only. The link opens UPI apps straight away. | Razorpay takes INR from ₹1.00, and amounts in three-decimal currencies must end in 0. The step's values, like `{{payment.url}}`, can go in the next message. **Check a payment** and **Cancel a payment link** work with a link the step made, and the triggers **Payment received**, **Payment failed or ended**, **Payment refunded** and **Payment disputed** start an automation when a payment changes (see [Automation triggers](https://docs.theavoxai.com/automation/triggers#payment-received-failed-refunded-or-disputed)). An automation can also start when a customer submits a Flow, and its steps can use the customer's answers, so a Flow answer can decide the amount or the description. The Avox library has a premade automation, **Payment link after a booking**, that does this with your tables. Example (hypothetical): a customer books a service. An automation looks up the service's price in your price table, creates a payment link for it with a reference taken from the booking, and sends a template message containing `{{payment.url}}`. When the customer pays, Razorpay tells Avox and the payment shows as Paid. ### Limits - 120 calls a minute per Switchboard to Razorpay ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) after that). - Each call gives up after 10 seconds, and an answer larger than 1 MB is not read. - Amounts must be above zero. Lists load 20 at a time and are reused for 30 seconds; **Refresh** reads again. ### When Razorpay fails or says no 1. **Avox tries again only when that is safe.** Looking things up is repeated: on a network problem, or when Razorpay answers busy or unavailable (HTTP 429, 502, 503 or 504), Avox tries up to two more times, after about 0.4 and then 1.2 seconds, and waits up to 5 seconds if Razorpay says how long. Creating a payment link, refunding and cancelling are never repeated by Avox, so nothing is made or paid out twice. When an automation step runs again, its link carries the same reference (Avox makes one when you don't give one), and Razorpay never makes two links with one reference, so the step gets the first link back. If one fails, check the payment in Razorpay before trying again. 2. **The status changes only when it should.** If Razorpay refuses the key (regenerated, deleted or wrong), the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692); the log shows [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686)). If 5 calls in a row fail on Razorpay's side (not answering, busy or refusing the request: [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694), [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695), [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713)), it becomes **Having trouble**. One good call after that returns it to **Connected** by itself. A wrong detail, such as an amount Razorpay does not accept, does not count against its health, and neither does an unticked permission. 3. **The call is logged** with the time, action, result, tries and code. Secrets are removed, customer details masked and links cut down to their address, so the log never holds the data itself. 4. **Automations and Flows keep going.** A payment step either **Stops the run** or **Carries on with the next step**, whichever you chose under **If it can't be done** ([AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605)). For a payment link, stopping is usually safer, so the customer never gets a message without a link. While Razorpay **Needs reconnecting**, the step does not run and nothing is sent to Razorpay; the run log shows [AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596). If your Switchboard is paused, Avox does not call Razorpay ([AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711)) and automations do not start ([AVX-3611](https://docs.theavoxai.com/error-codes/avx-3611)). Your Inbox and automations without a payment step are not affected. 5. **The pages show what Avox saved.** If Razorpay cannot be read, **Payments** shows the links Avox sent with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and the reason's own code, and refund and cancel wait. Click **Refresh** once it is back. ### Disconnect Razorpay Click **Disconnect** on the **Overview**. Avox lists what uses Razorpay (those steps stop until you connect again, [AVX-3708](https://docs.theavoxai.com/error-codes/avx-3708)), deletes the keys it saved and keeps the log for your retention period. Avox does not cancel links you already sent. To be sure the keys cannot be used again, regenerate the key in Razorpay and delete Avox's webhook there. ### Common questions A live key takes real payments. A test key is for trying the steps. **Reconnect** lets you swap one for the other; Avox treats a new key as the same account. Look at **Setup in Razorpay** on the **Overview**: the webhook must use Avox's address, every event listed must be ticked and the secret must match. A line that needs a fix says what is wrong. Meanwhile, open the payment and click **Check status now**. Yes. Click **Refund**, type the amount, and type it again to confirm. You can refund up to what is left. The payment shows as **Disputed**, and people who can see apps get an alert in the bell. Answer the dispute in Razorpay. When Razorpay tells Avox you won, the payment goes back to **Paid**; when you lost, it becomes **Refunded**. Avox switches Razorpay's messages off when it makes the link, because the link is sent in the chat. Click **Reconnect** and paste the new Key ID and Key secret. Leave **Webhook secret** empty to keep the one saved. ### Related --- ## Stripe URL: https://docs.theavoxai.com/connections/apps/stripe Section: Connections Connect Stripe and an Avox automation can make a Stripe payment page for an amount and hand its link to the next step, so it goes in the chat. From the payment's page you can check its status, refund it or cancel the link. Money goes straight to your own Stripe account; Avox never holds it. ### What Avox can and cannot do **Can:** create a payment page (a Stripe Checkout page) for one item; check whether it was paid, expired, refunded or disputed; refund all or part of a paid payment; cancel an unpaid link; add its own webhook to your Stripe account; hear from Stripe the moment a page changes; and start an automation when a payment is received, fails, is refunded or is disputed. **Cannot:** - Show every payment on your Stripe account. The **In Stripe** list shows payment pages only. - Pass the customer's name or phone number to Stripe. Only the email is sent. - Take part payments or make a UPI-only page. A step with **Allow part payments** or **UPI only** on is refused with "Stripe can't take part payments on one link": turn the option off, or use Razorpay or PayPal. ### What you need before you start - A Stripe account and a **restricted key** with **Write** on Checkout Sessions, Refunds and Webhook Endpoints, and **Read** on PaymentIntents and Charges. A secret key also works, but a restricted key can do less if it is ever leaked. A publishable key (`pk_`) is refused. - A plan with room for another app ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), or [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706) without a plan). - The **Manage connected apps** permission in your Switchboard to connect, test or disconnect. **See connected apps** lets people look at the rest. A key starting with `rk_test_` or `sk_test_` connects in **Test mode**; `rk_live_` or `sk_live_` is live. A Switchboard has one Stripe connection, so to move from test to live, use **Reconnect** with the live key. ### Connect Stripe Open **Apps** in the sidebar, then **Stripe**, and click **Connect**. Read what Avox will be allowed to do and click **Continue**. The page shows **Setup in Stripe**, with links straight to Stripe's API keys page (live and test) and the key name ready to copy. Open **Developers**, **API keys** (switch Test mode on first to try it without real money) and click **Create restricted key**. Paste the key name from Avox. Set **Write** on Checkout Sessions, Refunds and Webhook Endpoints (that last one lets Avox add its webhook for you) and **Read** on PaymentIntents and Charges. Click **Create key** and copy it. Paste it into **Restricted key**, leave **Webhook signing secret** empty for now and click **Connect**. Avox tries the key with Stripe, stores it encrypted and never shows it again, not even to you. A green message says Stripe is connected, with your Stripe account's name (or **Live mode** or **Test mode**). Click **Open Stripe in Avox**. Stripe uses your own key, so it never shows **Coming soon**. ### What you see in Avox afterwards Open **Apps**, then **Stripe**. The menu (tabs on a phone) has **Overview**, **Payments** and **Activity**. - **Overview**: the status badge (**Connected**, **Needs reconnecting** or **Having trouble**), who connected it, when it last worked, the last problem in Stripe's own words with its code, **Setup in Stripe** with **Check everything**, and **Test connection**, **Reconnect** and **Disconnect**. A good test says Stripe accepted the key and shows the mode. - **Payments**: **Sent by Avox** is every link Avox made; **In Stripe** is Stripe's payment pages, 20 at a time with **Load more**. - **Activity**: usage by day and the log, with a **Calls** tab and a **Webhooks** tab. #### Set up the webhook On Stripe's **Overview**, under **Setup in Stripe**, press **Set up the webhook for me**. Avox adds its endpoint to your Stripe account with the key you saved, ticks every event, and saves the signing secret itself. The checklist turns green. Press it again any time (**Set up the webhook again**) to put back an event or an endpoint that was removed. To do it by hand instead, click **Add the webhook by hand instead**: Open **Developers**, **Webhooks** and click **Add endpoint** (Add destination). Paste the address from Avox as the Endpoint URL. Keep it private: it belongs to your Switchboard only. Select every event listed in Avox (**Copy all** copies them), then click **Add endpoint**. On the endpoint's page click **Reveal** under Signing secret and copy it (it starts with `whsec_`). In Avox, next to **Webhook signing secret**, click **Add**, paste it and click **Save**. Send yourself a payment link and pay it (in test mode with card 4242 4242 4242 4242). Events: `checkout.session.completed`, `checkout.session.async_payment_succeeded`, `checkout.session.async_payment_failed`, `checkout.session.expired`, `charge.refunded`, `charge.dispute.created` and `charge.dispute.closed`. If Avox can't add the endpoint (the key has no Write on Webhook Endpoints, for example), you see [AVX-3740](https://docs.theavoxai.com/error-codes/avx-3740) and the steps by hand appear. **Check everything** asks Stripe whether the endpoint is there with every event, and names any that are missing. Avox accepts an update only with a valid signature from the last 5 minutes. An update from test mode reaching a live connection (or the other way round) is ignored. Without the secret Avox shows a reminder ([AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709)) and refuses every update. Each good update appears once under **Webhooks**, even if Stripe sends it twice. See [The setup checklist](https://docs.theavoxai.com/connections/apps/payments#the-setup-checklist) for every line and what a problem means. ### Using Stripe in Avox **Create a payment link.** In the automation builder add **Use a connected app**, set **What to do** to **Create a payment link** and **With** to Stripe. Fill in **Amount** (normal units, like `49.50`), **Currency** (like `USD`), **What it's for** (up to 200 characters, the customer sees it), and optionally **Your reference** (up to 40 letters, numbers, `-` and `_`), **Customer email** and **Link works for (minutes)**. A Stripe page stays open from 30 minutes to 24 hours; a longer time is cut to 24 hours, and no time means 24 hours. The step gives later steps `{{payment.url}}`, `{{payment.id}}` and `{{payment.status}}`. Under **If it can't be done**, choose **Stop the run** or **Carry on with the next step**. App steps cost no credits. Answers from a submitted Flow reach the step as `{{flow.}}` when the automation starts with **Flow submitted** (see [Automations with Tables and Flows](https://docs.theavoxai.com/automation/tables)). **Example only, made up for illustration:** an automation starts when a customer submits a Flow about a booking. Step 1 creates a payment link with Stripe, using the price and currency you chose and `{{flow.email}}` as the customer email. Step 2 is a **Text reply** saying "Here is your payment link" followed by `{{payment.url}}`. **Check, refund and cancel.** Open **Payments**, then a payment. Buttons: **Copy payment link**, **Open payment link**, **Open in Stripe**, **Check status now**, **Refund** and **Cancel link** (the last three need **Manage connected apps**). Statuses are **Pending**, **Paid**, **Partly refunded**, **Disputed**, **Refunded**, **Failed**, **Expired** and **Cancelled** (see [Payment statuses](https://docs.theavoxai.com/connections/apps/payments#payment-statuses)). A payment whose customer opened a dispute shows **Disputed**; when Stripe closes it, the payment goes back to **Paid** if you won, or **Refunded** if you lost. - **Refund** appears for a paid or partly refunded payment, for at most what is left, which is filled in for you. Add a reason if you like (Stripe keeps it as a note on the refund), type the amount again to confirm ([AVX-3723](https://docs.theavoxai.com/error-codes/avx-3723) if it differs) and click **Refund**. Stripe may take a few days to return the money. A refund above what is left gives [AVX-3719](https://docs.theavoxai.com/error-codes/avx-3719), and an unpaid payment (or one still processing) [AVX-3720](https://docs.theavoxai.com/error-codes/avx-3720). Refunding part of a payment needs **Read** on PaymentIntents on the key, so Avox can learn its currency; without it, refund it all. - **Cancel link** appears while the page is unpaid. The page stops working, and Stripe treats it as expired, so it may later show **Expired**. A paid or expired page gives [AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721). **Nothing is taken twice.** Every page and every refund is sent with a repeat key, so when Avox asks Stripe again after a lost answer, Stripe gives the first answer back instead of making a second page or refund. An automation step that runs again (after a crash, say) gets the same page back too. A reference of yours used again for a different payment within 24 hours is refused with "Use a new reference". Avox reads the payment from Stripe before a refund, so only what is really left can be refunded. ### Limits - **120 calls a minute** to Stripe from one Switchboard. Over that, calls are refused for the rest of the minute ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)) and nothing is sent to Stripe. - Each try waits up to 10 seconds; an answer over 1 MB is refused. - Descriptions stop at 200 characters and references at 40. Lists show 20 at a time. ### When Stripe fails or says no Stripe can be slow, busy or refuse a request. The rest of your account keeps working. - **Retries.** Reads, creating a page and refunds are tried up to 2 more times (after about 0.4 and 1.2 seconds) when Stripe is busy or unreachable, always with the same repeat key; if Stripe says how long to wait, Avox waits up to 5 seconds. A cancel is never repeated. - **Status.** If Stripe stops accepting the key (deleted, rolled or wrong), the status becomes **Needs reconnecting** at once: the first refused call is logged as [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686), then calls are refused with [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692). Five failed calls in a row make it **Having trouble**; one good call puts it back to **Connected** by itself. A bad detail Avox catches first, like a missing field, does not count against it. - **Log.** Every call is written to **Activity** with its result, number of tries and Stripe's own reason. Personal details are hidden and keys are never kept. - **Automations.** The step stops the run or carries on, as you chose. While the app **Needs reconnecting** or your Switchboard is paused ([AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711)), the step does not run ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) in the run). A refusal from Stripe is [AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605). - **Pages.** If Stripe cannot be read, **Payments** shows what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and a second code that says why, such as [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) (not answering) or [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) (refused). Click **Refresh** when it is back. **Before you try a refund or cancel again,** click **Open in Stripe** and look at the payment's refunds. If the refund is already listed, do not repeat it; then click **Check status now** in Avox. A refund that timed out may still have gone through at Stripe. ### Disconnecting On the **Overview** click **Disconnect**. Avox first shows what uses Stripe: those steps stop until you connect again ([AVX-3708](https://docs.theavoxai.com/error-codes/avx-3708)). Avox deletes the key it saved and keeps the log for your retention period. In Stripe, also delete the restricted key and Avox's webhook endpoint. Payments already made are not affected. ### Common questions [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686): copy the key again, whole and without spaces, and check it has the permissions listed in **Setup in Stripe**. If the log entry names a missing permission, add it to the key in Stripe. Press **Check everything** on the Overview: it says whether the endpoint is there with every event, and whether the last update failed the check and why. **Set up the webhook again** fixes a missing endpoint or event. Click **Check status now** on the payment to ask Stripe directly. Yes. A test key connects in **Test mode**. When you are ready, click **Reconnect** and paste the live key. ### Related --- ## PayPal URL: https://docs.theavoxai.com/connections/apps/paypal Section: Connections Connect PayPal and an Avox automation can make a PayPal payment request for an amount and hand its link to the next step, so it goes in the chat. From the payment's page you can check its status, refund it or cancel the request. Money goes straight to your own PayPal account; Avox never holds it. ### What Avox can and cannot do **Can:** create a PayPal payment request (a PayPal invoice) for one item, with part payments if you like; check whether it was paid, cancelled, refunded or disputed; refund all or part of a paid request; cancel an unpaid one; add its own webhook to your PayPal app; hear from PayPal the moment a request changes; and start an automation when a payment is received, fails, is refunded or is disputed. **Cannot:** - Show every PayPal payment. The **In PayPal** list shows invoices only. - Set how long a request stays open. **Link works for** has no effect on PayPal: a request stays open until it is paid or cancelled. - Refund a request you marked as paid by hand in PayPal (cash, bank), because no PayPal payment sits behind it. - Make a UPI-only request. A step with **UPI only** on is refused: turn it off for PayPal. ### What you need before you start - A PayPal Business account and an app in the PayPal Developer Dashboard with **Invoicing** ticked under its Features. - The app's **Client ID** and **Secret**, for **Live** or for **Sandbox** if you want to test first. - A plan with room for another app ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), or [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706) without a plan). - The **Manage connected apps** permission in your Switchboard to connect, test or disconnect. **See connected apps** lets people look at the rest. ### Connect PayPal Open **Apps** in the sidebar, then **PayPal**, and click **Connect**. Read what Avox will be allowed to do and click **Continue**. The page shows **Setup in PayPal**, with links straight to Apps & Credentials (live and sandbox) and the app name ready to copy. Open **Apps & Credentials** and pick **Live** (or **Sandbox** to test) at the top. Click **Create App**, paste the app name from Avox, keep the type **Merchant** and click **Create App**. Under **Features**, keep **Invoicing** ticked: Avox's payment requests are PayPal invoices. On the app's page copy the **Client ID**, click **Show** under Secret and copy it too. Paste the **Client ID** and **Secret** and pick the matching **Environment**: **Live** or **Sandbox (testing)**. Leave **Webhook ID** empty for now and click **Connect**. Avox signs in to PayPal with them, stores them encrypted and never shows the secret again, not even to you. A green message says PayPal is connected. PayPal uses your own credentials, so it never shows **Coming soon**. To move from sandbox to live, use **Reconnect** with the live details. ### What you see in Avox afterwards Open **Apps**, then **PayPal**. The menu has **Overview**, **Payments** and **Activity**. - **Overview**: the status badge (**Connected**, **Needs reconnecting** or **Having trouble**), who connected it, when it last worked, the last problem in PayPal's own words with its code, **Setup in PayPal** with **Check everything**, and **Test connection**, **Reconnect** and **Disconnect**. A good test says PayPal accepted the app and invoicing works. If the app can't use invoicing, Avox says so: "The PayPal app can't use Invoicing. Tick Invoicing under the app's Features at PayPal". - **Payments**: **Sent by Avox** is every request Avox made; **In PayPal** is your invoices, 20 at a time with **Load more**. - **Activity**: usage by day and the log, with a **Calls** tab and a **Webhooks** tab. #### Set up the webhook On PayPal's **Overview**, under **Setup in PayPal**, press **Set up the webhook for me**. Avox adds its webhook to your PayPal app with the Client ID and Secret you saved, ticks every event, and saves the **Webhook ID** itself. The checklist turns green. Press it again any time (**Set up the webhook again**) to put back an event that was removed. A PayPal app holds at most 10 webhooks. If yours is full, Avox says so: delete one you don't use, then try again. If Avox can't add it for another reason you see [AVX-3740](https://docs.theavoxai.com/error-codes/avx-3740) and the steps by hand appear. To do it by hand anyway, click **Add the webhook by hand instead**: On the app's page, scroll to **Webhooks** and click **Add Webhook**. Paste the address from Avox as Webhook URL (keep it private: it belongs to your Switchboard only), tick each event listed in Avox (**Copy all** copies them) and click **Save**. PayPal shows a **Webhook ID** next to the address. In Avox, next to **Webhook ID**, click **Add**, paste it and click **Save**. Send yourself a payment request and pay it (in Sandbox with a test buyer). Events: `INVOICING.INVOICE.PAID`, `INVOICING.INVOICE.CANCELLED`, `INVOICING.INVOICE.REFUNDED`, `PAYMENT.CAPTURE.REFUNDED`, `PAYMENT.CAPTURE.REVERSED`, `CUSTOMER.DISPUTE.CREATED` and `CUSTOMER.DISPUTE.RESOLVED`. Avox checks every update with PayPal using that ID. Without it Avox shows a reminder ([AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709)) and refuses every update. Paid, cancelled, refund and dispute updates change the status as they arrive. See [The setup checklist](https://docs.theavoxai.com/connections/apps/payments#the-setup-checklist) for every line and what a problem means. ### Using PayPal in Avox **Create a payment request.** In the automation builder add **Use a connected app**, set **What to do** to **Create a payment link** and **With** to PayPal. Fill in **Amount** (normal units, like `49.50`), **Currency** (like `USD`), **What it's for** (up to 200 characters, used as the invoice note and item name), and optionally **Your reference** (up to 40 letters, numbers, `-` and `_`), **Customer name** and **Customer email**. With an email, PayPal also emails the request; without one, Avox only gives you the link. **Allow part payments** lets the customer pay in parts (the request shows as **Partly paid** until the rest is paid), with **Least first payment** as the smallest first part. PayPal takes its own currencies, like USD, EUR and GBP; HUF, JPY and TWD in whole amounts only. The step gives `{{payment.url}}`, `{{payment.id}}` and `{{payment.status}}`. Under **If it can't be done**, choose **Stop the run** or **Carry on with the next step**. App steps cost no credits. Answers from a submitted Flow reach the step as `{{flow.}}` when the automation starts with **Flow submitted** (see [Automations with Tables and Flows](https://docs.theavoxai.com/automation/tables)). **Example only, made up for illustration:** an automation starts when a customer submits a Flow about a booking. Step 1 creates a payment link with PayPal, using the price and currency you chose and `{{flow.email}}` as the customer email. Step 2 is a **Text reply** saying "Here is your payment request" followed by `{{payment.url}}`. **Check, refund and cancel.** Open **Payments**, then a payment. Buttons: **Copy payment link**, **Open payment link**, **Open in PayPal**, **Check status now**, **Refund** and **Cancel link** (the last three need **Manage connected apps**). Statuses are **Pending**, **Partly paid**, **Paid**, **Partly refunded**, **Disputed**, **Refunded** and **Cancelled** (see [Payment statuses](https://docs.theavoxai.com/connections/apps/payments#payment-statuses)). When a customer opens a dispute the payment shows **Disputed**; when PayPal resolves it, it goes back to **Paid** if you won, or **Refunded** if you lost. A reversed payment shows **Refunded**. - **Refund** appears for a paid or partly refunded request, for at most what is left, which is filled in for you. Add a reason if you like (PayPal sends it to the payer as a note), type the amount again to confirm ([AVX-3723](https://docs.theavoxai.com/error-codes/avx-3723) if it differs) and click **Refund**. PayPal may take a few days to return the money. A refund above what is left gives [AVX-3719](https://docs.theavoxai.com/error-codes/avx-3719), and an unpaid request [AVX-3720](https://docs.theavoxai.com/error-codes/avx-3720). - **Cancel link** appears while the request is unpaid. It cancels the request in PayPal without emailing the customer. A paid or cancelled request gives [AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721). **Nothing is taken twice.** Every try at making, sending or refunding a request carries the same repeat key, so PayPal gives the first answer back instead of making a second request or refund. An automation step that runs again (after a crash, say) gets the same request back too. Avox reads the request from PayPal before a refund, so only what is really left can be refunded. ### Limits - **120 calls a minute** to PayPal from one Switchboard. Over that, calls are refused for the rest of the minute ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)) and nothing is sent to PayPal. - Each try waits up to 10 seconds; an answer over 1 MB is refused. - Descriptions stop at 200 characters, references at 40. ### When PayPal fails or says no PayPal can be slow, busy or refuse a request. The rest of your account keeps working. - **Retries.** Reads, signing in to PayPal, making and sending the request and refunds are tried up to 2 more times (after about 0.4 and 1.2 seconds) when PayPal is busy or unreachable, always with the same repeat key; if PayPal says how long to wait, Avox waits up to 5 seconds. A cancel is never repeated. - **Status.** If PayPal stops accepting the Client ID and Secret (deleted, rotated or the wrong environment), the status becomes **Needs reconnecting** at once: the first refused call is logged as [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686), then calls are refused with [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692). Five failed calls in a row make it **Having trouble**; one good call puts it back to **Connected** by itself. A bad detail Avox catches first does not count against it. - **Log.** Every call is written to **Activity** with its result, tries and PayPal's own reason. Personal details are hidden and credentials are never kept. - **Automations.** The step stops the run or carries on, as you chose. While the app **Needs reconnecting** or your Switchboard is paused ([AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711)), the step does not run ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) in the run). A refusal from PayPal is [AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605). - **Pages.** If PayPal cannot be read, **Payments** shows what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and a second code that says why, such as [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) (not answering) or [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) (refused). **Before you try again,** click **Open in PayPal** and look at the invoice. For a refund, if it is already listed, do not repeat it; then click **Check status now** in Avox. A refund that timed out may still have gone through. If a step failed while sending, look in the **In PayPal** list: Avox makes the request first and sends it second, so a draft invoice can be left. Delete or send it in PayPal. ### Disconnecting On the **Overview** click **Disconnect**. Avox first shows what uses PayPal: those steps stop until you connect again ([AVX-3708](https://docs.theavoxai.com/error-codes/avx-3708)). Avox deletes the credentials it saved and keeps the log. In PayPal you can also delete the app or Avox's webhook. Avox does not cancel requests it already sent, so cancel any you want closed first. ### Common questions Yes. Use the **Sandbox** Client ID and Secret, pick **Sandbox (testing)**, and add the webhook in the sandbox app. When you are ready, click **Reconnect** with your live details. [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686): copy the Client ID and Secret again, whole and without spaces, and check the **Environment** matches where you copied them. Press **Check everything** on the Overview: it says whether the webhook is there with every event, and whether the last update failed the check and why. **Set up the webhook again** fixes a missing event. Click **Check status now** on the payment to ask PayPal directly. ### Related --- ## Google URL: https://docs.theavoxai.com/connections/apps/google Section: Connections One Google connection lets Avox put meetings and blocked time in your Google Calendar, create Google Meet links, and read and add rows in Google Sheets. Sheets needs no second sign-in. ### What Avox can and cannot do with Google Avox can create a meeting (an event in your main calendar with a Meet link, and Google sends the guests its own invitation), reschedule or cancel it from Avox until it starts, block time with a busy event, read rows from a sheet and add a row to it. Avox cannot: - Use any calendar except your main one. - Check your free and busy times before it books. No automation step or screen uses them, so a meeting is created even if the time is taken. - Remove blocked time from an automation. Remove it under **Meetings** in Avox, or in Google. - Change or delete a row already in a sheet. It only adds rows. - Browse your Google Drive. **Sheets** lists only spreadsheets Avox has read or added to. ### What you need - A Google account that can open your calendar and sheets, with edit access to any sheet you add rows to. - Room in your plan for another app. Google counts as one app, however many parts you use. - The **Manage connected apps** permission (**Settings**, then **Switchboard**). Admins have it, and an Admin can give it to a Manager. ### Connect Google In the sidebar open **Apps**, then **Google**, and click **Connect**. Read what Avox will be allowed to do, click **Continue**, then **Continue to Google**. On Google's page, pick the account whose calendar and sheets you want to use. Leave every permission ticked (see the table), then allow. You come back to Avox, which shows Google as connected, with the account's email. | Permission Avox asks for | What it allows | | --- | --- | | Create and change calendar events | Meetings and blocked time | | See when you're free or busy | Reading free and busy times | | Read and add rows in Google Sheets | Reading and adding sheet rows | If you untick one, Avox still connects and the rest works. **Overview** lists what is missing, and a step that needs it is refused with [AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690) until you click **Reconnect** and tick it. **Coming soon** means Avox's Google sign-in is not switched on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). A greyed-out **Connect** can also mean your role lacks the permission ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)), the Switchboard has no plan ([AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)), or your plan's apps are all connected ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683)). ### What you see in Avox afterwards Open **Apps**, then **Google**. The menu (tabs along the top on a phone) has **Overview**, **Meetings**, **Sheets** and **Activity**. - **Overview**: the status (**Connected**, **Needs reconnecting** or **Having trouble**), the account, when it last worked, the last problem with its code, permissions not allowed, and **Used for** (what uses Google). **Test connection** asks Google whether it still accepts Avox's access. It does not check each permission. - **Meetings**: **Sent by Avox** lists meetings and blocked time Avox made. **In Google** lists your main calendar from an hour ago onward. Open one for its time, guests, Meet link and notes. **Reschedule** and **Cancel meeting** work until it starts. - **Sheets**: spreadsheets Avox has used, with tabs and first rows. Read only. - **Activity**: **Usage** and **Log** of every call Avox made. ### Using Google in Avox In an automation add **Use a connected app**, pick **What to do**, then pick Google under **With**. | Step | What it does | Values it gives back | | --- | --- | --- | | Create a video meeting | A Meet meeting in your main calendar, up to 20 guests | `{{meeting.join_url}}`, `{{meeting.id}}` | | Block time in a calendar | A busy event | `{{calendar.event_id}}` | | Find a row in a sheet | Finds the first matching row | `{{sheet.found}}`, `{{sheet.count}}`, `{{sheet.list}}`, and each column by name, like `{{sheet.first_name}}` | | Add a row to a sheet | Adds one row after the last filled row | `{{sheet_row.range}}`, `{{sheet_row.rows}}` | You can rename the values in the step. See [Tables and Flows](https://docs.theavoxai.com/automation/tables) for how they work. **Flows.** A Flow does not call Google itself. An automation that starts with **Flow submitted** can use these steps with the customer's answers, like `{{flow.email}}`. The premade appointment booking Flow keeps bookings in Avox tables; to also put them in Google Calendar, add an automation with the **Booking made** trigger on Appointments. **Times.** **Starts** needs a full date and time, with the year, month and day. Avox turns it into one exact moment, so the meeting happens at the same time wherever you or your customer are. An optional **Time zone** (like `Asia/Kolkata`) sets how the event shows in Calendar. A meeting is 5 to 720 minutes long. If Avox cannot read the date and time, the step fails before anything is sent. After the first run, open the meeting in Google and check its time. **Sheets.** Paste the spreadsheet's link and type the tab's name, like `Sheet1`. Click **Read the column names** to line your values up with the sheet. - **Find a row** treats the first row as column names and ignores capital letters when matching. It reads the first 500 rows (the column names count as one) and 50 cells across. - **Add a row** adds up to 50 cells, saved exactly as written. A value that starts with `=` stays plain text and is never run as a formula. **Example (made up).** The premade **Add new leads to Google Sheets** adds a row to your sheet whenever a lead is added to your Leads table. Pick Google in the step and paste your sheet's link. ### Limits - 120 calls a minute per Switchboard to Google. Past that, calls are refused with [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) until the minute passes. - Each call gives up after 10 seconds. - Reading a sheet returns at most 500 rows of 50 cells, each cell cut at 1,000 characters. - A rescheduled start must be a minute to a year ahead ([AVX-3722](https://docs.theavoxai.com/error-codes/avx-3722)). ### When Google fails or says no 1. **Avox tries again when that is safe.** Reads, moves and cancels are tried up to two more times (after about 0.4 seconds, then 1.2 seconds) if Google is busy or cannot be reached. If Google says how long to wait, Avox waits up to 5 seconds. Creating a meeting, blocking time and adding a row are **not** retried, because a repeat could make a second copy. If one fails with a timeout, check your calendar or sheet before running it again: Google may have saved it just as the answer got lost. 2. **The status changes only when it should.** If Google stops accepting Avox's access, the status becomes **Needs reconnecting** at once. Five failed calls in a row on Google's side make it **Having trouble**. One good call, or a passing **Test connection**, brings it back to **Connected** by itself. A bad detail in a step, an unticked permission, Avox's own 120 a minute brake and a paused Switchboard do not count against it. 3. **The call is logged.** **Activity** keeps the time, action, source, result, number of tries and Google's reason. Emails and phone numbers are masked and sign-in details are never kept. A log entry for reading a sheet can show a few of the rows read, so give **See connected apps** only to people you would trust with that sheet. 4. **Your automation follows your choice.** Each step has **If it can't be done**: **Stop the run** or **Carry on with the next step**. While Google **Needs reconnecting**, or the Switchboard is paused, Avox does not call Google. The step ends as "the app isn't connected" ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)) and follows the same choice. Everything else carries on. 5. **Pages show what Avox saved.** If Google cannot be read, **Meetings** and **Sheets** show what Avox saved ([AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717)) with the reason's code. Click **Refresh** later. **What happens to a meeting, a block or a row.** When Google confirms, Avox saves a record (title, time, guest count, Meet link without its passcode) under **Sent by Avox**. When a call fails, nothing is saved. Avox does not retry a create, so one failed attempt never becomes two meetings. A meeting that exists stays in Google even if Google fails later or you disconnect. If a reschedule or cancel fails, the event is unchanged. | Code | What it means here | | --- | --- | | [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692) | Google's access was removed or ran out. Click **Reconnect**. | | [AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690) | A permission was not allowed. Reconnect and tick it. | | [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) | Google is not answering. Avox already retried where it could. | | [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) | Google or Avox asked for a slower pace. Try again in a minute. | | [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) | Google refused the request. The log has its reason. | | [AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705) | A detail is missing or not valid, like the spreadsheet or tab. | | [AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721) | The meeting cannot be cancelled or moved now, for example it started. | | [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) | The Switchboard is paused. | A detail Google calls invalid or cannot find does not count against the status. Other refusals do. ### Disconnect Google Open **Google**, then **Disconnect**. Avox lists what uses Google first: those steps stop until you connect again ([AVX-3708](https://docs.theavoxai.com/error-codes/avx-3708)). Confirm with **Disconnect**, or click **Keep it connected**. - Avox asks Google to remove its access and deletes the sign-in it saved. - The log and usage stay for your retention period. Meetings and rows already in Google stay too. - Check **Third-party connections** in your Google account. If Avox shows [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697), Google did not confirm, so remove Avox there yourself. ### Common questions One account per Switchboard. Signing in with a different account while reconnecting is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). Disconnect first to switch. Not by itself. Google emails guests its own invitation. To send the link on WhatsApp, add a message step after **Create a video meeting** and use `{{meeting.join_url}}`. ### Related --- ## Microsoft 365 URL: https://docs.theavoxai.com/connections/apps/microsoft-365 Section: Connections Connect Microsoft 365 and Avox can put meetings and blocked time in your Outlook calendar, add a Microsoft Teams link to a meeting, and let you reschedule or cancel what Avox created. ### What Avox can and cannot do with Microsoft 365 Avox can: - **Create a meeting**: an Outlook event with a Teams link. Guests get Outlook's own invitation. - **Reschedule or cancel a meeting** from its page in Avox, until it starts. - **Block time**: a busy event with its reminder off, so nobody books over it. Avox cannot: - Make a Teams link for a personal Microsoft account. A personal account gets the Outlook event without a Teams link. Teams links need a work or school account. - Check your free and busy times before it books. Avox can ask Outlook for them, but no automation step or screen uses that, so a new meeting is created even if the time is taken. - Remove blocked time from an automation. Remove it from **Meetings** in Avox or in Outlook. - Use any calendar except your main Outlook calendar, or read email, files or contacts. It only asks to see and change your calendar. ### What you need - A Microsoft account. For Teams links, a work or school account. Some work accounts need an IT admin to approve apps before you can connect. - Room in your plan for another app. - The **Manage connected apps** permission (**Settings**, then **Switchboard**). Admins have it, and an Admin can give it to a Manager. ### Connect Microsoft 365 In the sidebar open **Apps**, then **Microsoft 365**, and click **Connect**. The first screen lists what Avox will be allowed to do. Click **Continue**, then **Continue to Microsoft 365**. Microsoft asks which account to use. Pick the one whose calendar you want Avox to use. Accept what Avox asks for (see the table). You come back to Avox, which shows Microsoft 365 as connected, with the account's email. | Permission Avox asks for | What it allows | | --- | --- | | Sign in and read your profile | Knowing which account this is. Required. | | See and change your Outlook calendar | Meetings and blocked time | If the profile permission is not allowed, nothing is connected ([AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690)). If the calendar permission is missing, Avox connects but its **Overview** lists what is missing, and meeting steps are refused with the same code until you click **Reconnect** and accept it. **Coming soon** means Avox's Microsoft sign-in is not switched on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). A greyed-out **Connect** can also mean your role lacks the permission ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)), the Switchboard has no plan ([AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)), or your plan's apps are all connected ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683)). ### What you see in Avox afterwards Open **Apps**, then **Microsoft 365**. The menu (tabs along the top on a phone) has **Overview**, **Meetings** and **Activity**. - **Overview**: the status (**Connected**, **Needs reconnecting** or **Having trouble**), the account, when it last worked, the last problem with its code, permissions not allowed, and **Used for** (what uses Microsoft 365). **Test connection** asks Microsoft whether it still accepts Avox's access. - **Meetings**: **Sent by Avox** lists meetings and blocked time Avox made. **In Microsoft 365** lists your Outlook calendar from an hour ago to 180 days ahead, in start order. Open one for its time, guests, Teams link and notes. **Reschedule** and **Cancel meeting** work until it starts. - **Activity**: **Usage** and **Log** of every call Avox made. ### Using Microsoft 365 in Avox In an automation add **Use a connected app**, pick **What to do**, then pick Microsoft 365 under **With**. | Step | What it does | Values it gives back | | --- | --- | --- | | Create a video meeting | An Outlook event with a Teams link and up to 20 guests | `{{meeting.join_url}}`, `{{meeting.id}}` | | Block time in a calendar | A busy event | `{{calendar.event_id}}` | You can rename the values in the step. See [Tables and Flows](https://docs.theavoxai.com/automation/tables) for how they work. If another meeting app is connected too, pick the one you want in **With**. **Flows.** A Flow does not call Microsoft by itself. An automation that starts with **Flow submitted** can use these steps with the customer's answers, like `{{flow.email}}`. To put the bookings of the premade appointment booking Flow in Outlook, add an automation with the **Booking made** trigger on your Appointments table. **Times.** **Starts** needs a full date and time, with the year, month and day. Avox turns it into one exact moment and sends it to Microsoft in universal time, so the meeting happens at the same time wherever you or your customer are. Outlook shows it in your own calendar's time zone; the step's **Time zone** box does not change that. A meeting is 5 to 720 minutes long, and its title can have up to 200 characters. If Avox cannot read the date and time, the step fails before anything is sent to Microsoft. After the first run, open the meeting in Outlook and check its time. **Example (made up).** When a booking is added to a table, a **Create a video meeting** step makes a Teams meeting, then a message step sends `{{meeting.join_url}}` to the customer. Avox does not message the link by itself. **Cancelling.** **Cancel meeting** has a switch, **Tell the guests it's cancelled**, on by default. If Outlook cannot send the cancellation, Avox removes the event from your calendar instead. ### Limits - 120 calls a minute per Switchboard to Microsoft. Past that, calls are refused with [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) until the minute passes. - Each call gives up after 10 seconds. - A meeting has up to 20 guests and a description of up to 2,000 characters. - A rescheduled start must be a minute to a year ahead ([AVX-3722](https://docs.theavoxai.com/error-codes/avx-3722)). ### When Microsoft fails or says no 1. **Avox tries again when that is safe.** Reads, moves and removals are tried up to two more times (after about 0.4 seconds, then 1.2 seconds) if Microsoft is busy or cannot be reached. If Microsoft says how long to wait, Avox waits up to 5 seconds. Creating a meeting, blocking time and sending a cancellation to guests are **not** retried, because a repeat could make a second copy or send two notices. If one of those fails with a timeout, check Outlook before you run it again: Microsoft may have done it just as the answer got lost. 2. **The status changes only when it should.** If Microsoft stops accepting Avox's access, the status becomes **Needs reconnecting** at once. Five failed calls in a row on Microsoft's side make it **Having trouble**. One good call, or a passing **Test connection**, puts it back to **Connected** by itself. A bad detail in a step, a permission that was not allowed, Avox's own 120 a minute brake and a paused Switchboard do not count against it. 3. **The call is logged.** **Activity** keeps the time, action, source, result, number of tries and Microsoft's reason. Emails and phone numbers are masked and sign-in details are never kept. 4. **Your automation follows your choice.** Each step has **If it can't be done**: **Stop the run** or **Carry on with the next step**. While Microsoft **Needs reconnecting**, or the Switchboard is paused, Avox does not call Microsoft at all. The step ends as "the app isn't connected" ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)) and follows the same choice. Other steps, your Inbox and automations without Microsoft carry on. 5. **Pages show what Avox saved.** If Outlook cannot be read, **Meetings** shows what Avox saved ([AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717)), with the reason's code. Click **Refresh** later. **Reschedule** and **Cancel meeting** wait until Microsoft answers. **What happens to a meeting or a block.** When Microsoft confirms, Avox saves a record (title, time, guest count, and the Teams link without its passcode) under **Sent by Avox**. When a call fails, nothing is saved. Avox does not retry a create, so one failed attempt never becomes two meetings. A meeting that already exists stays in Outlook even if Microsoft fails later or you disconnect. If a reschedule or cancel fails, the event is unchanged. | Code | What it means here | | --- | --- | | [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692) | Microsoft's access was removed or ran out. Click **Reconnect**. | | [AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690) | A permission was not allowed. Reconnect and accept it. | | [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) | Microsoft is not answering. Avox already retried where it could. | | [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) | Microsoft or Avox asked for a slower pace. Try again in a minute. | | [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) | Microsoft refused the request. The log entry has its reason. | | [AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705) | A detail is missing or not valid, like the start time or a guest's email. | | [AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721) | The meeting cannot be cancelled or moved now, for example it already started. | | [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) | The Switchboard is paused. | A detail Microsoft calls invalid or cannot find does not count against the status. Other refusals do. ### Disconnect Microsoft 365 Open **Microsoft 365**, then **Disconnect**. Avox first lists what uses it: those steps stop until you connect again ([AVX-3708](https://docs.theavoxai.com/error-codes/avx-3708)). Click **Disconnect** to confirm, or **Keep it connected**. - Avox deletes the sign-in it saved. The log and usage stay for your retention period. Meetings in your calendar stay too. - Microsoft gives apps no way to take their own access back. To fully remove Avox, open your account's app permissions yourself: `myapps.microsoft.com` for work or school accounts, or `account.live.com/consent/Manage` for personal ones. ### Common questions Teams links need a work or school account. A personal Microsoft account gets the Outlook event without a link. Ask them to allow Avox to sign in and read the user's profile, and to see and change the user's calendar. Those are the two permissions in the table above. One account per Switchboard. Signing in with a different account while reconnecting is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). Disconnect first to switch accounts. ### Related --- ## Zoom URL: https://docs.theavoxai.com/connections/apps/zoom Section: Connections Connect Zoom and an Avox automation can schedule a Zoom meeting and hand its join link to the next step, so it goes straight into the chat. From the meeting's page you can move it or cancel it. You connect by signing in to Zoom, so you never copy a key. ### What Avox can and cannot do **Can:** create a scheduled Zoom meeting with a title, start time, length, an optional description and up to 20 invitees by email (it has a waiting room, and guests cannot join before the host); give the join link and meeting ID to later steps; move or cancel a meeting from its page; show the meetings Avox created and your upcoming Zoom meetings; and hear from Zoom when a meeting starts, ends, changes time or is deleted. **Cannot:** - Make recurring meetings or webinars, or change other settings such as the passcode. - Move or cancel from an automation step. A step can only create; moving and cancelling are done from the meeting's page. - Check free and busy times or block time. See [Meetings and calendars](https://docs.theavoxai.com/connections/apps/meetings-and-calendars) for apps that do. Avox never shows the host's start link, and the meeting links it saves in its own list leave out the part that holds the passcode. ### What you need before you start - A Zoom account you can sign in to. Zoom's own rules, such as your plan's length limits, still apply. - A plan with room for another app ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), or [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706) without a plan). - The **Manage connected apps** permission in your Switchboard to connect, test or disconnect. **See connected apps** lets people look at the rest. ### Connect Zoom Open **Apps** in the sidebar, then **Zoom**, and click **Connect**. Read what Avox will be allowed to do and click **Continue**. Click **Continue to Zoom**. Avox opens Zoom's own sign-in page and never sees your password. Sign in to the Zoom account whose meetings Avox should create and allow Avox. Avox's Zoom app is set up to create, change and delete your meetings and to read which account you are, so Zoom lists those. You return to the same page with a green message and your Zoom email shown as the account. Click **Open Zoom in Avox**. Finish in the same browser, signed in to Avox, within 10 minutes. Otherwise Avox asks you to start again ([AVX-3687](https://docs.theavoxai.com/error-codes/avx-3687) cancelled, [AVX-3688](https://docs.theavoxai.com/error-codes/avx-3688) too slow, [AVX-3689](https://docs.theavoxai.com/error-codes/avx-3689) started by someone else). **Coming soon** on Zoom means Avox's Zoom connection is not switched on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). There is nothing to do on your side: check back later or ask Support. ### What you see in Avox afterwards Open **Apps**, then **Zoom**. The menu has **Overview**, **Meetings** and **Activity**. - **Overview**: the status badge (**Connected**, **Needs reconnecting** or **Having trouble**), your Zoom account, when it last worked, when access was last renewed, the last problem with its code, and **Test connection**, **Reconnect** and **Disconnect**. A good test says Zoom accepted Avox's access. - **Meetings**: **Sent by Avox** is every meeting Avox created; **In Zoom** is your upcoming meetings, 20 at a time with **Load more**. A meeting's page shows its time, length, guests and meeting ID, with **Copy meeting link**, **Open meeting link** and **Open in Zoom**. Statuses are **Scheduled**, **Happening now**, **Ended** and **Cancelled**. - **Activity**: usage by day and the log, with a **Calls** tab and a **Webhooks** tab. Avox renews Zoom's access on its own before it runs out. You sign in again only if the access is removed in Zoom. **Instant updates (webhooks) need nothing from you.** Zoom sends Avox meeting started, ended, changed time and deleted on its own, and they update the status in Avox and appear once each under **Webhooks**. If you remove Avox from your Zoom account, Zoom tells Avox and Zoom shows as disconnected. ### Using Zoom in Avox **Create a meeting.** In the automation builder add **Use a connected app**, set **What to do** to **Create a video meeting** and **With** to Zoom. Fill in **Title** (up to 200 characters), **Starts** (a date and time, like a value from a table or Flow answer), **Length (minutes)** (5 to 720), and optionally **Time zone** (like `Asia/Kolkata`), **Description** (up to 2,000 characters) and **Invite (emails)** (up to 20, separated by commas). Avox works from the exact moment you give, including its time zone. The step gives `{{meeting.join_url}}` and `{{meeting.id}}`. Under **If it can't be done**, choose **Stop the run** or **Carry on with the next step**. App steps cost no credits. Answers from a submitted Flow reach the step as `{{flow.}}` when the automation starts with **Flow submitted** (see [Automations with Tables and Flows](https://docs.theavoxai.com/automation/tables)). **Example only, made up for illustration:** an automation starts when a customer submits a Flow that asks for a time for an intro call. Step 1 creates a video meeting with Zoom, using a title you choose, `{{flow.start_time}}` as **Starts**, a length, and `{{flow.email}}` under **Invite (emails)**. Step 2 is a **Text reply** saying "Your meeting is booked" followed by `{{meeting.join_url}}`. **Move or cancel.** Open **Meetings**, then a **Scheduled** meeting (needs **Manage connected apps**). - **Reschedule** asks for a new date, start time and length in your own time zone, then **Move the meeting**. The new start must be at least a minute away and at most a year ahead ([AVX-3722](https://docs.theavoxai.com/error-codes/avx-3722)). - **Cancel meeting** asks you to confirm, with a switch for **Tell the guests it's cancelled**. If the meeting is already gone in Zoom, Avox counts the cancel as done. Once a meeting starts or ends these buttons are gone ([AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721) if you try anyway). Avox reads the meeting from Zoom first, so the action fits what Zoom says now. ### Limits - **120 calls a minute** to Zoom from one Switchboard. Over that, calls are refused for the rest of the minute ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)) and nothing is sent to Zoom. - Each try waits up to 10 seconds, and an automation step up to 30 seconds in all. An answer over 1 MB is refused. - A meeting lasts 5 to 720 minutes and has up to 20 invitees. Lists show 20 at a time. ### When Zoom fails or says no Zoom can be slow, busy or refuse a request. The rest of your account keeps working. - **Retries.** Reads, moving, cancelling and renewing access are tried up to 2 more times (after about 0.4 and 1.2 seconds) when Zoom is busy or unreachable; if Zoom says how long to wait, Avox waits up to 5 seconds. **Creating a meeting is never repeated by Avox**, because a second try could make a second meeting. - **Status.** If Zoom stops accepting Avox's access (removed in Zoom, or it cannot be renewed), the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). Five failed calls in a row make it **Having trouble**; one good call puts it back to **Connected** by itself. A bad detail Avox catches first does not count against it. - **Log.** Every call is written to **Activity** with its result, tries and Zoom's own reason. Personal details are hidden and sign-in tokens are never kept. - **Automations.** The step stops the run or carries on, as you chose. While the app **Needs reconnecting** or your Switchboard is paused ([AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711)), the step does not run ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) in the run). A refusal from Zoom is [AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605). - **Pages.** If Zoom cannot be read, **Meetings** shows what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and a second code that says why, such as [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) (not answering) or [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692) (needs reconnecting). Click **Refresh** when it is back. **Before you run a step again,** look at your meetings in Zoom. If a create failed or took too long, the meeting may still exist, so a second run could make a duplicate. If a move failed, check whether the new time was applied. Then click **Refresh** in Avox. ### Disconnecting On the **Overview** click **Disconnect**. Avox first shows what uses Zoom: those steps stop until you connect again ([AVX-3708](https://docs.theavoxai.com/error-codes/avx-3708)). Avox asks Zoom to remove its access, deletes the access it saved and keeps the log. Meetings already created stay in Zoom, so cancel any you do not want first. If Zoom could not be told, Avox shows [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697): remove Avox from the apps added to your Zoom account yourself. ### Common questions Avox was removed in Zoom, or its access could not be renewed. Click **Reconnect** and sign in with the same Zoom account. Steps that use Zoom do not run until then. That is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). Sign in with the first account, or disconnect first and connect the new one. Both buttons only appear for a meeting that has not started yet. ### Related --- ## Calendly URL: https://docs.theavoxai.com/connections/apps/calendly Section: Connections Connect Calendly and the bookings people make on your Calendly pages show inside Avox, with their invitees and meeting links. Your team can cancel a booking from Avox without switching apps. ### What Avox can and cannot do with Calendly Avox can: - **Show your upcoming bookings**, with each booking's invitees, time and meeting link. - **Cancel a booking**, with a reason the invitee sees. Calendly emails the invitee. - **Get new and cancelled bookings as they happen**, on paid Calendly plans. Avox cannot: - **Move a booking.** Calendly does not let apps do that. The invitee reschedules from their own Calendly email. - **Start an automation or send a WhatsApp message** when a booking arrives. The updates only keep the **Bookings** page and the log up to date. No automation or Flow step uses Calendly. - **Create a booking**, or show past ones. The list starts from an hour ago and looks ahead. - **Show other people's bookings.** It shows the bookings of the Calendly account you connected. ### What you need - A Calendly account. Connecting and viewing bookings work on any plan. Instant updates need a paid Calendly plan. - Room in your plan for another app. - The **Manage connected apps** permission (**Settings**, then **Switchboard**) to connect, reconnect and cancel bookings. Admins have it, and an Admin can give it to a Manager. Seeing bookings needs **See connected apps**. ### Connect Calendly In the sidebar open **Apps**, then **Calendly**, and click **Connect**. The first screen lists what Avox will be allowed to do. Click **Continue**, then **Continue to Calendly**. On Calendly's page, sign in to the account whose bookings you want to see, and allow Avox. Calendly shows no separate permission boxes for Avox, so there is nothing to untick. You come back to Avox. Avox shows that Calendly is connected, with the account's email. Click **Open Calendly in Avox**, or **See bookings**. Right after you connect, Avox turns on instant updates by itself. Nothing to set up in Calendly. If the button says **Coming soon**, Avox's Calendly sign-in is not switched on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). If it is greyed out for another reason, hover it: your role lacks the permission ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)), the Switchboard has no plan ([AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)), or your plan's apps are all connected ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683)). ### What you see in Avox afterwards Open **Apps**, then **Calendly**. The menu (tabs along the top on a phone) has **Overview**, **Bookings** and **Activity**. - **Overview**: the status (**Connected**, **Needs reconnecting** or **Having trouble**), the Calendly account, who connected it, when it last worked, the last problem with its code, and **Instant updates**. That box says one of: Avox gets bookings as they happen; instant updates need a paid Calendly plan (Avox still reads your bookings when you open the page); Calendly already sends these updates to Avox; instant updates are not available for this account; or Avox could not turn them on, so click **Reconnect** to try again. **Test connection** asks Calendly whether it still accepts Avox's access. - **Bookings**: upcoming bookings in start order, with **Load more** for the next ones and **Refresh** to read Calendly again. Open one for its time, meeting link, place, invitees, and who cancelled it and why. Lists hide most of people's details, and the booking's own page shows them to people who can see apps. Calendly's private reschedule and cancel links for invitees are never passed on. - **Activity**: **Usage** (calls per day, success rate, speed, updates received) and **Log** (every call Avox made and every update Calendly sent). ### Cancel a booking Open a booking that has not started and click **Cancel booking**. You can add a reason, up to 200 characters, and the invitee sees it. Calendly cancels the booking and tells the invitee. This happens in Calendly itself and cannot be undone from Avox. **Example (made up).** A customer writes in WhatsApp that they cannot make their consultation. Your team opens **Bookings**, finds it, clicks **Cancel booking**, types a short reason and confirms. The customer gets Calendly's cancellation email. ### Limits - Avox makes at most 120 calls a minute per Switchboard to Calendly. Past that, calls are refused with [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) until the minute passes. This never changes the status. - Each call to Calendly gives up after 10 seconds. - The list loads 20 bookings at a time, and a booking shows up to 50 invitees. - Avox renews Calendly's access by itself, so you do not sign in again unless access is removed. ### When Calendly fails or says no 1. **Avox tries again when that is safe.** Reading bookings and opening one are tried up to two more times (after about 0.4 seconds, then 1.2 seconds) if Calendly is busy or cannot be reached. If Calendly says how long to wait, Avox waits up to 5 seconds. **Cancel booking** is **not** retried by Avox. If it fails, open the booking and check it before you try again. If it was already cancelled, Avox says it cannot be cancelled now ([AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721)). 2. **The status changes only when it should.** If Calendly stops accepting Avox's access, the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). Five failed calls in a row on Calendly's side make it **Having trouble**. One good call, or a passing **Test connection**, puts it back to **Connected** by itself. A booking that cannot be cancelled, Avox's own 120 a minute brake and a paused Switchboard do not count against it. 3. **The call is logged.** **Activity** keeps the time, the action, where it came from, the result, the number of tries and Calendly's reason. Email addresses and phone numbers are masked, links are cut to their address, and sign-in details are never kept. 4. **Automations and Flows are not affected.** No automation or Flow step uses Calendly, so none can stop or skip because of it. Calendly being down only affects the **Bookings** page and **Cancel booking**. 5. **Pages show what Avox saved.** If Calendly cannot be read, **Bookings** shows the bookings Calendly told Avox about ([AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717)), with the reason's code. On a free Calendly plan Avox has none saved. Click **Refresh** later. **What happens to a booking.** Avox never creates or changes a booking on its own. A cancel that Calendly confirms is marked cancelled in what Avox saved. A cancel that fails leaves the booking as it was, and the invitee is told only when Calendly cancels it. Updates that arrive twice are kept once. | Code | What it means here | | --- | --- | | [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692) | Calendly's access was removed or ran out. Click **Reconnect**. | | [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) | Calendly is not answering. Avox already retried where it could. | | [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) | Calendly or Avox asked for a slower pace. Try again in a minute. | | [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) | Calendly refused the request. The log entry has its reason. | | [AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721) | The booking cannot be cancelled now, for example it already ended or was cancelled. | | [AVX-3716](https://docs.theavoxai.com/error-codes/avx-3716) | That booking could not be found. | | [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) | The Switchboard is paused. Resume it in **Settings**. | For more, see [Apps troubleshooting](https://docs.theavoxai.com/connections/apps/troubleshooting). ### Disconnect Calendly Open **Calendly**, then **Disconnect**, then confirm, or click **Keep it connected**. - Avox removes its instant-update subscription and its access at Calendly, and deletes the sign-in it saved. - The log, usage and the bookings Avox saved stay for your retention period. - If Avox shows [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697), Calendly did not confirm: open Calendly's settings for connected apps and remove Avox there too. ### Common questions Calendly only allows apps to subscribe to updates on paid plans. Avox still reads your bookings whenever you open **Bookings**. If you upgrade later, click **Reconnect** on **Overview** to turn instant updates on. No. Calendly does not let apps move a booking. Cancel it from Avox, or ask the invitee to reschedule from their own Calendly email. Not today. New bookings appear in **Bookings** and in the log, but they do not start an automation. Avox shows the bookings of the Calendly account you connected. Connect with the account whose bookings you want to see. Signing in with a different account while reconnecting is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). ### Related --- ## HubSpot URL: https://docs.theavoxai.com/connections/apps/hubspot Section: Connections Connect HubSpot and an automation can save the people who message you, with what they told you in a chat or a Flow, as contacts in your HubSpot account. Your team then works from HubSpot as usual. You can also look at those contacts, and search the ones already in HubSpot, from inside Avox. ### What Avox can and cannot do with HubSpot - **Can:** add a contact, or update the one that is already there. With an email, Avox updates the contact with the same email, or creates it. Without an email, it looks for a contact with the same phone number first, and creates one if there is none. - **Can:** fill email, phone, first name, last name and company. - **Can:** list and search your HubSpot contacts on the **Contacts** page, and open one in HubSpot. - **Cannot:** work with deals, companies or tickets. They stay in HubSpot. - **Cannot:** save the note. A step has a **Note** box, but HubSpot ignores it, so it never reaches the contact. - **Cannot:** change or delete contacts from the Contacts page. It only reads. Change them in HubSpot. - **One direction only:** Avox writes to HubSpot. Nothing you change in HubSpot starts an automation in Avox. Fields you leave empty are not sent, so they never blank out what HubSpot already holds. ### What you need before you start - A HubSpot account, and a HubSpot user who is allowed to install apps in it. If HubSpot refuses the install, ask your HubSpot admin. - A plan on your Switchboard. The plan sets how many apps you can connect at once ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)). - The permission **Manage connected apps** in Avox. Admins have it, and an Admin can give it to a Manager. Without it the **Connect** button is greyed out ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)). ### Connect HubSpot In the dashboard open **Apps** in the sidebar, pick **HubSpot** and click **Connect**. The first screen, **What Avox can do**, lists the abilities. Click **Continue**. Click **Continue to HubSpot**. HubSpot's own page opens. Choose the HubSpot account and allow what Avox asks for: finding contacts, and adding and changing contacts. Avox never sees your password. You return to Avox with **HubSpot is connected**. Click **Open HubSpot in Avox** or **See contacts**. If the button says **Coming soon**, Avox has not switched HubSpot on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). Nothing is wrong on your side. Leave every permission ticked, or Avox shows which ones are missing ([AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690)). If the sign-in ends with an error, see [Apps troubleshooting](https://docs.theavoxai.com/connections/apps/troubleshooting). ### What you see in Avox afterwards Open **Apps**, then **HubSpot**. The menu has **Overview**, **Contacts** and **Activity**. - **Overview** shows the status, the HubSpot account, who connected it and when, when it last worked and the last problem with its code. Click **Test connection** for a check in a second. **Reconnect** and **Disconnect** are here too. - **Contacts** has two lists: **Sent by Avox** (the contacts Avox added or updated, marked **Has a chat** when it knows the chat they came from) and **In HubSpot** (your HubSpot contacts, searchable, with **Load more**). Open one for its details, **Open chat** and **Open in HubSpot**. Lists hide most personal details, and a contact's own page shows them. - **Activity** has **Usage** (calls per day over 7, 30 or 90 days) and the **Log**: every call Avox made, with the time, action, source, result and code. Filter by result, action or source. The status is one of **Connected**, **Needs reconnecting** or **Having trouble**. Avox renews HubSpot's access by itself before it runs out. ### Using HubSpot in Avox Flows do not call HubSpot directly. To save a Flow's answers, make an automation that starts with **Flow submitted**. HubSpot is used by one step, and it is free (no credits). Add a **Use a connected app** step, set **What to do** to **Save to your CRM** under **CRM**, and pick **HubSpot** in **With**. Fill any of: **Email**, **Phone**, **First name**, **Last name**, **Company** and **Note** with fixed text or values like `{{flow.email}}`. Email or phone is needed ([AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705)). The email is stored in lower case. A phone is digits, spaces, brackets or dashes, optionally starting with +, 6 to 24 characters. Automations can use only three details of the person in the chat: `{{contact.name}}`, `{{contact.first_name}}` and `{{contact.phone_last4}}` (the last 4 digits), plus your own custom contact fields. The full phone number is not offered as a value, so collect the email or phone in a Flow, or read it from a table row such as `{{row.phone}}`. Later steps can use `{{crm.id}}` (the HubSpot contact id) and `{{crm.created}}` (yes or no). **Worked example (made up for illustration).** A Flow asks for first name, last name, email and company. An automation starts with **Flow submitted** for that Flow and has one **Use a connected app** step: **Save to your CRM** with **HubSpot**, **Email** `{{flow.email}}`, **First name** `{{flow.first_name}}`, **Last name** `{{flow.last_name}}` and **Company** `{{flow.company}}`. Use the names of your own Flow's fields. Set **If it can't be done** to **Carry on with the next step**, then add a text that thanks the customer. A returning customer with the same email is updated, not added twice. There is no premade automation for HubSpot. Build this one in the [builder](https://docs.theavoxai.com/automation/tables). ### Limits - Each Switchboard can make 120 calls a minute to HubSpot. Past that, calls are refused for the rest of the minute ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)). - Each try gives up after 10 seconds, and a step waits 30 seconds at most. - First and last name: 80 characters. Company: 120. Note: 1,000. - One contact per step. The Contacts page loads 20 at a time. ### When HubSpot fails or says no HubSpot is someone else's service, so it can be slow, busy or say no. Avox is built so that never breaks your account. 1. **Retries.** Adding or updating by email, finding by phone, updating, listing and reading are tried again, up to two more times after about 0.4 and 1.2 seconds, when HubSpot is unreachable or answers 429, 502, 503 or 504. If HubSpot says how long to wait, Avox waits up to 5 seconds. The one call with no safe repeat key, creating a new contact when there is no email and no match by phone, is not tried again. 2. **The log.** Each call is logged with its tries. Names, emails and phone numbers are masked (a company name is shown as typed), and the answer kept is only the contact's HubSpot id. 3. **The status.** If HubSpot stops accepting Avox's access, the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). Five failed calls in a row on HubSpot's side make it **Having trouble**, and one good call makes it **Connected** again. A detail that is missing or not valid does not count against its health. 4. **Your automation.** The step stops the run or carries on, as you chose in **If it can't be done** (the default is **Stop the run**). If a run stops, later steps such as a thank-you text do not run. While HubSpot **Needs reconnecting**, the step does not call HubSpot and fails with [AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) in the automation's run log. Other failures show [AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605). 5. **The pages.** If HubSpot cannot be read, **Contacts** shows what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and the reason. **What happens to the person's data.** If the save fails, that contact is not in HubSpot, and Avox does not try it again later on its own. The chat goes on and the Flow answers stay in your Inbox. To add the contact, correct the cause and run the automation again, or add it in HubSpot. Codes you may see: [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) HubSpot is not answering, [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) slow down, [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) HubSpot refused a value (open the log entry to read why), [AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705) a detail is missing or not valid, [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) the Switchboard is paused, and [AVX-3739](https://docs.theavoxai.com/error-codes/avx-3739) staff turned HubSpot off for your account. Each entry in the log says which one applied. ### Disconnecting Click **Disconnect** on HubSpot's Overview. Avox shows what uses it, asks HubSpot to drop its access, and deletes the access it saved. The log and usage stay for your retention period. The contacts it saved stay in HubSpot. Steps that use HubSpot fail until you connect again. If you see [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697), remove Avox in HubSpot's connected apps settings too. ### Common questions Avox matches on email first. Without an email it asks HubSpot for the same phone number as written, so a number saved differently in HubSpot, for example with spaces or no country code, is not found and a new contact is made. Pass the email whenever you have it. HubSpot ignores it. Only email, phone, first name, last name and company are saved. No. Avox only writes to HubSpot, and reads it when you open a page. One HubSpot account per Switchboard. Signing in with another account is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). Disconnect first to switch. ### Related --- ## Zoho CRM URL: https://docs.theavoxai.com/connections/apps/zoho-crm Section: Connections Connect Zoho CRM and an automation can save the people who message you, with what they told you in a chat or a Flow, in your Zoho CRM. You can also browse and search your contacts and leads from inside Avox. ### What Avox can and cannot do with Zoho CRM - **Can:** add a contact, or update the one that is already there. Avox matches on email, or on the mobile number when there is no email. - **Can:** fill email, phone (saved in Zoho's **Mobile** field), first name, last name and a note. - **Can:** list and search the contacts and leads in Zoho CRM on the **Contacts** and **Leads** pages, and open one in Zoho. - **Cannot:** work with deals or accounts. They stay in Zoho CRM. - **Cannot:** change or delete records from those pages. They only read. Change them in Zoho. - **One direction only:** Avox writes to Zoho. Nothing you change in Zoho starts an automation in Avox. Things to know about how the record is made: - The **Save to your CRM** step saves a Zoho **Contact**. A contact's company is not saved, because Zoho links it to an account. (Avox's Zoho connection can also save a Lead, where a company is required and Avox writes **Not given** when none is supplied, but the automation step has no way to ask for a lead today.) - Zoho needs a last name. Avox sends the last name, else the first name, else the words **WhatsApp contact**. The first name is sent only when both names are given. Because Avox sends this field every time, an update can replace the name already in Zoho, so give the name whenever you have it. - The note is saved in the record's **Description**. - Fields you leave empty are not sent. ### What you need before you start - A Zoho CRM account, and a Zoho user who can see and change contacts in it. - Your region. Zoho works out which one your account is in when you sign in. Avox accepts the United States, Europe, India, Australia, Japan, China, Canada, Saudi Arabia and the United Kingdom. A sign-in from anywhere else is refused, and nothing is connected. - A plan on your Switchboard, which sets how many apps you can connect ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)). - The permission **Manage connected apps** in Avox. Admins have it, and can give it to a Manager ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)). ### Connect Zoho CRM Open **Apps** in the sidebar, pick **Zoho CRM** and click **Connect**. The first screen, **What Avox can do**, lists the abilities. Click **Continue**. Click **Continue to Zoho CRM**. Zoho's own page opens. Sign in with the account in your own region and accept what Avox asks for: contacts and leads, and reading your user and organisation details (Avox uses them to name the account). Avox never sees your password. You return to Avox with **Zoho CRM is connected**. Click **Open Zoho CRM in Avox** or **See contacts**. If the button says **Coming soon**, Avox has not switched Zoho CRM on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). Nothing is wrong on your side. Allow everything Zoho lists. If the sign-in ends with an error, see [Apps troubleshooting](https://docs.theavoxai.com/connections/apps/troubleshooting). ### What you see in Avox afterwards Open **Apps**, then **Zoho CRM**. The menu has **Overview**, **Contacts**, **Leads** and **Activity**. - **Overview** shows the status, the Zoho account, the **Region**, who connected it, and the last problem with its code. **Test connection**, **Reconnect** and **Disconnect** are here. - **Contacts** and **Leads** each have **Sent by Avox** (what Avox saved) and **In Zoho CRM** (the records in Zoho, newest change first, searchable by two letters or more, with **Load more**). Open one for its details, **Open chat** (when Avox knows the chat) and **Open in Zoho CRM**. A lead whose company is **Not given** shows no company. - **Activity** has **Usage** (calls per day over 7, 30 or 90 days) and the **Log** of every call, filtered by date, result, action or source. The status is **Connected**, **Needs reconnecting** or **Having trouble**. Avox renews Zoho's access by itself before it runs out. ### Using Zoho CRM in Avox Flows do not call Zoho directly. To save a Flow's answers, make an automation that starts with **Flow submitted**. Add a **Use a connected app** step, set **What to do** to **Save to your CRM** under **CRM**, and pick **Zoho CRM** in **With**. The step is free (no credits). Fill any of **Email**, **Phone**, **First name**, **Last name**, **Company** and **Note** with fixed text or values like `{{flow.email}}`. Email or phone is needed ([AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705)). The email is stored in lower case. A phone is digits, spaces, brackets or dashes, optionally starting with +, 6 to 24 characters. Automations can use only three details of the person in the chat: `{{contact.name}}`, `{{contact.first_name}}` and `{{contact.phone_last4}}` (the last 4 digits), plus your own custom contact fields. The full phone number is not offered as a value, so collect the email or phone in a Flow, or read it from a table row such as `{{row.phone}}`. Later steps can use `{{crm.id}}` (the Zoho record id) and `{{crm.created}}` (yes or no). **Worked example (made up for illustration).** A Flow asks for first name, last name, email and a question. An automation starts with **Flow submitted** for that Flow and has one **Use a connected app** step: **Save to your CRM** with **Zoho CRM**, **Email** `{{flow.email}}`, **First name** `{{flow.first_name}}`, **Last name** `{{flow.last_name}}` and **Note** `{{flow.question}}`. Use the names of your own Flow's fields. Set **If it can't be done** to **Carry on with the next step**, then add a text that thanks the customer. A customer with the same email is updated, not added twice. There is no premade automation for Zoho CRM. Build this one in the [builder](https://docs.theavoxai.com/automation/tables). ### Limits - Each Switchboard can make 120 calls a minute to Zoho CRM. Past that, calls are refused for the rest of the minute ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)). - Each try gives up after 10 seconds, and a step waits 30 seconds at most. - Names: 80 characters. Company: 120. Note: 1,000. One record per step. ### When Zoho CRM fails or says no 1. **Retries.** Saving a contact is safe to repeat, because Zoho matches on email or mobile, so Avox tries it again, up to two more times after about 0.4 and 1.2 seconds, when Zoho is unreachable or answers 429, 502, 503 or 504. If Zoho says how long to wait, Avox waits up to 5 seconds. Reads and lists are retried the same way. 2. **The log.** Each call is logged with its tries. Names, emails and phone numbers are masked, but a note or a company is shown as typed (shortened), so keep private details out of the note. 3. **The status.** If Zoho stops accepting Avox's access, the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). Five failed calls in a row on Zoho's side make it **Having trouble**, and one good call makes it **Connected** again. A missing or invalid detail does not count against its health. 4. **Your automation.** The step stops the run or carries on, as you chose in **If it can't be done** (the default is **Stop the run**, and later steps such as a thank-you text then do not run). While Zoho **Needs reconnecting**, the step does not call Zoho and fails with [AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) in the automation's run log. Other failures show [AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605). 5. **The pages.** If Zoho cannot be read, **Contacts** and **Leads** show what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717) and the reason. **What happens to the person's data.** If the save fails, that person is not in Zoho, and Avox does not try it again later on its own. The chat goes on and the Flow answers stay in your Inbox. To add the person, correct the cause and run the automation again, or add them in Zoho. Codes you may see: [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) Zoho is not answering, [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) slow down, [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713) Zoho refused the record (the log entry says why), [AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705) a detail is missing or not valid, and [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) the Switchboard is paused. ### Disconnecting Click **Disconnect** on Zoho CRM's Overview. Avox shows what uses it, asks Zoho to drop its access, and deletes the access it saved. The log and usage stay for your retention period. The contacts and leads it saved stay in Zoho CRM. Steps that use Zoho fail until you connect again. If you see [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697), remove Avox in your Zoho account's connected apps too. ### Common questions Zoho needs a last name. If a step gives only a first name, Avox uses it as the last name, and with no name at all it writes **WhatsApp contact**. Fill both names in the step. A contact's company is not saved, because Zoho links it to an account. Only a lead carries a company, and the step saves contacts. One Zoho account per Switchboard. Signing in with another account is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). Disconnect first to switch. ### Related --- ## Shiprocket URL: https://docs.theavoxai.com/connections/apps/shiprocket Section: Connections Connect your Shiprocket account and your team can track any shipment inside Avox, next to the chats. Automations can look up where an order is, check what a cash on delivery order still has to collect, and create a return for a delivered order. With one extra step in Shiprocket, Avox also hears every scan as it happens: picked up, in transit, out for delivery, delivered, a failed delivery (NDR) or a parcel coming back to you (RTO). ### What Avox can and cannot do with Shiprocket Avox can: - track a shipment by its AWB number or by your order ID, with every scan, newest first; - tell whether an order is cash on delivery and exactly how much the courier collects; - create a return for an order that was delivered; - receive tracking updates from Shiprocket when you turn on its webhook. Avox cannot: - create, ship or cancel orders. Do that in Shiprocket ([AVX-3725](https://docs.theavoxai.com/error-codes/avx-3725) on the Shipments pages); - create a return before the order is delivered ([AVX-3742](https://docs.theavoxai.com/error-codes/avx-3742)); - choose which shipments Shiprocket sends updates for. Shiprocket sends them for every shipment in your account, also the ones Avox didn't touch. ### What you need before you start - A Shiprocket account where you can open **Settings**, **API**. - An email address only for Avox. Shiprocket's API user can't use the email you sign in with. - A plan with room for another connected app, and the **Manage connected apps** permission in **Settings > Switchboard** (Admins have it; an Admin can give it to a Manager). ### Connect Shiprocket In Shiprocket open **Settings**, **API**, **Configure** and click **Create an API User**. Use an email address that isn't the one you sign in with, give it a password, and allow every module if Shiprocket asks. In Avox open **Apps** in the sidebar, then **Shiprocket**, click **Connect**, read **What Avox can do** and click **Continue**. Fill in **API user email** and **API user password**. **Webhook token** is optional and can be added later. Click **Connect**. Avox signs in to Shiprocket's API with those details before saving anything. If it works you see **Shiprocket is connected**. The password is stored encrypted and never shown again. Shiprocket's sign-in lasts 10 days. Avox signs in again a day before it runs out, so nothing stops. If Shiprocket refuses the details (a changed password, a deleted API user) you see [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686) while connecting, or **Needs reconnecting** ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)) later: click **Reconnect** and paste the new details. #### Turn on tracking updates Without this, Avox still tracks a shipment whenever someone or an automation asks. With it, every scan arrives by itself and can start an automation. 1. On Shiprocket's **Overview** in Avox, under **Setup in Shiprocket**, copy Avox's address. It ends in `/api/apps/webhooks/parcel/` and a long code. It belongs to your Switchboard only, so keep it private. (Shiprocket refuses addresses with its own name in them, so the address says "parcel".) 2. Press **Generate** next to **Webhook token** and copy the token. 3. In Shiprocket open **Settings**, **API**, **Webhooks**, paste the address as the URL, paste the token in the **Token** box, switch the webhook on and click **Save**. 4. Back in Avox, save the same token. Shiprocket sends the token with every update, and Avox refuses any update without the right one. Until the token is saved in Avox, updates are refused with [AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709). The checklist on the **Overview** turns green when the first update Avox could check arrives. ### What you see in Avox afterwards Shiprocket has its own menu under **Apps**: **Overview**, **Shipments** and **Activity**. - **Overview**: status, the account, who connected it, when it last worked, the last problem with its code, the setup checklist, **Test connection**, **Reconnect** and **Disconnect**. - **Shipments**: Shiprocket's orders, newest first, 20 at a time, searchable by order ID or AWB, with the courier, the AWB and whether it is cash on delivery. A second list shows the shipments Avox heard about from updates, so the page still has something when Shiprocket can't be read. - **One shipment**: its status (Ready to ship, Picked up, In transit, Out for delivery, Delivered, Delivery failed, Returning to you, Returned to you, Lost or damaged, Cancelled), the tracking timeline with each scan's time and place, the expected delivery date, the tracking page, the items and, for cash on delivery, the cash to collect. The customer's name, phone and email show only on this page, to people who can see apps. - **Activity**: **Usage** and the **Log**, with **Calls** and **Webhooks** tabs. ### Using Shiprocket in automations Each of these is an app action an automation step can run: - **Track a shipment**: give the AWB number or the order ID (one of them). The answer has the status, the courier, the last scan, the expected delivery and the tracking page link, ready for a WhatsApp reply to "where is my order?". An unknown AWB or order gives [AVX-3741](https://docs.theavoxai.com/error-codes/avx-3741). - **Cash on delivery status**: whether the order is cash on delivery, the exact amount to collect and whether it was delivered. Useful to confirm a COD order on WhatsApp before it ships. - **Create a return**: only for a delivered order. Avox picks the parcel up from the customer's address on the order and sends it to the pickup address the order left from. Items and amounts are copied from the order exactly. A step that is tried again never creates a second return. Tracking updates (picked up, in transit, out for delivery, delivered, failed delivery and returning to you) are what shipment triggers start on, for example "Out for delivery: tell the customer to keep the cash ready". ### Money Amounts are read exactly to the paisa. If Shiprocket ever sends an amount with more decimals than a rupee has, Avox shows it as unknown rather than round it, and the shipment's page says to check it in Shiprocket. ### When Shiprocket fails or says no 1. **Avox tries again when that is safe.** Reads are retried up to two more times on a network problem or when Shiprocket answers busy (HTTP 429, 502, 503 or 504). Creating a return is never retried on its own. 2. **Signing in again.** If Shiprocket stops taking the saved sign-in early, Avox signs in once more and tries the call again. 3. **The status changes only when it should.** Refused details mark it **Needs reconnecting** ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). Five failed calls in a row on Shiprocket's side ([AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694), [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695), [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713)) mark it **Having trouble**. A wrong AWB or order ID never counts against its health. 4. **Late updates never undo newer ones.** Each update carries the courier's own time. An older scan that arrives late changes nothing, and Delivered, Returned to you, Lost or damaged and Cancelled stay as they are. 5. **The pages show what Avox saved** when Shiprocket can't be read, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717). ### Disconnect Shiprocket Click **Disconnect** on the **Overview**. Avox signs out of Shiprocket, deletes the details it saved and keeps the log for your retention period. To be sure they can't be used again, delete Avox's API user and switch the webhook off in Shiprocket, **Settings**, **API**. ### Common questions The API user needs its own email address, not the one you sign in to Shiprocket with. Use another address you control, like `api@yourbrand.in`. Save the same webhook token in Avox that you typed in Shiprocket ([AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709)). If you changed it in Shiprocket, generate a new one in Avox and paste it in both places. Returns are for delivered orders only ([AVX-3742](https://docs.theavoxai.com/error-codes/avx-3742)). For an order still on its way, cancel it in Shiprocket instead; a parcel the customer refuses comes back to you as RTO by itself. ### Related --- ## Zoho Books URL: https://docs.theavoxai.com/connections/apps/zoho-books Section: Connections Connect Zoho Books and Avox can add the people who message you as customers, create their invoices with the GST you set up in Zoho Books, send the invoice's link in the chat (or have Zoho Books email it), record a payment against it, and tell you when it is paid. Your books stay in Zoho Books: Avox only asks Zoho Books to do these things, and shows what it made on the **Invoices** page. ### What Avox can and cannot do with Zoho Books - **Can:** add a customer, with their GSTIN, GST treatment and state. - **Can:** create an invoice for a customer, with your Zoho Books items or named lines, quantities, prices, the tax you picked in Zoho Books and the HSN or SAC code. - **Can:** send the invoice's link to paste in a chat, or have Zoho Books email it. - **Can:** record a payment against an invoice (cash, bank transfer, UPI, card, cheque or other). - **Can:** check whether an invoice was paid, and list and search your invoices in Avox. - **Never:** works out tax. Zoho Books decides the GST rate, the amount and whether it is CGST and SGST or IGST, from the tax you set up and the place of supply. Avox sends prices before tax and reads the totals back from Zoho Books exactly, to the paisa. - **Cannot:** make e-invoices (the IRN and QR code from the government portal), credit notes, estimates or bills. They stay in Zoho Books. - **Cannot:** change or delete invoices from the **Invoices** page. It only reads. ### Get Zoho Books ready first 1. In Zoho Books, open **Settings**, then **Taxes**, and set up GST with your GSTIN and the tax rates you charge. Without taxes, invoices are made without tax. 2. Add your items with their **HSN** or **SAC** code and their default tax. An invoice line that names the item gets that tax when the step doesn't pick one. 3. Check which organization is your **default** one. Avox works in that organization. You also need a plan on your Switchboard, which sets how many apps you can connect ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)), and the permission **Manage connected apps** in Avox ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)). ### Connect Zoho Books Open **Apps** in the sidebar, pick **Zoho Books** and click **Connect**. Click **Continue to Zoho Books**. Zoho's own page opens. Sign in with the Zoho account that owns the organization and accept what Avox asks for: customers, invoices, payments, and reading your organization and taxes. Avox never sees your password. You return to Avox with **Zoho Books is connected**, named after your organization. **Regions.** Zoho works out your region when you sign in. Avox accepts the United States, Europe, India, Australia, Japan, China, Canada, Saudi Arabia and the United Kingdom, and talks to your region's own Zoho servers. A sign-in from anywhere else is refused and nothing is connected. If your Zoho account has no Zoho Books organization yet, the sign-in ends with [AVX-3746](https://docs.theavoxai.com/error-codes/avx-3746). Make one in Zoho Books, then connect again. If the button says **Coming soon**, Avox has not switched Zoho Books on yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). ### What each action does - **Add a customer.** Saves a customer with their name, and if you give them, company, email, mobile, GSTIN, GST treatment (registered business, unregistered business, overseas or consumer) and state code. A registered business needs a GSTIN. Avox checks the GSTIN's shape and check character before sending it ([AVX-3743](https://docs.theavoxai.com/error-codes/avx-3743)). - **Create an invoice.** For a customer already in Zoho Books. Each line is an item (by its Zoho Books id) or a name, a quantity (up to 3 decimals), a price for one before tax, and optionally the tax and the HSN or SAC code. The currency must be the customer's own currency in Zoho Books, or Avox refuses it ([AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705)). Choose whether it is marked as sent right away; otherwise it stays a draft. If an automation retries the step, it gets the same invoice back, never a second one. - **Send an invoice.** **As a link** marks a draft as sent and gives back its link, to put in a WhatsApp message. **By email** has Zoho Books email it to the addresses you give. - **Record a payment.** Records money you received against one invoice. Avox reads the invoice first: a draft, void or paid invoice can't take a payment ([AVX-3744](https://docs.theavoxai.com/error-codes/avx-3744)), and a payment can't be more than what's still due ([AVX-3745](https://docs.theavoxai.com/error-codes/avx-3745)). If the step is retried, Avox finds the payment it already recorded instead of recording it twice. - **Invoice status.** Reads the invoice: draft, open, overdue, partly paid, paid or void, with its total and what's still due. ### How Avox hears that an invoice was paid Zoho Books doesn't send signed updates to apps, so Avox reads your invoices again every 15 minutes, but only while an invoice Avox made is still open. It is one read of your most recently changed invoices each time, so it uses very little of Zoho Books' daily call allowance. A payment you record through Avox shows at once. ### What you see in Avox afterwards Open **Apps**, then **Zoho Books**. The menu has **Overview**, **Invoices** and **Activity**. - **Overview** shows the status, the organization, the region, who connected it and the last problem. - **Invoices** has **Sent by Avox** (the invoices Avox made) and **In Zoho Books** (every invoice, newest change first, searchable). Open one for its number, dates, place of supply, GST treatment, lines with their tax, total and what's still due, its link, and **Open in Zoho Books**. - **Activity** has the usage and the log of every call. ### Limits - Each Switchboard can make 120 calls a minute to Zoho Books ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)). Zoho Books also has its own daily limit per organization, which depends on your Zoho Books plan. - Up to 50 lines per invoice and 10 email addresses per send. ### When Zoho Books fails or says no - **Needs reconnecting** ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)): Zoho stopped accepting Avox's access. Click **Reconnect**. - **Permission not given** ([AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690)): an action needs a permission that wasn't allowed at the sign-in. Reconnect and allow everything. - **Slow down** ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)): too many calls at once, or Zoho Books' daily limit. Try again later. - **Zoho Books refused it** ([AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713)): the log entry has Zoho's own words, such as a missing customer or a wrong tax id. - The **Invoices** page shows what Avox saved when Zoho Books can't be read ([AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717)). ### Disconnecting Click **Disconnect** on the Overview. Avox asks Zoho to drop its access and deletes what it saved to call Zoho. Invoices, customers and payments it made stay in Zoho Books. Avox keeps its own record of the invoices it made for 25 months, like payments. ### Related --- ## Airtable URL: https://docs.theavoxai.com/connections/apps/airtable Section: Connections Connect Airtable and an automation can save a Flow's answers as a record, keep one record per customer, or look a record up and use its fields in a reply. You can also browse your tables and records from inside Avox. ### What Avox can and cannot do with Airtable - **Can:** list your bases, and show each table's fields, types and views. - **Can:** find records (by a field's value, a filter formula, a view and a sort), and get one record. - **Can:** add, update, and add-or-update records, delete records, add files to a record from a link, and read and add comments (when the token allows it). - **Cannot:** change the structure of your bases (tables, fields, views). - **Cannot:** fill fields Airtable works out itself, such as formula, rollup, lookup, count and created time ([AVX-3731](https://docs.theavoxai.com/error-codes/avx-3731)). - **Cannot:** reach a base the token was not given. - **One direction only:** Avox reads Airtable when a step or a page asks, so a change in Airtable never starts an automation. A step works on one record at a time. **Add an Airtable record** always adds, so a customer who sends a Flow twice gets two records. To keep one per customer, use **Add or update an Airtable record**. ### What you need before you start - An Airtable account, bases where you can add and change records, and permission to make a personal access token. Nobody at Avox has to switch Airtable on, so it never says **Coming soon**. - A plan on your Switchboard, which sets how many apps you can connect ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683), [AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)). - The permission **Manage connected apps** in Avox. Admins have it, and can give it to a Manager ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)). ### Make the token and connect Open [airtable.com/create/tokens](https://airtable.com/create/tokens) and click **Create new token**. Name it **Avox**. Add the scopes in the table below. The three required ones are needed to connect. Under **Access**, add the bases Avox may use, or a whole workspace. Avox cannot open any other base. Click **Create token** and copy it. Airtable shows it only once. Open **Apps** in the sidebar, pick **Airtable** and click **Connect**, then **Continue**. Paste the token into **Personal access token**. If you like, fill **Default base ID** with the part of a base's link that starts with `app`. Click **Connect**. Avox tries the token with Airtable first. | Scope | | What it lets Avox do | | --- | --- | --- | | data.records:read | Required | See the records in your bases | | data.records:write | Required | Add, change and delete records | | schema.bases:read | Required | See your bases, tables and fields | | data.recordComments:read | Optional | See comments on records | | data.recordComments:write | Optional | Add comments to records | Avox's connect page shows the same list. A token without a required scope is refused ([AVX-3727](https://docs.theavoxai.com/error-codes/avx-3727)), as is a token Airtable does not accept ([AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686)). Without an optional scope, only the actions that need it are switched off, and they say why ([AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690)). To add one later, edit the token in Airtable and click **Test connection**. The token is stored encrypted and is never shown again, not even to you. ### What you see in Avox afterwards Open **Apps**, then **Airtable**. The menu has **Overview**, **Sheets** and **Activity**. - **Overview** shows the status, your Airtable account, the **Default base**, who connected it and the last problem with its code. **Test connection** says whether Airtable accepted the token and the default base, and whether comments are off. - **Sheets** has **Sent by Avox** (the tables Avox read or wrote) and **In Airtable** (every table the token can open, with **Load more**). A table's page shows its fields, views and first 20 records. A record's page shows every field and its comments, with **Open in Airtable**, **Add a comment** and **Delete record** (asks first; both need **Manage connected apps**). - **Activity** has **Usage** (calls per day over 7, 30 or 90 days) and the **Log** of every call. The status is **Connected**, **Needs reconnecting** or **Having trouble**. ### Using Airtable in Avox Flows do not call Airtable directly. To save a Flow's answers, make an automation that starts with **Flow submitted**. Add a **Use a connected app** step and pick what to do under **Airtable**: **Find Airtable records**, **Get an Airtable record**, **Add an Airtable record**, **Update an Airtable record**, **Add or update an Airtable record**, **Delete an Airtable record** (you confirm it in the step first), **Add files to an Airtable record** and **Comment on an Airtable record**. Steps are free (no credits), and let you pick bases, tables, views and fields from Airtable. Fill each field with fixed text or values like `{{flow.email}}`. Later steps use the record's fields by name, like `{{record.first_name}}`, plus its id. A find sets `{{records.count}}` and the first record's fields; set **If nothing matches** to stop or carry on. **Add or update** needs 1 to 3 **match** fields, like Email, filled in every time ([AVX-3738](https://docs.theavoxai.com/error-codes/avx-3738)). Automations can use only three details of the person in the chat: `{{contact.name}}`, `{{contact.first_name}}` and `{{contact.phone_last4}}` (the last 4 digits), plus your own custom contact fields. The full phone number is not offered, so ask for it in the Flow or read it from a table row. Avox writes each value the way its field needs: numbers like `1250`, checkboxes as yes or no, a select by its option's name, dates like `2026-10-25`, files as https links. A value that does not fit fails the step ([AVX-3731](https://docs.theavoxai.com/error-codes/avx-3731)). **Filter formulas** are Airtable's own, like `{Status} = 'Open'` ([AVX-3732](https://docs.theavoxai.com/error-codes/avx-3732)). **Worked example (made up for illustration).** A booking Flow asks for name, email and party size. An automation starts with **Flow submitted** and has one step, **Add or update an Airtable record**, on a table called Bookings: **Email** `{{flow.email}}`, **Name** `{{flow.name}}`, **Party size** `{{flow.party_size}}`, matching on **Email**. Use your own table and Flow field names. A returning customer updates their record instead of adding a new one. The premade automation **Save Flow answers to Airtable** starts you off. It adds a record from a Flow's answers and thanks the customer, with the Airtable step set to carry on if it fails. Pick your Flow, base and table. The sheet steps also work with Airtable: the "sheet" is a base and a table. ### Limits - Airtable allows 5 requests a second per base, and Avox spaces its calls out. Each Switchboard can make 120 calls a minute to Airtable ([AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695)). - Avox adds, updates and deletes up to 10 records per call ([AVX-3733](https://docs.theavoxai.com/error-codes/avx-3733)), and adds up to 10 files per call. A step fills up to 50 fields. A find returns 1 to 100 records (10 if you do not say). - Lists come 100 at a time. Airtable's plans limit calls and records ([AVX-3737](https://docs.theavoxai.com/error-codes/avx-3737)). Each try gives up after 10 seconds. ### When Airtable fails or says no 1. **Retries.** Reads, updates, add-or-update and deletes are tried again, up to two more times after about 0.4 and 1.2 seconds, when Airtable is unreachable or answers 429, 502, 503 or 504 (Avox honours a wait of up to 5 seconds). Adding a record, adding files and adding a comment are not repeated after a failure, because they might have gone through. If Airtable says slow down, it did nothing, so Avox waits 1 second and tries again, then 2 seconds, for every action. 2. **The log.** Each call is logged with its tries. For records the log keeps counts and ids, not the values. 3. **The status.** If Airtable stops accepting the token (deleted or revoked), the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). Five failed calls in a row from Airtable's side make it **Having trouble**, and one good call makes it **Connected** again. A wrong base, table, field or value, a missing scope or a plan limit does not count against its health. 4. **Your automation.** The step stops the run or carries on, as you chose in **If it can't be done** (the default is **Stop the run**). While Airtable **Needs reconnecting**, the step does not call Airtable and fails with [AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) in the run log. Other failures show [AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605). 5. **The pages.** If a list cannot be read, the page shows what Avox saved, with [AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717). **What happens to the person's data.** If the save fails, that record is not in Airtable, and Avox does not try it again later on its own. The chat goes on and the Flow answers stay in your Inbox. Correct the cause and run the automation again. Codes you may see: [AVX-3728](https://docs.theavoxai.com/error-codes/avx-3728) base not reachable, [AVX-3729](https://docs.theavoxai.com/error-codes/avx-3729) table not found, [AVX-3730](https://docs.theavoxai.com/error-codes/avx-3730) field not found, [AVX-3734](https://docs.theavoxai.com/error-codes/avx-3734) record gone, [AVX-3735](https://docs.theavoxai.com/error-codes/avx-3735) file link not usable, [AVX-3736](https://docs.theavoxai.com/error-codes/avx-3736) no base named and no default, [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) Airtable is not answering, and [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) the Switchboard is paused. ### Disconnecting Click **Disconnect** on Airtable's Overview. Avox shows what uses it and deletes the token it saved. Airtable is not told, so also delete the token in Airtable's Builder hub. The log and usage stay for your retention period, and your records stay in Airtable. Steps that use Airtable fail until you connect again. ### Common questions The token only opens the bases listed under **Access**. Add the base in Airtable ([AVX-3728](https://docs.theavoxai.com/error-codes/avx-3728)). Not while connected. Reconnecting with a token from a different Airtable account is refused ([AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703)). Disconnect first to switch. ### Related --- ## Apps troubleshooting URL: https://docs.theavoxai.com/connections/apps/troubleshooting Section: Connections Start on the app's **Overview** (**Apps** in the sidebar, then the app): its status and the last problem with its code usually say what happened, and **Activity** has the log. **Test connection** checks the app again in a second. ### What happens when an app's service fails Every app is someone else's service, so it can be slow, busy, down or say no. Avox is built so that never breaks the rest of your account. Here is what happens, in order. 1. **Avox tries again, when that is safe.** A call that only looks something up, such as reading a list or an item, is tried up to two more times (after about half a second, then about a second) when the app is busy or briefly down. If the app says "slow down" and tells Avox how long to wait, Avox waits up to five seconds. A call that makes or changes something is repeated only when Avox can send the app a repeat key (like Stripe's and PayPal's payment links and refunds), so the app gives its first answer back instead of doing it twice; a cancel is never repeated. An automation step that runs again gets the payment link or invoice it already made. Each call gives up after ten seconds. 2. **The call is written to the log.** The app's **Activity** log keeps the time, the action, the result, how many tries it took and the app's own reason, with personal details removed. 3. **The app's status changes only when it should.** - If the app stops accepting Avox's access (removed, uninstalled, password changed, access ran out), the status becomes **Needs reconnecting** at once ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)). - If five calls in a row fail on the app's side, the status becomes **Having trouble**. - One good call after that puts it back to **Connected** by itself. - A bad detail in a step, an item that doesn't exist or a permission that was unticked does not count against the app's health. 4. **Your automations and Flows keep going.** A step that uses the app either stops the run or carries on, whichever you chose in the builder ([AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605)). While an app **Needs reconnecting**, the step fails straight away with "app isn't connected" ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)) and nothing is sent to the app; it then follows the same stop or carry-on choice. If your Switchboard is paused, the run doesn't start. Your Inbox, your team's replies and automations that don't use the app are not affected by an app that is down. 5. **The app's pages show what Avox saved.** If a list can't be read from the app, the page shows what Avox already saved, with a code saying why ([AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717)). Click **Refresh** once the app is back. 6. **Nothing happens twice.** Updates the app sends to Avox (instant updates) that arrive twice are kept once. Before a refund, cancel or reschedule, Avox reads the item from the app first, so the action fits its real state. If a money action failed, check the item in the app before you try again. Avox allows each Switchboard up to 120 calls a minute to each app. Past that, calls are refused with [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) until the minute passes. ### Connecting Avox isn't ready to connect that app yet ([AVX-3682](https://docs.theavoxai.com/error-codes/avx-3682)). Use another app for now, or ask hello@theavoxai.com when it will be ready. [AVX-3686](https://docs.theavoxai.com/error-codes/avx-3686): copy the keys again (whole, no spaces), check that live and test match, and give the key the permissions the app's **Setup in** checklist lists (for a Stripe restricted key: Write on Checkout Sessions, Refunds and Webhook Endpoints, Read on PaymentIntents and Charges). The message under the error is the app's own reason. - [AVX-3687](https://docs.theavoxai.com/error-codes/avx-3687): the sign-in was cancelled. Connect again and allow access. - [AVX-3688](https://docs.theavoxai.com/error-codes/avx-3688): it took more than 10 minutes or the page was reloaded. Start again. - [AVX-3689](https://docs.theavoxai.com/error-codes/avx-3689): finish in the same browser you started in, signed in to Avox. - [AVX-3690](https://docs.theavoxai.com/error-codes/avx-3690): a permission was unticked. Reconnect and leave every box ticked. - [AVX-3703](https://docs.theavoxai.com/error-codes/avx-3703): you signed in with another account. Reconnect with the first one, or disconnect first. Either your role doesn't include **Manage connected apps** ([AVX-3707](https://docs.theavoxai.com/error-codes/avx-3707)), the Switchboard has no plan ([AVX-3706](https://docs.theavoxai.com/error-codes/avx-3706)), or every app your plan allows is connected ([AVX-3683](https://docs.theavoxai.com/error-codes/avx-3683)). Hover the button to see which. ### After connecting The app stopped accepting Avox's access ([AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692)): Avox was removed in the app, the app was uninstalled, a password or security setting changed, or the access ran out. Click **Reconnect** and sign in with the same account. Steps that use the app fail with "app isn't connected" until then. Several calls in a row failed on the app's side. Open the log, filter by **Failed**, and open an entry to read the app's own reason. It goes back to Connected by itself once a call works. The app's own list couldn't be read ([AVX-3717](https://docs.theavoxai.com/error-codes/avx-3717)), so the page shows what Avox saved instead. The second code under it says why: [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) the app is down, [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695) it asked Avox to slow down, [AVX-3692](https://docs.theavoxai.com/error-codes/avx-3692) it needs reconnecting, [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711) the Switchboard is paused. Click **Refresh** once that's sorted. Avox reads the item from the app first, so the action fits its real state: only a paid payment can be refunded ([AVX-3720](https://docs.theavoxai.com/error-codes/avx-3720)), never more than what's left ([AVX-3719](https://docs.theavoxai.com/error-codes/avx-3719)); a link, meeting or booking can only be cancelled before it's paid, starts or ends ([AVX-3721](https://docs.theavoxai.com/error-codes/avx-3721)). Check the item in the app itself before trying again, so nothing happens twice. The app's reason is in the log under **Activity**. For Razorpay, Stripe, PayPal, WooCommerce and Shiprocket, open **Setup in** the app on its Overview (Zoho Books has no instant updates: Avox reads the invoices it made every 15 minutes). The **Setup check** says which part is missing and **How to fix** goes to the step: 1. The webhook in the app uses the exact address shown there. 2. Every event listed there is ticked. For Stripe and PayPal, **Check everything** asks the app and names any missing event, and **Set up the webhook for me** adds the webhook with every event. 3. The secret (or PayPal's Webhook ID) in Avox matches the app's ([AVX-3709](https://docs.theavoxai.com/error-codes/avx-3709)). 4. Keys and webhook are from the same mode (live or test) and the same account you connected. If updates fail the check, the page counts them and says why. After you change the secret, the count starts over. Updates that arrive twice are kept once. Every reason is listed on [The setup checklist](https://docs.theavoxai.com/connections/apps/payments#the-setup-checklist). Open the app's log and the failed entry. Common codes: - [AVX-3705](https://docs.theavoxai.com/error-codes/avx-3705): a detail was missing or in the wrong form (an empty amount, a date without its time zone). - [AVX-3713](https://docs.theavoxai.com/error-codes/avx-3713): the app refused (an order that doesn't exist, a refund above the payment). - [AVX-3694](https://docs.theavoxai.com/error-codes/avx-3694) and [AVX-3695](https://docs.theavoxai.com/error-codes/avx-3695): the app was down or busy. Avox already retried. - [AVX-3711](https://docs.theavoxai.com/error-codes/avx-3711): the Switchboard is paused. - [AVX-3714](https://docs.theavoxai.com/error-codes/avx-3714): Connected apps is switched off for your account. Apps you already connected keep working; contact [Support](https://docs.theavoxai.com/support) to turn it back on. - [AVX-3739](https://docs.theavoxai.com/error-codes/avx-3739): this one app isn't available for your account. It shows as "Not available for your account" on Apps, and steps that use it fail. Contact [Support](https://docs.theavoxai.com/support) if you need it. - [AVX-5240](https://docs.theavoxai.com/error-codes/avx-5240) or [AVX-5242](https://docs.theavoxai.com/error-codes/avx-5242): the trigger's app isn't connected. Connect it on **Apps**. - [AVX-5241](https://docs.theavoxai.com/error-codes/avx-5241) or [AVX-5243](https://docs.theavoxai.com/error-codes/avx-5243): the trigger's settings aren't finished (the app, the events, a currency with an amount). - The item isn't linked to a contact: the run starts, but message steps are skipped. Use **Notify the team** or a table step for those. - An app event trigger with set hours waits for them, and one with **Not for people who sent STOP** skips anyone with the Unsubscribed tag. - Only real changes count: an update the app sends twice, or a late one that changes nothing, starts nothing. Entries are kept as long as your webhook log retention on [Compliance](https://docs.theavoxai.com/compliance) ([AVX-3710](https://docs.theavoxai.com/error-codes/avx-3710)). The log shows up to 90 days at a time; pick an earlier range to see older ones. ### Disconnecting Disconnecting deletes Avox's saved access and keeps the log. If you see [AVX-3697](https://docs.theavoxai.com/error-codes/avx-3697), Avox is disconnected but the app didn't confirm it: remove Avox in the app's settings for connected apps too. Still stuck? Email hello@theavoxai.com with the code and the time it happened. --- ## Health URL: https://docs.theavoxai.com/health Section: Connections Health is the first place to look when something feels off. It answers three questions: is your number connected, is Meta reporting a problem with it, and are your messages getting delivered. The header reads "Connection status and message delivery health, at a glance." ### Who can use Health | Action | Admin | Manager | | --- | --- | --- | | View Health | Yes | Yes | | Click **Check health now** | Yes | Yes | Health needs a connected WhatsApp number. Until one is connected, the **Health** item in the sidebar shows a lock with "This feature needs a WhatsApp connection first." ([AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). ### Range and alerts The `7d`, `30d`, and `90d` buttons at the top choose the window for the delivery charts and the insights. Health opens on `30d`, and the range is part of the page address (`/health?days=7`). Below the header, the same account alert banners as [Overview](https://docs.theavoxai.com/overview#account-alerts) appear when something account-wide needs attention - an overdue payment, a canceled subscription, or a connection that's in error, disconnected, or paused. ### Connection cards Each WhatsApp number in the Switchboard gets its own card, newest first, showing: - **Its name** (or phone number) and **Last active** - how long ago Avox last received an event for this number from Meta. - **A status badge** - the connection's status, the same as on [Connections](https://docs.theavoxai.com/connections#connection-statuses): `connected`, `connecting`, `disconnected`, `error`, or `paused`. A connection paused because the subscription was canceled shows `billing paused`, with the line "Paused - this Switchboard's subscription was canceled." and a **Review billing** link. - **A heartbeat label** with a pulsing dot - see [Heartbeat](#heartbeat). - **Connection Health** - the **Check health now** button. See [Check health now](#check-health-now). #### Heartbeat The heartbeat label tells you how recently your number was active, based on the last event Meta sent Avox for it (a message, a status update, a template update, and so on): | Label | Meaning | | --- | --- | | **Operational · heartbeat** (green) | Avox received an event for this number within the last 5 minutes. | | **Degraded · heartbeat** (amber) | The last event arrived between 5 and 30 minutes ago. | | **Down · heartbeat** (red) | Nothing for over 30 minutes, or nothing ever. | The heartbeat follows activity. A quiet number - for example overnight, when no customers message you - shows **Down** even though nothing is wrong. If you're unsure, click **Check health now** for Meta's own answer. #### Live heartbeat Next to your connection cards, the **Live heartbeat** monitor shows the same signal as a moving trace. It checks for new activity every few seconds: - While the last event is under 30 minutes old, the trace beats and the counter shows "seconds since last heartbeat", ticking up live. - After 30 minutes it flattens and reads "no recent heartbeat". - Before any event has arrived, it's flat and reads "no heartbeat yet". The monitor follows your most recently connected number. ### Check health now **Check health now** asks Meta, live, whether your number can send messages right now. It uses Meta's own WhatsApp Business health status, not Avox's activity data. The button shows "Checking" while Avox asks Meta. Each row has a green shield (all good) or a red shield (a problem), a label, and a plain-language description. See the table below. Click **View raw response** to open **Raw Meta response** ("Straight from Meta's health_status field, unmodified."). This is useful when you contact [Support](https://docs.theavoxai.com/support) or check something in WhatsApp Manager. | Row | What it checks | | --- | --- | | **Can send messages** | Whether Meta allows this connection to send right now. Green reads "This connection can send messages right now."; otherwise it shows the status Meta reports. | | **WhatsApp Business Account** | Any problem Meta reports on your WhatsApp Business Account. | | **Phone number** | Any problem Meta reports on the phone number itself. | | **Business verification** | Any problem Meta reports on your business portfolio. | | **App configuration** | Any problem Meta reports on the app connected to your account. | A row with no problems reads "No issues reported." A row with a problem shows Meta's own description, followed by Meta's suggested fix when Meta provides one. Results are kept for 60 seconds, for everyone in the Switchboard. Clicking again within a minute - yours or a teammate's click - shows the same result instantly instead of asking Meta again. Before your first check, the section reads "Not checked yet this session." If Meta can't be reached, the section reads "Couldn't check this connection's health with Meta right now." ([AVX-3080](https://docs.theavoxai.com/error-codes/avx-3080)). Wait a minute and try again. A connection that needs to be reconnected also ends here - connect it again with the [setup wizard](https://docs.theavoxai.com/connections/setup). ### Delivery health Two charts follow the selected range: - **Delivery health right now** - a gauge showing the most recent day's delivery rate: the share of messages you sent that reached delivered or read. The label under the number reads **Excellent** (95% and up), **Good** (85% and up), **Watch this** (70% and up), or **Needs attention** (below 70%). With no messages, it shows `-` and "No messages yet". - **Delivery rate** - the same percentage per day across the range. It's the same calculation as on [Overview](https://docs.theavoxai.com/overview) and [Analytics](https://docs.theavoxai.com/analytics), so the pages always agree. ### Quality history A list of the quality and messaging-limit updates Meta has sent about your number, newest first. Each row shows when it arrived and, when Meta included them: - **Messaging tier** - your number's current messaging limit, as Meta names it (for example `TIER_1K`). - **Quality event** - what changed, as Meta names it (for example `FLAGGED` or `UPGRADE`). Before Meta sends any, the card reads "No quality updates from Meta yet." See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits) for what these mean and how to improve them. How long Avox keeps this history is set on [Compliance](https://docs.theavoxai.com/compliance). ### Recent calls The 10 most recent call events for your Switchboard, with the contact, the direction and event (for example "Inbound · Connect"), and when it happened. Use **Previous** and **Next** to page through, or **View all →** to open [Calls](https://docs.theavoxai.com/calls). Before the first call, it reads "No calls yet." ### The Insights rail On the right, the **Insights** card ("What's worth noticing right now") sums up the page. The [Avox Avatar](https://docs.theavoxai.com/avox-avatar) at the top of the card is smug when all is well, unsure when something deserves a look, and sad when something needs attention. | Insight | When it appears | | --- | --- | | 1 connection hasn't reported a heartbeat in over 30 minutes. | A connection's heartbeat is **Down**. (Critical) | | Meta flagged this number's quality recently - see Quality history below. | Quality history includes a `FLAGGED` event. | | Delivery rate dropped 12 points over this window. | The last day's delivery rate is 10 or more points below the first day's. | | Delivery rate has stayed strong across this window. | The last day's delivery rate is 95% or higher. | | Nothing concerning - connections and delivery both look healthy. | None of the above apply. | Under the card, **Learn more in the docs** opens this page. ### What to do when something's wrong | You see | Try this | | --- | --- | | Status badge `error` or `disconnected` | Open the connection from [Connections](https://docs.theavoxai.com/connections) and check it. Use **Open in Meta** to look at the number in WhatsApp Manager. If it doesn't recover, reconnect the number with the setup wizard - see [Setup](https://docs.theavoxai.com/connections/setup). | | `billing paused` | Resolve the payment on [Billing](https://docs.theavoxai.com/billing). The connection resumes on its own once the subscription is active again. | | **Can send messages** is red | Read the description on the red rows and follow Meta's suggested fix. Then check again after a minute. | | Delivery rate falling | Check [Quality history](#quality-history), your [templates](https://docs.theavoxai.com/templates/approval), and [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). | | Heartbeat **Down** at a busy time | Check [Logs](https://docs.theavoxai.com/logs) for recent events and failures, then run **Check health now**. See also the [Status page](https://docs.theavoxai.com/status-page). | For Meta's own error numbers, see [Meta error codes](https://docs.theavoxai.com/meta-error-codes). --- ## Logs URL: https://docs.theavoxai.com/logs Section: Connections Logs is the record behind everything else in your dashboard. Every event Meta sends Avox about your WhatsApp number - a new message, a delivery receipt, a template decision, a call - is logged here with its processing status. The header reads "Webhook delivery history for your account." Logs shows what Meta sends to Avox. Requests your own server makes with an API key, and messages Avox forwards to your endpoint, are on [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). ### Who can use Logs Every member of the Switchboard - Admins and Managers - can view Logs and open any event. Logs is read-only. Logs needs a connected WhatsApp number. Until one is connected, the **Logs** item in the sidebar shows a lock with "This feature needs a WhatsApp connection first." ([AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). ### How an event moves through Avox When Meta sends an event, Avox confirms it really came from Meta, stores it right away, and then processes it - adding the message to your [Inbox](https://docs.theavoxai.com/inbox), updating a template's status, logging a call, and so on. See [Reliability](https://docs.theavoxai.com/reliability) for the full picture. Each event has one of four statuses: | Status | Meaning | | --- | --- | | `pending` | Received and waiting to be processed. Events normally move on within seconds. | | `processing` | Being processed right now. | | `processed` | Done. Its effect is visible in your dashboard. | | `failed` | Avox tried 5 times and couldn't process it. The **Error** column says why. | If processing an event fails, Avox puts it back in line and tries again automatically. The **Attempts** column counts the tries. After the fifth try the event is marked `failed`. ### Choosing a range The `7d`, `30d`, and `90d` buttons at the top choose which events the charts, table, and insights cover. Logs opens on `30d`, and changing the range takes you back to the first page of the table. ### Charts - **Delivery status** - how many events in the range are processed, pending, processing, and failed. - **Top event types** - the event types Meta sent most in the range (up to six). A sudden new entry is often the first sign of a new setting or integration on your WhatsApp account. With no events in the range, both read "No webhook activity in this window yet." ### Filters Two filters sit above the table. They work together with the range, so you can, for example, list only failed template updates from the last 7 days. - **Status** - **All statuses**, `pending`, `processing`, `processed`, or `failed`. - **Event type** - **All event types** or one of the types below. | Event type | What it is | | --- | --- | | `messages` | A customer message, or a sent / delivered / read / failed update for a message you sent. | | `message_template_status_update` | Meta approved, rejected, paused, or disabled one of your templates. | | `phone_number_quality_update` | Your number's quality or messaging limit changed. Shows in Health's Quality history. | | `calls` | A WhatsApp call event, such as connect or terminate. | | `history` | Chat history imported from the WhatsApp Business app. | | `smb_app_state_sync` | Contacts synced from the WhatsApp Business app. | | `smb_message_echoes` | A message your team sent from the WhatsApp Business app. | | `account_alerts` | An alert Meta raised about your account. | | `account_update` | A change Meta made to your account, such as a review decision. | | `automation_skipped` | Created by Avox, not Meta: an automation didn't run because the connection was paused after the subscription was canceled. | For each of Meta's event types in detail, with example payloads, see [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks). ### The events table | Column | What it shows | | --- | --- | | **Event** | The event type. | | **Status** | `pending`, `processing`, `processed`, or `failed` (in red). | | **Attempts** | How many times Avox has tried to process it. | | **Received** | When Avox received it. | | **Error** | Why the last attempt failed, or `-`. | The table shows 25 events per page, with "Page 1 of 8 · 190 events" and **Previous** / **Next** buttons when there are more. With no events at all it reads "No webhook activity logged yet."; with filters that match nothing, "No webhook events match those filters." ### Opening an event Click any row to open its details: - **The event type** as the title. - **When it was received**, and when it was processed - or "Not yet processed". - **The error**, in red, if the event failed. - **The full payload** - the exact JSON Meta sent, formatted for reading. The payload is the best starting point when you're investigating a delivery question or talking to [Support](https://docs.theavoxai.com/support): it shows exactly what Meta told Avox, and when. ### The Insights rail The **Insights** card on the right ("What's worth noticing right now") reads the range for you. The [Avox Avatar](https://docs.theavoxai.com/avox-avatar) at the top of the card is smug when all is well, unsure when something deserves a look, and sad when something needs attention. | Insight | When it appears | | --- | --- | | 12% of webhooks in this window failed to process - worth investigating soon. | 10% or more of the events in the range failed. (Critical) | | 3 webhooks failed to process in this window. | Some events failed, but under 10%. | | "messages" is your most common event type this window (120 received). | There's any activity in the range. | | No webhook activity in this window yet. | Nothing arrived in the range. | Under the card, **Learn more in the docs** opens this page. ### When events fail 1. Open the failed event and read its error. 2. Check the connection on [Health](https://docs.theavoxai.com/health) - a paused or disconnected number is the most common cause. 3. If the error isn't clear, or many events fail together, contact [Support](https://docs.theavoxai.com/support) with the event type and the time it was received. Avox staff can look at the event and process it again. ### How long logs are kept Events are kept for the log retention period set on [Compliance](https://docs.theavoxai.com/compliance), then removed automatically. ### Errors on this page If the log doesn't load, you see "Couldn't load your webhook logs. Try again." ([AVX-3079](https://docs.theavoxai.com/error-codes/avx-3079)). Refresh the page. --- ## Templates URL: https://docs.theavoxai.com/templates Section: Templates A **template** is a message you write once, submit to Meta for review, and then send as many times as you like. WhatsApp uses templates for every message a business starts: a first message to a customer, or a message after the [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window) has closed. This is Meta's rule for every business on WhatsApp. Avox lets you build templates step by step, submits them to Meta for you, keeps their review status up to date, and shows how each one performs. This preview uses the same component the template wizard and every template's own page use, so it always matches what you see in the dashboard. ### Where to go next | Page | What it covers | | --- | --- | | [Create](https://docs.theavoxai.com/templates/create) | Every step and field of the **Create template** wizard, and every limit Meta applies. | | [Library](https://docs.theavoxai.com/templates/library) | Starting from Avox's ready-written templates in every category, or from Meta's own pre-verified ones, which start working with no review wait. | | [Approval](https://docs.theavoxai.com/templates/approval) | Template statuses, Meta's review, rejections, editing, and status emails. | | [Insights](https://docs.theavoxai.com/templates/insights) | Sent, delivered, read, and clicked numbers for each template. | | [Send log](https://docs.theavoxai.com/templates/send-log) | Every send by your automations and the API: the values it carried, its status, and the replies and button taps it got. | | [Template categories](https://docs.theavoxai.com/whatsapp/template-categories) | Marketing, Utility, and Authentication, and how Meta applies them. | | [Create a template](https://docs.theavoxai.com/walkthrough/create-template) | A short click-through version of the wizard. | ### Getting approved fast Meta reviews every template, usually within minutes and at most in 24 hours. Avox checks the rules Meta rejects most often while you write, so a template is approved the first time: - The **Content** step shows **Our checks** live: red items (stray `{` or `}`, example values Meta refuses, a header with emoji or `*` `_` `~`) must be fixed before you can submit; amber items (placeholder examples like test or 123, promotional wording in a Utility template, requests for card, bank, ID or password details, shortened links) are common reasons for a rejection. - A Utility or Marketing template that sends a sign-in or verification code is rejected by Meta with no review since 1 December 2026: use the **One-time passcode** type for codes. - Promotional wording in a Utility template is approved as **Marketing** (it costs more and needs marketing opt-in). The wizard tells you when Meta did that. - Meta refuses a template that says the same as one already on the account; Avox names the matching template first. - The **message validity period** depends on the category: One-time passcode 30 seconds to 15 minutes (default 10 minutes), Utility 30 seconds to 12 hours (default 30 days), Marketing 12 hours to 30 days (default 30 days). - Meta allows 100 new templates per WhatsApp account per hour, and 250 templates per account until the business is verified (6,000 after). - A template from [Meta's library](https://docs.theavoxai.com/templates/library) is the quickest to get approved. Any review can take longer while Meta hasn't verified the business or the account has a payment problem. The full list, with every code, is on [Create](https://docs.theavoxai.com/templates/create#getting-approved-fast). ### Before you start - **Connect a WhatsApp number first.** Templates live in the WhatsApp Business Account behind your connected number, so the Templates page only opens once a number is connected. Without one, the dashboard sends you to [Connections](https://docs.theavoxai.com/connections) (see [AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). - **Check your plan's template limit.** Each Switchboard can hold as many templates as its plan allows - its own plan, or its owner's (see [Plans](https://docs.theavoxai.com/plans)). Templates you've deleted free up their slot. ### Who can do what Templates belong to a Switchboard, and every member of it can work with them. | Action | Admin | Manager | | --- | --- | --- | | View templates, drafts, and insights | Yes | Yes | | Create a template or start one from Meta's library | Yes | Yes | | Edit, delete, or refresh templates from Meta | Yes | Yes | | Resume or delete a draft | Yes | Yes | | Receive template status emails | Yes | - | If the **Create template** button doesn't appear for you, template creation has been switched off for your account. Contact [Support](https://docs.theavoxai.com/support) to have it turned back on. A request made anyway returns "This feature has been turned off for your account. Contact Avox support if you need it." ### The Templates page Open **Templates** in the sidebar. From top to bottom the page shows: **Templates used** shows how many of your plan's template slots this Switchboard is using, for example "3 of 5" on Growth. The **Docs** button opens this page, **Template library** opens the [Avox library](https://docs.theavoxai.com/templates/library#avox-library), and **Create template** opens the wizard. When every slot is used, **Create template** is disabled and a notice reads "You've used 5 of 5 templates. Delete one to create a new one. (AVX-3014)" with a **Manage templates** link - see [Freeing a slot](#freeing-a-slot). The most popular templates from Avox's own library, such as order confirmation, shipping update and login code, each with a small preview of the message. **Use this template** opens the wizard with everything filled in, ready to adjust and submit. **Browse all** opens the full [Avox library](https://docs.theavoxai.com/templates/library#avox-library). While every template slot is used (or you can't create templates) the buttons are disabled. Links in these templates are `example.com` placeholders - replace them with your own before submitting (see [Website links](https://docs.theavoxai.com/templates/create#website-links)). A strip of six featured templates from Meta's own library, plus a **Browse the full library** link. See [Library](https://docs.theavoxai.com/templates/library). Templates you started but haven't submitted yet, with a count such as "Drafts (2/10)". See [Drafts](#drafts) below. A table of every template in this Switchboard, with a **Refresh from Meta** button above it, a search box and status chips. The **Your templates** table has these columns: | Column | What it shows | | --- | --- | | Name | The template name, its type icon (hover it for the type, such as "Custom message" or "One-time passcode"), and the start of its body text. | | Category | Marketing, Utility, or Authentication, as Meta reports it. | | Language | The language code, such as `en_US`. | | Status | Approved, Pending review, Rejected, Paused, or Disabled. See [Approval](https://docs.theavoxai.com/templates/approval). | | Sent | Messages sent with this template in the last 30 days. See [Insights](https://docs.theavoxai.com/templates/insights). | | Read rate | Read messages as a share of sent messages over the same 30 days. | | Last edited | When the template was created or last edited. | | Manage | Opens the template's own page. | **Search templates** finds a template by name, category, language or body text, and the status chips (**All**, **Approved**, **In review**, **Rejected**, **Paused or off**, each with its count) narrow the table. Rows slide into place instead of jumping; **Clear the filters** shows everything again. A line above the table counts your templates ("3 of 12 templates" while a filter is on). With none yet, the table reads "No templates yet - create one from the premade gallery or from scratch, or refresh in case one already exists on Meta's side." #### The Starter template When you connect a number, Avox adds one ready-to-use template to its WhatsApp account so you can test straight away: a delivery update from Meta's Template Library, named `avox_delivery_update`. It carries a **Starter** badge in the table and on its page. It counts toward your plan like any other template, so if every slot is already used, Avox skips it. It's yours: delete it any time and make your own. A deleted Starter template never comes back. #### Refresh from Meta Meta reports status changes to Avox automatically, so the table normally stays current on its own. **Refresh from Meta** asks Meta right away for the latest status, category, quality rating, and rejection reason of every template in the table. You see "Refreshed from Meta" when it finishes. If Meta can't be reached, you see [AVX-3026](https://docs.theavoxai.com/error-codes/avx-3026); try again in a moment. ### Drafts The wizard saves your work as a draft a moment after you stop typing, so you can close the tab and come back later. A draft is created as soon as you pick something in the wizard, and its address (`/templates/new?draft=...`) can be bookmarked. - Each Switchboard can keep up to **10 drafts** at once. At 10, the wizard stops saving and shows [AVX-3029](https://docs.theavoxai.com/error-codes/avx-3029). Delete a draft to free a slot. - Each draft card shows its name (or "Untitled draft"), its category (or "Not started yet"), which step it's on ("Step 2 of 3"), and when it was last edited. - **Edit** reopens the wizard exactly where you left off. If the draft was deleted in another tab, you see [AVX-3030](https://docs.theavoxai.com/error-codes/avx-3030). - The trash icon deletes the draft straight away. If that fails, you see "Couldn't delete that draft. Try again." - **Start over** inside the wizard discards the current draft and opens a blank wizard. - A draft is removed automatically once its template is submitted. **Create template** always starts a new draft, so it never overwrites one you have in progress. ### A template's own page Click **Manage** on any row to open the template's page ("Everything Meta knows about this template."). **Back to Templates** returns to the list. It shows: - **Details** - the template's type, its status badge, category, language, last-edited time, header, body, example values, footer, buttons, and (for a calling permission request) its fixed interactive element. A One-time passcode template shows "Meta writes this message's copy itself - see the preview." in place of a body. - **A live preview** of the template, built from the same content. - **Issues** - every problem with the template in one place (see below). - **Last 30 days** - delivery numbers straight from Meta. See [Insights](https://docs.theavoxai.com/templates/insights). - **Used by** - every Broadcast, smart link, automation and table that sends or fills this template, with its state (**Live**, **Paused**, **Draft**, **Ended**) and a link to it. The ones that would stop a delete come first. See [Deleting a template](#deleting-a-template). - **Filled in by automations**, **Sends over time** and **Send log** - which automations send the template and where their values come from, then every send with its status and replies. See [Send log](https://docs.theavoxai.com/templates/send-log). - **Edit template** (or **Edit and resubmit** for a rejected or paused template) - shown for Custom message templates. See [Editing a template](https://docs.theavoxai.com/templates/approval#editing-a-template). - **Delete template** - removes the template. #### Issues The **Issues** panel collects everything that could stop the template from being approved or sent: - **Meta's verdict** - for a rejected template, the reason code Meta gave (for example `INVALID_FORMAT` or `PROMOTIONAL`) explained in plain English, with how to fix it. A paused, disabled or flagged template gets the same treatment, including any note Meta sent with it. - **Quality** - a yellow or red quality score, and what it means. - **Category changes** - when Meta moved the template to another category, or says it will. - **Our checks** - problems Avox finds in the content before Meta does: variables out of order or missing sample values, stray curly brackets, placeholder or refused example values, a body that starts or ends with a variable, text over Meta's length limits, header formatting, button rules, shortened links, wording that sends a sign-in code or asks for sensitive details, and promotional wording in a Utility template (which Meta approves as Marketing). - **History** - a timeline of every status, quality and category change Meta reported, and every edit submitted from Avox. What each rejection reason means is listed in [Approval](https://docs.theavoxai.com/templates/approval#rejection-reasons). #### Deleting a template Click **Manage** on its row in **Your templates**. A dialog asks **Delete "template_name"?** and explains: "This removes it from Meta and from Avox - it can't be undone." Click **Delete template** in the dialog. You see "Template deleted" and return to the Templates page. The slot is free for a new template. Meta deletes every language version that shares the template's name. If the delete fails, you see [AVX-3024](https://docs.theavoxai.com/error-codes/avx-3024). A template that's still in use can't be deleted: a Broadcast that isn't finished, a smart link that can still be opened, or an automation that's on. The delete window lists them with links; change or stop those first, then delete it ([AVX-5360](https://docs.theavoxai.com/error-codes/avx-5360)). Drafts, ended links and switched-off automations don't stop a delete. #### Freeing a slot When every template slot is used, **Manage templates** (on the limit notice in the Templates page, the wizard, or the library) opens the Templates page at **Your templates** with rejected, paused and disabled templates highlighted. They can't be sent as they are, so they're usually the ones to delete. Open one with **Manage**, then **Delete template**. Automations that send a deleted template can't be switched on again until you pick a different template for that action. See [Actions](https://docs.theavoxai.com/automation/actions). ### Sending a template Once a template is **Approved**, you can send it: - **From an automation** - the **Send a template** action sends one of your approved templates when the automation fires. See [Actions](https://docs.theavoxai.com/automation/actions). It can fill each variable with live values: a cell from a [table](https://docs.theavoxai.com/tables) row, a customer's Flow answers, the contact's name, or a payment link a connected app just made, like `{{row.customer|there}}`. The examples Meta reviewed stay as they are; only the real sends change. See [Automations with tables and Flows](https://docs.theavoxai.com/automation/tables#filling-a-template). - **From a chat** - **Send a template** in the [Inbox](https://docs.theavoxai.com/inbox#send-a-template) sends one to that person, with its variables filled in from the contact where they clearly fit. **Send later** next to **Send template** picks a time up to 90 days ahead instead. The values are kept as you filled them in, and every check runs again when it goes out. One-time code templates can't be scheduled, and a header file must be a link rather than an upload. - **From your own systems** - the [Avox API](https://docs.theavoxai.com/avox-api) sends templates, including values for their variables. See [Message types](https://docs.theavoxai.com/avox-api/messages). A template can be sent at any time, inside or outside the [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). Meta charges for template messages by category - see [Pricing](https://docs.theavoxai.com/whatsapp-platform). Every send from an automation, the Inbox or the API shows on the template's page in the [Send log](https://docs.theavoxai.com/templates/send-log), with Meta's reason in plain words when one fails. ### Related errors | Code | Message | | --- | --- | | [AVX-3013](https://docs.theavoxai.com/error-codes/avx-3013) | Check the template name, language, and message body. | | [AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014) | You've used every template your plan allows. | | [AVX-3015](https://docs.theavoxai.com/error-codes/avx-3015) | Connect a WhatsApp number before creating templates. | | [AVX-3016](https://docs.theavoxai.com/error-codes/avx-3016) | Meta couldn't accept that template. Check its wording and try again. | | [AVX-3024](https://docs.theavoxai.com/error-codes/avx-3024) | Couldn't delete that template. Try again. | | [AVX-3025](https://docs.theavoxai.com/error-codes/avx-3025) | Couldn't load insights for this template right now. | | [AVX-3026](https://docs.theavoxai.com/error-codes/avx-3026) | Couldn't refresh templates from Meta. Try again. | | [AVX-3027](https://docs.theavoxai.com/error-codes/avx-3027) | Couldn't load Meta's template library right now. | | [AVX-3028](https://docs.theavoxai.com/error-codes/avx-3028) | Couldn't accept that file - try a smaller or differently formatted one. | | [AVX-3029](https://docs.theavoxai.com/error-codes/avx-3029) | You've reached the maximum of 10 saved drafts. Delete one to start another. | | [AVX-3030](https://docs.theavoxai.com/error-codes/avx-3030) | Couldn't load that draft. Try again. | | [AVX-3031](https://docs.theavoxai.com/error-codes/avx-3031) | Couldn't start a new draft from that template. Try again. | | [AVX-3051](https://docs.theavoxai.com/error-codes/avx-3051) | Meta rejected that edit. Check the wording and try again. | | [AVX-3160](https://docs.theavoxai.com/error-codes/avx-3160) | This template is still in Meta's review. You can edit it once it's approved, rejected or paused. | | [AVX-3161](https://docs.theavoxai.com/error-codes/avx-3161) | Only approved, rejected or paused templates can be edited. Create a new template instead. | | [AVX-3162](https://docs.theavoxai.com/error-codes/avx-3162) | Approved templates can be edited once every 24 hours. Try again later. | | [AVX-3163](https://docs.theavoxai.com/error-codes/avx-3163) | This approved template has used all 10 edits Meta allows in 30 days. | | [AVX-3164](https://docs.theavoxai.com/error-codes/avx-3164) | The category of an approved template can't be changed. | | [AVX-3165](https://docs.theavoxai.com/error-codes/avx-3165) | Nothing changed. Edit the content before resubmitting. | | [AVX-3166](https://docs.theavoxai.com/error-codes/avx-3166) | Meta says this template has reached its edit limit for now. | | [AVX-3167](https://docs.theavoxai.com/error-codes/avx-3167) | Meta is limiting requests right now. Wait a few minutes and try again. | | [AVX-3168](https://docs.theavoxai.com/error-codes/avx-3168) | Your WhatsApp connection needs to be reconnected before templates can be edited. | | [AVX-3169](https://docs.theavoxai.com/error-codes/avx-3169) | Couldn't load this template's history. Try again. | | [AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400) | A template with that name already exists in this language. Pick a different name. | | [AVX-3401](https://docs.theavoxai.com/error-codes/avx-3401) | This Avox template isn't written in that language. Pick one of its languages, or translate the text first. | | [AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402) | This template's header needs a sample image, video or document. Upload one before submitting. | | [AVX-3403](https://docs.theavoxai.com/error-codes/avx-3403) | Authentication templates use Meta's one-time passcode format. Their text and buttons can't be changed. | | [AVX-3404](https://docs.theavoxai.com/error-codes/avx-3404) | Number the variables `{{1}}`, `{{2}}` in order and give every one an example value. | | [AVX-3430](https://docs.theavoxai.com/error-codes/avx-3430) | Replace the sample link with your own working link (it must start with https://) | | [AVX-3969](https://docs.theavoxai.com/error-codes/avx-3969) | Pick a message validity period that fits this template's category. | | [AVX-3970](https://docs.theavoxai.com/error-codes/avx-3970) | Remove the stray `{` or `}`. Curly brackets can only be used in pairs around a variable, like `{{1}}`. | | [AVX-3971](https://docs.theavoxai.com/error-codes/avx-3971) | Sending a code? Use the One-time passcode type. Meta rejects Utility and Marketing templates that send sign-in or verification codes. | | [AVX-3972](https://docs.theavoxai.com/error-codes/avx-3972) | This wording is the same as another template on this WhatsApp account. Change the wording or use that template. | | [AVX-3973](https://docs.theavoxai.com/error-codes/avx-3973) | Meta lets one WhatsApp account create 100 templates an hour, and this account has reached it. Try again in an hour. | | [AVX-3974](https://docs.theavoxai.com/error-codes/avx-3974) | A sample value can't contain curly brackets, tabs, line breaks or 4 spaces in a row. | --- ## Create URL: https://docs.theavoxai.com/templates/create Section: Templates The **Create template** wizard builds a template in three steps - **Type**, **Name**, and **Content** - and submits it to Meta for review. A live phone preview on the right updates as you type. Any Switchboard member (Admin or Manager) can create templates. Want the short version? See the [Create a template](https://docs.theavoxai.com/walkthrough/create-template) walkthrough. ### Open the wizard Go to **Templates** and click **Create template**. The wizard opens at `/templates/new`. The heading **Create template** has the Blobatar in front of it and reads "Submitted straight to Meta for review. Approval isn't instant." Across the top of the wizard you'll find: - **Docs** - opens the [Templates](https://docs.theavoxai.com/templates) docs. - **The step row** - **1 Type**, **2 Name**, **3 Content**, under the heading. Click any step you've already reached to jump back to it. - **The back button** - the round arrow at the left end of the step row. On step 1 it returns to the Templates page; on steps 2 and 3 it goes to the step before. Your work stays saved as a draft. - **The summary bar** (from step 2 on) - the template name, language, category, and type, plus a **Start over** link that discards this draft and opens a blank wizard. The wizard saves your progress as a draft a moment after each change. See [Drafts](https://docs.theavoxai.com/templates#drafts). ### Step 1: Type #### Browse templates At the top of step 1, **Browse templates** opens a template browser right inside the page, with two tabs: - **Avox library** - Avox's own ready-written templates for order updates, reminders, login codes, offers and more, with the most popular ones first. Search, or filter by **Utility**, **Marketing** or **Authentication**. **Show all** lists every one, and **Open the full library** goes to the [Avox library](https://docs.theavoxai.com/templates/library#avox-library) page. - **Meta's library** - Meta's own ready-written Utility and Authentication templates, already checked by Meta, so most are approved straight away. Pick **All**, **Utility** or **Authentication**, a topic (such as **Orders and delivery**, **Payments** or **Account updates**), a use, an industry or a language, or search by words; every choice shows how many templates it has. Each template shows once, with how many languages it comes in (for example "Available in 92 languages"), twelve to a page. Avox keeps its own copy of Meta's library and refreshes it every day. Hovering or tabbing to a template shows it on the phone preview. Click one (or press Enter) to fill the wizard in: an Avox template opens step 2 with every field filled in and a box reading "From the Avox library:" with its title and languages; a Meta template opens step 2 ready to name and start (see [A template from Meta's library](#a-template-from-metas-library)). **Hide templates**, the close button or Escape closes the browser. At your template limit the templates can't be picked, and the browser shows the limit notice ([AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014)). #### Select your template category To write your own, pick one of three categories under **Or write your own**. Hovering a tile changes the phone preview to an example of that kind of message. | Category | Shown as | Template types offered | | --- | --- | --- | | **Marketing** | Offers, news and invitations. Anything that promotes your business is Marketing. | Custom message, Catalogue | | **Utility** | Updates about something the customer already did, like an order or booking. No offers. | Custom message, Calling permission request | | **Authentication** | One-time passcodes for signing in or confirming an action. Meta writes the text. | One-time passcode | See [Template categories](https://docs.theavoxai.com/whatsapp/template-categories) for how Meta uses categories. #### Pick a template type After you pick Marketing or Utility, **Pick a template type** appears. Click a type to move to step 2. - **Custom message** - "Fully your own header, body, footer, and buttons." - **Catalogue** (Marketing) - "Links your product catalogue with a fixed "View catalog" button." - **Calling permission request** (Utility) - "Ask permission before a WhatsApp voice call." For **Authentication**, a **One-time passcode** card explains that "Meta writes the actual message copy, you configure how the code gets delivered." Click **Continue** to move to step 2. Meta's pre-verified templates are in **Browse templates** > **Meta's library** (above), or on the full [Library](https://docs.theavoxai.com/templates/library) page. ### Step 2: Name Step 2 is headed **Name your template**. | Field | Rules | | --- | --- | | **Template name** | Required. Lowercase letters, numbers, and underscores only, up to 512 characters, for example `order_confirmation`. | | **Language** | The language Meta reviews the template in. Every language Meta supports is listed (more than 100, including regional ones such as English (India) or Spanish (Mexico)); type to search. Defaults to English (US). Write the text in the language you pick: Meta doesn't translate it. | Click **Next** to continue (it stays disabled until you enter a name), or **Back** to return to step 1. A template's name and language can't change after you submit it. To use a different name or language, create a new template. #### Unique names Meta needs each name and language pair to be unique in your WhatsApp Business Account. If one of this Switchboard's templates already uses the name in the language you picked, the wizard shows [AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400) under **Template name** with a button to use the next free name (for example `order_confirmation_2`). The same name is fine in another language. #### Language of an Avox template When you started from the Avox library and change the **Language**: - if the template is also written in the new language, a note says the text is still in the old one, with a **Load the** button that swaps in the new language's text; - if it isn't written in that language, you see [AVX-3401](https://docs.theavoxai.com/error-codes/avx-3401) with buttons to switch back. You can also keep your language and rewrite the text yourself before submitting - Meta reviews the text in the language you choose. Authentication templates work in every language, since Meta writes their text. #### A template from Meta's library A template picked from Meta's library starts on step 2 with a free name filled in, in your own language when Meta has the template in it (else English), and a box reading "From Meta's library:" that shows what the template says. Its text is fixed and already checked, so there's no step 3: - **Language** offers only the languages Meta has that template in. Picking another one shows that language's text in the box and on the phone preview. - The switches add Meta's optional extras where the template supports them: a contact number, a "learn more" link or a track-package link, or for an Authentication template a security recommendation. - A website button needs **your website link** (a working `https://` link on your own site). End it with `{{1}}` for a different link per message, and add an **Example of a finished link**. A call button needs **your phone number** with its country code. Without these, **Start using** stops with [AVX-3966](https://docs.theavoxai.com/error-codes/avx-3966). Click **Start using**. Meta approves most library templates straight away, and the Templates page shows **Approved** as soon as Meta says so (it checks again by itself for a few minutes if Meta is still reviewing it). If Meta no longer offers the template you picked, the box says so ([AVX-3967](https://docs.theavoxai.com/error-codes/avx-3967)) with **Pick another template**. ### Step 3: Content What you fill in depends on the type you picked. Every type ends with the same two controls: **Message validity period (optional)** and **Submit to Meta**. #### Custom message A fully custom message, available under Marketing and Utility. Choose how variables are written in this template. **Number** uses numbered placeholders such as `{{1}}` and `{{2}}`. **Text (named)** uses names such as `{{customer_name}}`. Choose **None**, **Text**, **Image**, **Video**, or **Document**. - **Text** - up to 60 characters. Click the `{{1}}` button to insert the header's one variable, then type an example value for it in the field that appears. - **Image**, **Video**, or **Document** - click **Upload sample image** (or video, or document) to upload a real sample file. Meta reviews the template against it. Click the **x** next to the file name to remove it. Required, up to 1024 characters (a counter shows how many you've used). The toolbar above the box styles selected text: **Bold** wraps it in `*`, **Italic** in `_`, **Strikethrough** in `~`, and the `` button in three backticks for monospace. **Insert variable** adds the next numbered variable (or a named one) at the cursor. When the body contains variables, a box titled "Example values - required by Meta for review" appears with one field per variable, such as "Example for `{{1}}`". Fill in every one. A small gray line under the message, up to 60 characters. Click **Add** to add a button, choose its **Type**, and fill in its fields. See [Buttons](#buttons) below. #### Calling permission request Asks a customer for permission to call them on WhatsApp. It has the same **Type of variable**, **Header**, **Message body**, example values, and **Footer** fields as a custom message. In place of buttons, Meta adds a fixed calling-permission element that can't be combined with any other button. To place calls you also need WhatsApp Calling turned on for your number - see [Calling](https://docs.theavoxai.com/connections/calling). #### Catalogue Shares your product catalogue. It has a **Message body**, example values for numbered variables, and an optional **Footer**. It has no header. Meta adds one fixed **View catalog** button, and its text can't be edited. #### One-time passcode Authentication templates carry a one-time code. Meta writes the message itself; you choose how the code reaches your customer. - **Zero-tap auto-fill** - "Sends the code automatically - easiest for customers." - **One-tap auto-fill** - "Sends when the customer taps the button." - **Copy code** - "Customer copies and pastes it into your app." For zero-tap and one-tap, click **Add app** and enter your Android app's package name (for example `com.example.myapplication`, up to 224 characters) and its signature hash (exactly 11 characters). At least one app is required. Copy code doesn't need this. Shown for zero-tap only. Switch it on to accept Meta's zero-tap terms. **Add security recommendation** (on by default) adds "For your security, do not share this code." **Add expiry time for the code** (on by default) adds an expiry notice; set **Expires in** to 1 - 90 minutes (default 10). #### Message validity period **Message validity period (optional)** sets how long Meta keeps trying to deliver a message sent with this template. If Meta can't deliver it in that time, the message isn't delivered and you aren't charged. Meta allows a different range for each category, and the list only offers periods inside it: | Category | Allowed | Meta's default | Choices in the wizard | | --- | --- | --- | --- | | One-time passcode (Authentication) | 30 seconds to 15 minutes | 10 minutes | 30 seconds, 1, 2, 5, 10 or 15 minutes | | Utility | 30 seconds to 12 hours | 30 days | 5, 10 or 30 minutes, 1, 3, 6 or 12 hours | | Marketing | 12 hours to 30 days | 30 days | 12 hours, 1, 3, 7, 14 or 30 days | Leave it on **Meta's default** unless an old message would be useless or confusing (a delivery window, a sale that ends tonight). A period outside the category's range is refused with [AVX-3969](https://docs.theavoxai.com/error-codes/avx-3969); changing the category puts the choice back to Meta's default. ### Buttons Custom message templates can have up to **10 buttons**. Every button lives in one list; pick each one's type from the **Type** menu. | Type (as shown) | Fields | Limit per template | | --- | --- | --- | | **Custom** | **Button text**, up to 25 characters. The customer's tap comes back to you as a reply. | Up to 10 | | **Visit website** | **Button text** (up to 25), **URL type** (Static or Dynamic), and **Website URL** (a full URL, up to 2000 characters). | Up to 2 | | **Call Phone Number** | **Button text** (up to 25), **Country**, and **Phone number**. | 1 | | **Call on WhatsApp** | **Button text** (up to 25). Needs WhatsApp Calling turned on for this number; once a customer grants permission, it stays active for 7 days. | 1 | | **Copy offer code** | **Offer code** - a sample code Meta reviews, up to 20 characters. The button text is fixed as "Copy offer code". | 1 | | **Share contact info** | No fields. Meta fixes the label as "Share Contact Info". | 1, and it must be the only button | - **Static vs Dynamic URLs.** A static URL sends the same link to everyone. **Dynamic** adds `{{1}}` to the end of the URL so each message can carry its own link (for example a tracking page). For a dynamic URL, fill in **Example URL** with one real finished link - Meta needs it for review. - **Your own working links only.** See [Website links](#website-links) below. - **Country codes.** The **Country** menu offers US +1, UK +44, India +91, Australia +61, UAE +971, Singapore +65, Germany +49, France +33, Brazil +55, and Indonesia +62. The full number must be 6 - 20 characters. - **Share contact info stands alone.** Choosing it removes every other button, and **Add** stays disabled until you remove it. - **Custom buttons stay together.** WhatsApp shows Custom (quick reply) buttons as one group, before or after the other buttons, never mixed in between. If you add them mixed, a note says so, and the template is sent with them grouped (the group of your first button comes first). The preview shows the real order. - The trash icon on a row removes that button. #### Website links Every **Website URL**, and a dynamic link's **Example URL**, must be a working link on your own website that starts with `https://`. Meta reviews each link, and customers tap it, so a template can't be submitted while a button still uses a sample link: - `example.com`, `example.org` or `example.net` (or any address on them, such as `www.example.com`); - `localhost` or another address that only works on your own computer; - a link that starts with `http://` or has no `https://` at all. The field shows "Replace the sample link with your own working link (it must start with https://)" in red as soon as it holds one, and **Submit to Meta** stops on it with [AVX-3430](https://docs.theavoxai.com/error-codes/avx-3430). Avox checks this again when the template reaches Avox's servers, so it's refused there too. Templates from the [Avox library](https://docs.theavoxai.com/templates/library#avox-library) come with `example.com` links as placeholders. The Content step then starts with a red note, "A website button still uses a sample link", until you replace each one with your own. ### Variables and example values | Where | Rule | | --- | --- | | Header | At most one variable, `{{1}}`, with one example value. | | Body | As many variables as you need. Every variable needs an example value. | | Example values | Up to 200 characters each. | | Numbered style | `{{1}}`, `{{2}}`, and so on. Catalogue templates use this style. | | Named style | `{{customer_name}}` - letters, numbers, and underscores, starting with a letter or underscore. | The preview fills each variable with its example value. A variable without one shows as "[Var 1]" (or "[customer_name]") so you can spot it. #### Rules Avox checks before submitting Meta rejects these outright, so **Submit to Meta** stops with a message (and [AVX-3404](https://docs.theavoxai.com/error-codes/avx-3404) for variables) instead of sending them: - numbered and named variables mixed in one template, or a variable written incorrectly; - numbered variables with a gap (`{{1}}` then `{{3}}`) or a variable without an example value; - a body that starts or ends with a variable, such as "Your code is `{{1}}`" ([AVX-3962](https://docs.theavoxai.com/error-codes/avx-3962)): add a word or a full stop after it; - more than one variable in the header, a header variable other than `{{1}}` or without an example, or a line break in the header; - a variable in the footer; - a website button whose variable isn't `{{1}}` at the very end of the link, or a dynamic link without an example; - a website button, or a dynamic link's example, on a sample link such as `example.com`, `localhost` or a link that doesn't start with `https://` ([AVX-3430](https://docs.theavoxai.com/error-codes/avx-3430), see [Website links](#website-links)); - a custom message in the **Authentication** category - Authentication templates only exist as Meta's one-time passcode ([AVX-3403](https://docs.theavoxai.com/error-codes/avx-3403)); - a `{` or `}` that isn't part of a variable, such as `{{1}` or `{1}}` ([AVX-3970](https://docs.theavoxai.com/error-codes/avx-3970)), in the body, header, footer or a website link; - an example value with curly brackets, a tab, a line break or 4 spaces in a row ([AVX-3974](https://docs.theavoxai.com/error-codes/avx-3974)); - a text header with emoji or `*` `_` `~` ([AVX-3964](https://docs.theavoxai.com/error-codes/avx-3964)); - a Utility or Marketing template that sends a sign-in or verification code ([AVX-3971](https://docs.theavoxai.com/error-codes/avx-3971)), unless you tick "This message doesn't send a sign-in or verification code"; - the same body and footer wording as another template on the WhatsApp account, whatever its name ([AVX-3972](https://docs.theavoxai.com/error-codes/avx-3972), the matching template is named); - more than 100 new templates on one WhatsApp account in an hour ([AVX-3973](https://docs.theavoxai.com/error-codes/avx-3973)). Example values typed for a variable you later deleted or renamed are dropped automatically, and a variable written with spaces, like `{{ 1 }}`, is sent as `{{1}}`. Edits go through the same checks. #### Getting approved fast Most rejections can be caught before Meta sees the template. The **Content** step shows **Our checks** live above **Submit to Meta**: red items must be fixed before you can submit, amber items are common reasons Meta rejects or recategorises a template. The same checks show on the template's page (**Issues** then **Our checks**) and before you resubmit an edit. - **Variables.** Number them in order with no gaps (`{{1}}`, `{{2}}`), don't start or end the body with one, don't put two side by side, and keep enough words around them: a message that's mostly variables is rejected. - **Realistic examples.** Meta reviews the template filled with your example values. Write real looking ones, like Priya or #12345, never test, x, 123 or the variable's own name. - **Header and footer.** No variables in the footer, at most one (`{{1}}`) in a text header, and no emoji, line breaks or `*` `_` `~` in the header. - **Links.** Use links to your own domain, not shortened links. - **Promotional wording in Utility.** Since April 2025 Meta approves a Utility template with offers, discounts or calls to buy as **Marketing** instead, which costs more and only reaches people who agreed to marketing messages. After you submit, the wizard tells you if Meta already filed it as Marketing. - **Codes.** Since 1 December 2026 Meta rejects, with no review, a Utility or Marketing template that sends a sign-in or verification code. Use the **One-time passcode** type for codes. - **Sensitive details.** Don't ask for a full card number, CVV, bank account number, Aadhaar, PAN, passport number, password or PIN in a template. - **Duplicates.** Meta refuses a template that says the same as one already on the account. Reuse that template or change the wording. - **Meta's limits.** 100 new templates per WhatsApp account per hour, and 250 templates per account while the business isn't verified (6,000 once it is, [AVX-3965](https://docs.theavoxai.com/error-codes/avx-3965)). - **Fastest of all:** a template from [Meta's library](https://docs.theavoxai.com/templates/library) needs no writing and is usually approved within minutes. Meta can take longer for any template while the business isn't verified or the WhatsApp account has a payment problem. Review usually takes minutes and at most 24 hours. Avox checks with Meta every few minutes for templates still in review, so the status updates even if Meta's notice doesn't arrive. ### Header sample files | Header | Accepted files | Largest size | | --- | --- | --- | | Image | JPEG or PNG | 5 MB | | Video | MP4 or 3GP | 16 MB | | Document | PDF | 16 MB | Avox checks the file's real type from its contents, not its name. The file goes straight to Meta as the template's sample. If Meta can't accept it, you see [AVX-3028](https://docs.theavoxai.com/error-codes/avx-3028); try a smaller file or a different format. Submitting an Image, Video, or Document header without a sample shows "Upload a sample file for this header type first" ([AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402)). Avox library templates with a media header can't include a sample for you. The Content step starts with a note saying what the sample should show (for example "a photo of the product that's back in stock") - upload your own under **Header**. ### Submit to Meta Avox checks every field first. If something is missing or too long, the problem is shown next to the field and the avatar reports [AVX-3013](https://docs.theavoxai.com/error-codes/avx-3013). The button shows "Submitting" while Meta receives it. You see "Submitted to Meta for review". The new template appears in **Your templates** with the status Meta returned, usually **Pending review**, and its draft is removed. **Submit to Meta** is disabled while every template slot on your Switchboard's plan is in use. A notice above it reads "You've used X of Y templates. Delete one to create a new one. (AVX-3014)" with a **Manage templates** link (see [Freeing a slot](https://docs.theavoxai.com/templates#freeing-a-slot)). What happens next - review, approval, and rejections - is covered on [Approval](https://docs.theavoxai.com/templates/approval). Every decision Meta makes afterwards shows on the template's own page, in the **Issues** panel's history. ### Errors while submitting | You see | What to do | | --- | --- | | [AVX-3013](https://docs.theavoxai.com/error-codes/avx-3013) with a field message | Fix the field shown, then submit again. | | "You've used every template your plan allows" ([AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014)) | Delete a template you no longer need, or move to a larger plan (see [Change plan](https://docs.theavoxai.com/billing/change-plan)). | | "Connect a WhatsApp number before creating templates" ([AVX-3015](https://docs.theavoxai.com/error-codes/avx-3015)) | Connect a number on [Connections](https://docs.theavoxai.com/connections), then try again. | | "This connection doesn't have a stored access token yet - reconnect WhatsApp to enable template submission" | Reconnect the number from [Connections](https://docs.theavoxai.com/connections). | | "Meta rejected that template" ([AVX-3016](https://docs.theavoxai.com/error-codes/avx-3016)), or "Meta said:" with Meta's own reason | Meta refused the submission. Check the wording, variables, and examples, then submit again. | | [AVX-3960](https://docs.theavoxai.com/error-codes/avx-3960) | A template with this name and language was deleted in the last 4 weeks. Pick a different name. | | [AVX-3961](https://docs.theavoxai.com/error-codes/avx-3961) | Shorten the part over Meta's limit, often a button label (25 characters). | | [AVX-3962](https://docs.theavoxai.com/error-codes/avx-3962) | Add words before the first variable or after the last one. | | [AVX-3963](https://docs.theavoxai.com/error-codes/avx-3963) | Write more of the message as fixed text, or use fewer variables. | | [AVX-3964](https://docs.theavoxai.com/error-codes/avx-3964) | Remove emoji, line breaks and formatting from the header and footer, and check how variables are written. | | [AVX-3965](https://docs.theavoxai.com/error-codes/avx-3965) | Your WhatsApp account is at Meta's template limit (250 until the business is verified, 6,000 after). Delete templates you don't use, or verify the business, then try again. | | [AVX-3966](https://docs.theavoxai.com/error-codes/avx-3966) | Add your website link or phone number for the Meta library template's buttons. | | [AVX-3969](https://docs.theavoxai.com/error-codes/avx-3969) | Pick a validity period from the list for this category, or leave Meta's default. | | [AVX-3970](https://docs.theavoxai.com/error-codes/avx-3970) | Remove the stray `{` or `}`, or write the variable as `{{1}}`. | | [AVX-3971](https://docs.theavoxai.com/error-codes/avx-3971) | Use the One-time passcode type for a code, or tick that the message doesn't send one. | | [AVX-3972](https://docs.theavoxai.com/error-codes/avx-3972) | Use the matching template it names, or change the wording. | | [AVX-3973](https://docs.theavoxai.com/error-codes/avx-3973) | Wait an hour: Meta allows 100 new templates per WhatsApp account per hour. | | [AVX-3974](https://docs.theavoxai.com/error-codes/avx-3974) | Write a realistic example value without curly brackets, tabs, line breaks or long runs of spaces. | | [AVX-3029](https://docs.theavoxai.com/error-codes/avx-3029) | You have 10 drafts. Delete one from the Templates page. | | [AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400) under **Template name** | Use the suggested free name, or pick another name or language. | | [AVX-3401](https://docs.theavoxai.com/error-codes/avx-3401) | Switch back to one of the Avox template's languages, or rewrite the text in yours. | | [AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402) | Upload a sample file under **Header**. | | [AVX-3403](https://docs.theavoxai.com/error-codes/avx-3403) | Use the One-time passcode type for Authentication, or pick Utility or Marketing. | | [AVX-3404](https://docs.theavoxai.com/error-codes/avx-3404) | Renumber the variables in order and fill in every example value. | | "Replace the sample link with your own working link (it must start with https://)" ([AVX-3430](https://docs.theavoxai.com/error-codes/avx-3430)) | Change the button's **Website URL** (and **Example URL** for a dynamic link) to a working `https://` link on your own website. | --- ## Library URL: https://docs.theavoxai.com/templates/library Section: Templates The template library gives you two places to start instead of a blank page: - **Avox library** - templates written by Avox for everyday messages: order updates, reminders, login codes, offers, greetings, bookings, payment links and more, in Marketing, Utility and Authentication. Many are written for the [premade automations](https://docs.theavoxai.com/automation#premade-automations) that send them from your [tables](https://docs.theavoxai.com/tables). You can change anything before submitting, and Meta reviews them like any template. - **Meta's library** - Utility templates Meta has already verified. They start working instantly, with no review wait, but their wording is fixed. Any Switchboard member (Admin or Manager) can browse the library and start a template from it. ### Where you'll find it - **Templates page** - the **Template library** button opens the Avox library, and the **Start from Meta's template library** strip shows six featured Meta templates with a **Browse the full library** link. - **Create template wizard** - step 1 has a **Start from the Avox library** card. Under **Utility**, the Meta featured strip appears and the **Browse Meta's Library** type opens Meta's tab. - **The library page** - `/templates/library`, with an **Avox library** tab (the default) and a **Meta's library** tab. **Back to Create template** returns you to the wizard. - **Premade automations** - a premade that sends a template, when you have no approved one yet, links straight to a matching Avox template (**Create one from the Avox library**). See [Premade automations](https://docs.theavoxai.com/automation#premade-automations) and [Templates for tables and automations](#templates-for-tables-and-automations). ### Avox library #### Browse and search - **Search** - type in **Search Avox templates…**. It matches titles, descriptions, use cases, industries and the message text itself. - **Use case** and **Industry** - two searchable menus narrow the list, for example **Payment reminder** or **Healthcare**. - **Category** - **All**, **Utility**, **Marketing** or **Authentication**. - **Cards** - each card shows the template's title and category, what it's for, the languages it's written in, and **Needs a sample image** (or video, or document) when its header is media. - **No matches** - "No templates match." with a **Clear the filters** link. Click a card to preview it. On a wide screen the preview sits on the right; on a phone it opens under the card. The preview uses the same phone mockup as the wizard, filled in with example values. #### Languages Every Avox template is written in at least English (US); some also in Hindi or Spanish. When a template has more than one, a **Language** menu above the preview switches the preview, and the template starts in the language you picked. Authentication templates work in every language, because Meta writes their text. In the wizard you can still change the language. If the text you started with is in another language, the wizard offers to **Load the** text in your new language. If the template isn't written in that language at all, you see [AVX-3401](https://docs.theavoxai.com/error-codes/avx-3401) with buttons to switch back - or keep your language and rewrite the text yourself before submitting. #### Use this template Click a card, then choose a language if the template offers several. Avox saves it as a new draft and opens the wizard at step 2 with everything filled in: name, language, category, header, body, example values, footer and buttons. The summary box reads "From the Avox library:" with the template's title. Change the name, language or any of the content. Replace placeholder links such as `https://www.example.com/...` with your own - the Content step reminds you while one is left. Click **Submit to Meta**. Avox runs the same checks as any template, and Meta reviews it. It appears in **Your templates**, usually as **Pending review**. Notes on the preview tell you what to expect before you start: - **Media headers** - "Meta reviews it against a real sample, so you'll upload your own image in the Content step." Submitting without one shows [AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402). See [Header sample files](https://docs.theavoxai.com/templates/create#header-sample-files). - **Authentication** - "Meta writes this message itself." You choose how the code is delivered and when it expires; the text and button can't be changed ([AVX-3403](https://docs.theavoxai.com/error-codes/avx-3403)). - **Names** - Meta needs every template name to be unique per language. If you already have one with the same name and language, the template starts with the next free name, such as `order_confirmation_2`, and the preview says so. See [Duplicate names](#duplicate-names). #### What's in the Avox library | Template | Category | Languages | For | | --- | --- | --- | --- | | Order confirmation | Utility | English, Hindi, Spanish | Confirming a new order, with a View order link. | | Shipping update | Utility | English | Courier, expected date and a Track package link. | | Delivery confirmation | Utility | English | Delivered notice with Report a problem / All good, thanks. | | Payment reminder | Utility | English, Spanish | An invoice due soon, with a Pay invoice link. | | Payment receipt | Utility | English | Thanks for a payment, with the receipt as a PDF header. | | Appointment reminder | Utility | English, Hindi, Spanish | Upcoming appointment with Confirm / Reschedule. | | Appointment confirmation | Utility | English | A newly booked appointment, with a directions link. | | Login code | Authentication | Every language | A copy-code one-time passcode, expiring in 10 minutes. | | Password reset code | Authentication | Every language | A copy-code one-time passcode, expiring in 5 minutes. | | Welcome message | Marketing | English, Hindi | Welcoming someone who just opted in. | | Feedback request | Marketing | English | Great / Okay / Poor rating buttons. | | Abandoned cart | Marketing | English | Bringing a shopper back to their cart. | | Back in stock | Marketing | English | A product photo and a Shop now link. | | Price drop alert | Marketing | English | A wishlist item that got cheaper. | | Event invitation | Marketing | English | An invite with I'll be there / Can't make it. | | Renewal reminder | Utility | English | A plan renewing soon, with a Manage plan link. | | Support ticket update | Utility | English | An update on a support request. | | Review request | Marketing | English | Asking for a public review. | | Festive greeting | Marketing | English, Hindi | A holiday greeting with your own festive image. | | Referral invite | Marketing | English | A personal referral code to copy. | | We miss you | Marketing | English | Re-engaging a customer you haven't heard from. | | Cash on delivery confirmation | Utility | English, Hindi | Confirming a COD order before it ships. | | Booking confirmation | Utility | English | Dates, guests and a Manage booking link. | | Booking confirmed | Utility | English, Hindi | A new booking from your calendar table, with the service, day, time and booking number, and Reschedule / Cancel booking. | | Booking reminder (day before) | Utility | English, Hindi | Tomorrow's booking from your calendar table, with Confirm / Reschedule. | | Booking starts soon | Utility | English, Hindi | A short reminder an hour or so before a booking starts. | | Booking cancelled | Utility | English, Hindi | A cancelled booking, and how to get a new time. | | Order status update | Utility | English, Hindi | An order's new status from your orders table, the expected day and a Track order button. | | Payment link | Utility | English | A secure payment link made by your connected payments app, with what it's for and the amount. | | Event seat confirmed | Utility | English | A seat at an event or class from your events table, with when and where. | | Event waitlist | Utility | English | An event is full and the customer is on the waitlist. | | Feedback after a visit | Marketing | English | Great / Okay / Poor once a booking is marked Completed. | | Lead follow-up | Marketing | English | Checking in on the follow-up day in your leads table. | | Membership anniversary | Marketing | English | Thanking a member on the day they joined, every year. | Every Avox template follows Meta's rules: variables numbered in order with an example for each, Meta's length limits, valid buttons, no promotional wording in Utility templates, and an opt-out line ("Reply STOP to unsubscribe") on Marketing ones. Meta still reviews each one, and can re-categorise or reject it like any other template. Several Marketing templates here (New offer, Back in stock, Price drop alert, Event invitation, We miss you, Appointment slots open, Festive greeting, Feedback request and Review request) are the templates of the [ready-made broadcasts](https://docs.theavoxai.com/broadcasts/library). **Add its template** on a ready-made broadcast opens this library with its template picked; once Meta approves it, the broadcast is ready to use. ### Templates for tables and automations The booking, order, payment, event, lead and membership templates above are written for the premade automations that send them, like **Booking confirmation from your calendar**, **Order status updates from your orders table** or **Payment link after a booking**. - **The premade shows what it needs.** On the Automation page, each premade's card says what one run can cost ("Up to 2 credits a run"), marks **Uses your tables** or **Uses a connected app**, and, when something is missing, says so with a link to fix it: "Needs a table made from the premade "Appointments" table." (**Create it**), a payments app to connect, or an approved template (**Create one from the Avox library** opens the matching template here). See [Premade automations](https://docs.theavoxai.com/automation#premade-automations). - **Filled with live values.** A **Send a template** step fills each variable (in the header, the body and a link button's ending) with fixed text or values: a cell of the row that started the run, a row a step found, a Flow's answers, the contact's name, or a payment link an app just made, like `{{row.service}}` or `{{contact.first_name|there}}`. The examples Meta reviewed stay as they are; only the real sends change. See [Filling a template](https://docs.theavoxai.com/automation/tables#filling-a-template). - **Every send is logged.** The template's page shows which automations fill it and from which tables (**Filled in by automations**), and a [send log](https://docs.theavoxai.com/templates/send-log) of every send by your automations and the API: who got it, the values it carried, whether it was delivered and read, and any reply or button tap. A template sent by an automation costs 1 credit, whatever fills its variables. Submit it to Meta and wait for **Approved** before switching the automation on. ### Meta's library The **Meta's library** tab is Meta's own catalogue of Utility templates. Meta has already verified their content, so a template you create from it starts working instantly. Avox reads Meta's own library and keeps each search for a few hours (up to 6), so a template Meta has only just added can take a little while to appear. Meta's library needs a connected WhatsApp number. Until one is connected, it shows "Connect a WhatsApp number before browsing the template library" in place of templates. See [Connections](https://docs.theavoxai.com/connections). #### Browse and search The tab is titled **Meta's own template library** and explains: "Already verified by Meta - pick one and it starts working instantly, no review wait. Utility only, and the content itself is fixed; you just fill in a few blanks." - **Search** - type in **Search Meta's library…** and the results update as you type. - **Cards** - each card shows the template's name, its body text, its topic, and an **Instant** badge. Hover a card to see **Start using**. - **Load more** - the library loads 50 templates at a time. Click **Load more** at the bottom for the next set. - **No matches** - "No matches - try a different search." #### Start using a Meta template Click a card on the Templates page, in the wizard, or on the Meta's library tab. Avox saves it as a new draft and opens the wizard at step 2. Enter a **Template name** (lowercase letters, numbers, and underscores, up to 512 characters) and choose a **Language**. A box shows "From Meta's library:" with the library template's name and an **Already verified - starts instantly** badge, and the wizard's summary bar shows the type as **Meta's Library**. Switch on any of the optional parts Meta offers: **Add a contact number**, **Add a "learn more" link**, **Add a security recommendation**, and **Add a track-package link**. Avox creates the template in your WhatsApp Business Account from Meta's library. You see "Ready to use - already verified by Meta" and return to the Templates page, where the new template appears in **Your templates**. Meta library templates are always in the **Utility** category. They have no step 3: the content is Meta's own. **Start using** stays disabled until the template has a name. Once created, a library template works like any other in **Your templates**: it has its own page with [insights](https://docs.theavoxai.com/templates/insights), it can be sent by an automation's **Send a template** action once Meta shows it as **Approved**, and you can delete it from its page. ### Duplicate names Meta needs every template in your WhatsApp Business Account to have a unique name and language pair. The wizard checks your existing templates as you type: a clash shows [AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400) under **Template name**, with a **Use** button for the next free name (such as `order_confirmation_2`). The same name is fine in a different language. Avox checks again when you submit, in case another member took the name in the meantime. ### Template limit Library templates count toward your Switchboard's template limit like any other. The limit is the Switchboard's own plan (or its owner's plan), the same number Avox enforces when you submit. When every slot is used, **Use this template**, **Start using** and **Create template** are disabled and the page shows "You've used X of Y templates. Delete one to create a new one. ([AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014))" with a **Manage templates** link. That link opens your templates with rejected, paused and disabled ones highlighted - they can't be sent as they are, so they're usually the first to delete. ### Drafts from the library Picking a library template always creates its own new draft, so it never overwrites a template you're already working on. It counts toward the 10-draft limit (see [Drafts](https://docs.theavoxai.com/templates#drafts)). If you leave before submitting, resume it from the Templates page's **Drafts** section. ### Related errors | Code | When you see it | | --- | --- | | [AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014) | Every template slot on your Switchboard's plan is in use. | | [AVX-3016](https://docs.theavoxai.com/error-codes/avx-3016) | Meta didn't accept the template. Check the name and language, then try again. | | [AVX-3027](https://docs.theavoxai.com/error-codes/avx-3027) | Meta's library couldn't be loaded. Reopen the page and try again. | | [AVX-3029](https://docs.theavoxai.com/error-codes/avx-3029) | You already have 10 drafts. Delete one, then pick the template again. | | [AVX-3031](https://docs.theavoxai.com/error-codes/avx-3031) | Saving the picked template as a draft failed. Pick it again. | | [AVX-3400](https://docs.theavoxai.com/error-codes/avx-3400) | A template with that name already exists in this language. | | [AVX-3401](https://docs.theavoxai.com/error-codes/avx-3401) | The Avox template isn't written in the language you picked. | | [AVX-3402](https://docs.theavoxai.com/error-codes/avx-3402) | The header needs a sample image, video or document. | | [AVX-3403](https://docs.theavoxai.com/error-codes/avx-3403) | Authentication templates use Meta's fixed one-time passcode format. | | [AVX-3404](https://docs.theavoxai.com/error-codes/avx-3404) | Variables are out of order or missing an example value. | --- ## Approval URL: https://docs.theavoxai.com/templates/approval Section: Templates Every template you create goes to Meta for review before it can be sent. Avox submits it for you, shows its status on the Templates page and on the template's own page, and keeps that status up to date as Meta reviews it. ### How review works Clicking **Submit to Meta** in the [Create template wizard](https://docs.theavoxai.com/templates/create) sends the template to Meta. It appears in **Your templates** with the status Meta returns, usually **Pending review**. Meta reviews the template's content against the example values you gave it. Review isn't instant, so the template stays **Pending review** until Meta decides. Meta tells Avox when a template's status changes, and the Templates page shows the new status the next time you open or refresh it. **Refresh from Meta** asks Meta straight away. Templates created from [Meta's template library](https://docs.theavoxai.com/templates/library) skip the review wait, since Meta has already verified their content. ### What each status means | Status | Meaning | Can you send it? | | --- | --- | --- | | **Approved** | Meta approved the template. | Yes | | **Pending review** | Meta is still reviewing it, or reviewing an edit. | Not yet | | **Rejected** | Meta declined it. Hover the badge to see Meta's reason, exactly as Meta sent it. | No | | **Paused** | Meta paused it because people reported or blocked it. | No, until the pause ends. Consider rewording it. | | **Disabled** | Meta disabled it after repeated quality problems. | No. Create a new, reworded version. | | **FLAGGED** | Meta flagged it for low quality. If it doesn't improve, Meta may pause it. | Automations send only Approved templates. Reword it soon. | When Meta reports a quality rating for a template, hovering its status badge shows it, for example "Quality: GREEN" (a rejected template's badge shows the rejection reason instead). Any other status Meta reports is shown with Meta's own name for it. Every Switchboard member sees the same statuses. Status changes arrive from Meta on their own; **Refresh from Meta** on the Templates page also brings in the latest status, category, quality rating, and rejection reason for every template at once. ### Status emails When a template becomes **Rejected**, **Paused**, **Disabled**, or **Flagged**, Avox emails every Admin of the Switchboard with the template's name, language, new status, and Meta's reason (when Meta gives one), plus a link to the Templates page. These emails belong to the **WhatsApp account alerts** preference on [Compliance](https://docs.theavoxai.com/compliance), which we recommend keeping on. See [Emails](https://docs.theavoxai.com/emails) for every email Avox sends. ### When a template is rejected Open the template's page. The **Issues** panel shows Meta's reason code explained in plain English, with how to fix it. (Hovering the **Rejected** badge also shows the code.) For a Custom message template, click **Edit and resubmit** on its page and change the wording (see [Editing a template](#editing-a-template)). For any other type, create a new template with the corrected content and delete the rejected one. Submitting the edit sends it straight back to Meta, and the status returns to **Pending review**. See [Template categories](https://docs.theavoxai.com/whatsapp/template-categories) for how Meta applies categories, and [Create](https://docs.theavoxai.com/templates/create#avoiding-a-rejection) for the content checks Avox runs. ### Rejection reasons | Meta's reason | What it means | How to fix it | | --- | --- | --- | | `INVALID_FORMAT` | The layout of the template isn't accepted - usually variables or sample values. | Number variables in order with no gaps, don't start or end the body with a variable or put two side by side, give every variable a realistic sample, and remove extra blank lines. | | `TAG_CONTENT_MISMATCH` | The category doesn't match what the message says. | Pick the category that fits (Marketing for offers, Utility for updates about an existing order or account), or change the wording to fit the category. | | `INCORRECT_CATEGORY` | Meta decided the template belongs in another category. | Resubmit under the category Meta expects - usually Marketing for anything promotional. | | `PROMOTIONAL` | Promotional wording in a template that isn't Marketing. | Switch to Marketing, or remove the offer, discount or call to buy. | | `ABUSIVE_CONTENT` | Wording Meta considers abusive or against WhatsApp's policies. | Rewrite it in neutral, respectful language, and check the WhatsApp Commerce Policy for restricted products. | | `SCAM` | Meta thinks the message could mislead people. | Say clearly who you are and why you're messaging, avoid urgent pressure and requests for passwords or card details, and link to your own domain. | | `INVALID_PARAMETERS` | A variable or its sample value isn't valid. | Give every variable a sample with no line breaks or tabs. | | `CATEGORY_NOT_AVAILABLE` | That category can't be used for this account or language. | Pick another category. | Paused, disabled and flagged templates get the same plain-English explanation on the template's page, including any note Meta sent: the first pause lasts 3 hours, the second 6 hours, and after that Meta disables the template. ### Status history The **Issues** panel on a template's page keeps a timeline of everything Meta reported about it - approvals, rejections with their reason, pauses, quality changes, and category changes (including Meta's notices that it will move a template to another category) - plus every edit submitted from Avox and which parts it changed. ### Editing a template Custom message templates can be edited in place, without creating a new one. Meta's rules decide when: | Status | Can you edit it? | | --- | --- | | **Approved** | Yes - once every 24 hours and at most 10 times in 30 days. The category can't change. | | **Rejected** | Yes, as often as you need. | | **Paused** | Yes, as often as you need. | | **Pending review** | No - wait for Meta's decision ([AVX-3160](https://docs.theavoxai.com/error-codes/avx-3160)). | | **Disabled** and others | No - create a new template ([AVX-3161](https://docs.theavoxai.com/error-codes/avx-3161)). | Avox counts an approved template's edits itself and refuses an edit over the limit before it reaches Meta. When the button is unavailable, the template's page says why and when the next edit is possible. Any Switchboard member (Admin or Manager) can edit. Click **Manage** on its row in **Your templates**, then click **Edit template** (or **Edit and resubmit** for a rejected or paused template). You can change: - **Category** - **MARKETING**, **UTILITY**, or **AUTHENTICATION** (locked for an approved template). - **Header text (optional)** - up to 60 characters. A media header stays exactly as it is. - **Body** - required, up to 1024 characters. - **Sample values** - shown when the body has numbered variables. Type them comma-separated, in order, for example `Jordan, #A1042`. - **Footer text (optional)** - up to 60 characters. Buttons carry over unchanged, as the dialog notes. **Review your changes** lists each part that changed, before and after, and any problems Avox's checks found in the new content. Problems that break Meta's rules must be fixed before you can submit. An edit that changes nothing can't be submitted ([AVX-3165](https://docs.theavoxai.com/error-codes/avx-3165)), so it never uses up one of your edits. You see "Template updated - back in review with Meta", and the status returns to **Pending review**. If Meta refuses the edit, you see Meta's own explanation when it gives one, or "Meta rejected that edit" ([AVX-3051](https://docs.theavoxai.com/error-codes/avx-3051)). Check the wording and try again. One-time passcode, Calling permission request, and Catalogue templates contain parts Meta fixes itself. To change one of these, create a new template. ### Status and automations An automation's **Send a template** action can only use an **Approved** template, and an automation can only be switched on while every template it sends is still approved. If a template it uses leaves Approved, switching the automation on shows "One of this automation's actions sends a template that's no longer approved". Pick a different template for that action, or get this one approved again. While an automation that's already on fires, an action whose template isn't Approved is skipped and the rest of the chain carries on. See [Actions](https://docs.theavoxai.com/automation/actions). ### Related errors | Code | Message | | --- | --- | | [AVX-3016](https://docs.theavoxai.com/error-codes/avx-3016) | Meta couldn't accept that template. Check its wording and try again. | | [AVX-3026](https://docs.theavoxai.com/error-codes/avx-3026) | Couldn't refresh templates from Meta. Try again. | | [AVX-3051](https://docs.theavoxai.com/error-codes/avx-3051) | Meta rejected that edit. Check the wording and try again. | | [AVX-3160](https://docs.theavoxai.com/error-codes/avx-3160) | This template is still in Meta's review. You can edit it once it's approved, rejected or paused. | | [AVX-3161](https://docs.theavoxai.com/error-codes/avx-3161) | Only approved, rejected or paused templates can be edited. Create a new template instead. | | [AVX-3162](https://docs.theavoxai.com/error-codes/avx-3162) | Approved templates can be edited once every 24 hours. Try again later. | | [AVX-3163](https://docs.theavoxai.com/error-codes/avx-3163) | This approved template has used all 10 edits Meta allows in 30 days. | | [AVX-3164](https://docs.theavoxai.com/error-codes/avx-3164) | The category of an approved template can't be changed. | | [AVX-3165](https://docs.theavoxai.com/error-codes/avx-3165) | Nothing changed. Edit the content before resubmitting. | | [AVX-3166](https://docs.theavoxai.com/error-codes/avx-3166) | Meta says this template has reached its edit limit for now. | | [AVX-3167](https://docs.theavoxai.com/error-codes/avx-3167) | Meta is limiting requests right now. Wait a few minutes and try again. | | [AVX-3168](https://docs.theavoxai.com/error-codes/avx-3168) | Your WhatsApp connection needs to be reconnected before templates can be edited. | | [AVX-3169](https://docs.theavoxai.com/error-codes/avx-3169) | Couldn't load this template's history. Try again. | --- ## Insights URL: https://docs.theavoxai.com/templates/insights Section: Templates Avox shows how each template is performing, using Meta's own template analytics. The numbers cover the last 30 days and are read live from Meta each time you open the page, so they always match what Meta reports. Every Switchboard member (Admin or Manager) can see them. ### On the Templates page The **Your templates** table has two performance columns: | Column | What it shows | | --- | --- | | **Sent** | How many messages were sent with this template in the last 30 days. | | **Read rate** | Read messages as a percentage of sent messages over the same 30 days. Shows "-" when nothing has been sent. | Both columns show "-" while Meta has no numbers for a template yet, for example while it's still in review. ### On a template's own page Click **Manage** on a template to open its page. The **Last 30 days** card shows four totals and a daily chart: | Number | Meaning | | --- | --- | | **Sent** | Messages sent with this template. | | **Delivered** | Messages that reached the customer's phone. | | **Read** | Messages the customer opened. | | **Clicked** | Button taps on messages sent with this template. | The chart below the totals draws one line each for **Sent**, **Delivered**, and **Read**, day by day. Hover the chart to see a single day's numbers. When there's nothing to chart yet you see "No traffic on this template in the last 30 days yet." If your number is disconnected, you see "No messages yet - connect WhatsApp to see activity here". ### On Overview The **Templates** card on [Overview](https://docs.theavoxai.com/overview#templates) shows three rings for **Sent**, **Delivered** and **Read**. They count every template message your Switchboard sent in the last 30 days, across all templates. Picking a template in the card's picker changes the name and status shown, not these totals. For one template's numbers, open its own page. ### Reading the numbers - **Delivered lower than Sent** means some messages haven't reached the customer's phone. Meta's reasons for undelivered messages are listed on [Meta error codes](https://docs.theavoxai.com/meta-error-codes). - **Read rate** compares templates fairly, since it's a percentage rather than a count. - **Clicks** count button taps, so a template without buttons always shows 0 clicks. - Insights cover templates only. For all messages in your Switchboard, see [Analytics](https://docs.theavoxai.com/analytics) and [Overview](https://docs.theavoxai.com/overview). ### Frequently asked questions Meta has no numbers for it yet, for example because it's still in review or hasn't been sent in the last 30 days. Read rate also shows "-" whenever nothing was sent. They're read from Meta each time you open the Templates page or a template's own page. Reload the page to see the latest. Yes. Meta counts every message sent with the template, however it was sent. ### Related errors If Meta can't return numbers for a template, its page shows "Couldn't load insights for this template right now. (AVX-3025)". See [AVX-3025](https://docs.theavoxai.com/error-codes/avx-3025) and try again shortly. --- ## Send log URL: https://docs.theavoxai.com/templates/send-log Section: Templates Every template's own page keeps a log of each time your automations, the [Avox API](https://docs.theavoxai.com/avox-api), a [smart link](https://docs.theavoxai.com/chat-links) follow-up or a [broadcast](https://docs.theavoxai.com/broadcasts) sent it: who got it, the values that filled its variables, whether it was delivered and read, and whether the customer replied or tapped a button. When a send fails, it says why in plain words. Open **Templates**, click **Manage** on a template, and scroll past **Last 30 days**. You'll find three panels: **Filled in by automations**, **Sends over time** and **Send log**. Anyone who can view templates can see them. ### Filled in by automations Automations can fill a template's variables with live values: a cell from a table row, a Flow answer, the contact's name, or a payment link an app just made. This card lists every automation that sends the template, each variable and where its value comes from (like `{{1}}`: the **Customer** column), and the tables they read. The examples Meta reviewed when it approved the template stay as they are. Only the real sends change. See [Filling a template](https://docs.theavoxai.com/automation/tables#filling-a-template). ### Sends over time Pick 7, 30 or 90 days to see each day's sends, deliveries, reads, failures and replies, the most common reasons sends failed, and what sent them (automations, the API, smart links or broadcasts). These numbers are counted by Avox from the sends it made. The [Insights](https://docs.theavoxai.com/templates/insights) panel above shows Meta's own figures for every send of the template, including ones made outside Avox. ### Send log The tiles at the top count the sends in the chosen range: **Sent**, **Delivered** (delivered or read, out of every send), **Read**, **Replied / tapped** and **Failed**. Below them, every send, newest first, 25 to a page: | Column | What it shows | | --- | --- | | **Contact** | Who got it. Click the name to open the contact. | | **Sent** | When it was sent, in your time. | | **How** | What sent it: the automation (click to open it), the API, a smart link's follow-up or a broadcast. | | **Status** | Sent, Delivered, Read or Failed, as WhatsApp last reported it. | | **Replies** | Whether the customer replied or tapped a button. | Filter by date range (up to 366 days, counted in your own time zone), **Status** and **Sent by**. **Download CSV** saves the sends in the range. #### One send Click a send to open **Send details**: | Line | What it shows | | --- | --- | | **Status** and **Sent by** | Where the send is now, and what sent it. | | **Timeline** | When it was sent, delivered, read or failed. | | **Why it failed** | WhatsApp's reason in plain words, like "The customer stopped marketing messages from you.", with WhatsApp's code. | | **Values sent** | The value of each variable in this send. | | **Came back** | The button the customer tapped, and how many replies they sent, with the time of the first. | | **Meta's charge** | The pricing category Meta charged this send under (Marketing, Utility, Authentication...), or "(free)" when Meta didn't charge it. See [Pricing](https://docs.theavoxai.com/whatsapp-platform). | #### How replies are matched A reply belongs to the send the customer answered: when they reply to the template itself (or tap one of its buttons), it's that send. Otherwise, it's the latest template sent to them in the 24 hours before the reply that hasn't had a reply yet. Replies to a template sent from outside Avox aren't counted here. #### Privacy in the log - A contact without a name is shown by the last four digits of their number, like `•••• 3210`, and phone numbers in the CSV file are written the same way. - The CSV file is safe to open in Excel or Google Sheets: a cell that starts like a formula is written as plain text. A download holds up to 10,000 sends; pick a shorter range for more. ### Related errors | Code | Message | | --- | --- | | [AVX-3584](https://docs.theavoxai.com/error-codes/avx-3584) | Pick a date range of up to 366 days, with the start before the end. | | [AVX-3586](https://docs.theavoxai.com/error-codes/avx-3586) | Couldn't load this template's log. Try again. | | [AVX-3587](https://docs.theavoxai.com/error-codes/avx-3587) | Couldn't download the template log. Try again. | | [AVX-3588](https://docs.theavoxai.com/error-codes/avx-3588) | The template log isn't switched on yet. Try again later. | | [AVX-3595](https://docs.theavoxai.com/error-codes/avx-3595) | Fill in every variable of this template, or give it a fallback. | | [AVX-3609](https://docs.theavoxai.com/error-codes/avx-3609) | The template isn't approved by Meta right now, so it wasn't sent. | ### Related --- ## Flows URL: https://docs.theavoxai.com/flows Section: Flows and automation A **Flow** is a form that opens inside a WhatsApp chat - booking an appointment, capturing a lead, running a short survey - so your customer never leaves the conversation. Flows are Meta's own WhatsApp feature; Avox gives you premade Flows, a JSON editor with a live phone preview, and one-click publishing to Meta. This two-screen preview is rendered by the same component the Flow wizard uses while you edit. Try it: pick a service, type a name and tap **Continue**. For how Flows work on Meta's side - Flow JSON, screens, actions, and the status lifecycle - see [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows). ### Before you start - **Connect a WhatsApp number.** Flows belong to the WhatsApp Business Account behind your number, and creating one needs a connected number ([AVX-3034](https://docs.theavoxai.com/error-codes/avx-3034)). - **Check your plan's Flow limit.** Each Switchboard can hold as many Flows as its plan allows (see [Plans](https://docs.theavoxai.com/plans)). Every Flow listed in **Your Flows** uses a slot, whatever its status. When every slot is used, the page shows "You've used every Flow your plan allows. (AVX-3033)". ### Who can do what | Action | Admin | Manager | | --- | --- | --- | | View Flows, drafts, and metrics | Yes | Yes | | View a Flow's log and responses, download them as CSV | Yes | Yes | | Create and publish a Flow | Yes | Yes | | Validate JSON, register an encryption key, run a health check | Yes | Yes | | Delete a saved wizard draft | Yes | Yes | | Delete a **Draft on Meta** Flow or deprecate a published one | Yes | Only with the **Delete Flows** permission (off by default) | | Refresh Flows from Meta | Yes | Yes | | Receive Flow status emails | Yes | - | The **Manager** column shows the Manager defaults. An Admin can give or take away Flow permissions person by person - see [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). If **Create Flow** doesn't appear for you, Flow creation has been switched off for your account - contact [Support](https://docs.theavoxai.com/support). ### The Flows page Open **Flows** in the sidebar. - **Flows used** - how many of your plan's Flow slots are in use, with a breakdown by status underneath (for example "3 published · 1 draft on meta"). **Docs** opens this page, **Flows library** opens the [Flows library](https://docs.theavoxai.com/flows/library) and **Create Flow** opens the wizard. When you can't start a Flow (no permission, Flows switched off, no plan, or every slot used), **Create Flow** is greyed out and clicking it says why. - **Start from a premade Flow** - a few ready-made Flows from Avox, one row with each kind: **Plain form** (works at once), **Live answers** (Avox works the numbers out while the customer fills it in, no tables needed) and **Your tables** (reads and saves your [Tables](https://docs.theavoxai.com/tables) through the Avox endpoint). Click one to start a draft with everything filled in, then tweak it. **See all** opens the [Flows library](https://docs.theavoxai.com/flows/library) with every premade, a search box and a phone preview. Nothing to host: see [Live Flows](https://docs.theavoxai.com/flows/live-endpoint). - **Drafts** - Flows you started but haven't published, "Drafts (n/10)". **Edit** resumes one where you left off; the trash icon deletes it. - **Your Flows** - every Flow, with its **Name** (and "Endpoint-backed" when it uses live data), **Category**, **Status**, **Last edited**, and a **Manage** button. **Search Flows** finds a Flow by name or category, and the status chips (**All**, **Published**, **Drafts on Meta**, **Needs attention**, **Deprecated**, each with its count) narrow the list; rows slide into place instead of jumping. **Clear the filters** shows everything again. **Refresh from Meta** asks Meta for every Flow's latest status straight away. With no Flows yet it reads "No Flows yet - create one from a premade template above, or refresh in case one already exists on Meta's side." A brand-new Switchboard with no Flows and no drafts also sees **Get started with your first Flow** at the top of the page. When you connect a number, Avox also adds a **Starter** Flow to its WhatsApp account: "Starter: Request a callback", left as a draft so you can open it, try it in the preview and publish it when you're ready. It carries a **Starter** badge in the list and on its page, and counts toward your plan like any other Flow (Avox skips it when there's no room). Delete it any time and make your own; a deleted Starter Flow never comes back. #### Premade Flows **Plain forms** work as soon as they're published. Every answer comes back to the chat when the customer taps the last button. | Premade Flow | Category | Answers that come back | | --- | --- | --- | | Collect purchase interest | Shopping | Full name, Phone number, Product | | Get feedback | Other | Rate your experience, Ideas to improve | | Send a survey | Survey | How often, Suggestions | | Customer support | Customer support | What's this about?, Describe the issue | | Request a callback | Contact us | Full name, Phone number, Best time to call, What it's about | | Request a quote | Lead generation | Full name, Email, Service, Budget, Details | | Return or exchange | Customer support | Order number, refund or exchange, Reason, Tell us more | | Sign up for updates | Sign up | Full name, Email, What interests you, their yes to updates | | Job application | Other | Two screens: Full name, Email, Role, then Experience, when they can start, About you | **Live answers** use the Avox endpoint to work numbers out while the customer fills them in. They need no tables, so there's nothing to connect. The rates are in each formula: open the editor's **Live data** tab to set your own. | Premade Flow | Category | Answers that come back | | --- | --- | --- | | Loan EMI calculator | Lead generation | Loan amount, Yearly interest %, Months, the EMI, the total and the interest | | Instant price estimate | Lead generation | Full name, Area, Finish, the rate and the estimate | | Shipping cost calculator | Shopping | Weight, where it's going, the cost | **Live with your tables** read and save your [Tables](https://docs.theavoxai.com/tables). Each says which tables it needs; you pick yours or make them from Avox's premade tables in one click. | Premade Flow | Category | Tables | Answers that come back | | --- | --- | --- | --- | | Appointment booking | Appointment booking | Time slots, Appointments | Your name, Preferred date, the time, Notes, plus the booking number | | Event registration | Sign up | Events and seats | Full name, Seats, the event | | Check order status | Customer support | Order status | Order number, its status and expected date | | Check if an item is in stock | Shopping | Inventory | SKU, the item and how many are left | | Browse products and check stock | Shopping | Product catalogue | Category, the product, Quantity, its price | | Order from today's menu | Shopping | Restaurant menu | Section, the dish, How many, the total | | Check delivery to a pincode | Shopping | Delivery areas | Pincode, and the area, fee and days when you deliver there | | Check a coupon code | Shopping | Coupons | Coupon code, Order total, the discount and the saving | | Capture leads into your Leads table | Lead generation | Leads | Full name, Email, Interested in, Best day to call you, Anything else | | Collect feedback into your Feedback table | Survey | Feedback | Your rating, Tell us more | | Answer questions from your FAQ table | Customer support | FAQ | Topic, the question and your answer | | Find your nearest branch | Contact us | Branches | Your city, the branch, its address, phone and hours | | Get leads for a pre-approved loan/credit card | Lead generation | Leads | Full name, Monthly income, What it's for, the amount worked out | | Provide insurance quote | Lead generation | Insurance rates, Leads | Full name, Date of birth, Coverage type, Cover, the premium | | Capture interest for a personalised offer | Lead generation | Offers, Leads | Full name, Email, Your main interest, the offer | | Member sign-in or sign-up | Log in | Members | Email, and Full name and Plan when someone joins | Every premade Flow sends every answer back to Avox. A live one also sends what Avox worked out on the way (a booking number, a premium, a saving, an EMI), and saves what it should into your tables. A password is never asked for. The FAQ Flow shows each question in a menu, where Meta keeps the first 30 characters. Short questions ("Where is my order?") read best. ### Creating a Flow Want the short version? See the [Create a Flow](https://docs.theavoxai.com/walkthrough/create-flow) walkthrough. Don't want to write JSON? [Write a Flow with any AI](https://docs.theavoxai.com/flows/write-with-ai) has a copy-ready prompt for ChatGPT, Claude, Gemini or any other AI. Click **Create Flow** to open the wizard at `/flows/new` ("Published straight to Meta."). The wizard has three steps - **Type**, **Name**, and **Content** - shown in the step row under the title, with a live phone preview on the right. The round **Back** button at the left end of the step row goes to the step before (or back to Flows from step 1); a step you've already reached can be clicked to jump straight to it. The wizard saves your work as a draft a moment after each change (up to 10 drafts per Switchboard; see [Drafts](#drafts)). #### Step 1: Type - **Start from scratch** - pick one of Meta's nine categories: Sign up, Log in, Appointment booking, Lead generation, Shopping, Contact us, Customer support, Survey, or Other. The preview shows a simple one-field form for that category, and the editor starts with a blank one-screen Flow. - **Or start from a premade Flow** - pick one of the premade Flows above, split into **Plain forms**, **Live answers** and **Live with your tables**. **Open the Flows library** shows them with a search box and a bigger preview. Hover or click a tile to preview it. Nothing is chosen until you click **Continue**. #### Step 2: Name | Field | Rules | | --- | --- | | **Flow name** | Required, up to 100 characters. This is the name you'll see in Meta's Flow list. A premade Flow fills in its own title, which you can change. | | **Categories** | Pick at least one. A Flow can belong to several categories. | Step 2 is headed **Name your Flow**. Click **Next** to continue. #### Step 3: Content Step 3 keeps the page calm: a **Flow content** card shows the start of your Flow JSON (view only), its size and three chips: its problems (**No problems**, or how many errors and warnings), its **actions**, and where its **Live data** comes from. When live data is on and a premade's tables aren't picked yet, a note with **Connect tables** sits underneath. **Write it with any AI** has a copy-ready prompt. ##### The editor Click the code, **Edit JSON** or a chip to open the editor: a big panel that slides in from the right edge of the screen, full height (the whole screen on a phone). It holds the JSON and everything that belongs to editing it: - **The JSON** - a full code editor with line numbers, syntax highlighting, find and replace, and right-click commands such as Format Document. On a wide screen it stays open beside the tabs; on a phone it's the **JSON** tab. - **Errors** - one numbered list of every problem: JSON that doesn't parse, structure problems Avox spots as you type (no screens, a duplicate screen id, a screen with no Footer, a Footer with no action), live data links that don't match the JSON, and whatever Meta's validator found. Warnings follow in amber: answers that never come back to Avox (with a **Send all answers** button, see [Answers that never come back](#answers-that-never-come-back)), a password sent back into the chat, and labels longer than Meta allows. Warnings never stop you publishing. - **Actions** - every action your JSON uses, how many times, and what it does in plain English. See [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows#actions). - **Live data** - the switch **This Flow uses live data**, the Avox endpoint (recommended), each screen's **Connect a table**, and your own server under Advanced. See [Live data](#live-data). - **Phone** - the preview, with a menu to jump to any screen. Ctrl+Enter (Cmd+Enter on a Mac) refreshes it from your latest JSON. At the bottom, **Validate with Meta** checks the JSON with Meta's own validator; its findings appear in **Errors**. ##### Saving The top of the panel always says where your work stands: **No changes yet**, **Unsaved changes**, **Saving...**, **Saved**, or **Couldn't save** with its code. While the panel is open, nothing is saved on its own: - **Save** saves the draft and closes the panel. **Ctrl+S** (Cmd+S) saves and keeps it open. - **Cancel** (or Escape, or the X) closes it. With unsaved changes it asks first: **Keep editing** or **Discard changes**, which goes back to the last save. Leaving the page with unsaved changes asks too. - If saving fails, your changes stay in the editor: see [AVX-3565](https://docs.theavoxai.com/error-codes/avx-3565). A Flow JSON over about 400 KB can't be kept as a draft ([AVX-3566](https://docs.theavoxai.com/error-codes/avx-3566)); big pictures in the JSON are the usual reason. The phone preview works like WhatsApp: type into the fields, pick choices, and tap the button at the bottom. It stays off until every field marked * is filled in. A `navigate` button slides to the next screen (with the answers passed along), the back arrow goes back, `complete` shows the **Submitted** screen, and `data_exchange` asks Avox: with live data on the Avox endpoint, the preview answers from your real rows (nothing is saved, held or counted); otherwise it notes that your own server decides what comes next. A long screen scrolls inside the phone while the title bar and the button stay in place. When the Flow has more than one screen, a **Previewing** menu above the phone jumps straight to any screen. ### Publishing Click **Create & publish**. Avox checks that the Flow has a name ("Give this Flow a name"), at least one category ("Pick at least one category"), valid JSON (if not, the editor opens on **Errors**), and, with live data on, that the JSON and the table links agree ([AVX-3529](https://docs.theavoxai.com/error-codes/avx-3529)) and a premade's tables are picked ([AVX-3537](https://docs.theavoxai.com/error-codes/avx-3537)). Then Avox sets up live data (the number's key, the Flow's endpoint), creates the Flow on Meta, uploads its JSON, and publishes it in one go. You see "Flow created and published" and return to the Flows page, where the Flow shows as **Published**. Its draft is removed. If Meta's validator rejects the JSON, nothing is published: you see "Meta rejected the Flow's content" ([AVX-3035](https://docs.theavoxai.com/error-codes/avx-3035)) and the attempt is listed as **Failed**. Open the editor and click **Validate with Meta** to see Meta's exact findings in **Errors**, fix them, and publish again. A **Failed** attempt still exists on Meta as a draft and uses one of your Flow slots. Click **Refresh from Meta** on the Flows page: it then shows as **Draft on Meta**, and you can open it and click **Delete Flow** to free the slot. **Create & publish** is disabled while every Flow slot on your plan is in use. ### Live data A live Flow reads and saves your [Tables](https://docs.theavoxai.com/tables) while the customer fills it in: free slots, seats, stock, order status, a price, a coupon check, a registration. Open the editor's **Live data** tab and turn on **This Flow uses live data**. - **Avox endpoint (recommended)** is picked for you: Avox answers Meta from your tables. No server, no keys and no code; Avox makes and registers the number's key when you publish. - **Screens and tables** lists every screen with **When it opens** and **When it's submitted**. **Connect a table** picks a table (or makes one from a premade), what to do with it (show rows, look up a row, check it exists, save or change a row, count up or down, book a slot, calculate), which rows and where the values go. **Try it** shows what your real rows give. - **Add live parts** adds what the JSON needs for the table links: data declarations with examples from your rows, buttons that ask Avox, the routing, and every answer sent along. - **Advanced: your own server**: **Pass-through** (your server answers plain JSON; Avox handles Meta's encryption and logs everything) or **Direct** (Meta calls your server with your own key). The full guide, with every step, the pass-through contract, keys, limits and the request log: [Live Flows and the Avox endpoint](https://docs.theavoxai.com/flows/live-endpoint). ### Drafts The wizard saves your work a moment after each change, and the page address becomes `/flows/new?draft=...` so a reload picks up where you were. - Up to **10 drafts** per Switchboard. At 10, saving stops with [AVX-3043](https://docs.theavoxai.com/error-codes/avx-3043); delete a draft to free a slot. - Picking a premade Flow on the Flows page or **Use this Flow** in the [Flows library](https://docs.theavoxai.com/flows/library) always starts a new draft ([AVX-3045](https://docs.theavoxai.com/error-codes/avx-3045) if that fails). - **Edit** on a draft card reopens it at its step ([AVX-3044](https://docs.theavoxai.com/error-codes/avx-3044) if it can't be loaded). - **Start over** in the wizard discards the draft and opens a blank wizard. - A draft is removed automatically once its Flow is published. ### Managing a Flow Click **Manage** on a Flow to open its page. **Back to Flows** returns to the list. It shows the Flow's name, its **Meta Flow ID**, its **Category**, its **Status**, and (for a live Flow) where its **Live data** comes from. A **Draft on Meta** Flow has a **Delete Flow** button and a **Published** Flow has **Deprecate Flow**. Any other status shows "Only a Flow still in draft on Meta's side can be deleted here. (AVX-3039)" in their place. **Used by** lists every place that sends the Flow or answers for it: automations with a **Send a Flow** step, smart link follow-ups, templates with its Flow button and tables wired to its live data, each with its state and a link to it (the parts you have permission to see). The same list shows in the Deprecate window, so you see what stops working before you retire a Flow. #### The Flow's JSON Under the Flow's details, the **Flow JSON** card shows its JSON (view only) with the same chips as the wizard. Click it to open the editor panel, with **Errors**, **Actions** and **Live data**. - A **Draft on Meta** (or **Failed**) Flow can change. **Save to Meta** uploads the new JSON to Meta and keeps it in Avox. If Meta finds problems, the JSON is still saved, and the panel stays open on **Errors** and says how many. If Meta refuses it, nothing changes ([AVX-3570](https://docs.theavoxai.com/error-codes/avx-3570)) and your changes stay in the editor. If someone else saved the Flow while you were editing, Avox doesn't overwrite their change ([AVX-3571](https://docs.theavoxai.com/error-codes/avx-3571)): copy yours, reload and paste them back. - A **Published** or **Deprecated** Flow opens read only: Meta locks a Flow once it's published ([AVX-3569](https://docs.theavoxai.com/error-codes/avx-3569)). Use the copy button at the top of the panel, then create a new Flow with the JSON. - Without the **Create and edit Flows** permission, or when creating Flows is switched off for your account ([AVX-3572](https://docs.theavoxai.com/error-codes/avx-3572)), the editor is read only too. - A Flow made outside Avox (in Meta's Flow Builder) has its JSON read from Meta the first time you open it, marked "Read from Meta". If Meta doesn't send it, the card says so ([AVX-3568](https://docs.theavoxai.com/error-codes/avx-3568)) with **Try again**. #### Statuses | Status | Meaning | | --- | --- | | **Published** | Live. Customers can open it, and automations can send it. | | **Draft on Meta** | Meta's copy is still a draft. This is the only status a Flow can be deleted from. | | **Failed** | Meta didn't accept the JSON or the publish step when you created it. | | **Deprecated** | Retired - by you or by Meta. It can't be sent again. | | **Throttled** | Meta has temporarily limited how often it can be sent. | | **Blocked** | Meta has stopped it from being sent. | Meta tells Avox when a Flow's status changes, and **Refresh from Meta** fetches every status straight away ([AVX-3042](https://docs.theavoxai.com/error-codes/avx-3042) if Meta can't be reached). When a Flow becomes **Blocked**, **Throttled**, or **Deprecated**, Avox emails every Admin of the Switchboard (part of the **WhatsApp account alerts** preference on [Compliance](https://docs.theavoxai.com/compliance)). #### Deleting a draft Flow On a Flow whose status is **Draft on Meta**, click **Delete Flow**. Avox removes it from Meta and from Avox, shows "Flow deleted", and returns you to the Flows page. A published Flow can't be deleted - Meta only allows retiring it ([AVX-3039](https://docs.theavoxai.com/error-codes/avx-3039)). #### Deprecating a published Flow Shown on **Published** Flows only. **Deprecate "flow_name"?** - "Meta doesn't allow deleting a published Flow - deprecating retires it instead. This can't be undone, and the Flow will stop being usable in any message that references it." Click **Deprecate Flow**. You see "Flow deprecated" and the status changes to **Deprecated**. Automations that send a deprecated or deleted Flow can't be switched on until you pick a published Flow for that action ([AVX-3078](https://docs.theavoxai.com/error-codes/avx-3078)). #### Metrics Live Flows show **Endpoint requests - last 30 days**: the **Total requests** Meta sent and a daily bar chart, straight from Meta. With no traffic yet it reads "No endpoint traffic in the last 30 days yet." A Flow without live data shows a short note in its place, since Meta reports endpoint traffic only. #### Live data and live requests A live Flow's page also has: - **Live data** (in the editor panel's **Live data** tab): where its data comes from, its table links per screen (change them and **Save table links**; customers get them straight away), links that need attention after a table changed ([AVX-3526](https://docs.theavoxai.com/error-codes/avx-3526)), and **Switch where its live data comes from** (for example from your own server to the Avox endpoint; a published Flow gets a new version). - **Live requests**: requests over 7, 30 or 90 days, how many had a problem, typical and slowest answer times, problems by code, this month's live requests against your plan, and every request with its steps. Answers, phone numbers and tokens are never shown, only answer names. See [Live Flows](https://docs.theavoxai.com/flows/live-endpoint#the-request-log). #### Responses When a customer completes a Flow, their answers arrive in Avox. Only what the Flow's last button (its `complete` action) puts in its payload comes back, so every Avox premade Flow sends every answer, and the wizard warns you when one of yours doesn't (see [Answers that never come back](#answers-that-never-come-back)). Each submission shows up in four places: - **The Inbox.** The conversation gets a card, "Submitted *Flow name*", listing each question with the customer's answer. Choices show their titles, dates show as days (for example "7 Mar 2026") and ticked boxes as a list. A long list shows the first five answers with **Show all**, and **Open Flow** takes you to the Flow's page. - **The contact's page.** The timeline shows "Submitted *Flow name*" with the number of answers; **Show answers** opens the same question and answer list. - **The Flow's page.** See [Log and responses](#log-and-responses) below. - **The Overview.** The **Flows** card shows **Responses (30d)**, the number of completed responses in the last 30 days, next to your Flows broken down by status. A submitted Flow counts as a message from the customer, the same as on WhatsApp: it opens the 24-hour reply window, shows as unread and moves the chat to the top. It doesn't start or continue an automation, isn't followed up by **No reply** automations, and isn't sent to a message forwarding endpoint. Answers are matched to their Flow by a code Avox adds to every Flow it sends (it holds no personal data). Answers to a Flow sent from somewhere else (another app, or Meta's own tools) are still kept on the contact's page, but Avox can't tell which Flow they belong to, so they show as "Flow submitted" with each answer's field name made readable. ##### Log and responses Open a Flow with **Manage**. Below its insights, **Log and responses** has two tabs, a shared **From** and **To** date (your own days and time zone, up to 366 days at once) and tiles for **Sent**, **Delivered**, **Completed**, **Failed** and **Completion rate** in those dates. - **Log** - one row per time Avox sent this Flow: the contact (their name, or the last four digits of their number), when it was sent, how (the automation's name, or **API**) and how far it got: **Sent**, **Delivered**, **Read**, **Failed** or **Completed**, with the time it was completed. Filter by status. Click a completed row to see the answers. - **Responses** - one row per submission, with one column per question (in the order the Flow asks them) plus the contact and the time. Click a row to see every answer. **Download CSV** saves the responses in the chosen dates: the time in your time zone and in UTC, the contact's name, the last four digits of their number, then one column per question. **Columns** picks whether the columns are titled by the questions or by the field names. One file holds the newest 10,000 responses ([AVX-3458](https://docs.theavoxai.com/error-codes/avx-3458)); spreadsheet formulas in answers are made harmless. Both tabs show 25 rows a page. Contacts whose data was erased show as "Deleted contact" and sends from a deleted automation as "A deleted automation". You need **See Flows** to view them; the contact links open only with **See contacts**. The **Completion - last 30 days** card in the Flow's insights shows **Sent**, **Completed** and the **Completion rate** (completed sends out of all sends) for the last 30 days. ##### Answers that never come back The **Errors** panel in the wizard warns "The answer to *question* is never sent back, so you won't see it in Avox." for every input whose answer isn't in a `complete` payload (directly, or passed along from an earlier screen) or sent to a live endpoint ([AVX-3455](https://docs.theavoxai.com/error-codes/avx-3455)). Click **Send all answers** and Avox rewrites the payloads: each screen passes every answer on to the next one, and the last button sends them all. Warnings never stop you publishing. The panel also warns about a password that would come back into the chat, and about labels longer than Meta allows (for example 20 characters for a text field). ### Sending a Flow A published Flow is sent from an automation's **Use Flows** action, with a button label of your choice (for example "Book now"). See [Actions](https://docs.theavoxai.com/automation/actions). You can also send one through the API as an `interactive` message of type `flow`. Every Flow Avox sends is logged on the Flow's page ([Log and responses](#log-and-responses)) and carries a code (`flow_token`) that ties the customer's answers back to that send and that Flow. Through the API: - Leave out `flow_token` (or send Meta's default `"unused"`) and Avox adds its own. - Send your own `flow_token` and Avox keeps it (your system may rely on it) and still matches the answers to the send. A send Meta refuses shows as **Failed** in the log. Meta's delivery updates move a send to **Delivered** and **Read**, and it becomes **Completed** when the answers arrive. For a short exchange - one or two questions, a confirm or reschedule choice - an automation's **Ask a question** and **Wait for reply** steps are often simpler than a Flow: the customer answers right in the chat, and the answer is saved to a tag or contact field. Use a Flow when you need a full form with several fields on one screen. See [Actions](https://docs.theavoxai.com/automation/actions). ### Related errors | Code | Message | | --- | --- | | [AVX-3032](https://docs.theavoxai.com/error-codes/avx-3032) | Check the Flow's name, categories, and JSON. | | [AVX-3033](https://docs.theavoxai.com/error-codes/avx-3033) | You've used every Flow your plan allows. | | [AVX-3034](https://docs.theavoxai.com/error-codes/avx-3034) | Connect a WhatsApp number before creating Flows. | | [AVX-3035](https://docs.theavoxai.com/error-codes/avx-3035) | Meta couldn't accept that Flow. Check its JSON and try again. | | [AVX-3036](https://docs.theavoxai.com/error-codes/avx-3036) | Meta rejected this Flow's JSON - check the errors below. | | [AVX-3037](https://docs.theavoxai.com/error-codes/avx-3037) | Couldn't publish that Flow. Try again. | | [AVX-3038](https://docs.theavoxai.com/error-codes/avx-3038) | Couldn't delete that Flow. Try again. | | [AVX-3039](https://docs.theavoxai.com/error-codes/avx-3039) | Only a Flow still in draft on Meta's side can be deleted here. | | [AVX-3040](https://docs.theavoxai.com/error-codes/avx-3040) | This Flow template needs a live endpoint URL to work. | | [AVX-3041](https://docs.theavoxai.com/error-codes/avx-3041) | Enter a valid HTTPS endpoint URL. | | [AVX-3042](https://docs.theavoxai.com/error-codes/avx-3042) | Couldn't refresh Flows from Meta. Try again. | | [AVX-3043](https://docs.theavoxai.com/error-codes/avx-3043) | You've reached the maximum of 10 saved drafts. Delete one to start another. | | [AVX-3044](https://docs.theavoxai.com/error-codes/avx-3044) | Couldn't load that draft. Try again. | | [AVX-3045](https://docs.theavoxai.com/error-codes/avx-3045) | Couldn't start a new draft from that template. Try again. | | [AVX-3046](https://docs.theavoxai.com/error-codes/avx-3046) | Couldn't generate a key pair in this browser. Try again. | | [AVX-3047](https://docs.theavoxai.com/error-codes/avx-3047) | Meta couldn't register that public key. Try again. | | [AVX-3048](https://docs.theavoxai.com/error-codes/avx-3048) | Couldn't reach that endpoint URL. | | [AVX-3049](https://docs.theavoxai.com/error-codes/avx-3049) | Couldn't deprecate that Flow. Try again. | | [AVX-3050](https://docs.theavoxai.com/error-codes/avx-3050) | Couldn't load metrics for this Flow. | | [AVX-3450](https://docs.theavoxai.com/error-codes/avx-3450) | Couldn't load this Flow's log. Try again. | | [AVX-3451](https://docs.theavoxai.com/error-codes/avx-3451) | Couldn't load this Flow's responses. Try again. | | [AVX-3452](https://docs.theavoxai.com/error-codes/avx-3452) | Couldn't download the responses. Try again. | | [AVX-3453](https://docs.theavoxai.com/error-codes/avx-3453) | The Flow log isn't switched on yet. Try again later. | | [AVX-3454](https://docs.theavoxai.com/error-codes/avx-3454) | Couldn't find that response. It may have been deleted. | | [AVX-3455](https://docs.theavoxai.com/error-codes/avx-3455) | Some answers in this Flow are never sent back, so you won't see them in Avox. | | [AVX-3456](https://docs.theavoxai.com/error-codes/avx-3456) | Pick a date range of up to 366 days, with the start before the end. | | [AVX-3457](https://docs.theavoxai.com/error-codes/avx-3457) | Couldn't add every answer to this Flow. Fix the JSON errors first, then try again. | | [AVX-3458](https://docs.theavoxai.com/error-codes/avx-3458) | Only the newest 10,000 responses were downloaded. Pick a shorter date range to get the rest. | | [AVX-3565](https://docs.theavoxai.com/error-codes/avx-3565) | Couldn't save your changes. They're still here, so try again. | | [AVX-3566](https://docs.theavoxai.com/error-codes/avx-3566) | This Flow JSON is too big to save. Make it smaller and try again. | | [AVX-3567](https://docs.theavoxai.com/error-codes/avx-3567) | Couldn't load this Flow's JSON. Try again. | | [AVX-3568](https://docs.theavoxai.com/error-codes/avx-3568) | Avox doesn't have this Flow's JSON yet, and Meta didn't send it. | | [AVX-3569](https://docs.theavoxai.com/error-codes/avx-3569) | This Flow is published, so Meta won't let its JSON change. Create a new Flow to make changes. | | [AVX-3570](https://docs.theavoxai.com/error-codes/avx-3570) | Meta didn't take this Flow JSON, so nothing was saved. Check the problems and try again. | | [AVX-3571](https://docs.theavoxai.com/error-codes/avx-3571) | This Flow changed somewhere else while you were editing. Reload to see the newest version. | | [AVX-3572](https://docs.theavoxai.com/error-codes/avx-3572) | Creating and changing Flows is switched off for this account. | | [AVX-3573](https://docs.theavoxai.com/error-codes/avx-3573) | This premade Flow needs a table you don't have yet, and making tables needs the Manage tables permission. | --- ## Write with AI URL: https://docs.theavoxai.com/flows/write-with-ai Section: Flows and automation A Flow is described by one **Flow JSON** document: a list of screens, the fields on each screen, and what the button at the bottom of each screen does. Avox's editor takes that JSON as it is, so any AI chat tool can write it for you if you give it the right rules. This page gives you a prompt with those rules built in, a worked example, and the steps to put the result into Avox. You don't need to know JSON to use it. ### Plain or live There are two kinds of Flow. The prompt below writes the first kind; [Live Flows with an AI](#live-flows-with-an-ai) covers the second. - **A plain Flow.** Every screen, question and choice is written into the Flow JSON. The customer fills it in, taps the last button, and their answers come back to Avox. There's nothing to host and no code to run, so anyone can make one, with or without an AI. - **A live Flow.** Some screens read or save your [Tables](https://docs.theavoxai.com/tables) while the customer fills them in, such as free time slots, seats left or a price. Avox's own endpoint answers, with nothing to host: see [Live Flows and the Avox endpoint](https://docs.theavoxai.com/flows/live-endpoint). If you're not sure which you need, start plain. Most lead forms, surveys, feedback and support forms don't need live data, and you can start from a premade live Flow when you do. ### The prompt Copy this prompt into ChatGPT, Claude, Gemini or any other AI chat. Fill in the five lines under "About my business" first; leave everything under "Rules" exactly as it is. ```text You write WhatsApp Flow JSON for a business. Reply with ONLY the JSON: no explanation before or after, no markdown code fences, no comments. About my business: - Business: [what you do and where, e.g. "a dental clinic in Pune"] - What to collect: [e.g. name, phone number, which treatment, preferred day] - Screens: [e.g. "screen 1: contact details, screen 2: what they need", or "you decide, at most 3 screens"] - Button on the last screen: [e.g. "Send"] - Language for all text: [e.g. English] Rules (follow every one): 1. The top level has exactly two keys: "version": "6.0" and "screens". This Flow has no server, so never add "data_api_version", "routing_model", "data_endpoint_uri", or any "data_exchange" action. 2. Every screen has: - "id": capital letters and underscores only (e.g. CONTACT_DETAILS), unique in the Flow, and never the word SUCCESS - "title": a short title shown at the top of the screen - "data": {} - "layout": {"type": "SingleColumnLayout", "children": [...]} 3. A screen's layout "children" may start with a "TextHeading" and a "TextBody" (each with a "text"), followed by exactly one {"type": "Form", "name": "form", "children": [...]}. The Form holds every input on that screen and ends with exactly one "Footer" (the button). 4. Inputs you may use: "TextInput" (with "input-type": "text", "number", "email" or "phone"), "TextArea", "Dropdown", "RadioButtonsGroup", "CheckboxGroup", "DatePicker". Never ask for a password: every answer is shown to the business team. Every input has: - "name": lowercase letters and underscores, unique in the whole Flow - "label": the question shown to the customer - "required": true or false "Dropdown", "RadioButtonsGroup" and "CheckboxGroup" also have "data-source": a list of {"id": "...", "title": "..."}. 5. Keep text short: labels of "TextInput", "TextArea" and "Dropdown" 20 characters or fewer, of "RadioButtonsGroup" and "CheckboxGroup" 30 or fewer, of "DatePicker" 40 or fewer; choice titles 30 or fewer, Footer labels 35 or fewer, headings 80 or fewer. Put a longer question in the input's "helper-text" (80 or fewer). 6. On every screen except the last, the Footer is: {"type": "Footer", "label": "Next", "on-click-action": {"name": "navigate", "next": {"type": "screen", "name": ""}, "payload": {}}} 7. The last screen has "terminal": true and "success": true. Its Footer's "on-click-action" is {"name": "complete", "payload": {...}}, and the payload MUST list EVERY input in the whole Flow, on every screen, one key per input, the key being the input's name. Only what is in this payload is sent back; an input left out is lost. Use: - "${form.}" for inputs on the last screen - "${screen..form.}" for inputs on earlier screens Before you reply, check every input name appears in this payload. 8. Output must be valid JSON: double quotes only, no trailing commas. ``` When the AI replies, check that the answer starts with `{` and ends with `}`. If it added a sentence or wrapped the JSON in a code block, copy only the part from the first `{` to the last `}`. #### Why the rules are there Each rule matches something Avox or Meta checks: | Rule | Why | | --- | --- | | Version 6.0 | The Flow JSON version Avox's own blank and premade Flows use. Avox's Errors panel flags a Flow with no version. | | No endpoint keys | Endpoint settings only belong in a Flow whose server is set up. Without one, Meta can't run those steps. | | Screen ids | Avox flags a screen with no id or a repeated id. Meta reserves the word SUCCESS for itself. | | One Form with a Footer | Avox flags a screen with no Footer, and a Footer with no action. Without these the button does nothing. | | Short text | Meta limits how long labels and titles can be. **Validate** tells you if one is too long. | | navigate, then complete | `navigate` moves to the next screen. `complete` closes the Flow and sends the answers. | | Every input in the payload | Only what's in the `complete` payload comes back to Avox, where each answer shows under its question in the Inbox, on the contact's page and in the Flow's Responses. An input left out is lost. Avox's **Errors** panel warns about each one, and **Send all answers** adds them for you. | | No passwords | Answers are stored in Avox and shown to your team. Avox warns about a password sent back into the chat. | ### A worked example Filled in for a small business that wants call-back requests: ```text - Business: a home cleaning company in Leeds - What to collect: full name, phone, email (optional), which service, best time to call, anything else they want to tell us - Screens: screen 1: contact details, screen 2: what they need - Button on the last screen: Send - Language for all text: English ``` A good answer looks like this: ```json { "version": "6.0", "screens": [ { "id": "CONTACT_DETAILS", "title": "Request a call", "data": {}, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "TextHeading", "text": "How can we reach you?" }, { "type": "TextBody", "text": "We call back within one working day." }, { "type": "Form", "name": "form", "children": [ { "type": "TextInput", "name": "full_name", "label": "Full name", "input-type": "text", "required": true }, { "type": "TextInput", "name": "phone", "label": "Phone number", "input-type": "phone", "required": true }, { "type": "TextInput", "name": "email", "label": "Email", "input-type": "email", "required": false }, { "type": "Footer", "label": "Next", "on-click-action": { "name": "navigate", "next": { "type": "screen", "name": "SERVICE_DETAILS" }, "payload": {} } } ] } ] } }, { "id": "SERVICE_DETAILS", "title": "What you need", "terminal": true, "success": true, "data": {}, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "TextHeading", "text": "What can we help with?" }, { "type": "Form", "name": "form", "children": [ { "type": "Dropdown", "name": "service", "label": "Service", "required": true, "data-source": [ { "id": "regular", "title": "Regular cleaning" }, { "id": "deep", "title": "Deep cleaning" }, { "id": "end_of_tenancy", "title": "End of tenancy" } ] }, { "type": "RadioButtonsGroup", "name": "best_time", "label": "Best time to call", "required": true, "data-source": [ { "id": "morning", "title": "Morning" }, { "id": "afternoon", "title": "Afternoon" }, { "id": "evening", "title": "Evening" } ] }, { "type": "TextArea", "name": "details", "label": "Anything else?", "required": false }, { "type": "Footer", "label": "Send", "on-click-action": { "name": "complete", "payload": { "full_name": "${screen.CONTACT_DETAILS.form.full_name}", "phone": "${screen.CONTACT_DETAILS.form.phone}", "email": "${screen.CONTACT_DETAILS.form.email}", "service": "${form.service}", "best_time": "${form.best_time}", "details": "${form.details}" } } } ] } ] } } ] } ``` And this is how it looks on a phone. It's the same preview the Flow editor shows next to your JSON; tap the button to move between the two screens: When a customer taps **Send**, WhatsApp sends Avox one reply holding `full_name`, `phone`, `email`, `service`, `best_time` and `details`. WhatsApp sends the `id` of each choice (for example `deep`); Avox shows it under its question with the choice's title ("Deep cleaning") in the Inbox, on the contact's page and in the Flow's [Responses](https://docs.theavoxai.com/flows#log-and-responses). ### Put it into Avox Go to **Flows** and click **Create Flow**. Under **Start from scratch**, pick the category that fits best (for the example above, **Lead generation**) and click **Continue**. Enter a **Flow name** and check the **Categories**, then click **Next**. Click **Edit JSON** on the **Flow content** card to open the editor. Click inside the JSON, select everything (Ctrl+A, or Cmd+A on a Mac) and paste the AI's answer over it. Leave **Live data** off. Open the editor's **Phone** tab (or press Ctrl+Enter, Cmd+Enter on a Mac). It's an instant check in your browser: the preview redraws from your JSON, and the menu above the phone lets you look at each screen. "Invalid JSON" means the text isn't JSON yet; see the table below. Click **Validate with Meta** at the bottom of the editor to run Meta's own check. It needs a connected WhatsApp number and doesn't publish anything. Then click **Save**. Open the editor's **Errors** tab. It lists every problem in one numbered list: Avox's own checks and Meta's findings, then warnings in amber. If it says an answer is never sent back, click **Send all answers**. When it says "No errors - Meta's happy with this JSON." you're ready. Click **Create & publish**. The Flow goes to Meta and shows as **Published** on the Flows page. From there, an automation's **Use Flows** action sends it (see [Actions](https://docs.theavoxai.com/automation/actions)). The fastest fix for anything in **Errors**: copy the whole list, paste it back into the same AI chat, and write "Fix these errors and reply with the full corrected JSON only." Paste the new answer over the old one, check the **Phone** tab and click **Validate with Meta** again. Changing a Flow later works the same way: ask the AI for the change ("add a question about budget to the second screen, keep all the rules"), then paste, Run and Validate again. ### Common mistakes and fixes | What you see | What it means | Fix | | --- | --- | --- | | "Invalid JSON" with a reason | The text isn't valid JSON. Usually the AI added a sentence, a code fence, a comment, or a comma after the last item in a list. | Copy only from the first `{` to the last `}`. Or paste the error back to the AI and ask for valid JSON only. | | Missing a top-level "version" field. | The JSON has no version. | Add `"version": "6.0",` as the first line inside the outer braces. | | This Flow has no screens defined yet. | There's no `screens` list, or it's empty. | Ask the AI to follow rule 2 and rewrite the Flow. | | Screen id "..." is used more than once | Two screens share an id. | Give each screen its own id, and update any `navigate` that points to it. | | its "layout" has no "children". | A screen has no layout, or nothing in it. | Give every screen a SingleColumnLayout with its inputs and Footer inside one Form (rule 3). | | missing a "Footer" | A screen has no button. | Add a Footer as the last item in that screen's Form. | | its Footer has no "on-click-action" | The button doesn't do anything. | Use `navigate` on every screen but the last, and `complete` on the last (rules 6 and 7). | | Meta says a label or title is too long | A label is over Meta's limit. | Shorten it (rule 5). Put longer explanations in a TextBody above the Form. | | Meta says a screen can't be found | A `navigate` points to a screen id that doesn't exist, often a typo. | Make `next.name` match the next screen's `id` exactly, capitals included. | | Meta mentions a data endpoint, `data_exchange` or `routing_model` | The AI wrote a live Flow. | Remove those parts and use `navigate` and `complete` instead (rule 1), or turn on **Live data** and connect its screens to tables (see [Live Flows with an AI](#live-flows-with-an-ai)). | | The answer to "..." is never sent back, so you won't see it in Avox. | The `complete` payload is empty or leaves that input out ([AVX-3455](https://docs.theavoxai.com/error-codes/avx-3455)). | Click **Send all answers** in **Errors**, or list every input in the payload (rule 7). | | The Flow works, but answers are missing in Avox | The `complete` payload is empty or leaves fields out. | List every input in the payload (rule 7), or click **Send all answers**. | If **Create & publish** fails with "Meta rejected the Flow's content", nothing was published: open the editor, click **Validate with Meta**, fix what **Errors** shows, save, and publish again. See [Publishing](https://docs.theavoxai.com/flows#publishing). ### Live Flows with an AI You don't need the AI for the live parts. Ask it for a plain Flow with the screens you want, then let Avox make it live: Use the prompt above, and add under "What to collect" which screen shows a list from your data, for example: "screen 2: a Dropdown named slot whose choices come from my data". The AI may then write `"data-source": "${data.slots}"`; that's fine. Paste the JSON, open **Live data**, and turn on **This Flow uses live data**. On each screen that needs data, click **Connect a table**: for example **Show rows** from your Time slots table into `slots` when SLOT opens, and **Book a slot or seat** when it's submitted. Click **Add live parts**. Avox adds `data_api_version`, the `routing_model`, the data each screen declares (with examples from your rows), turns the buttons that need data into `data_exchange`, and sends every answer along. Then check the **Phone** tab, click **Validate with Meta**, **Save** and publish. ### Related - [WhatsApp Flows](https://docs.theavoxai.com/flows): the Flows page, the wizard, drafts and statuses. - [How WhatsApp Flows Work](https://docs.theavoxai.com/whatsapp/flows): Flow JSON, screens, components and actions on Meta's side. - [Live Flows and the Avox endpoint](https://docs.theavoxai.com/flows/live-endpoint): Flows that read and save your tables, or ask your own server. --- ## Live Flows URL: https://docs.theavoxai.com/flows/live-endpoint Section: Flows and automation A **live Flow** gets data while the customer fills it in: the free times for the day they picked, a price for the cover they chose, whether you deliver to their pincode, whether their coupon still works. It can also save what they give you straight into a table: a booking, a registration, a lead. Meta asks an **endpoint** (a server address) for that data at each step. In Avox there are three ways to answer: | | Avox endpoint (recommended) | Pass-through | Direct | | --- | --- | --- | --- | | Who answers Meta | Avox, from your [Tables](https://docs.theavoxai.com/tables) | Your server, through Avox | Your server, on its own | | Server or code needed | None | A small server that answers plain JSON | A server that decrypts Meta's requests | | Keys | Avox makes and registers them | Avox makes and registers them | You make them; your server keeps the private key | | Request log in Avox | Every request, every step | Every request, both directions | None (only the answers that come back) | | Good for | Slots, seats, stock, prices, order status, coupons, sign-up | Logic that lives in your own systems | An existing Flow server you already run | Every way sends **every answer** back to Avox when the Flow ends, so it shows in the Flow's [Responses](https://docs.theavoxai.com/flows#responses) and the Inbox like any other Flow. ### The Avox endpoint Nothing to host, no keys, no code. You turn on live data for a Flow, connect each screen to a table, and publish. In the Flow wizard's step 3, open the editor and its **Live data** tab (next to Errors and Actions), and turn on **This Flow uses live data**. **Avox endpoint (recommended)** is picked for you. The panel shows whether your WhatsApp number is connected, whether Meta can reach Avox, and this month's live requests on your plan. Under **Screens and tables**, each screen has two places for steps: **When it opens** (fill the screen with rows or values) and **When it's submitted** (check, save or book, then go on). Click **Connect a table**, pick a table (or make one from a [premade table](https://docs.theavoxai.com/tables/premade) right there), pick what it does, and click **Try it** to see what your real rows give. A live Flow's JSON needs a few extra parts. When the checks under the steps say so, click **Add live parts**: Avox declares the data each screen gets (with examples from your real rows), turns the buttons that need data into ones that ask Avox, writes the routing, and makes sure every answer is sent along. The phone preview now answers from your real rows. Click **Create & publish**. Avox makes your number's key, registers it with Meta, points the Flow at Avox's endpoint and publishes. Meta checks the endpoint before it publishes; Avox answers that check for you. Start from a premade live Flow (the **Live: read and save your tables** group in the wizard). Each one says which tables it needs: pick yours, or click **Make it now** to make them from Avox's premade tables with example rows, and the Flow works straight away. #### What a step can do | Step | Runs | What it does | | --- | --- | --- | | Show rows | When a screen opens | Rows become the choices of a Dropdown or radio buttons (`${data.slots}`), filtered by fixed values or earlier answers, sorted, at most 100. Each choice shows text you write with column names, like `{Time}` and `{Service} with {Staff}`. | | Look up one row | Opens or submitted | Finds the row that matches an answer (an order number, the picked slot) and shows its values on the screen. | | Check it exists | Submitted | Checks a pincode, a coupon or a member. Carries on, asks again with your message, or goes to another screen. | | Save a new row | Submitted | Saves answers, the customer's WhatsApp number or name, today's date, or values of an earlier row as a new row. | | Change a row | Submitted | Finds a row and changes some of its values. Can add a new row when none matches (one lead per customer). | | Count up or down | Submitted | Takes from or adds to a number in one go, never below zero: uses left on a coupon, stock, seats. | | Book a slot or seat | Submitted | **Hold** the picked slot for a few minutes, then **confirm** it on a later screen. Places are counted under a lock, so two customers can never get the same last place. Full slots disappear from lists on their own. | | Calculate | Opens or submitted | Works out a value from answers and looked-up values with the same safe formulas as [table formulas](https://docs.theavoxai.com/tables/column-types): a premium, an age from a date of birth, a saving. | Columns are kept by their id, so renaming a column or a table never breaks a Flow. Changing a table's rows changes what customers see straight away; no publishing needed. #### When something isn't right Customers never see an error page. Each step says what happens when nothing matches, a slot is full or none are left: ask again with a message (Avox's or yours), carry on, or go to another screen. When a table changes under a Flow (a column it uses is deleted, the table is archived), the Flow shows a friendly "please try again" on that screen, the Flow's page marks the screen in red ([AVX-3526](https://docs.theavoxai.com/error-codes/avx-3526)) and the table's [Used by](https://docs.theavoxai.com/tables/analytics) tab lists it. #### Booking without double booking Booking uses a table with a **places** column (how many people a slot or event takes) and a **booked** column (how many are taken). The premade **Time slots** and **Events and seats** tables have both. 1. The slot list hides rows whose places are all booked or held. 2. When the customer picks one, **Hold** keeps the place for them for 10 minutes (you choose 1 to 30). Picking another slot lets the first one go. 3. **Confirm**, on a later screen, adds the places to **booked**. If the hold ran out and someone else took the place meanwhile, the customer is asked to pick again ([AVX-3553](https://docs.theavoxai.com/error-codes/avx-3553)). A Flow whose last screen uses `complete` instead of asking Avox still confirms its holds when the answers arrive. #### The phone preview answers from your rows With live data on, the preview in the wizard asks Avox exactly like Meta would, with your real rows: lists fill in, lookups show real values, and a full slot or a wrong pincode shows the message the customer would see. Nothing is saved, held or counted while you try it. #### How the Flow is sent When a Flow's first screen loads table data, Meta must ask Avox before it opens, so the Flow is sent with `flow_action: "data_exchange"`. Avox's automations do this for you. If you send Flows through the [Avox API](https://docs.theavoxai.com/avox-api/messages), do the same and leave out `flow_action_payload`. The premade live Flows never need it: their first screen only asks a question. #### Plan limits Each screen of a live Flow that asks Avox is one **live request**. Plans include a number per Switchboard per month (Meta's health checks don't count). When they're used up, live Flows ask customers to try again later, the Flow's page shows [AVX-3540](https://docs.theavoxai.com/error-codes/avx-3540), and the Switchboard's owner is emailed once that month. Avox also answers at most 600 live requests a minute per Switchboard and 60 per customer ([AVX-3541](https://docs.theavoxai.com/error-codes/avx-3541)). ### Example: appointment booking The premade **Appointment booking** Flow uses two tables: **Time slots** (date, time, service, with, places, booked) and **Appointments** (where each booking is saved). | Screen | When it opens | When it's submitted | | --- | --- | --- | | DATE: name and preferred date | Nothing | Nothing: goes on to SLOT | | SLOT: a Dropdown of free times | Show rows from Time slots where Date is the date answer, sorted by time | Hold the picked slot for 10 minutes | | CONFIRM: the booking and notes | Look up the picked slot (date, time, service) | Confirm the hold, then save a row in Appointments with the name, the customer's WhatsApp number, the slot's date and time and "Booked" | Other premade live Flows: **Event registration** (seats, never oversold), **Check order status**, **Browse products and check stock**, **Check delivery to a pincode**, **Check a coupon code** (counts the use when it's applied), **Get leads for a pre-approved loan**, **Provide insurance quote** (premium from an **Insurance rates** table by age and cover), **Capture interest for a personalised offer** and **Member sign-in or sign-up**. ### Keys Meta locks every request with your WhatsApp number's **public key**; only the matching **private key** unlocks it. A number has one key at Meta. - **Avox's key** (Avox endpoint and pass-through): Avox makes the pair on its own server when you first publish a live Flow (or click **Set it up now**), keeps the private key encrypted, and registers the public key with Meta. Nobody needs to see or copy anything. The panel shows its fingerprint. - **Replace key** makes a new pair and registers it. Meta picks it up by itself, Flows already open on a customer's phone keep working with the old key for a day, and nothing needs publishing again. Avox asks you to confirm first, because it affects every live Flow on the number. - **Your own key** (Direct, under Advanced) replaces Avox's key at Meta. Avox then can't answer that number's live Flows ([AVX-3535](https://docs.theavoxai.com/error-codes/avx-3535)), so it asks you to confirm and lists them. **Switch this number to Avox's key** in the Live data panel goes back. When Meta's request can't be unlocked, the endpoint answers HTTP 421 and Meta fetches the public key again and retries. That's how a replaced key catches up. ### The request log A live Flow's page shows **Live requests**: how many requests it got, how many had a problem, the typical and the slowest answer times, problems by code, this month's live requests against your plan, and every request with each step's outcome (a table read, a slot held, a row saved) and how long it took. The log never holds the customer's answers, their phone number or the Flow's token: only the names of the answers sent. It's kept for 90 days. On the same page, the Flow JSON editor's **Live data** tab shows where the data comes from and lets you change a screen's table links. Changes work straight away. A change that needs a screen to declare new data needs a new version of the Flow (Meta doesn't change a published Flow's JSON), which Avox publishes for you. ### Switch an existing Flow to the Avox endpoint On a live Flow's page, **Switch where its live data comes from** picks Avox's endpoint (or pass-through, or your own server). While a Flow is still a draft at Meta, Avox changes its endpoint in place. A published Flow can't change its endpoint ([AVX-3533](https://docs.theavoxai.com/error-codes/avx-3533)), so Avox offers **Publish a new version**: the same screens, pointed at the new source, counting as one of your plan's Flows. Send the new version instead, then deprecate the old one. ### Pass-through Your own server decides what the customer sees, and Avox does the rest: Meta's encryption, keys, time limits, retries, rate limits and the log. Pick **Pass-through** under **Advanced: your own server**, enter your server's `https://` address and click **Make the secret**. Copy the secret (it's shown once) into your server's settings as `AVOX_SIGNING_SECRET`. #### What Avox sends A `POST` with a JSON body, for every request Meta makes while the Flow is open: ```json { "version": "2026-10-23", "request_id": "flr_7hQ2kX9mVb1cN0pD", "action": "data_exchange", "screen": "QUOTE", "data": { "age": "34", "cover": "10" }, "flow_token": "avx1.3c1f0a9e-1b2d-4c8e-9f00-2b6c1d7e8a91", "flow": { "id": "6f1c...", "name": "Insurance quote" }, "answers": { "full_name": "Asha", "age": "34", "cover": "10" }, "contact": { "wa_id": "919876543210", "name": "Asha" } } ``` - `action` is `INIT` (the Flow opened and asks for its first screen), `data_exchange` (a screen was submitted; `data` is that button's payload) or `BACK` (the customer went back to a screen that refreshes). - `answers` holds every answer given so far in this Flow message. - Headers: `X-Avox-Signature: t=,n=,v1=` and `X-Avox-Request-Id`. #### Checking the signature The signature is the HMAC-SHA256, in hex, of `..` with your secret. Refuse a request whose `t` is more than 5 minutes off, and compare in constant time. For a day after you replace the secret there are two `v1` values (new and old): accept either. #### What your server answers Status 200 with JSON, within 5 seconds, at most 64 KB: ```json { "screen": "RESULT", "data": { "premium": 7400 } } ``` ```json { "screen": "QUOTE", "data": {}, "error_message": "We can't quote that cover online." } ``` ```json { "close": { "policy_ref": "Q-1042" } } ``` - `screen` must be a screen of the Flow; `data` must be what that screen declares (Avox fills in anything it declares that you leave out, and drops anything it doesn't). - `close` finishes the Flow; its values come back to Avox with every answer. - Anything else (no answer, an error status, a wrong shape) shows the customer a "try again" message and logs [AVX-3555](https://docs.theavoxai.com/error-codes/avx-3555) or [AVX-3556](https://docs.theavoxai.com/error-codes/avx-3556). The wizard has a ready snippet for Next.js and Express that checks the signature; your logic goes in its `answer` function. ### Direct Your own server, with Meta calling it directly. **Direct needs a developer** and replaces Avox's key for the number. Avox doesn't see the requests, so there's no request log and no tables; only the answers that come back. Pick **Direct** under **Advanced: your own server**. The checklist there walks through it: Enter the public `https://` address your server answers at. **Make a key pair** makes it in your browser. The private key is shown once (copy or download it into your server's settings as `FLOW_PRIVATE_KEY`); Avox never sees it. **Register the public key with Meta** replaces Avox's key for the number, after you confirm. A plain reachability check from Avox. Meta's own encrypted check happens when you publish. Put the snippet on your server. It unlocks Meta's requests (RSA-OAEP with SHA-256, then AES-128-GCM), answers Meta's `ping`, and locks your answer with the request's key and the IV with every bit flipped. Your per-screen logic goes where it's marked. It answers HTTP 421 when it can't unlock a request. #### What Meta sends | Action | When | Your reply | | --- | --- | --- | | `ping` | Meta checks the endpoint is alive. | `{ data: { status: "active" } }` | | `INIT` | A Flow sent with `flow_action: "data_exchange"` opened. | The first screen and its data. | | `data_exchange` | A button with a `data_exchange` action was tapped. | The next screen and its data, or `SUCCESS` with `extension_message_response.params` to close. | | `BACK` | The customer went back on a screen with `refresh_on_back: true`. | A screen with fresh data. | | `data.error` | Meta reports that a reply of yours couldn't be shown. | `{ data: { acknowledged: true } }` | Put every answer in `params` when you close the Flow: only those come back to Avox. Meta waits at most 10 seconds for an answer. ### Troubleshooting | Code | What happened | Fix | | --- | --- | --- | | [AVX-3523](https://docs.theavoxai.com/error-codes/avx-3523) | No connected WhatsApp number. | Connect one on [Connections](https://docs.theavoxai.com/connections). | | [AVX-3521](https://docs.theavoxai.com/error-codes/avx-3521) | Avox couldn't make or register the number's key. | Reconnect the number if its access expired, then try **Set it up now** again. | | [AVX-3529](https://docs.theavoxai.com/error-codes/avx-3529) | The Flow JSON and the table links don't match. | Click **Add live parts**, or fix the screen named in the message. | | [AVX-3537](https://docs.theavoxai.com/error-codes/avx-3537) | A premade live Flow's tables aren't picked. | Pick a table for each, or click **Make it now**. | | [AVX-3526](https://docs.theavoxai.com/error-codes/avx-3526), [AVX-3548](https://docs.theavoxai.com/error-codes/avx-3548) | A column a step uses was deleted, or its table was deleted. | Open the screen marked in red on the Flow's page and pick the column again. | | [AVX-3549](https://docs.theavoxai.com/error-codes/avx-3549) | The table is archived, so nothing can be saved to it. | Restore it in [Tables](https://docs.theavoxai.com/tables). | | [AVX-3552](https://docs.theavoxai.com/error-codes/avx-3552), [AVX-3553](https://docs.theavoxai.com/error-codes/avx-3553) | A slot was full, or a hold ran out and the place was taken. | Nothing: the customer was asked to pick again. Add more slots if it happens a lot. | | [AVX-3540](https://docs.theavoxai.com/error-codes/avx-3540) | This month's live requests are used up. | Move to a bigger plan ([Billing](https://docs.theavoxai.com/billing)), or wait for next month. | | [AVX-3543](https://docs.theavoxai.com/error-codes/avx-3543) | Meta's request couldn't be unlocked. | If the number uses your own key, switch it back to Avox's. Otherwise replace the key. | | [AVX-3547](https://docs.theavoxai.com/error-codes/avx-3547) | A step took too long. | Usually passes on its own. For pass-through, make your server answer faster. | | [AVX-3557](https://docs.theavoxai.com/error-codes/avx-3557) | Meta couldn't show a screen Avox sent. | Click **Add live parts** so each screen declares the data it gets, and publish a new version. | | [AVX-3562](https://docs.theavoxai.com/error-codes/avx-3562) | The Flow was sent without its own token, so it can't book or save. | Send it from Avox (automations, the Inbox or the API without your own `flow_token`), or use a different token for every message. | Every live code is listed on [Error codes](https://docs.theavoxai.com/error-codes). ### Related - [WhatsApp Flows](https://docs.theavoxai.com/flows): the Flows page, the wizard, responses and the Flow log. - [Tables](https://docs.theavoxai.com/tables): the spreadsheets live Flows read and save. - [How WhatsApp Flows work](https://docs.theavoxai.com/whatsapp/flows): Flow JSON, actions and how Meta encrypts requests. - [Write a Flow with any AI](https://docs.theavoxai.com/flows/write-with-ai): including live Flows. --- ## Flows library URL: https://docs.theavoxai.com/flows/library Section: Flows and automation The **Flows library** holds every premade Flow written by Avox, in one place: plain forms that work at once, live answers Avox works out while the customer fills them in, and live Flows that read and save your [Tables](https://docs.theavoxai.com/tables). Open it from **Flows library** at the top of the Flows page, **See all** under **Start from a premade Flow**, or **Open the Flows library** in step 1 of the wizard. Its address is `/flows/library`. ### Finding a Flow | Part | What it does | | --- | --- | | **Search premade Flows** | Finds a Flow by its name, what it does, its category or its kind. | | **Group chips** | **All**, **Plain forms**, **Live answers** and **Live with your tables**, each with how many match your search. The library shows each group under its own heading. | | **Start from scratch** | Opens the wizard with a blank Flow instead. | | **Clear filters** | Shown when nothing matches: goes back to every Flow. | The search and the group you pick stay in the page address (`?q=` and `?group=`), so a filtered library can be shared or reloaded. Each card shows the Flow's name, what it does, its kind (**Plain form**, **Live answers** or **Your tables**) and its category, with **Preview** and **Use this Flow** at the bottom. ### Preview **Preview** opens the phone beside the list (on a phone it takes the list's place until you close it). The panel shows what the Flow does, which tables it uses, and the Flow itself in a WhatsApp phone: type into the fields, pick choices and tap the button to move through its screens. A live Flow answers from your rows only once it's set up in the wizard; here you see its screens. **Use this Flow** sits at the bottom of the panel. Escape or the X closes it. ### Use this Flow **Use this Flow** starts a new draft from the premade, with its name, category and JSON filled in, and opens the wizard on step 2 (**Name**). Change anything you like, then publish it as usual: see [Creating a Flow](https://docs.theavoxai.com/flows#creating-a-flow). Every new draft counts toward the 10 drafts a Switchboard can keep ([AVX-3043](https://docs.theavoxai.com/error-codes/avx-3043)); if the draft can't be made you see [AVX-3045](https://docs.theavoxai.com/error-codes/avx-3045). ### Flows that use your tables A Flow in **Live with your tables** needs tables made from Avox's premade tables (for example **Time slots** and **Appointments** for appointment booking). The card and the preview say which ones: - When you already have one, the preview says so, and you pick it in the wizard. - When you don't, the card says "Needs a table made from the premade ... table." **Create it** opens Tables with that premade ready, or you can make it in the wizard in one click. - If you can't make tables (you don't have the **Manage tables** permission), **Use this Flow** is greyed out and says why ([AVX-3573](https://docs.theavoxai.com/error-codes/avx-3573)). **See the premade table** shows the table someone else can make for you. ### When you can't use a Flow **Use this Flow** is greyed out, and clicking it says why, when: | Reason | What to do | | --- | --- | | Creating Flows is switched off for your account ([AVX-3572](https://docs.theavoxai.com/error-codes/avx-3572)) | Contact [Support](https://docs.theavoxai.com/support). | | You don't have the **Create and edit Flows** permission | Ask an Admin for access. See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). | | Your plan doesn't include Flows yet | Choose a plan. See [Plans](https://docs.theavoxai.com/plans). | | Every Flow slot on your plan is used ([AVX-3033](https://docs.theavoxai.com/error-codes/avx-3033)) | Free a slot from **Your Flows**, or move to a bigger plan. | | It needs a table you can't make ([AVX-3573](https://docs.theavoxai.com/error-codes/avx-3573)) | Ask someone who can manage tables to make it first. | You can still search, filter and preview every Flow. ### Related --- ## Automation URL: https://docs.theavoxai.com/automation Section: Flows and automation Automation replies to your customers on WhatsApp by itself. You choose what starts an automation (a **trigger**, such as a keyword, a new row in one of your [tables](https://docs.theavoxai.com/tables), a date in a row or a submitted Flow) and what it does (its **actions**, such as a text reply, a button or link message, a document, one of your [Flows](https://docs.theavoxai.com/flows), a template filled with live values, finding or changing a row, a payment link from a connected app, tagging the contact, or alerting your team). From then on Avox runs it every time, day and night, while your team handles the conversations that need a person. Automation is the engine behind [Avox AI](https://docs.theavoxai.com/avox-ai). It sits in the sidebar's **Avox AI** group (marked **Beta**) with **Tables** and **Smart links**. Its sidebar menu has **My automations**, **Library** and **New automation**. ### In this section | Page | What it covers | | --- | --- | | [Automation library](https://docs.theavoxai.com/automation/library) | Every premade automation, with search and categories. | | [Builder](https://docs.theavoxai.com/automation/builder) | The canvas: adding, connecting, branching, testing, and saving actions. | | [Triggers](https://docs.theavoxai.com/automation/triggers) | Every trigger, its settings, and the rules for when an automation runs. | | [Actions](https://docs.theavoxai.com/automation/actions) | Every action, its fields and limits, and its credit cost. | | [Tables and Flows](https://docs.theavoxai.com/automation/tables) | Triggers from table rows, dates, bookings and submitted Flows; steps that find, add and change rows or use a connected app; and live values in messages. | | [Run log](https://docs.theavoxai.com/automation/run-log) | Every run step by step, why a run stopped, and each automation's credit usage. | | [Credits](https://docs.theavoxai.com/automation/credits) | How automation credits are granted, spent, and reset. | | [Create an automation](https://docs.theavoxai.com/walkthrough/create-automation) | A click-by-click guide to the wizard, with screenshots, tips and common mistakes. | ### Before you start - **Connect a WhatsApp number.** The Automation page opens once a number is connected ([AVX-3001](https://docs.theavoxai.com/error-codes/avx-3001)). - **Finish the setup and agree to use Avox AI.** The first time you open Automation you go through a short setup, and everyone who can create or edit automations agrees to the Avox AI statement once. See [Setup and the Avox AI agreement](#setup-and-the-avox-ai-agreement). - **Have an active plan.** Automations send only while the Switchboard has an active subscription, and each send spends [automation credits](https://docs.theavoxai.com/automation/credits). - **Check your plan's automation limit.** Each Switchboard can hold as many automations as its plan allows (see [Plans](https://docs.theavoxai.com/plans)). This count is separate from your credits. - **Optional: a table or a connected app.** Automations that start from rows or dates, or that read and write rows, need a [table](https://docs.theavoxai.com/tables) (many premades work with a [premade table](https://docs.theavoxai.com/tables/premade)). App steps, like a payment link, need an app connected on **Apps** (in the sidebar, under **Connect & Monitor**). See [Apps](https://docs.theavoxai.com/connections/apps). ### Who can do what | Action | Admin | Manager | | --- | --- | --- | | View automations, drafts, charts, and credits | Yes | Yes | | Create, edit, and delete automations | Yes | Yes | | Switch an automation on or off | Yes | Yes | | Set the [monthly credit limit](#monthly-credit-limit) | Yes | - | | Finish the [Automation setup](#setup-and-the-avox-ai-agreement) for the Switchboard | Yes | Yes | | Agree to use Avox AI, or withdraw their own agreement | Yes | Yes | If **Create automation** doesn't appear for you, automation creation has been switched off for your account - contact [Support](https://docs.theavoxai.com/support). ### The Automation page Open **Automation** in the sidebar, under **Avox AI**. The page reads "Replies and follow-ups that run on their own, based on rules you set." #### First visit The first time anyone opens Automation in a Switchboard, they see the short [setup](#setup-and-the-avox-ai-agreement) instead of the page. Every page under Automation (the list, the library, the wizard, an automation's own page and the canvas) shows it until it's finished, so a saved link can't skip it. ### Setup and the Avox AI agreement #### The setup Four short steps, shown in place of Automation until they're finished: 1. **Automations** - what a trigger and steps are, and that your team stays in charge (the run log, switching off, replying from the Inbox). 2. **Credits** - what each step costs: 1 credit for a single message (text, media, template and the like), 2 for a message with reply buttons or a list, 3 for a Flow, and nothing for waits, conditions, tags, notes, table steps or telling your team. See [Credits](https://docs.theavoxai.com/automation/credits). 3. **Avox AI** - the Avox AI statement and a box to tick. You can't go on without ticking it. 4. **Start** - pick **A premade from the library** or **A blank automation**. **Finish and start** saves your answers and takes you there. The setup is finished once for the whole Switchboard: when one Admin or Manager finishes it, everyone else in the Switchboard skips the intro. Someone who can only see automations (not create or edit them) can't finish it; until someone who can does, they see "Someone who can manage automations in this Switchboard needs to finish setting up Automation first." ([AVX-3299](https://docs.theavoxai.com/error-codes/avx-3299)). #### The Avox AI agreement The agreement is personal, and per Switchboard. Everyone who can create or edit automations agrees once before Automation opens for them, so a teammate who joins later, or someone who withdrew, sees just the agreement (not the whole setup) the next time they open Automation. People who can only see automations don't need to agree themselves; Automation opens for them once someone who manages automations has agreed. The statement says, in plain words: - Steps marked AI send the customer's latest message, the earlier messages in that chat the step needs, and the contact's name to an AI service that works for Avox, so it can write or choose a reply. - AI replies can be wrong, out of date or not what you would say, and you stay responsible for what your automations send. - You can keep a person in the loop: add a **Notify the team** step after an AI step, check what was sent in each automation's [run log](https://docs.theavoxai.com/automation/run-log), and reply yourself from the Inbox at any time. - You can withdraw at any time in **Settings > Avox AI**. Avox records who agreed, when, in which Switchboard, which version of the statement, where (the setup, the agreement step, or Settings), and the address and browser it came from, the same evidence as other agreements. When the statement changes in a way that needs a new agreement, everyone sees the new version once and agrees again. #### Settings > Avox AI **Settings > Avox AI** (in the **Switchboard** group) shows whether AI steps can run in this Switchboard, who has agreed and when, and your own agreement. From there you can agree, or **Withdraw my agreement**. Withdrawing applies to you, in that Switchboard only: - You can't open Automation again until you agree again. - If nobody else who manages automations still agrees, AI steps in the Switchboard are skipped from then on. Only the AI steps stop: every other step of each automation keeps running, and the run log marks each skipped step with [AVX-3298](https://docs.theavoxai.com/error-codes/avx-3298). An agreement also stops counting when the person leaves the Switchboard or can no longer create or edit automations. #### AI steps Today every automation step runs on rules you set (keywords, conditions, tables and so on) and nothing is sent to an AI service. The agreement is in place so that AI steps, as they arrive, only ever run in Switchboards where someone has agreed: - An automation with AI steps can't be switched on (from the dashboard or the [API](https://docs.theavoxai.com/avox-api/automations)) until someone who manages automations has agreed ([AVX-3295](https://docs.theavoxai.com/error-codes/avx-3295)). - While nobody agrees, AI steps are skipped when a run reaches them, and the run goes on. #### Existing Switchboards A Switchboard that already had automations before the setup arrived skips the intro: each person who manages automations there sees only the Avox AI agreement, once. Their automations kept running the whole time. #### Through the API The [Avox API](https://docs.theavoxai.com/avox-api/automations) is not held back by the setup: automations without AI steps can be created and switched on with an API key as before. An API key can't agree on anyone's behalf, so switching on an automation with AI steps answers `automation_not_ready` with code `AVX-3295` on that step until someone agrees in the dashboard. #### Page layout From top to bottom: - **Header** - the mascot, then **Docs**, **Library** (the [automation library](https://docs.theavoxai.com/automation/library)) and **Create automation**, which opens the wizard. When every automation slot is used, the button is disabled and the page shows "You've used X of Y automations. Delete one to create a new one. (AVX-3068)" with a **Manage automations** link. If creating automations is switched off for your account, the button is hidden and a notice links to [Support](https://docs.theavoxai.com/support). - **Overview** - four tiles: - **Automations** - how many of your plan's automation slots are used, for example "2/5", with how much room is left under it ("Room for 3 more", or "Every slot is used"). - **Active · Drafts** - how many automations are switched on and how many drafts you have, with how many are switched off under it (or "All switched on"). - **Runs (30 days)** - how many times your automations ran in the last 30 days, with a small trend line and today's count under it. - **Automation credits used** - a bar of the credits used this period, with used/total and the date they reset under it (plus any bought credits left). **Top up** (buy more credits) and **Upgrade** (a bigger plan) sit on the tile's title line, for members who can manage billing. The (i) button shows the same figures with your bought credits, any extra credits from Avox and their end date, and your **Recent usage**. When credits run low or out, a note appears under the bar in place of the figures. See [Credits](https://docs.theavoxai.com/automation/credits). - **Premade automations** - headed **Start from a premade**: six ready-made starting points, with **See all** opening the [automation library](https://docs.theavoxai.com/automation/library). See [Premade automations](#premade-automations). - **Unfinished drafts** - only shown when you have one: automations you started in the wizard but haven't created yet, "(n/10)", each with the step it's on. **Continue** picks one up where you left off; the trash icon deletes it. - **My automations** - last on the page: every automation, with its **Name** (opens its own page), **Trigger** and a short summary under it (the first three keywords or tags, the wait time such as "after 30m", or the table it watches), number of **Steps**, **Credits**, **Status**, **Last edited**, and the buttons to **Edit** (the canvas), **Manage** (the automation's own page) or delete it. A No-reply follow-up automation's trigger reads **Follow-up (no reply)**. - **Credits** - the credits each automation used this credit period (or the last 30 days when there's no credit period). Only messages an automation sends cost credits. - **Sort** - the menu next to the heading orders it by **Newest first**, **Name (A to Z)**, **Last edited** or **Most credits**, so you can find the automations that cost the most. - **Number** - with more than one WhatsApp number, a number filter shows only the automations that answer on one number, and each row says which number it's on. A number's [What runs on this number](https://docs.theavoxai.com/connections#what-runs-on-this-number) links here already filtered. - With no automations yet, the mascot offers **Create automation** and **Browse the library**. #### Switching an automation on or off The switch in the **Status** column turns an automation on (**Active**) or off (**Inactive**). New automations start switched off. Before switching one on, Avox checks that: - it has at least one action ([AVX-3072](https://docs.theavoxai.com/error-codes/avx-3072)); - every Flow it sends is still published ([AVX-3078](https://docs.theavoxai.com/error-codes/avx-3078)); - every template it sends is still approved ("One of this automation's actions sends a template that's no longer approved"), with each of its variables filled in or given a fallback ([AVX-3595](https://docs.theavoxai.com/error-codes/avx-3595)); - every table, column and connected app it uses is still there and still fits ([AVX-3589](https://docs.theavoxai.com/error-codes/avx-3589), [AVX-3590](https://docs.theavoxai.com/error-codes/avx-3590), [AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)), and every value it uses exists at that point ([AVX-3594](https://docs.theavoxai.com/error-codes/avx-3594)). See [Tables and Flows](https://docs.theavoxai.com/automation/tables). Switching one off takes effect straight away: it stops firing on new messages. The Avox team can pause an automation that is misbehaving, for example one that fires far more than expected. A paused automation shows as **Inactive**. Once you've fixed it, switch it back on yourself. ### Creating an automation Building your first one? Follow the [Create an automation](https://docs.theavoxai.com/walkthrough/create-automation) walkthrough, a click-by-click guide with a screenshot for every step. Click **Create automation** to open the wizard at `/automation/new`. It has three steps - **Type**, **Name**, and **Build** - shown in a row under the heading, with the mascot before the title and **Docs for this step** on the right. The round back button sits at the left end of the step row: it goes to the previous step, or back to the Automation page from the first step. Steps you've already reached can be clicked to jump straight to them. Your work stays saved as a draft. The wizard saves a draft a moment after each change. You can keep up to **10 drafts** per Switchboard ([AVX-3073](https://docs.theavoxai.com/error-codes/avx-3073) at the limit), and the draft is removed once the automation is created. #### Step: Type Pick what starts the automation, then click **Continue**. The trigger tiles are compact (two across on a phone), each with its name and a short description. **Continue** stays pinned at the bottom of the screen, with the trigger you chose beside it ("Starts with: Keyword match"), so you never need to scroll to it. On a wide screen, a small phone preview shows an example message and reply for the trigger you've selected. | Trigger | Fires when | | --- | --- | | **Keyword match** | A customer's message contains one of your chosen words or phrases. | | **Any message** | A customer sends you any message - a catch-all auto-reply. | | **Outside business hours** | A customer messages you outside your opening hours. | | **No-reply follow-up** | Nobody has replied to a customer after a set number of minutes. | | **New contact** | A contact sends you their very first message. | | **Tag added** | One of your automations adds a chosen tag to a contact. | | **From your tables and Flows** | | **Row added** | A row is added to a table, from anywhere: a Flow, the API, an import or the grid. | | **Row changed** | A row changes. Pick the columns to watch, or any change. | | **Row matches** | A row starts to match your conditions, like Stock at or below Reorder at. Once each time. | | **Date in a row** | Before, on or after a date or time in each row, like 1 hour before an appointment, or every year on a birthday. | | **Booking made** | A booking is added to a calendar table, like Appointments. | | **Booking cancelled** | A booking's status changes to cancelled, or (if you choose) the booking is deleted. | | **Flow submitted** | A customer submits a Flow. Their answers can be used in every step. | Each trigger is covered in full on [Triggers](https://docs.theavoxai.com/automation/triggers), and the table and Flow ones in depth on [Tables and Flows](https://docs.theavoxai.com/automation/tables#triggers). #### Step: Name Enter an **Automation name** (required, up to 80 characters, for example "Store hours auto-reply"), then fill in whatever your trigger needs: | Trigger | Settings | | --- | --- | | Keyword match | **Keywords** - type a word or phrase and press Enter (or type a comma) to add it as a chip. Add at least one. Backspace in the empty field removes the last chip. | | Outside business hours | **Opens at** and **Closes at** (24-hour time, defaults 09:00 and 18:00), and **Timezone** - detected from your device and changeable from the list. | | No-reply follow-up | **Minutes to wait before following up** (30 by default). Keep it at 1,380 minutes (23 hours) or less so the follow-up lands inside the 24-hour messaging window - see [Triggers](https://docs.theavoxai.com/automation/triggers#no-reply-follow-up). | | Tag added | **Tags to watch for** - one or more tags, added as chips. | | Any message, New contact | Nothing else to set. | | Row added, Row changed, Row matches | **Table**, **Who gets the messages** (a contact or phone column, or **Nobody** for team and table steps only), **Send from** (by default **The number they last talked to**), and rules on the row (**Only when**, or **Run when a row starts to match**). Row changed also has **Watch these columns**. | | Date in a row | The same, plus **Date column**, **Time of day** (a time column, or **The same time for every row**), how long **before**, **at that time** or **after**, **Every year** for a date column, and **Time zone**. | | Booking made, Booking cancelled | **Calendar table**, who gets the messages, **Status column** and the values that mean cancelled. Booking cancelled can also count a deleted booking. | | Flow submitted | **Which Flow** (or **Any Flow**). | With no table yet, a table trigger says "No tables yet." (or "No calendar table yet (like Appointments).") with a **Create one** link. Every setting is explained on [Tables and Flows](https://docs.theavoxai.com/automation/tables#triggers). Click **Continue** (enabled once the automation has a name), or **Back** to change the trigger. #### Step: Build Build the actions on the canvas. Drag actions in from the **Actions** panel, edit each one right in its box, and add a **Condition** to branch. **Preview the conversation** in the toolbar plays it as a WhatsApp chat, from the customer's side or your inbox's. The canvas is covered step by step on [Builder](https://docs.theavoxai.com/automation/builder), and every action on [Actions](https://docs.theavoxai.com/automation/actions). Right-click the canvas for quick actions: add an action or a premade where you clicked, paste, fit the view or lay it out, or edit, copy, duplicate, disconnect or delete a step. See [Right-click menu](https://docs.theavoxai.com/automation/builder#right-click-menu). When you're done, click **Validate & Create**: Every action must be filled in, and branches must be valid. Any problem stops here with a message, for example "Finish filling in every action (reply text, keywords, etc.) before creating." or [AVX-3077](https://docs.theavoxai.com/error-codes/avx-3077). The **Preview** tab plays a sample customer message through your actions as a chat, step by step, and, when the automation has keyword conditions, a message that matches them and one that doesn't. When the preview finishes, Avox creates the automation and opens its Manage page. It starts switched off - flip its switch to turn it on. **Back to builder** (or the **Action** tab) stops the preview without creating anything. ### Managing an automation Click **Manage** (or its name) on an automation to open its page. The back button on the left returns to the list. The page shows: - **Its trigger** and summary, for example "Fires outside 09:00 to 18:00", "Fires after 30 minutes of no reply", or "Fires when tagged: VIP". - **The on/off switch** with an **Active** or **Inactive** badge. An automation your plan switched off (because it has no room for another automation that's on) says so, with **See plans** and a link to your usage. Your Welcome and Away auto replies are automations too: their page says so and **Edit** takes you to **Settings > Auto replies**. - **Uses** - **Answers on**: the WhatsApp numbers it answers on and sends from, then every template, Flow, table, connected app, smart link, broadcast and chat signal it uses, each linked to its own page. A use that needs attention (deleted, not approved, a table column removed) says why in amber. When switching it on is refused because of one of them, that row is highlighted. - **Edit** - opens the canvas. Its back link (**Back to Manage**) returns you to this page. - **Delete** - asks **Delete this automation?** ("This can't be undone. It will stop firing immediately.") before deleting. - **How many actions** it has. - **How it's running** - for the last 7, 30 or 90 days: **Runs**, **Completion rate**, **Stopped or failed** and **Credits used**, with **Runs per day** and **Credits per day** charts and **Where runs stop or fail**. - **Run log** - every run, newest first: the contact, when it started, what started it, how it ended and the credits it used. Click a run for **Run details**, a timeline of every step it took (messages with their WhatsApp status, rows read or written, branches taken, and the reason and code where it stopped), with links to the person's chat (on the run's number) and the number. **Download CSV** saves the runs in the chosen dates. The opened run and the filters stay in the page's address, so you can share a link to one run; a contact's timeline links straight to their runs. - **Credit usage** - **This period**, **All time**, **Per run, on average** and **Share of your credits**, a **Last 30 days** chart, **Steps that cost credits** (each message step with its credits and average per run), and an estimate for **Next month** at the current pace. All three panels are explained on [Run log](https://docs.theavoxai.com/automation/run-log). ### Editing an automation **Edit** opens the automation's edit page: the same canvas as the wizard's **Build** step. Changes save automatically a moment after you stop editing - the avatar shows "Saving…", then "Saved." (or "Couldn't save that." with [AVX-3070](https://docs.theavoxai.com/error-codes/avx-3070)). Autosave waits while an action is still half filled in. **Validate & Save** runs the full checks and the preview first, then saves. The back button on the left of the canvas header reads **Back to details** when you came from the automation's own page, and **Back to automations** otherwise. On the Edit page you can change the actions, their layout, and (for a Keyword match automation) the keywords on the trigger box. For a table or Flow trigger, the box above the canvas shows its settings: click **Change** to edit them (the table, columns, rules, dates or Flow), then **Done**. To change an automation's trigger type, create a new automation. ### Automation credits Every message an automation sends spends credits from your Switchboard's credit grant: 1 credit for a text reply, template, image, video, document, audio, location, contact card, link button or call request, 2 for buttons or a list, and 3 for a Flow. An **Ask a question** step costs 1 credit (2 with answer buttons). A template costs 1 credit whatever values fill its variables. Everything that doesn't send a WhatsApp message is free: marking read, tags and categories, contact fields, notes, waiting, delays, stopping, team notifications, webhooks, every table step (find, add, change, count or delete a row) and every connected app step (like a payment link). When the credits for the current period run out, automations stop sending until the next period ([AVX-3076](https://docs.theavoxai.com/error-codes/avx-3076)). Every automation shows what it costs: the **Credits** column on the Automation page, and the **Credit usage** panel on its Manage page (this period, all time, per run and per step, its share of your credits, and an estimate for next month). See [Run log and credit usage](https://docs.theavoxai.com/automation/run-log#credit-usage). How credits are granted, when they reset, and how to see your balance are on [Credits](https://docs.theavoxai.com/automation/credits). ### Monthly credit limit An Admin can cap how many automation credits the Switchboard spends, below what its plan grants - a budget guard, not a billing setting. The **Automation credit limit** card appears on **Settings > Switchboard** for Switchboards on the **One-time** billing option (the whole year paid upfront), which receive their credits as one grant for the whole year. Only Admins see the card. Go to **Settings**, open the **Switchboard** tab, and find **Automation credit limit** under the Switchboard card. Its **How this works** button opens this section. Tick **Set a monthly limit** and enter a whole number of credits, 0 or higher (for example 500). Leave it unticked for "No limit - automations can use this Switchboard's full plan grant." Click **Save limit**. You see "Automation credit limit updated". Avox compares the limit with the credits used in your current credit period. Once usage reaches the limit, automations stop sending messages, the same hard stop as running out of credits, and the **Credits used** tile on the Automation page shows "This period's automation credits are used up - automated replies are paused until they reset." Steps that don't send a message (**Mark as read**, **Tags & categories**, notes, team notifications and the rest) keep working, since none of them spends a credit. The limit can only lower what automations spend - it never adds credits, and the tile still shows your full grant. To remove the limit, untick **Set a monthly limit** and click **Save limit**. If you enter something that isn't a whole number, you see "Enter a whole number of credits, 0 or higher". If saving fails you see "Couldn't save your automation credit limit" with [AVX-3081](https://docs.theavoxai.com/error-codes/avx-3081). ### Premade automations The **Premade automations** section on the Automation page shows six of them; **See all** (or **Library** in the header) opens the [automation library](https://docs.theavoxai.com/automation/library) with every premade, search and categories. A premade fills in the wizard for you - trigger, name, keywords, and actions - and opens it at **Name**, so you can review everything before building. The same premades appear at the top of the canvas's **Actions** panel under **Premade**, where clicking one adds its actions to the automation you're editing (the panel's search also matches each premade's keywords), and in the canvas's right-click **Add action…** list, where the first step lands where you clicked. - **Filter** - the chips above the cards show **All** or one group: **Sales and leads**, **Support**, **Bookings**, **Engagement** or **Opening hours**. - **Credits** - each card shows the most one run can cost, for example "Up to 3 credits a run" (the costliest path through its branches), or "Free to run", before you turn anything on. See [Credits](https://docs.theavoxai.com/automation/credits). - **Tables and apps** - **Uses your tables** marks a premade that reads or changes rows, and **Uses a connected app** one that calls an app (for example to make a payment link). - **Preview the chat** - plays the premade as a WhatsApp chat first: the customer's side and yours, with sample values. - **What it needs** - when a premade needs something this Switchboard doesn't have yet, its card says so with a link to fix it. You can still create the automation; it just can't be switched on until the missing piece is there. | Card says | Why | Fix | | --- | --- | --- | | Needs an approved template - you don't have one yet. ([AVX-3405](https://docs.theavoxai.com/error-codes/avx-3405)) | It sends a template, and no template here is Approved. | **Create one from the Avox library** opens a matching ready-written template (for the re-engagement premade, **We miss you**). Submit it and wait for Meta's approval. See [Library](https://docs.theavoxai.com/templates/library#avox-library). | | Needs calling turned on for a WhatsApp number. ([AVX-3406](https://docs.theavoxai.com/error-codes/avx-3406)) | It sends a call permission request. | Turn calling on from **Connections**. | | Needs a published Flow. ([AVX-3407](https://docs.theavoxai.com/error-codes/avx-3407)) | It opens one of your Flows. | Create and publish a Flow on **Flows**. | | Needs a table made from the premade "Appointments" table. ([AVX-3589](https://docs.theavoxai.com/error-codes/avx-3589)) | It reads or changes rows of a table made from that [premade table](https://docs.theavoxai.com/tables/premade), and this Switchboard has none. | **Create it** makes the table from the premade. Fill in your own rows. | | Needs a payments app (Razorpay, Stripe or PayPal) connected. ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)) | It has an app step, and no app of that kind is connected. Meetings, calendar and CRM apps read the same way. | **Connect one** opens **Apps** in the dashboard (see [Apps](https://docs.theavoxai.com/connections/apps)). | | Premade | Trigger | What it does | | --- | --- | --- | | Lead qualifier | Keyword match (quote, interested, enquiry, inquiry) | Files the contact under the **Lead** category, asks for their budget with three answer buttons and saves it to the `budget` field. An answer moves them from **Lead** to **Qualified**, tags `qualified_lead` and thanks them; with no answer within 2 hours, it sends a gentle "reply any time" note. | | Appointment confirm or reschedule | Tag added (appointment_booked) | Asks the contact to **Confirm** or **Reschedule**. Confirm tags `appointment_confirmed` (removing `appointment_booked`), adds a note and confirms; Reschedule tags `reschedule_requested`, adds a note, **notifies the team** and asks for a new time; anything else (or no answer within 4 hours) says the team will follow up. | | Feedback with follow-up | Tag added (feedback_request) | Asks for a rating (Great / Okay / Poor) saved to the `rating` field. Poor files them under **Unhappy customer**, tags `needs_follow_up`, asks what went wrong and saves it as a note; Great files them under **Promoter**; Okay gets a thank-you. | | Welcome + tag new customers | New contact | Sends a welcome, tags the contact `new` and files them under **New customer**. | | VIP routing | Keyword match (vip, priority, bulk order, wholesale) | Files the contact under **VIP**, tags `vip_request`, **notifies the team** (with an email to Admins) and reassures the customer. | | Store hours auto-reply | Outside business hours | Marks the message read and says when you'll be back. | | Out of hours away message | Outside business hours | Replies straight away, tags `after_hours`, then after a 12-hour **Delay** says you're open (still inside the 24-hour window). | | FAQ: pricing questions | Keyword match (price, pricing, cost, how much) | Replies with your pricing, then adds a bulk-order reply when the message also mentions "bulk" or "wholesale". | | Send your price list | Keyword match (price list, catalog, catalogue, menu, brochure) | Sends your price list as a PDF **document** and tags `price_list_sent`. | | Share your store location | Keyword match (address, location, where are you, directions) | Sends a **location** pin for your store, then your opening hours. | | VIP tag follow-up | Tag added (VIP) | Sends a thank-you offer and tags the contact `vip_thanked`. | | No-reply follow-up | No-reply follow-up | Checks in with "Sorry for the wait - just checking in, we'll have an answer for you shortly!", tags `followed_up` and **notifies the team**. | | Re-engagement with a template | Tag added (re_engage) | Sends your first approved **template** (it works outside the 24-hour window), swaps the `re_engage` tag for `re_engaged`, then waits 12 hours: a reply **notifies the team**, no reply files them under **Dormant**. Pick the template in the builder if you have more than one. | | Order status lookup | Keyword match (order, purchase, bought, shipment, track) | Asks for the order number, **finds it** in your Order status table and replies with its status, expected day and tracking link (or says it couldn't find it). When the message mentions "cancel" or "refund", it files them under **Support**, tags `refund_request`, **notifies the team** and says the team will help instead. | | Callback request | Keyword match (call me, callback, call back, phone call) | Sends WhatsApp's **call permission request**, adds a note, tags `callback_requested` and **notifies the team**. Needs calling turned on. | | Lead to CRM via webhook | Keyword match (demo, sign up, signup, get started) | Files the contact under **Lead**, asks for their email (saved to the `email` field), then **sends the contact and answer to your webhook** and thanks them. | | Complaint escalation | Keyword match (complaint, unhappy, angry, disappointed) | Tags the contact `escalation`, files them under **Support**, **notifies the team** (with an email to Admins) and sends an apology. | | Booking & appointment inquiry | Keyword match (book, appointment, schedule, reservation) | Sends a **Book now** link button to your booking page and tags the contact `booking_inquiry`. | | Catch-all with urgent flagging | Any message | Acknowledges every message; when it mentions "urgent", "emergency", or "asap" it tags `urgent` and **notifies the team**. | | Stop and unsubscribe | Keyword match, whole message only (stop, unsubscribe, opt out, cancel, band karo and more) | Adds the **Unsubscribed** tag, so [broadcasts](https://docs.theavoxai.com/broadcasts) skip the contact, and confirms politely that they're unsubscribed. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe). | | Start again after STOP | Keyword match, whole message only (start, subscribe, resubscribe, unstop, opt in) | Takes the **Unsubscribed** tag off and welcomes them back. Pairs with **Stop and unsubscribe**. | These premades work with your [tables](https://docs.theavoxai.com/tables). Each one is written for a table made from a [premade table](https://docs.theavoxai.com/tables/premade), and its card says when you don't have it yet: | Premade | Trigger | What it does | | --- | --- | --- | | Booking confirmation from your calendar | Booking made (Appointments) | Sends a confirmation **template** with the service, day, time and booking number. | | Reminder a day before each booking | Date in a row (a day before, Appointments) | A reminder with **Confirm** and **Reschedule** buttons at the booking's own time. Confirm marks the row Confirmed; Reschedule tells your team. Cancelled bookings are skipped. | | Reminder an hour before each booking | Date in a row (an hour before, Appointments) | A short reminder. Cancelled bookings are skipped, and a booking added less than an hour ahead gets no late reminder. | | Booking cancelled message | Booking cancelled (Appointments) | Tells the customer with a **template** and lets your team know. | | Change or cancel a booking | Keyword match (reschedule, cancel booking, change booking...) | Asks for the booking number, **finds it** (booked on the customer's own number), then cancels it in the table or asks for a new time and tells your team. | | Payment link after a booking | Booking made (Appointments) | Looks up the service's price in Services and prices, makes a **payment link** in your connected payments app and sends it. Needs a payments app. | | Event seats with a waitlist | Keyword match (book a seat, reserve a seat, register for, seats) | Finds the event in Events and seats, **counts a seat** and confirms it with a template; when it's full, adds the customer to the waitlist, tells them and notifies the team. | | Feedback after a visit | Row changed (Appointments status to Completed) | Asks for a rating, **adds a row** to your Feedback table, and tells your team about a poor one. | | Order status updates from your orders table | Row changed (Order status: Status) | Sends a **template** with the new status, the expected day and a tracking button every time an order's Status changes. | | Price lookup from your price list | Keyword match (price of, how much is, cost of, rate for) | Asks which item and replies with its current price from your Price list table. | | Low stock alert | Row matches (Stock at or below Reorder at) | Tells your team (a notification and an email to Admins) once per drop. Free to run. | | Lead follow-up on the day you set | Date in a row (Leads: Follow up on, 10:00) | Sends a follow-up **template** and moves the lead's Stage to Contacted. Leads already Won or Lost are skipped. | | Membership anniversary | Date in a row, every year (Members: the day they joined, 10:00) | A thank-you **template** every year to each active member. | The credits each one costs, and how its table is used, are on [Tables and Flows](https://docs.theavoxai.com/automation/tables#premade-automations). The templates they send are in the [Avox library](https://docs.theavoxai.com/templates/library#avox-library), ready to submit to Meta. Replace the placeholders before switching a premade on: bracketed text in replies (such as "[add your pricing link or details here]"), `https://example.com/...` links, the store location's coordinates and address, and the webhook URL. When every automation slot is in use, the premade cards and **Create automation** are disabled and the page shows "You've used X of Y automations. Delete one to create a new one. ([AVX-3068](https://docs.theavoxai.com/error-codes/avx-3068))" with a **Manage automations** link. The limit is this Switchboard's own plan (or its owner's plan) - the same number Avox enforces when you create one. The link scrolls to **My automations** with the switched-off ones highlighted, since they aren't replying to anyone right now. ### Related errors | Code | Message | | --- | --- | | [AVX-3067](https://docs.theavoxai.com/error-codes/avx-3067) | Check the automation's name, trigger, and actions. | | [AVX-3068](https://docs.theavoxai.com/error-codes/avx-3068) | You've used every automation your plan allows. | | [AVX-3069](https://docs.theavoxai.com/error-codes/avx-3069) | Couldn't create that automation. Try again. | | [AVX-3070](https://docs.theavoxai.com/error-codes/avx-3070) | Couldn't save that automation. Try again. | | [AVX-3071](https://docs.theavoxai.com/error-codes/avx-3071) | Couldn't delete that automation. Try again. | | [AVX-3072](https://docs.theavoxai.com/error-codes/avx-3072) | Add at least one action before turning this on. | | [AVX-3073](https://docs.theavoxai.com/error-codes/avx-3073) | You've reached the maximum of 10 saved drafts. Delete one to start another. | | [AVX-3074](https://docs.theavoxai.com/error-codes/avx-3074) | Couldn't load that draft. Try again. | | [AVX-3075](https://docs.theavoxai.com/error-codes/avx-3075) | Couldn't load your automation credit balance. | | [AVX-3076](https://docs.theavoxai.com/error-codes/avx-3076) | This period's automation credits are used up - automated replies are paused until they reset. | | [AVX-3077](https://docs.theavoxai.com/error-codes/avx-3077) | Two conditions check the exact same keywords - remove one before continuing. | | [AVX-3078](https://docs.theavoxai.com/error-codes/avx-3078) | One of this automation's actions sends a Flow that's no longer published. | | [AVX-3081](https://docs.theavoxai.com/error-codes/avx-3081) | Couldn't save your automation credit limit. Try again. | | [AVX-3170](https://docs.theavoxai.com/error-codes/avx-3170) | Set the reply wait to between 1 and 1380 minutes (23 hours). | | [AVX-3171](https://docs.theavoxai.com/error-codes/avx-3171) | Write the question and choose where to save the answer. | | [AVX-3172](https://docs.theavoxai.com/error-codes/avx-3172) | An automation can pause (wait for a reply or a delay) at most 10 times. | | [AVX-3290](https://docs.theavoxai.com/error-codes/avx-3290) | Set each delay to between 1 and 1380 minutes (23 hours). | | [AVX-3291](https://docs.theavoxai.com/error-codes/avx-3291) | Use a public https:// link to a supported file type in each media step. | | [AVX-3292](https://docs.theavoxai.com/error-codes/avx-3292) | Each Tags & categories step needs at least one tag or category to add or remove (up to 10 in each list). | | [AVX-3293](https://docs.theavoxai.com/error-codes/avx-3293) | Use a public https:// URL in each Send to webhook step. | | [AVX-3294](https://docs.theavoxai.com/error-codes/avx-3294) | Finish setting up Automation first. | | [AVX-3295](https://docs.theavoxai.com/error-codes/avx-3295) | Agree to use Avox AI before working on automations. | | [AVX-3296](https://docs.theavoxai.com/error-codes/avx-3296) | Couldn't save your automation setup. Try again. | | [AVX-3297](https://docs.theavoxai.com/error-codes/avx-3297) | Couldn't load or save your Avox AI settings. Try again. | | [AVX-3298](https://docs.theavoxai.com/error-codes/avx-3298) | An AI step was skipped because nobody who manages automations here has agreed to use Avox AI. | | [AVX-3299](https://docs.theavoxai.com/error-codes/avx-3299) | Someone who can manage automations in this Switchboard needs to finish setting up Automation first. | | [AVX-3405](https://docs.theavoxai.com/error-codes/avx-3405) | This premade sends a template, and this Switchboard has no approved template yet. | | [AVX-3406](https://docs.theavoxai.com/error-codes/avx-3406) | This premade asks to call the customer. Turn on calling for a WhatsApp number first. | | [AVX-3407](https://docs.theavoxai.com/error-codes/avx-3407) | This premade sends a Flow, and this Switchboard has no published Flow yet. | | [AVX-3589](https://docs.theavoxai.com/error-codes/avx-3589) | This automation uses a table that was deleted or archived. Pick another table. | | [AVX-3590](https://docs.theavoxai.com/error-codes/avx-3590) | A step uses a table column that was deleted or changed type. Pick the column again. | | [AVX-3594](https://docs.theavoxai.com/error-codes/avx-3594) | A message uses a value that doesn't exist here. Check the value names. | | [AVX-3595](https://docs.theavoxai.com/error-codes/avx-3595) | Fill in every variable of this template, or give it a fallback. | | [AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596) | This step needs an app that isn't connected. Connect it on the Apps page first. | | [AVX-3606](https://docs.theavoxai.com/error-codes/avx-3606) | A message needed a value the run didn't have, so it wasn't sent. | | [AVX-3610](https://docs.theavoxai.com/error-codes/avx-3610) | Automation credits ran out, so the run stopped. | | [AVX-3612](https://docs.theavoxai.com/error-codes/avx-3612) | Started by another automation's change too many times in a row, so it stopped to avoid a loop. | Every reason a run can stop, with its code, is on [Run log](https://docs.theavoxai.com/automation/run-log#why-a-run-stopped). --- ## Page and library URL: https://docs.theavoxai.com/automation/library Section: Flows and automation **Automation** (in the dashboard's sidebar) is where every automation in your Switchboard lives: the ones you made, drafts you haven't finished, how many credits they use, and the **Automation library** of ready-made automations written by Avox. Links into the dashboard still start with `/automation`. ### The Automation page From top to bottom: | Part | What it shows | | --- | --- | | **Header** | **Docs**, **Library** (the Automation library) and **Create automation**, the page's main button. | | **Overview** | Four tiles of the same size: how many automations you have of your plan's limit (and how much room is left), how many are on and how many drafts you have, how many times they ran in the last 30 days (with today's count), and your **automation credits** (below). | | **Start from a premade** | A few automations from the library. **See all** opens the whole library. | | **Unfinished drafts** | Automations you started in the wizard but didn't create yet (up to 10). **Continue** opens the wizard on the step you left. Only shown when you have a draft. | | **My automations** | Every automation, with its trigger, how many steps it has, the credits it used this credit period (or the last 30 days), whether it's on, and when it was last edited. Click a name or **Manage** for its runs and credits, **Edit** to open the builder, or the switch to turn it on or off. Sort by newest, name, last edited or most credits. | #### Automation credits The **Automation credits used** tile shows how much of this period's credits are used, with the used and total count and when they reset on the line under the bar. Two small buttons sit on the tile's title line: - **Top up** buys extra credits. They last 12 months and are used after your plan's own credits. - **Upgrade** changes to a plan with more credits each month. Both need the **Manage billing** permission. The **(i)** button next to them shows the details: bought credits still left, any extra credits from Avox, and your most recent usage. When credits run low the bar turns amber, and red once they run out (automated replies stop until they reset or you top up); the line under the bar then says so. Without **Manage billing**, the details say to ask an Admin. See [Credits](https://docs.theavoxai.com/automation/credits). ### The Automation library Open it with **Library** at the top of the Automation page, **See all** under the premades, or **Browse the library** when you have no automations yet. - **Search** looks through each premade's name, description, category and extra words. - **Categories** narrow the list: Sales and leads, Support, Bookings, Engagement and Opening hours. Each shows how many premades match your search. If nothing matches, **Clear filters** brings everything back. - The search and category stay in the page's address, so you can share or reload a filtered list. Every card says: - what the automation does and its category, - the most credits one run can use (or **Free to run**), - whether it uses your tables or a connected app, and - anything your Switchboard is missing for it, like an approved template, a published Flow, calling, a table made from the right premade table, or a connected app, with a link to fix it and the matching error code. **Preview the chat** plays the automation as a WhatsApp conversation first, with sample values. Click a card (or **Use this automation** in the preview) to open the wizard with everything filled in. Check the steps, then create it. **Start from scratch** opens an empty wizard. #### When you can't create one Cards and the **Create automation** button are switched off, and say why on hover, when: | Situation | What to do | | --- | --- | | Every automation your plan allows is used | Delete one you don't need (**Manage automations** highlights the switched-off ones), or upgrade. Code [AVX-3068](https://docs.theavoxai.com/error-codes/avx-3068). | | Your plan doesn't include automations yet | Choose a plan in Billing, or ask an Admin to. | | You don't have permission to manage automations | Ask an Admin of the Switchboard for access. | | Creating automations was turned off for your account | Contact Avox support. | You can still search the library and preview every premade in all of these cases. ### Creating, editing and the builder - **Create automation** opens a three-step wizard: **Type** (what starts it), **Name** and **Build** (the steps). Blobatar sits next to the page title and reacts as you go. - In the wizard, the round back button sits at the left end of the step row: it goes back one step, or back to the Automation page from the first step. You can also click a step you already reached. - On **Type**, the **Continue** button stays pinned to the bottom of the screen, so you never have to scroll to reach it. - In the builder, the **Actions** panel lists every step you can add, with **Premade** at the top. Search it, then drag a step onto the canvas or click it to add it at the end. On a phone or small tablet the panel sits under the canvas. - Right-click the canvas for a quick menu: **Add action...** (a small searchable list of every action and premade, added where you clicked), **Paste**, **Fit view** and **Auto layout**. Right-click a step for **Edit**, **Copy**, **Duplicate**, **Disconnect** and **Delete**. Use the arrow keys to move through the menu and Escape to close it. See [Builder](https://docs.theavoxai.com/automation/builder). ### Related --- ## Builder URL: https://docs.theavoxai.com/automation/builder Section: Flows and automation The builder is the canvas where you lay out what an automation does. It appears in step 3 (**Build**) of the [Create automation wizard](https://docs.theavoxai.com/automation) and on every automation's **Edit** page. Any Switchboard member (Admin or Manager) can use it. ### The canvas at a glance - **The trigger box** (green, on the left) shows what starts the automation. For a **Keyword match** automation, its keywords are chips you can edit right on the box. A table or Flow trigger shows its summary, for example "A row is added to Appointments". - **Action boxes** follow the trigger from left to right, in the order they run. Each one is edited inside its own box - there's no separate settings window. - **Condition boxes** (amber) check the message for keywords and can send it down a different path. See [Conditions and branches](#conditions-and-branches). - **The Actions panel** on the right is where new actions come from. On phones and small tablets it sits under the canvas instead. - **The minimap** (top right) shows the whole canvas; drag inside it to move around. - **The toolbar** (top left) holds undo, zoom, layout, fullscreen, and the conversation preview. With no actions yet, the canvas shows "Add at least one action before turning this automation on". New to the builder? The [Create an automation](https://docs.theavoxai.com/walkthrough/create-automation) walkthrough builds a complete automation step by step. ### Adding actions The **Actions** panel lists every action. Its hint reads "Drag one onto the canvas, click to add it at the end, or right-click the canvas." (see [Right-click menu](#right-click-menu)). - **Premade** comes first and lists the [premade automations](https://docs.theavoxai.com/automation#premade-automations). Clicking one adds its actions to this automation. - **Search actions…** searches every group at once, by name, description or a related word (for example "pdf" finds **Send a document**, "crm" finds **Send to webhook**). With no match it reads "No actions match" and your search. - **Most used** shows up to three action types your Switchboard uses most. - **Groups** - **Messages**, **Interactive**, **Media**, **Contact**, **Tables & apps**, **Flow control** and **Team & integrations**. Click a group's name to open or close it; the number next to it is how many actions it holds. Messages and Interactive start open, and the panel remembers what you opened. **Tables & apps** holds **Find a row**, **Add a row**, **Change a row**, **Add to or take from a number**, **Delete a row** and **Use a connected app** (see [Tables and Flows](https://docs.theavoxai.com/automation/tables#steps)). Each action shows its credit cost ("1 credit", "2 credits" or "Free"). The list scrolls inside the panel: a scrollbar appears while there's more to see, and the top or bottom edge fades out. Click an action to add it at the end of the chain, or drag it onto the canvas to drop it exactly where you want it. A new box never lands on top of another; it's nudged clear. Every action is described on [Actions](https://docs.theavoxai.com/automation/actions). ### Right-click menu Right-click the canvas for quick actions. What it offers depends on where you click. **On an empty part of the canvas** (or the trigger box): | Item | What it does | | --- | --- | | **Add action…** | Opens a searchable list of every action and every premade, in the same groups as the Actions panel, each action with its credit cost. Type to search, use the arrow keys and Enter, or click one. The step lands where you clicked. | | **Paste** | Pastes the step you copied, where you clicked. Available once you've used **Copy** on a step in this builder. | | **Fit view** | Brings every box into view. | | **Auto layout** | Lays the chain out left to right, like **Auto-arrange** in the toolbar. | **On a step:** | Item | What it does | | --- | --- | | **Edit** | Selects the step, centres it on screen and puts the cursor in its first field. | | **Copy** | Copies the step, ready for **Paste**. | | **Duplicate** | Adds a copy of the step. | | **Disconnect** | Removes the branch line pointing at the step. When there's none, it does the same as **Remove connection** (see [Order and connections](#order-and-connections)). Greyed out when there's nothing left to disconnect. | | **Delete** | Deletes the step (the same as pressing Delete). | Use the arrow keys to move through the menu and Enter to pick. Escape closes it, and so does clicking elsewhere, scrolling, or moving or zooming the canvas. The menu key on your keyboard (or Shift+F10) opens it where the keyboard focus is. ### Editing an action Each box has its own fields - reply text, buttons, list options, a link or file, a Flow or template to pick, tags and categories, or a contact field. Hover a box to reveal two icons in its corner: - **Duplicate action** - adds a copy of the box. - **Remove action** (x) - deletes the box. In a **Tags & categories** box, each of its four lists (add tags, remove tags, add categories, remove categories) has its own dropdown of your Switchboard's tags (tag icon) or categories (folder icon). Type a name that doesn't exist yet and choose **Create tag** or **Create category** to make it on the spot. Table steps ask for a table, the row and the columns; a **Use a connected app** step asks **What to do** and **With** which app. Besides a payment link, a video meeting, a calendar block and a CRM contact, **What to do** can find or add a row in a Google Sheet (or an Airtable table), or find, get, add, update, add or update, delete, add files to or comment on an Airtable record. Each is described on [Actions](https://docs.theavoxai.com/automation/actions#tables--apps). Only apps connected on **Apps** (in the sidebar, under **Connect & Monitor**; see [Apps](https://docs.theavoxai.com/connections/apps)) can be picked; with none of the right kind, the box says "This step needs an app that isn't connected. Connect it on the Apps page first." with an **Open Apps** link ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)). Every option is on [Tables and Flows](https://docs.theavoxai.com/automation/tables#steps). Most actions also have a **Wait** field at the bottom: "Wait 0 seconds before this". Set 1 - 30 seconds to pause before that action runs, for example to space out two messages. For longer pauses, add a [Delay](https://docs.theavoxai.com/automation/actions#delay) step. A **Stop** box has no outgoing connection: nothing after it runs on that path. Select one or more boxes and press Backspace or Delete to remove them; hold Shift, Ctrl, or Cmd to select several. #### Values in messages Under every message box, and next to each table cell, template variable and app detail, **Insert a value** lists the values that step can use: the customer's reply, the contact's name, the row that started the run, a Flow's answers, or what an earlier step found. Each is written as `{{group.key}}`, for example `{{row.service}}` or `{{contact.first_name}}`. Add a fallback after a `|` for when the value is empty: `{{contact.first_name|there}}`. - Only values from the trigger and earlier steps can be used. A misspelt or later value can't be saved ([AVX-3594](https://docs.theavoxai.com/error-codes/avx-3594)). - A message that needs a value the run doesn't have, with no fallback, isn't sent and the run stops ([AVX-3606](https://docs.theavoxai.com/error-codes/avx-3606)). Every group and key is listed on [Tables and Flows](https://docs.theavoxai.com/automation/tables#values). ### Order and connections Actions run in order along the chain, joined by lines. Drag a box anywhere on the canvas to arrange it; its place in the chain doesn't change. **Auto-arrange** in the toolbar lays every box out in one neat left-to-right line. A box can also show: - **Only reached via a branch** - this action runs only when a condition's "else" path leads to it. A path that runs into it ends there - exactly where the canvas stops drawing that path. - **Not connected - drag any handle here to reconnect** - the box is detached and won't run until something connects to it. - **Remove incoming branch** - clears the branch line pointing at this box. - **Remove connection** - moves the box to the end of the order, so it can be connected through a condition's "else" instead. ### Conditions and branches Add **Condition (if / and / or)** from the Actions panel. In its box: **Message contains keywords** to start with. The other options check the customer's reply after a **Wait for reply** or **Ask a question** step: **Reply is exactly**, **Reply mentions any of**, **Customer tapped a button**, **Customer replied**, and **No reply before the wait ended**. **Compare values (a row, a Flow answer...)** checks values instead, like `{{found.status}}` is `Shipped`. Each is explained on [Actions](https://docs.theavoxai.com/automation/actions#condition). The steps below are for keywords; the other options ask for values or buttons in the same box, or nothing at all. **AND** - every keyword must appear. **OR** - any one keyword is enough. The label reads "of these keywords appear". Type each keyword and press Enter, for example `urgent`, `refund`, `cancel`. Add at least one. Matching ignores upper and lower case and looks for the keyword anywhere in the message. The amber line spells out what happens, for example: If the message contains "refund" or "cancel" → continue to the next step. Otherwise → stop here. Drag from the handle on the bottom of the box to another action. When the keywords don't match, the automation jumps there in place of stopping. The line is labelled **else**. A condition has two bottom handles: **else**, and a second **backup**. Only one is ever used. The backup takes over automatically if the action the main else points at is deleted, so removing a box never silently turns a branch into a dead end. Click a branch line to select it and reveal its remove button, or use **Remove** next to it in the condition's box. The builder blocks branches that would be confusing: - An action can be the target of only one branch. Dragging a second branch onto it shows "That action is already another branch's target - each action can only be reached one way." - An else branch can't point at the action the condition already continues to on a match ("That's already where this condition goes when it matches - pick a different action to branch to."). - Two conditions that check exactly the same keywords with the same AND/OR, without branching, are rejected as duplicates ([AVX-3077](https://docs.theavoxai.com/error-codes/avx-3077)). ### Conversations: asking and waiting **Ask a question** and **Wait for reply** let an automation pause for the customer and then branch on what they said. A typical layout: An **Ask a question** box with the question, up to 3 answer buttons, and where to save the answer (a contact field, a tag, or nowhere). A condition right after it - for example **Customer tapped a button** with "Confirm" picked. The match path continues with what to do for that answer. Draw the condition's **else** to another condition (say, **Customer tapped a button** with "Reschedule"), and that one's else to a final message for anything else - including no reply. Each path ends where the canvas stops drawing it, so put each answer's own steps right after its condition and the branch targets after them. The premade **Lead qualifier**, **Appointment confirm or reschedule** and **Feedback with follow-up** automations are built exactly this way - add one from **Premade** to see the layout. In the conversation preview, the pretend customer answers each question, and **Where it splits** lets you pick which way they go at every condition. A **Delay** step is different from a wait: it pauses for a set time whether or not the customer writes, then carries on - for example the **Out of hours away message** premade replies at once and follows up 12 hours later. A delay isn't cut short when WhatsApp's 24-hour window closes, so after 24 hours without a message from the customer only an approved template can still be sent. See [Delay](https://docs.theavoxai.com/automation/actions#delay). ### The toolbar | Button | What it does | | --- | --- | | **Undo** (Ctrl+Z) | Undoes your last change. | | **Redo** (Ctrl+Shift+Z) | Redoes what you undid. | | **Zoom in** / **Zoom out** | Zooms the canvas. | | **Reset view** | Fits every box on screen. | | **Auto-arrange** | Lays the chain out left to right, replacing your manual positions. | | **Fullscreen** | Fills the screen with the canvas. Click again (**Exit fullscreen**) to return. | | **Preview the conversation** | Opens the conversation preview beside the canvas. Click again to close it. | ### Testing on the canvas **Preview the conversation** in the toolbar opens the **Conversation preview** beside the canvas: your automation played as a real WhatsApp chat. It follows every edit as you make it, uses a sample customer and sample values (a real row of your table when one can be read), and never sends anything, so it costs no credits. - **Two sides** - **Customer** shows the customer's phone: what starts the automation, their replies and button taps, and every message you send, under your business name and logo. **Your inbox** shows the same conversation as your team sees it in Avox. Steps the customer never sees (tags, notes, table steps, team alerts) appear as small notes, marked as seen by your team only. - **Play** - plays the chat message by message (**Pause** stops it). **Next message** shows one more, and **Start over** plays it again from the top. The counter shows how far it is, for example "3 of 8". - **Where it splits** - every condition on the way, with **Yes** and **No** to pick which way the pretend customer goes. You can also tap a condition's note in the chat to try the other way. - **The customer's first message** - for message triggers, type what the customer sends. Left empty, the preview writes one that takes the branches you picked. A message without any of your keywords shows "This message has none of the keywords, so the automation wouldn't start." - **Waits and delays** show as time separators, like "No reply for 1 hour". - **Flows** - tap a Flow message to see what the customer sees in that Flow. The boxes on the path the preview takes light up on the canvas. Close the panel with its x, or with the toolbar button again. ### Action and Preview tabs Above the canvas, the **action** and **preview** tabs switch between the canvas and a preview of the conversation. Opened by hand, the **preview** tab is the same two-sided conversation preview as the toolbar's (see [Testing on the canvas](#testing-on-the-canvas)), on a phone, and it plays straight away. For a Keyword match automation the sample message includes your first keyword, so the preview follows the real path. **Validate & Create** (or **Validate & Save**) uses the tab to check your automation: it plays a sample customer message through your actions as the same chat, with a checklist next to it that shows each message's credit cost and what each free step does ("Adds a team note", "Posts to your webhook", "Ends the automation"). The checklist marks each step as it plays: | Note | Meaning | | --- | --- | | Sent · 1 credit (or 2, 3) | The message would be sent, at that cost. | | Matched - continuing | A condition matched and the chain carried on. | | Didn't match - branched to else | A condition didn't match and followed its else line. | | Stopped here - no else branch set | A condition didn't match and has no else line, so the automation stops. | | Not on this test's path | This step doesn't run for this sample message. | When the automation has keyword conditions, **Validate & Create** (or **Validate & Save**) plays more than one test, one after the other: the first sample, then a message that matches a condition's keywords and one that doesn't ("Just saying hello!"). The line above the phone reads, for example, "Test 2 of 3" with what's being tried. Each test ends with "Looks good - validated against this test". When every test has played, **Play the conversation and try each branch** switches to the conversation preview. ### Saving **In the wizard** - click **Validate & Create** (it's enabled once the canvas has at least one action). Avox checks every action, plays the preview, then creates the automation. **Back** returns to the Name step without losing anything. See [Step: Build](https://docs.theavoxai.com/automation#step-build). **On the Edit page** - changes save automatically a moment after you stop editing. The avatar shows "Saving…", then "Saved." (or "Couldn't save that." with [AVX-3070](https://docs.theavoxai.com/error-codes/avx-3070)). Autosave waits while an action is still incomplete. **Validate & Save** runs the full checks and the preview first, then saves. The checks that run before creating or saving: | Check | Message | | --- | --- | | At most 10 pausing steps | An automation can pause (wait for a reply or a delay) at most 10 times. ([AVX-3172](https://docs.theavoxai.com/error-codes/avx-3172)) | | Every wait is 1 to 1380 minutes | Set the reply wait to between 1 and 1380 minutes (23 hours). ([AVX-3170](https://docs.theavoxai.com/error-codes/avx-3170)) | | Every question is complete | Write the question and choose where to save the answer. ([AVX-3171](https://docs.theavoxai.com/error-codes/avx-3171)) | | Every delay is 1 to 1380 minutes | Set each delay to between 1 and 1380 minutes (23 hours). ([AVX-3290](https://docs.theavoxai.com/error-codes/avx-3290)) | | Every Tags & categories step has something to do | Each Tags & categories step needs at least one tag or category to add or remove (up to 10 in each list). ([AVX-3292](https://docs.theavoxai.com/error-codes/avx-3292)) | | Media links are https and a supported type | Use a public https:// link to a supported file type in each media step. ([AVX-3291](https://docs.theavoxai.com/error-codes/avx-3291)) | | Webhook URLs are public https | Use a public https:// URL in each Send to webhook step. ([AVX-3293](https://docs.theavoxai.com/error-codes/avx-3293)) | | Every action is filled in | Finish filling in every action (reply text, keywords, etc.) before creating. | | No duplicate conditions | Two conditions check the exact same keywords - remove one before continuing. ([AVX-3077](https://docs.theavoxai.com/error-codes/avx-3077)) | | One branch per target | Two branches point at the same action - fix that before creating. | | Else isn't the match path | One of your conditions branches to the same action it already goes to on a match - fix that before creating. | | Name, trigger, and at least one action | Check the automation's name, trigger, and actions. ([AVX-3067](https://docs.theavoxai.com/error-codes/avx-3067)) | | A table or Flow trigger is complete | Finish the trigger: pick a table and what should start the automation. ([AVX-3592](https://docs.theavoxai.com/error-codes/avx-3592)) For a date: Pick a date column, when to send and a time zone for this reminder. ([AVX-3593](https://docs.theavoxai.com/error-codes/avx-3593)) For a Flow: Pick the Flow whose answers start this automation. ([AVX-3599](https://docs.theavoxai.com/error-codes/avx-3599)) | | Every table step is complete | Finish every table step: pick a table, the row and the columns. ([AVX-3591](https://docs.theavoxai.com/error-codes/avx-3591)) For a count: Pick a number column and an amount, and keep the lowest value below the highest. ([AVX-3598](https://docs.theavoxai.com/error-codes/avx-3598)) | | Every app step is complete, with its app connected | Finish the app step: pick what to do and fill in the required details. ([AVX-3597](https://docs.theavoxai.com/error-codes/avx-3597)) / This step needs an app that isn't connected. ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)) | | Every value exists at that point | A message uses a value that doesn't exist here. ([AVX-3594](https://docs.theavoxai.com/error-codes/avx-3594)) | | Every template variable is filled | Fill in every variable of this template, or give it a fallback. ([AVX-3595](https://docs.theavoxai.com/error-codes/avx-3595)) | | The tables and columns still exist | This automation uses a table that was deleted or archived. ([AVX-3589](https://docs.theavoxai.com/error-codes/avx-3589)) / A step uses a table column that was deleted or changed type. ([AVX-3590](https://docs.theavoxai.com/error-codes/avx-3590)) | On the Edit page the same messages end in "before saving". --- ## Triggers URL: https://docs.theavoxai.com/automation/triggers Section: Flows and automation A **trigger** is what starts an automation. You pick it in step 1 (**Type**) of the [Create automation wizard](https://docs.theavoxai.com/automation#step-type) and set it up in step 2 ([Name](https://docs.theavoxai.com/automation#step-name)). An automation's trigger type is fixed once it's created; for a **Keyword match** automation you can still edit the keywords on the canvas, and a table, Flow or chat link trigger's settings with **Change** above the canvas. The wizard lists the triggers in groups: the ones that answer messages, then **From your tables, Flows and smart links**, and further down **Your connected apps**. | Trigger | Starts when | Settings | | --- | --- | --- | | [Keyword match](#keyword-match) | A message contains one of your keywords | Keywords | | [Any message](#any-message) | Any message arrives | None | | [Outside business hours](#outside-business-hours) | A message arrives outside your opening hours | Opens at, Closes at, Timezone | | [New contact](#new-contact) | A contact sends their very first message | None | | [No-reply follow-up](#no-reply-follow-up) | Nobody has replied after a set wait | Minutes to wait before following up | | [Tag added](#tag-added) | An automation adds one of your tags to a contact | Tags to watch for | | [Row added](#row-added-row-changed-and-row-matches) | A row is added to a table, from anywhere | Table, who gets the messages, rules | | [Row changed](#row-added-row-changed-and-row-matches) | A row changes (only the columns you watch, if you pick some) | The same, plus Watch these columns | | [Row matches](#row-added-row-changed-and-row-matches) | A row starts to match your rules, once each time | The same, with the rules to match | | [Date in a row](#date-in-a-row) | Before, on or after a date in each row, once or every year | Date column, time of day, when, every year, time zone | | [Booking made](#booking-made-and-booking-cancelled) | A booking is added to a calendar table | Calendar table, status column, cancelled values | | [Booking cancelled](#booking-made-and-booking-cancelled) | A booking's status changes to cancelled, or it's deleted | The same, plus whether a deleted booking counts | | [Flow submitted](#flow-submitted) | A customer submits a Flow | Which Flow | | [Chat started from a link](#chat-started-from-a-link) | Someone starts a chat from one of your smart links or QR codes | Which smart link | | [A chat signal is raised](#a-chat-signal-is-raised) | A chat signal appears on a conversation | Which chat signals | | [Someone replies to a broadcast](#someone-replies-to-a-broadcast) | A contact replies to a broadcast they got | Which broadcasts | | [Payment received](#payment-received-failed-refunded-or-disputed) | A payment in your PayPal, Stripe or Razorpay is paid (or partly paid) | Payment app, currency, amount, own links only | | [Payment failed or ended](#payment-received-failed-refunded-or-disputed) | A payment fails, expires or is cancelled | The same, plus which endings | | [Payment refunded](#payment-received-failed-refunded-or-disputed) | A payment is refunded, in full or in part | The same, plus which refunds | | [Payment disputed](#payment-received-failed-refunded-or-disputed) | A customer opens a dispute, or it's won or lost | The same, plus which dispute changes | | [Something happens in an app](#something-happens-in-an-app) | A store order, booking, meeting, Shiprocket parcel or Zoho Books invoice changes | App, events, set hours, skip people who sent STOP | ### Keyword match "Fires when a customer's message contains one of your chosen words or phrases." - **Settings:** **Keywords** - type a word or phrase and press Enter (or type a comma) to add it as a chip. Click a chip's x to remove it, or press Backspace in the empty field to remove the last one; the same keyword can't be added twice. Add at least one ("Add at least one keyword"). You can change the keywords later right on the canvas's trigger box. - **Matching:** the automation fires when the message contains any one of the keywords, anywhere in the text. Upper and lower case don't matter, so `hours` matches "What are your HOURS?". - **Tip:** a short keyword matches inside longer words too - `book` also matches "booking" and "notebook". Use a phrase when you need to be specific. ### Any message "Fires on every message a customer sends you - a catch-all auto-reply." - **Settings:** none. - **Use it for:** a general acknowledgement, often combined with a [condition](https://docs.theavoxai.com/automation/builder#conditions-and-branches) to handle specific words differently. ### Outside business hours "Fires only when a customer messages you outside your set opening hours." - **Settings:** **Opens at** and **Closes at** in 24-hour time (defaults 09:00 and 18:00), and a **Timezone**. The wizard detects your device's timezone ("Detected from this device: ...") and lists every timezone with its UTC offset, ordered west to east. - **Matching:** Avox compares the time each message arrives with your hours, using the UTC offset shown next to the timezone you picked. The automation fires outside the window and stays quiet inside it. - **Overnight hours work too.** With **Opens at** 22:00 and **Closes at** 06:00, the automation fires between 06:00 and 22:00. - **Summary:** the automation shows as "Fires outside 09:00 to 18:00" (with your own times). ### New contact "Fires only on a contact's very first-ever message to you - a real welcome message." - **Settings:** none. - **Matching:** fires when a contact has no earlier incoming message in Avox. Messages synced in from the WhatsApp Business App count as earlier messages, so a customer whose past chats were synced isn't treated as new. A contact who was only synced from your address book, with no messages yet, still is. See [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). ### No-reply follow-up "Fires if nobody's replied to a customer after a set number of minutes." - **Settings:** **Minutes to wait before following up** (30 by default). Set 1,380 minutes (23 hours) or less, so the follow-up always lands inside Meta's [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). Avox only follows up within that window. - **Summary:** "Fires after 30 minutes of no reply" (with your own wait). In the **Your automations** table this trigger is listed as **Follow-up (no reply)**. - **Matching:** Avox checks every minute for contacts whose latest message is one *they* sent, older than your wait time, with nothing sent back since - not by your team in the [Inbox](https://docs.theavoxai.com/inbox), not from the WhatsApp Business App on your phone, not by the Avox API, and not by another automation. When it finds one, the follow-up runs. - **Once per unanswered message.** Each unanswered message gets at most one follow-up. If the customer writes again, that new message starts its own wait. - **Recent conversations only.** Avox looks at messages from your wait time up to two hours beyond it, so switching the automation on doesn't send follow-ups into old conversations. - **Connected numbers only.** A number that is paused or disconnected is skipped until it's connected again. - The one-hour cooldown below applies too. The premade **No-reply follow-up** automation (named "Follow-up nudge") is the quickest start: it sends "Sorry for the wait - just checking in, we'll have an answer for you shortly!" and tags the contact `followed_up`. Change the text to fit your business. ### Tag added "Fires when a specific tag gets applied to a contact - chain automations off one another." - **Settings:** **Tags to watch for** - one or more tags, added as chips. "Fires once, the moment any of these tags gets applied to a contact - including by another automation's own "Tags & categories" step." Add at least one ("Add at least one tag to watch for"). - **Matching:** fires when an automation's **Tags & categories** step adds one of these tags to a contact who didn't already have it. Upper and lower case don't matter. Re-adding a tag the contact already has doesn't fire it again. - **Chains:** one automation can tag a contact, which starts a Tag added automation, which can tag again. A chain stops after three automations in a row, so automations can't set each other off in a loop. - **No incoming message:** a Tag added automation starts from a tag, not a message, so a **Condition** in it never matches and **Mark as read** has nothing to mark. Use sends and tags. - **Summary:** "Fires when tagged: VIP" (with your own tags). ### Row added, Row changed and Row matches These start an automation from one of your [tables](https://docs.theavoxai.com/tables), whatever changed the row: the grid, an import, the API, a Flow or another automation. - **Settings:** **Table**; **Who gets the messages** - a contact or phone column of the row, or **Nobody (team and table steps only)**; **Send from** - **The number they last talked to**, or one of your numbers; and up to 10 rules on the row (**Only when**), joined by all or any. **Row changed** also has **Watch these columns** (leave it empty to run on any change). - **Row added** runs once for each new row. **Row changed** runs on each change of a watched column, like an order's Status. **Row matches** runs once at the moment a row starts to match your rules, like Stock at or below Reorder at, and again only after it stops matching and then matches again. - **Summary:** for example "A row is added to Appointments" or "A row in Order status changes (Status)". ### Date in a row "Runs before, on or after a date or time in each row, like 1 hour before an appointment or on a birthday." - **Settings:** the table and who gets the messages, as above; **Date column**; **Time of day** for a date column (a time column, or **The same time for every row**); how many minutes, hours or days **before**, **at that time** (or **on the day**) or **after**, up to 60 days; **Every year** for a date column (birthdays, anniversaries, renewals; 29 February falls on the 28th in other years); and **Time zone**. - **Matching:** Avox checks every minute and runs once per row and moment, so moving a booking gives it a fresh reminder. A reminder that couldn't go on time is sent a little late only within a short grace time, and a row added or changed after its moment gets no late message. ### Booking made and Booking cancelled For calendar tables, like one made from the premade **Appointments** table. - **Settings:** **Calendar table**, who gets the messages, **Status column** and the values that mean cancelled. **Booking cancelled** can also count a deleted booking ("A deleted booking counts as cancelled too"). - **Booking made** skips a booking added already cancelled. **Booking cancelled** runs when the status changes to one of your cancelled values. ### Flow submitted "Runs when a customer submits a Flow. Their answers can be used in every step." - **Settings:** **Which Flow**, or **Any Flow**. - **Matching:** once per submission. Their answers are available as `{{flow.}}`. A submitted Flow starts only automations with this trigger: a keyword or any message automation never fires on a Flow's answers. Every setting and rule, with examples, is on [Tables and Flows](https://docs.theavoxai.com/automation/tables#triggers). ### Chat started from a link "Runs when someone starts a chat from one of your smart links or QR codes. The link's name and campaign details can be used in every step." - **Settings:** **Which smart link** - **Any smart link**, or one of your links (archived links are left out). A link that isn't live shows its state next to its name, like "(paused)". If your role can't see smart links, only **Any smart link** can be picked. - **Matching:** once for each chat a link starts. A chat starts when Avox is sure (90% and up) it came from the link, for example when the customer's message carries the link's reference, like `(ref AB3X9K)`, or its hidden marks, and someone visited the link in the 7 days before. A possible match starts it only when the link has **Act on possible matches too** on. A chat is counted once per contact, link and day, so sending the message twice doesn't start the automation twice. See [What counts as a chat started](https://docs.theavoxai.com/chat-links/analytics#what-counts-as-a-chat-started). - **Every match runs.** Each switched-on automation watching that link (or any link) runs for the chat, with no one-hour cooldown. - **Summary:** "When someone starts a chat from any of your smart links" (or "from the picked chat link"). In the run log, a run shows as "Chat started from" and the link's name, with the link, where it was opened from and its campaign. These values can be used in every step, like any other value: | Value | What it holds | | --- | --- | | `{{link.name}}` | The link's name | | `{{link.code}}` | The link's six-character code | | `{{link.slug}}` | The address ending, like `summer-sale` | | `{{link.url}}` | The link's full address | | `{{link.reference}}` | The link's reference, like `LNK-000123` | | `{{link.kind}}` | Where it was opened from: `qr` or `click` | | `{{link.country}}` | The visitor's country, as a two-letter code like `GB` | | `{{link.utm_source}}` | Campaign source | | `{{link.utm_medium}}` | Campaign medium | | `{{link.utm_campaign}}` | Campaign name | | `{{link.utm_term}}` | Campaign term | | `{{link.utm_content}}` | Campaign content | | `{{link.match}}` | How the chat was recognised: `visible`, `hidden` or `text`, with `(potential)` after it for a possible match | A value the visit didn't have, like a campaign label nobody set, is empty. The customer's message is still an ordinary incoming message, so a **Keyword match** or **Any message** automation can answer it too. If a link already [sends a Flow, a template or table details](https://docs.theavoxai.com/chat-links#what-a-link-can-send), keep this automation to tags and team steps, so the customer doesn't get two greetings. Setting up the links themselves: [Smart links](https://docs.theavoxai.com/chat-links). ### A chat signal is raised "Runs when a chat signal appears on a conversation, like Asked for a human or one of your own. Pick the signals to listen for, or any signal." - **Settings:** **Which chat signals** - **Any chat signal**, or up to 20 signals you pick, built-in or your own. A switched-off signal shows "(switched off)" next to its name: it never appears, so it never starts the automation until you switch it on. If your role can't see chat signals, the picked signals can't be changed here. - **Matching:** once each time a picked signal appears on a chat. A signal stays on a chat until it's cleared, so it can't appear twice at the same time; once it's cleared and appears again, the automation runs again. - **Every match runs.** Each switched-on automation listening for that signal (or any signal) runs. - **No loops.** Signals appear from customer messages, time passing and tags. Messages your automations send never count as a reply from your team, so they can't start or end a wait. If an automation adds a tag that raises a signal it listens for, it starts again for the same contact at most once every 10 minutes, and a chain of automations still stops after three in a row ([AVX-3612](https://docs.theavoxai.com/error-codes/avx-3612)). - **Summary:** "When any chat signal appears on a chat" (or "the picked chat signal"). In the run log, a run shows as "Signal raised:" and the signal's name. These values can be used in every step: | Value | What it holds | | --- | --- | | `{{signal.name}}` | The signal's name, like `Asked for a human` | | `{{signal.kind}}` | `built-in` or `custom` | | `{{signal.description}}` | The signal's description | | `{{signal.raised_at}}` | When it appeared | When a customer message raised the signal, `{{reply}}` is that message. A signal raised by time passing (like Waiting for a reply) has no message, so `{{reply}}` is empty. The message that raised a signal is still an ordinary incoming message, so a **Keyword match** or **Any message** automation can answer it too. Pick one of the two for each kind of question, so the customer doesn't get two answers. Setting up signals: [Chat signals](https://docs.theavoxai.com/chat-signals). The ready-made **Hand off to a person** automation in the library uses this trigger with the built-in Asked for a human signal. ### Someone replies to a broadcast "Runs when someone replies to a broadcast they got, once per person and broadcast. A STOP or START reply doesn't count: your unsubscribe automations handle those." - **Settings:** **Which broadcasts** - **Any broadcast**, or up to 20 broadcasts you've sent (drafts are left out). If your role can't see broadcasts, the picked broadcasts can't be changed here. - **Matching:** a message counts as a reply to a broadcast when it quotes the broadcast message, or when it arrives within 72 hours of the contact's latest broadcast. This is the same rule a broadcast's report uses to count replies, and a tap on one of the broadcast's quick reply buttons counts too. - **Once per person and broadcast.** Only the first reply from each contact starts the automation. - **STOP and START don't count.** A reply that is only STOP, UNSUBSCRIBE, START or one of the other [stop and start words](https://docs.theavoxai.com/contacts/unsubscribe) goes to your unsubscribe automations instead, so nobody who asked to stop gets a thank-you. - **Summary:** "When someone replies to any of your broadcasts" (or "the picked broadcast"). In the run log, a run shows as "Replied to" and the broadcast's name. These values can be used in every step, as well as `{{reply}}` (their reply): | Value | What it holds | | --- | --- | | `{{broadcast.name}}` | The broadcast's name | | `{{broadcast.ref}}` | The broadcast's reference, like `BRD-000123` | | `{{broadcast.template}}` | The template it sent | | `{{broadcast.sent_at}}` | When it was sent to this contact | | `{{broadcast.button}}` | The quick reply button they tapped, if they tapped one | The reply is still an ordinary incoming message, so a **Keyword match** automation (like the ready-made **Answer broadcast button taps**) can answer it too. The ready-made **Tell the team about broadcast replies** uses this trigger and sends the customer nothing, so the two work side by side. Both triggers stop while the Switchboard is paused, and a broadcast reply also waits while Avox has paused broadcasts for everyone. ### Payment received, failed, refunded or disputed Four triggers follow the payments in the payment apps you connected on [Apps](https://docs.theavoxai.com/connections/apps/payments) (PayPal, Stripe and Razorpay): | Trigger | Runs | | --- | --- | | Payment received | Once when a payment is paid. With **Partly paid counts too**, also when part of it is paid, and again when the rest is paid. | | Payment failed or ended | Once when a payment fails, expires or is cancelled. **Which endings**: Failed, Expired, Cancelled (none picked: all three). | | Payment refunded | When a payment is refunded. **Which refunds**: Refunded in full, Partly refunded (none picked: both). Each partial refund runs it once, so a partial refund and then the rest runs it twice. | | Payment disputed | When a customer opens a dispute, and when it's won or lost. **Which dispute changes**: Dispute opened, Dispute won, Dispute lost (none picked: all three). A lost dispute is a dispute change, not a refund. | - **Settings every one has:** **Payment app** (**Any payment app**, or one; an app that isn't connected says "(not connected)" with a link to connect it), and optionally **Currency** (3 letters), **Amount at least** and **Amount at most** (in that currency, so a currency is needed with an amount), and **Only payments made by this automation's own Create a payment link step**. - **What counts:** payment links made in Avox: a **Create a payment link** step, a Flow, the API, or the app's page in Avox. Each change runs the automation once, however many times the app tells Avox about it, and a late or repeated update that changes nothing runs nothing. A payment whose amount or currency Avox doesn't know never passes an amount filter. - **Who gets the messages:** when the payment is linked to a contact (the chat it was sent in), messages go to them. Otherwise the run still starts, but message steps are skipped ("no contact to message" in the run log), so use steps like **Notify the team** or a table. - **No app connected:** the tiles stay greyed out with **Connect PayPal, Stripe or Razorpay first**. An automation can't be saved with an app that isn't connected ([AVX-5240](https://docs.theavoxai.com/error-codes/avx-5240)) or with unfinished settings ([AVX-5241](https://docs.theavoxai.com/error-codes/avx-5241)). - **Summary:** for example "When a payment is paid in Razorpay, ₹500.00 or more". In the run log, a run shows as the app, the payment and what happened, like "Razorpay payment for Haircut: Paid", with the amount and your reference. These values can be used in every step: | Value | What it holds | | --- | --- | | `{{payment.amount_text}}` | Amount with its currency, like ₹1,299.50 | | `{{payment.amount}}` | Amount as a number, like 1299.50 | | `{{payment.currency}}` | Currency, like INR | | `{{payment.change}}` | What happened: Paid, Partly paid, Failed, Expired, Cancelled, Refunded in full, Partly refunded, Dispute opened, Dispute won or Dispute lost | | `{{payment.status}}` | Payment status now | | `{{payment.old_status}}` | Status before the change | | `{{payment.app}}` | Payment app: PayPal, Stripe or Razorpay | | `{{payment.description}}` | What it's for | | `{{payment.reference}}` | Your reference | | `{{payment.link_id}}` | Payment link id | | `{{payment.link}}` | Payment link | | `{{payment.refund_text}}` | This refund, like ₹500.00 | | `{{payment.refunded_text}}` | Refunded so far, like ₹500.00 | | `{{payment.refunded_amount}}` | Refunded so far as a number, like 500.00 | | `{{payment.at}}` | When it happened | Avox never gives card details, or the payer's name or email, as values. In these automations `payment` is the trigger's group of values, so give a **Create a payment link** step in the same automation another name, like `new_payment`, if you add one. ### Something happens in an app "Runs when a store order arrives or changes in Shopify or WooCommerce, a Calendly booking is made or cancelled, a Zoom meeting starts or ends, a Shiprocket parcel moves (out for delivery, delivered, failed, returning) or a Zoho Books invoice is paid, overdue or voided. Pick the app and the events." - **App:** **Any app**, or one of Shopify, WooCommerce, Calendly, Zoom, Shiprocket and Zoho Books. An app that isn't connected says "(not connected)" with a link to connect it. - **Which events:** pick the ones to run for; none picked means every event the app sends. With one app picked, only its own events are listed. | App | Events | | --- | --- | | Shopify, WooCommerce | New store order, Store order status changed, Store order cancelled | | Calendly | Booking made, Booking cancelled | | Zoom | Meeting started, Meeting ended, Meeting cancelled | | Shiprocket | Shipment picked up, Shipment in transit, Out for delivery, Delivered, Returning to you (RTO), Delivery failed (NDR) | | Zoho Books | Invoice paid, Invoice partly paid, Invoice overdue, Invoice voided | - **Not for people who sent STOP (the Unsubscribed tag):** with this on, the automation never starts for someone who has the [Unsubscribed tag](https://docs.theavoxai.com/contacts/unsubscribe). - **Only between set hours (an event at night waits for the morning):** with this on, pick **From** and **To** (09:00 and 20:00 to start with, in your device's time zone, which is shown). An event outside those hours waits and the run starts when the window opens. The window can cross midnight. - **Matching:** once for each real change the app tells Avox about. A repeat of the same update runs nothing. A Shiprocket parcel or a Zoho Books invoice starts nothing the first time Avox sees it: only a later change of its status counts. A store order saved already cancelled starts nothing. - **Who gets the messages:** when the order, booking, meeting, parcel or invoice is linked to a contact, messages go to them; otherwise message steps are skipped, so use steps like **Notify the team** or a table. - **No app connected:** the tile stays greyed out with **Connect Shopify, WooCommerce, Calendly, Zoom, Shiprocket or Zoho Books first** ([AVX-5242](https://docs.theavoxai.com/error-codes/avx-5242) when saving; unfinished settings [AVX-5243](https://docs.theavoxai.com/error-codes/avx-5243)). - **Summary:** "When anything happens in any app", or the events and the app, like "When delivered in Shiprocket". These values can be used in every step: | Value | What it holds | | --- | --- | | `{{app.app}}` | The app, like Shopify or Calendly | | `{{app.event}}` | What happened, like New store order | | `{{app.status}}` | Status now | | `{{app.old_status}}` | Status before the change | | `{{app.title}}` | The order, booking, meeting, parcel or invoice name | | `{{app.item_id}}` | The app's id for it (AWB number, invoice id...) | | `{{app.booking_id}}` | Booking id (Calendly) | | `{{app.starts_at}}` | Starts (bookings and meetings) | | `{{app.ends_at}}` | Ends (bookings and meetings) | | `{{app.amount_text}}` | Order total with its currency | | `{{app.amount}}` | Order total as a number | | `{{app.currency}}` | Currency | | `{{app.link}}` | Link (tracking or invoice link, when the app gives one) | | `{{app.courier}}` | Courier (Shiprocket) | | `{{app.expected_by}}` | Expected delivery (Shiprocket) | | `{{app.due_text}}` | Amount still due on the invoice, with its currency | | `{{app.due_amount}}` | Amount still due as a number | | `{{app.at}}` | When it happened | A value the event doesn't have (a courier for a Calendly booking) is empty. Customer details aren't given as values. Pair these with the app steps on [Automation actions](https://docs.theavoxai.com/automation/actions#tables--apps): **Cancel a booking** with `{{app.booking_id}}`, **Track a shipment** with `{{app.item_id}}`, or **Send an invoice** and **Check an invoice** with a Zoho Books invoice id. ### Marketing opt-outs **Someone stops marketing messages** runs when a customer turns off your marketing messages inside WhatsApp; **Someone resumes marketing messages** runs when they turn them back on. Each runs once per change, in the order WhatsApp reported them. Values: `{{optout.action}}` (`stop` or `resume`) and `{{optout.at}}` (when they changed it). The run log shows them as **Marketing preference**. An automation started by a stop can't send a **Marketing** template: the builder won't save one ([AVX-3975](https://docs.theavoxai.com/error-codes/avx-3975)), and if one slips through (a template's category changed later) the step is skipped and the run log says why. Use it to tell your team, update a table row, or send a utility message such as "You won't get offers from us any more". In any automation, a Marketing template step is skipped for someone who stopped marketing messages or has the Unsubscribed tag ([AVX-3976](https://docs.theavoxai.com/error-codes/avx-3976)). Nothing runs while the Switchboard is paused, but the stop is still recorded. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe#stopped-in-whatsapp). ### Meta found a lead or a purchase **Meta found a lead** and **Meta found a purchase** run when Meta finds a lead or a purchase in a chat that started from your click-to-WhatsApp ad (needs Automatic events switched on in Meta, see [Leads and purchases from ads](https://docs.theavoxai.com/whatsapp/webhooks#leads-and-purchases-from-ads)). Each runs once per event. Values: `{{ad.kind}}`, `{{ad.value}}` and `{{ad.currency}}` (purchases only, when Meta sends them), `{{ad.headline}}` (the ad's headline, when Avox saw the chat start from it) and `{{ad.at}}`. The run log shows them as **Ad event**. They don't run when **Show Meta-detected events in Avox** is off in **Settings, WB events**, or while the Switchboard is paused. ### When an automation runs These rules apply to the triggers that answer messages (Keyword match, Any message, Outside business hours, New contact, No-reply follow-up and Tag added): Each new incoming message is checked once. A message Meta delivers twice is still only checked once. (**No-reply follow-up** automations are the exception: they're checked every minute instead, as described above.) Avox goes through the Switchboard's **switched-on** automations from oldest to newest and picks the first whose trigger matches. Only that one automation runs for the message. An automation runs at most once per hour for the same contact. If it already ran for this contact in the last hour (and did something), nothing runs for this message. This stops a fast back-and-forth from turning one automation into a stream of replies. The actions run in order. Each message sent spends [credits](https://docs.theavoxai.com/automation/credits). Because the oldest matching automation wins, keep your most specific automations (for example a Keyword match) older than broad ones such as **Any message**, or the broad one can answer first. Table, Flow, smart link, chat signal, broadcast reply, payment and app triggers work differently: - **Every match runs.** Each switched-on automation watching the table (or the Flow, the smart link, the signal, the broadcast, the payment app or the app) runs for the change, not just the oldest one. - **Once per change.** Each row change, date moment and Flow submission starts each automation once. A row changed several times before it was handled counts once, with its latest values. Changes are picked up within about 10 seconds; date triggers are checked every minute. - **No one-hour cooldown.** Each change counts on its own. - **No loops.** An automation never starts from its own change, and a chain of automations changing rows (or tagging contacts) that start each other stops after three in a row ([AVX-3612](https://docs.theavoxai.com/error-codes/avx-3612)). See [How changes reach your automations](https://docs.theavoxai.com/automation/tables#how-changes-reach-your-automations). #### When nothing runs - **No active subscription** - automations send only while the Switchboard has an active plan. - **Out of credits** - sending stops until credits reset ([AVX-3076](https://docs.theavoxai.com/error-codes/avx-3076)). - **Connection paused for billing** - when a canceled subscription pauses your connection, each automation that would have run is recorded on [Logs](https://docs.theavoxai.com/logs) as a failed `automation_skipped` event with "This automation didn't fire - the connection is paused because this Switchboard's subscription was canceled." Filter Logs by that event type to see them all. See [AVX-3082](https://docs.theavoxai.com/error-codes/avx-3082). - **Connection not connected** - while a number is paused or still being set up, its automations don't run. They pick up again with the next message after it's connected. - **On cooldown** - the first matching automation already ran for this contact in the last hour. - **Switched off** - only automations with the **Active** switch on are checked. - **Switchboard paused** - nothing starts while the Switchboard is paused ([AVX-3611](https://docs.theavoxai.com/error-codes/avx-3611)). - **No contact on the row** - a table trigger whose row has no contact or phone still runs its table, app and team steps, but a message step stops it ([AVX-3607](https://docs.theavoxai.com/error-codes/avx-3607)). Every run, and the reason one stopped, is in the automation's [run log](https://docs.theavoxai.com/automation/run-log). #### The messaging window Automations that answer messages reply as they arrive - or, for a no-reply follow-up, within 23 hours of the customer's message - so their replies go out inside WhatsApp's [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window), where free-form messages are allowed. A table, date or booking trigger can start a run long after the customer last wrote to you. Once 24 hours have passed since their last message, only an approved template can be sent: use **Send a template** for reminders and updates. Any other message is skipped, and the run log says "The 24-hour window was closed, so only a template could be sent." ([AVX-3608](https://docs.theavoxai.com/error-codes/avx-3608)). --- ## Actions URL: https://docs.theavoxai.com/automation/actions Section: Flows and automation **Actions** are what an automation does once its [trigger](https://docs.theavoxai.com/automation/triggers) fires. You add them from the **Actions** panel in the [builder](https://docs.theavoxai.com/automation/builder) and fill them in right on the canvas. They run in order, left to right. ### At a glance The Actions panel groups them the same way. Every message an automation sends costs **1 credit**, except quick reply buttons and lists (2) and Flows (3). Everything that doesn't send a WhatsApp message is free, including every table step and connected app step. | Group | Action (as shown) | What it does | Credits | | --- | --- | --- | --- | | Messages | [Text reply](#text-reply) | A plain text message. | 1 | | Messages | [Send a template](#send-a-template) | One of your approved templates - works outside the 24-hour window. | 1 | | Messages | [Mark as read](#mark-as-read) | Ticks the customer's message as read. | Free | | Interactive | [Quick reply buttons](#quick-reply-buttons) | A message with up to 3 tappable buttons. | 2 | | Interactive | [Dropdown list](#dropdown-list) | WhatsApp's tappable list of options. | 2 | | Interactive | [Send a link button](#send-a-link-button) | A message with one button that opens a website. | 1 | | Interactive | [Use Flows](#use-flows) | A button that opens one of your published Flows. | 3 | | Interactive | [Ask a question](#ask-a-question) | A question (optionally with answer buttons), then waits for the answer. | 1, or 2 with buttons | | Interactive | [Request a call](#request-a-call) | Asks the customer for permission to call them. | 1 | | Media | [Send an image](#send-an-image) | A photo from a link, with an optional caption. | 1 | | Media | [Send a video](#send-a-video-document-or-audio) | A video from a link, with an optional caption. | 1 | | Media | [Send a document](#send-a-video-document-or-audio) | A PDF or other file from a link. | 1 | | Media | [Send an audio](#send-a-video-document-or-audio) | A voice note or audio clip from a link. | 1 | | Media | [Send a location](#send-a-location) | A map pin with a name and address. | 1 | | Media | [Send a contact card](#send-a-contact-card) | A contact the customer can save. | 1 | | Contact | [Tags & categories](#tags--categories) | Adds or removes tags and categories on the contact. | Free | | Contact | [Set contact field](#set-contact-field) | Saves a value, or their reply, to a contact field. | Free | | Contact | [Add a note](#add-a-note) | Adds a private team note to the contact. | Free | | Tables & apps | [Find a row](#tables--apps) | Looks up a row in a table and keeps its values for the next steps. | Free | | Tables & apps | [Add a row](#tables--apps) | Adds a row to a table, filled from the trigger, a reply or a Flow. | Free | | Tables & apps | [Change a row](#tables--apps) | Changes cells of the trigger's row, a found row or a looked-up one. | Free | | Tables & apps | [Add to or take from a number](#tables--apps) | Counts seats, stock or visits up or down, with a lowest and highest value. | Free | | Tables & apps | [Delete a row](#tables--apps) | Deletes a row from a table (it can be restored for 30 days). | Free | | Tables & apps | [Use a connected app](#tables--apps) | Payment links, video meetings, free times, calendar blocks, store orders, bookings, shipments, invoices, CRM contacts, Google Sheets rows or Airtable records, from your connected apps. | Free | | Flow control | [Condition](#condition) | Checks the message or reply and picks the path. | Free | | Flow control | [Wait for reply](#wait-for-reply) | Pauses until the customer replies. | Free | | Flow control | [Delay](#delay) | Pauses for a set time, without waiting for a reply. | Free | | Flow control | [Stop](#stop) | Ends the automation. | Free | | Team & integrations | [Notify the team](#notify-the-team) | A bell notification for your team, with an optional email to Admins. | Free | | Team & integrations | [Send to webhook](#send-to-webhook) | Posts the contact and their message to your own URL. | Free | Credits are spent only when a message is actually sent. If Meta refuses a send, no credit is spent. See [Credits](https://docs.theavoxai.com/automation/credits). To add one, click it in the panel to put it at the end of the chain, or drag it onto the canvas. **Search actions…** also finds actions by related words, for example "pdf", "crm" or "menu". Each box on the canvas has **Duplicate action** and **Remove action** in its corner when you hover it. See [Builder](https://docs.theavoxai.com/automation/builder#adding-actions). Most actions have a **Wait** field: "Wait 0 seconds before this". Set 1 - 30 seconds to pause briefly before the action runs. For longer pauses use [Delay](#delay); to wait for the customer, use [Wait for reply](#wait-for-reply) or [Ask a question](#ask-a-question). WhatsApp gives interactive messages - quick reply buttons, lists, link buttons, Flows and a question with answer buttons - up to 1024 characters of message text. A plain [text reply](#text-reply) can be up to 4096. ### Values in your steps Message texts, notes, team notifications, template variables, Flow data, table cells and app details can all use **values**, written as `{{group.key}}`. Click **Insert a value** under a text box to pick one instead of typing it. - `{{reply}}` is the customer's latest message (the one that started the automation, or the reply a waiting step received). - `{{contact.name}}`, `{{contact.first_name}}` and your custom contact fields. - `{{row.}}` and `{{old.}}` - the row that started the run, and how it was before the change (table triggers). - `{{flow.}}` - the customer's answers (Flow submitted). - `{{.}}` - what an earlier Find a row, Add a row or app step found or got back, like `{{found.price}}` or `{{payment.url}}`. Add a fallback after a `|` for when a value is empty: `Hi {{contact.first_name|there}}` says "Hi there" when there's no name. A message that needs a value the run doesn't have, with no fallback, isn't sent and the run stops ([AVX-3606](https://docs.theavoxai.com/error-codes/avx-3606)), so a customer never gets a message with a gap in it. Every group is listed on [Tables and Flows](https://docs.theavoxai.com/automation/tables#values). ### Text reply "A plain text message." - **The reply** - click the box ("Click to write the reply…") and type it. Required, up to 4096 characters ("Write the reply text"). ### Send a template "One of your Meta-approved templates - works even outside the 24h window." - **The template** ("Pick a template…") - one of your **approved** templates, listed by name and language. With none approved yet, the box reads "No approved templates yet - get one approved on the Templates page first." - **Fill in its variables** - one box for each variable of the template (in the header, the body and the end of a link button), with fixed text or [values](#values-in-your-steps), like `{{row.customer|there}}` or `{{payment.url}}`. Each variable needs something, or a fallback ([AVX-3595](https://docs.theavoxai.com/error-codes/avx-3595)). A template without variables says "This template has no variables to fill in." "Works outside the 24-hour window. Its variables are filled in below, from the row, the Flow or earlier steps." The examples Meta reviewed stay as they are; only the real sends change, and a template costs 1 credit whatever fills it. An automation can only be switched on while every template it sends is still approved; if one leaves Approved later, that action is skipped. See [Approval](https://docs.theavoxai.com/templates/approval). Every send is listed on the template's [send log](https://docs.theavoxai.com/templates/send-log). ### Mark as read "Ticks the customer's message read - free, doesn't count as a send." Nothing to configure. It marks the message that started the automation as read. A **Tag added** automation starts from a tag rather than a message, so this action has nothing to mark there. ### Quick reply buttons "Up to 3 tappable buttons under your message." - **The message** ("Message text above the buttons/list…") - required, up to 1024 characters ("Keep the message text to 1024 characters or fewer"). - **The buttons** - click **+ Add button** to add up to 3 ("Button 1", "Button 2", ...). Each needs a title of up to 20 characters, and every title must be different ("Button titles must be unique"). When a customer taps a button, its title arrives as their next message, so it can start another automation - for example a **Keyword match** on that title. ### Dropdown list "A tappable list of options, WhatsApp's native list message." - **The message** ("Message text above the buttons/list…") - required, up to 1024 characters. - **List button label** - required, up to 20 characters, "Options" to start with. The customer taps it to open the list. - **The options** - click **+ Add option** to add 1 - 10 options ("Option 1", "Option 2", ...), each with a title of up to 24 characters. As with buttons, the option a customer picks arrives as their next message. ### Send a link button "A message with one button that opens a website." - **The message** ("Message text above the link button…") - required, up to 1024 characters. - **Button label** ("Button label, e.g. Track order") - required, up to 20 characters. - **The link** - required, a full `https://` address, for example your order tracking or booking page. The customer sees your message with a single button; tapping it opens the link in their browser. Good for order status, booking pages, payment links and menus. ### Use Flows "Opens one of your existing published Flows." - **The intro** ("Intro text shown above the Flow button…") - up to 1024 characters. Left empty, it reads "Tap below to get started." - **The Flow** ("Pick a Flow…") - one of your **published** Flows. With none published yet, the box reads "No published Flows yet - publish one from the Flows page first." - **The button label** ("Button label, e.g. Book now") - required, up to 20 characters, "Get started" to start with. The customer taps it to open the Flow. - **Send values to a screen (optional)** - click **+ Send values to a screen** to pick the screen the Flow opens on (**The first screen**, or another) and **Add a value** for each piece of data that screen declares: a **Data name in the Flow** and its value, like `{{row.service}}`. Up to 20. "The screen must declare these names in its data. A live Flow on the Avox endpoint reads your tables by itself." See [Live Flows](https://docs.theavoxai.com/flows/live-endpoint). An automation can only be switched on while every Flow it sends is still published ([AVX-3078](https://docs.theavoxai.com/error-codes/avx-3078)). If a Flow is deprecated later, that action is skipped when the automation runs. See [Flows](https://docs.theavoxai.com/flows). ### Ask a question "Sends a question, waits for the answer and saves it to a tag or contact field." - **The question** ("The question, e.g. What's your budget?") - required, up to 1024 characters. - **Answer buttons (optional)** - up to 3, each up to 20 characters. With buttons, the question is sent as a quick reply message (2 credits); without, as plain text (1 credit). - **Save the answer to**: - **A contact field** - a field name of lowercase letters, numbers and underscores, starting with a letter (for example `budget`). The answer is stored on the contact under that name. - **A tag** - the answer becomes a tag on the contact, with an optional prefix (for example `size:` gives `size:Large`). A new tag can start a **Tag added** automation. - **Don't save it** - useful when a condition after it decides what to do. - **Wait up to** - as for [Wait for reply](#wait-for-reply). When the customer taps an answer button, the button's title is saved. A media message (a photo, for example) isn't saved as an answer. If Meta refuses to send the question, the automation stops there rather than waiting for an answer to a question that never arrived. Problems with this step show [AVX-3171](https://docs.theavoxai.com/error-codes/avx-3171). ### Request a call "Asks the customer for permission to call them (needs calling turned on)." - **The message** ("Optional message, e.g. Can we call you about your order?") - optional, up to 1024 characters. Left empty, it reads "We'd like to call you about your recent conversation - is that okay?" This sends WhatsApp's call permission request. Once the customer allows it, your team can call them from [Calls](https://docs.theavoxai.com/calls). It only goes out when **calling is turned on** for the number the customer wrote to; otherwise the step is skipped (the builder shows a warning when none of your numbers has calling on). It costs 1 credit and, like other messages, needs the 24-hour window to be open. ### Send an image "A photo from a URL, with an optional caption." - **The image link** - required. A public `https://` link to the image, for example `https://example.com/photo.jpg`. "A public image URL - Meta fetches it directly, nothing is uploaded here." Make sure the link opens without a login. - **The caption** ("Optional caption shown under the image…") - optional, up to 1024 characters. ### Send a video, document or audio "An MP4 video from a URL", "A PDF or other file from a URL", "A voice note or audio clip from a URL". - **The link** - required, a public `https://` link to the file. Meta downloads it when the step runs; nothing is uploaded to Avox. When the link ends in a file extension, it must be one WhatsApp accepts ([AVX-3291](https://docs.theavoxai.com/error-codes/avx-3291)): | Action | File types | Largest file | | --- | --- | --- | | Send a video | .mp4, .3gp | 16 MB | | Send a document | .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .txt, .csv | 100 MB | | Send an audio | .aac, .amr, .mp3, .m4a, .ogg, .opus | 16 MB | - **The caption** - optional for a video or document, up to 1024 characters. Audio has no caption. - **File name** (document only) - optional, the name the customer sees, for example `Price list.pdf`. A file larger than WhatsApp allows, or a link that needs a login, is refused by Meta when the step runs: that send is skipped and costs nothing. ### Send a location "A map pin with a name and address." - **Latitude** and **Longitude** - required, -90 to 90 and -180 to 180. Tip: in Google Maps, right-click a place to copy its coordinates. - **Place name** - optional, up to 100 characters, for example "Our store". - **Address** - optional, up to 300 characters. ### Send a contact card "A contact the customer can save, with name and phone numbers." - **Name** - required, up to 100 characters, for example "Support team". - **Phone numbers** - 1 to 3, digits with an optional leading `+` (spaces, dashes and brackets are fine). Click **Add number** for another. The customer can tap the card to save it, call it or message it on WhatsApp. ### Tags & categories "Adds or removes tags and categories on this contact - free, doesn't message anyone." This was called **Tag contact** before; existing Tag contact steps keep working as "add these tags". - **Add tags**, **Remove tags**, **Add categories**, **Remove categories** - pick from your Switchboard's existing [tags and categories](https://docs.theavoxai.com/contacts), or type a new name and choose **Create tag** / **Create category** to create it right there. Up to 10 names in each list, each up to 40 characters, and at least one name in total. A name can't be both added and removed in the same step ([AVX-3292](https://docs.theavoxai.com/error-codes/avx-3292)). - **Create a missing tag or category when this runs** - on by default. If a name in the step doesn't exist when the automation runs (for example it was deleted), it's created then. Turn it off to only use tags and categories that already exist; missing ones are skipped. Tags and categories are saved on the contact in Avox and never sent to the customer. A tag the contact didn't already have can start a **Tag added** automation - see [Triggers](https://docs.theavoxai.com/automation/triggers#tag-added). ### Set contact field "Saves a value (or their reply) to a contact field - free." - **The field** - **A custom field** (name it with lowercase letters, numbers and underscores, starting with a letter, for example `order_number`) or one of the profile fields: **Gender**, **Birthday**, **Age range**, **City**, **Country**. - **The value** - **Set it to a value** (a fixed value you type or pick), or **Use the customer's latest reply** (the message that started the automation, or the reply a waiting step received). Profile fields only take the values the contact profile allows: gender and age range from their lists, a birthday as a date, a country as a 2-letter code like `IN`, a city up to 80 characters. Setting a birthday clears the age range, and the other way round. When the value comes from a reply that doesn't fit (for example "maybe" for gender), nothing is saved and the automation carries on. ### Add a note "Adds a private team note to the contact - free." - **The note** - required, up to 2000 characters. Use `{{reply}}` for the customer's message, for example `Asked about bulk pricing: {{reply}}`. The note appears in the contact's notes on their [profile](https://docs.theavoxai.com/contacts), with **Automation** as the author. Notes are never sent to the customer. ### Tables & apps Steps that read and write your [tables](https://docs.theavoxai.com/tables) or use a connected app. None of them sends a WhatsApp message, so they're all free. - **Find a row** - "Looks up a row in a table and keeps its values for the next steps." Pick the table and the rules (like **Order number** is `{{reply}}`), optionally a column to sort by, and the name its values go under (`found` to start with: later steps use `{{found.price}}`). When nothing matches, choose whether the run stops ([AVX-3619](https://docs.theavoxai.com/error-codes/avx-3619)) or carries on, so a condition can answer "I couldn't find that order". - **Add a row** - fills each column with fixed text, a value, or both, like `Booked by {{contact.name}}`. The table's own rules still apply: required columns need a value and unique columns can't repeat one ([AVX-3600](https://docs.theavoxai.com/error-codes/avx-3600)). - **Change a row** - changes cells of the row that started the run (table triggers), a row an earlier step found or added, or a row found by your rules. - **Add to or take from a number** - counts a Number, Currency, Rating or Duration column up or down by an amount (or a value). Give it a lowest and highest value if you like, and choose what happens at the limit: hold it at the limit and carry on, or don't change it and stop the run ([AVX-3604](https://docs.theavoxai.com/error-codes/avx-3604)). Two runs counting the same row at once never lose a count. - **Delete a row** - deletes the row; it can be restored from the table for 30 days. - **Use a connected app** - **What to do** (the list below) and **With** which app. Only apps connected on **Apps** (in the sidebar, under **Connect & Monitor**; see [Apps](https://docs.theavoxai.com/connections/apps)) can be picked, and the step can't be saved until one of the right kind is connected ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)). What the app sends back, like the payment link or a record's fields, can be used in later messages (`{{payment.url}}`, `{{record.email}}`). Sheet and Airtable steps pick the base, table and fields from the app. A step that cancels, deletes or books something in the app (**Cancel a payment link**, **Cancel a video meeting**, **Cancel a booking**, **Create a return**, **Record an invoice payment**, **Delete an Airtable record**) must be confirmed with the tick in the step ([AVX-3597](https://docs.theavoxai.com/error-codes/avx-3597)). See [Google Sheets and Airtable](https://docs.theavoxai.com/automation/tables#using-a-connected-app). - **Find a row in a sheet** and **Add a row to a sheet** work with a Google Sheet or an Airtable table. - **Find Airtable records** matches a field to a value or uses a filter formula; values you put into a formula are made safe first, so a customer's answer can't change it. **Add or update an Airtable record** matches on 1 to 3 of the fields you fill in. **Add files to an Airtable record** adds files from https links. - Steps that find something (**Find a row in a sheet**, **Find Airtable records**, **Find free times**, **Look up a store order**, **Track a shipment**, **Check cash on delivery**) have **If nothing matches**: carry on with the next step (the default) or stop the run. - Steps that work with something an earlier step made take its id, like `{{payment.id}}` from **Create a payment link**, `{{meeting.id}}` from **Create a video meeting** or `{{invoice.id}}` from **Create an invoice**, or the trigger's own, like `{{app.booking_id}}` and `{{app.item_id}}` from [Something happens in an app](https://docs.theavoxai.com/automation/triggers#something-happens-in-an-app). - A step that runs again (after a crash or a lost answer) gets back the payment link or invoice it already made, never a second one. | Apps | What to do | | --- | --- | | Payments (Razorpay, Stripe, PayPal) | **Create a payment link** (with **Allow part payments** and **Least first payment** for Razorpay and PayPal, and **UPI only** for Razorpay in INR), **Check a payment** (paid, partly paid, refunded, with the amount and when it was paid), **Cancel a payment link** (stops an unpaid link; a paid one stays as it is) | | Meetings (Zoom, Google Meet, Teams) | **Create a video meeting**, **Move a video meeting** (guests get the app's update), **Cancel a video meeting** (guests get the app's cancellation) | | Calendars (Google, Outlook) | **Find free times** (the next free times inside your opening hours, up to 3, ready to offer in a message), **Block time in a calendar** | | Stores (Shopify, WooCommerce) | **Look up a store order** by its number, for a "where is my order" reply: status, payment and shipping status, total, tracking number, link and courier. "my order is #1001" works: the number is picked out of the text | | Bookings (Calendly) | **Cancel a booking**, with a reason the invitee sees | | Shipping (Shiprocket) | **Track a shipment** (by AWB number or order ID: status, the courier's own words, expected delivery, tracking link), **Check cash on delivery** (whether it's cash on delivery, the amount to collect, whether it was delivered), **Create a return** (a return pickup; a retried step never makes a second return) | | Invoices (Zoho Books) | **Add an invoicing customer** (with optional GSTIN, GST treatment and place of supply), **Create an invoice** (one line; Zoho Books works out the tax from the tax you pick), **Send an invoice** (gets its link to view and pay, or emails it from Zoho Books), **Record an invoice payment** (never recorded twice), **Check an invoice** (status, total, what's still due) | | CRM (HubSpot, Zoho CRM) | **Save to your CRM** | | Sheets (Google Sheets, Airtable) | **Find a row in a sheet**, **Add a row to a sheet** | | Airtable records | **Find**, **Get**, **Add**, **Update**, **Add or update**, **Delete**, **Add files to** or **Comment on** an Airtable record | Every table and app step also lets you choose what happens when something goes wrong (a full table, an archived table, an app that says no): stop the run, or carry on with the next step. The full guide, with every option and the values each step gives back, is on [Tables and Flows](https://docs.theavoxai.com/automation/tables#steps). ### Condition "Branches - continue one way if it matches, another way if not." - **What it checks** - pick one: | Option | Matches when | | --- | --- | | **Message contains keywords** | The message contains the keywords - all of them (**AND**) or any one (**OR**). The original check. | | **Reply is exactly** | The whole reply is one of the values, ignoring capitals, spaces and a final `.` `!` or `?` - "Yes!" matches "yes". | | **Reply mentions any of** | One of the values appears as a whole word or phrase - "refund" matches "can I get a refund" but "fun" doesn't. | | **Customer tapped a button** | The customer tapped one of the picked buttons. Pick from the buttons this automation sends (Ask a question answer buttons, Quick reply buttons). | | **Customer replied** | The customer replied before the wait ended. | | **No reply before the wait ended** | The wait ran out without a reply. | | **Compare values (a row, a Flow answer...)** | Up to 10 checks on [values](#values-in-your-steps), like `{{found.status}}` is `Shipped` or `{{row.date}}` is `today`. Numbers compare as numbers, dates as dates (with `today` and `now`), and text ignores capital letters. | - **Values** - for the first four options, at least one keyword, value or button; for Compare values, at least one check. - **else** and **backup** branches - optional paths for when the check doesn't match. A condition checks the customer's latest message: the one that started the automation, or the reply a **Wait for reply** or **Ask a question** step received (**Compare values** checks its values instead, so it also works in automations started by a row or a Flow). On a match, the chain continues; on a miss it follows the else branch, or stops if there isn't one. A Tag added automation has no incoming message to check until it waits for a reply. The full guide is on [Builder](https://docs.theavoxai.com/automation/builder#conditions-and-branches). ### Wait for reply "Pauses until the customer replies (or the wait runs out, up to 23 hours)." - **Wait up to** - 1 to 1380 minutes (23 hours), 60 to start with. Required ([AVX-3170](https://docs.theavoxai.com/error-codes/avx-3170)). The automation stops at this step until the customer sends their next message. That message becomes the reply the next condition checks, and it doesn't start any other automation. If the wait runs out first, the automation carries on without a reply - put a condition set to **No reply before the wait ended** after it to handle that. A wait also ends early, about 10 minutes before WhatsApp's [24-hour window](https://docs.theavoxai.com/whatsapp/messaging-window) from the customer's last message closes, so a follow-up can still be sent. ### Delay "Pauses for a set time (1 minute to 23 hours) without waiting for a reply." - **Pause for** - 1 to 1380 minutes (23 hours), 30 to start with ([AVX-3290](https://docs.theavoxai.com/error-codes/avx-3290)). The automation pauses, then carries on with the next step. Unlike Wait for reply, a message from the customer during the delay doesn't end it early, and isn't treated as an answer - it can start other automations as usual. The next condition still checks the message that started the automation. A delay counts toward the 10 pausing steps an automation can have. A delay isn't cut short by WhatsApp's [24-hour window](https://docs.theavoxai.com/whatsapp/messaging-window): it always runs its full time, and several delays in a row can carry a run on for days. Once 24 hours have passed since the customer's last message, only an approved [template](#send-a-template) can be sent; any other message after the delay is skipped ([AVX-3608](https://docs.theavoxai.com/error-codes/avx-3608)). So for a follow-up the next day or later, put a **Send a template** step after the delay. ### Stop "Ends the automation here." Nothing to configure. Nothing after a Stop step runs on that path, and the canvas draws no connection out of it. Useful at the end of a branch, so it can't run on into the next step. ### Notify the team "A bell notification for your team, with an optional email to Admins - free." - **Title** ("Title, e.g. VIP customer waiting") - required, up to 80 characters. - **The message** - required, up to 500 characters. Use `{{reply}}` for the customer's message. - **Also email the Admins** - off by default. When on, every Admin of the Switchboard also gets an email with the message and a link to the contact. The notification appears in the bell for everyone in the Switchboard, starts with the contact's name, and opens their profile. To avoid spam, one automation sends at most 20 notifications an hour, and at most one email per Admin every 15 minutes; past that, the step is skipped quietly. ### Send to webhook "Posts the contact and their message to your own URL, like a CRM - free." - **The URL** - required, a public `https://` address ([AVX-3293](https://docs.theavoxai.com/error-codes/avx-3293)). When the step runs, Avox sends a `POST` with a JSON body: ```json { "id": "evt_8f2c...", "type": "automation.webhook", "created_at": "2026-10-11T10:00:00.000Z", "data": { "automation": { "id": "…", "name": "Lead to CRM" }, "connection_id": "…", "contact": { "id": "…", "name": "Rahul Mehta", "phone": "919820012345", "tags": ["vip"], "fields": { "email": "rahul@example.com" } }, "message": { "id": "wamid.…", "text": "I'd like a demo", "button_id": null } } } ``` `message` is `null` after a wait that ended without a reply. The headers are `Avox-Event-Id`, `Avox-Event-Type: automation.webhook` and, when the number the customer wrote to has [message forwarding](https://docs.theavoxai.com/connections/webhook-override) set up, `Avox-Signature` - signed with that number's forwarding secret, exactly like forwarded messages, so you can check it the same way. Without forwarding set up, the request is sent **unsigned** and the builder shows a warning. - Only public addresses are called: local, private and cloud-internal addresses are refused, and redirects aren't followed. - Your endpoint has 5 seconds to answer with a `2xx` status. A timeout, a network error, a `5xx` or a `429` is retried once; anything else isn't. - Your endpoint's response body is ignored. - One automation sends at most 30 webhook requests a minute. - A failed request appears on the [Logs](https://docs.theavoxai.com/logs) page, and the automation carries on. ### Conversations that wait An automation with a Wait for reply, Ask a question or Delay step can hold a real back-and-forth: - **One at a time** - while an automation is waiting for (or delaying with) a contact, the same automation can't start again for that contact. If a contact has several automations waiting for a reply, their next message answers the one that asked most recently. - **Editing ends waiting conversations** - turning the automation off or changing its steps ends any conversation it was waiting on, so nobody gets a reply to a question you've since changed. - **Limits** - at most 10 pausing steps per automation ([AVX-3172](https://docs.theavoxai.com/error-codes/avx-3172)), and a conversation that loops back to an earlier question stops after 12 waits or 60 steps. - **Credits** - waiting is free; every message sent after a reply costs its normal credits, and the conversation stops if credits run out. - **Paths end where the canvas ends them** - a path that runs into a step that's only reached through a branch ends there, exactly as the canvas draws it. The premade **Lead qualifier**, **Appointment confirm or reschedule**, **Feedback with follow-up**, **Re-engagement with a template**, **Out of hours away message** and **Lead to CRM via webhook** automations are ready-made examples - see [Builder](https://docs.theavoxai.com/automation/builder). ### When a send is skipped - **Out of credits** - when the next send would cost more credits than remain, the chain stops at that point. Actions before it have already run. See [Credits](https://docs.theavoxai.com/automation/credits). - **Flow or template no longer available** - the action is skipped and the chain continues. - **Meta refuses the message** - for example a media file that's too large or can't be downloaded. The action is skipped, no credit is spent, and the chain continues. - **The 24-hour window has closed** - only a **Send a template** action can still send; any other message (including media, locations, contact cards, link buttons and call requests) is skipped and the chain continues. - **Calling is off** - a **Request a call** step is skipped when the number doesn't have calling turned on. - **A value is missing** - a message that needs a value the run doesn't have, with no fallback, isn't sent and the run stops ([AVX-3606](https://docs.theavoxai.com/error-codes/avx-3606)). - **Nobody to message** - a run started by a row with no contact or phone stops at its first message ([AVX-3607](https://docs.theavoxai.com/error-codes/avx-3607)); its table, app and team steps before that still run. Each run's steps, and the reason it stopped, are in the automation's [run log](https://docs.theavoxai.com/automation/run-log). Every send an automation makes appears in the contact's conversation in the [Inbox](https://docs.theavoxai.com/inbox), next to your team's own replies. --- ## Tables and Flows URL: https://docs.theavoxai.com/automation/tables Section: Flows and automation Automations can do more than answer messages. They can start when a row is added to one of your [tables](https://docs.theavoxai.com/tables), an hour before a booking, or when a customer submits a Flow. Their steps can find, add and change rows, count seats down, make a payment link in a connected app, and put any of those values into the messages they send. A few examples of what this makes possible: - A confirmation the moment a booking lands in your Appointments table, and a reminder a day before. - An order status update every time you change an order's Status in the grid. - A price that's always current, looked up in your price list when a customer asks. - An alert to your team when stock drops to its reorder level, sent once per drop. - A seat booked for an event, with a waitlist when it's full. Everything here is built in the same [builder](https://docs.theavoxai.com/automation/builder) as any other automation, and runs with the same rules: [credits](https://docs.theavoxai.com/automation/credits), your plan, a paused Switchboard and the [24-hour window](https://docs.theavoxai.com/whatsapp/messaging-window). ### Triggers Pick one of these as the automation's trigger. The first six watch a table; the last one watches a Flow. #### Who the automation messages A Flow submitted trigger always has a contact: the customer who sent the answers. A table trigger gets its contact from the row. Pick the row's **contact** or **phone** column on the trigger, and optionally the WhatsApp number to send from (by default, the number the contact last talked to, else your first connected number). If the row has no contact or phone, the run still happens, but it can only use table, app and team steps. A message step stops it with [AVX-3607](https://docs.theavoxai.com/error-codes/avx-3607). #### Rules on the row Every table trigger can check the row before it runs, with up to 10 rules joined by **all** or **any**. Each rule takes a column and one of: . - Numbers compare as numbers, so `10` is more than `9`, and `₹1,299` counts as 1299. - Dates compare as dates. Type a date like `2026-11-02`, or `today` or `now`. - Text ignores capital letters and the spaces at the ends. A choice column compares its label. #### Row changed and Row matches **Row changed** runs on every change of the row. Pick the columns to watch, and it runs only when one of them changes, like an order's **Status**. **Row matches** runs once, at the moment a row starts to match your rules, like **Stock** at or below **Reorder at**. It doesn't run again while the row keeps matching, only after it stops matching and then matches again. That's what keeps a low stock alert to one per drop. #### Booking made and Booking cancelled Booking triggers work on calendar tables, like the premade **Appointments**. Pick the status column and the values that mean cancelled (for example `Cancelled`). **Booking made** skips a booking that's added already cancelled; **Booking cancelled** runs when the status changes to one of your cancelled values, and, if you choose, when the booking is deleted. #### Date in a row **Date in a row** runs before, on or after a date in each row: a reminder an hour before an appointment, a follow-up on the day you set, or a message every year on a birthday. | Setting | What it does | | --- | --- | | **Date column** | A date, or a date and time. With a date only, pick a time column too, or a fixed time of day (09:00 if you don't). | | **When** | On the date, or up to 60 days before or after it, in minutes, hours or days. | | **Time zone** | The time zone your dates are in. Every time zone in the world is supported. | | **Every year** | For a date column: run every year on that day, like a birthday or a membership anniversary. A 29 February date runs on 28 February in other years. | A few rules keep reminders on time and never confusing: - **Whole days keep the time of day.** "1 day before" a 10:00 appointment goes at 10:00 the day before, even when the clocks change in between. - **Late reminders are skipped, not sent out of time.** Avox checks every minute. If a reminder couldn't go at its moment, it may still go within half the time before the date (between 15 minutes and 6 hours), or within 6 hours for a message on or after the date. Later than that, it's skipped. - **No late message for a new row.** A booking added less than an hour ahead doesn't get an "an hour before" reminder, and a row changed after its moment isn't sent one either. - **Moving a booking gives it a new reminder.** Each automation runs once per row and moment, so changing the booking's time schedules a fresh reminder for the new time. #### Flow submitted **Flow submitted** runs when a customer submits the Flow you pick, once per submission. Their answers are available as `{{flow.}}` in every step. This is the only way a submitted Flow starts an automation: other triggers, like a keyword, never fire on a Flow's answers. #### How changes reach your automations Every change to a table an automation watches is queued, from anywhere: the grid, an import, the API, a Flow, or another automation. Avox works through the queue every 10 seconds and retries anything that fails after 10 seconds, 1 minute, 5 minutes and 30 minutes. - A row changed several times before it was handled counts once, with its latest values. - Each change starts each automation once. - An automation never starts from its own change, and a chain of automations starting each other stops after three in a row ([AVX-3612](https://docs.theavoxai.com/error-codes/avx-3612)). ### Steps These steps work with tables and connected apps. None of them sends a WhatsApp message, so none of them costs credits. #### Finding the row **Change a row**, **Add to or take from a number** and **Delete a row** each work on one row: - **The row that started the run** (table triggers only). - **A row an earlier step found or added**, by that step's name. - **A row found by your rules**, like **Order number** is `{{reply}}`. **Find a row** looks up the first row that matches all your rules, sorted by a column if you choose. When nothing matches, the step either **stops the run** ([AVX-3619](https://docs.theavoxai.com/error-codes/avx-3619)) or **carries on with the next step**, so a [Condition](https://docs.theavoxai.com/automation/actions) can answer "I couldn't find that order". Every table and app step has the same choice for anything else that goes wrong, like a full table. #### Writing cells **Add a row** and **Change a row** fill each column with fixed text, a value, or both, like `Booked by {{contact.name}}`. A cell that's exactly one value, like `{{row.price}}`, keeps its type, so a number stays a number and a date stays a date. The table's own rules still apply: a required column needs a value, and a unique column can't repeat one ([AVX-3600](https://docs.theavoxai.com/error-codes/avx-3600)). #### Counting up and down **Add to or take from a number** works on a Number, Currency, Rating or Duration column. An empty cell counts as 0. Give it a lowest and highest value if you like, and choose what happens at the limit: - **Hold it at the limit and carry on:** the number stays at the lowest or highest value and the run goes on. - **Don't change it, stop the run:** the number is left as it was and the run stops ([AVX-3604](https://docs.theavoxai.com/error-codes/avx-3604)). Use this when going past the limit means something is wrong, like a seat count below zero. Two runs counting the same row at the same moment never lose a count. #### Using a connected app **Use a connected app** asks an app connected on the [Apps](https://docs.theavoxai.com/connections/apps) page to do one thing. You pick what to do; Avox uses whichever connected app does it. Fill each detail with fixed text or values, like an amount of `{{found.price}}`. Amounts are written in normal units, like `499` or `499.50`. If no app of the right kind is connected, the step can't be saved ([AVX-3596](https://docs.theavoxai.com/error-codes/avx-3596)); if the app says no while running, the step stops the run or carries on, as you choose ([AVX-3605](https://docs.theavoxai.com/error-codes/avx-3605)). ##### Google Sheets and Airtable Sheet and Airtable steps work with a connected [Google](https://docs.theavoxai.com/connections/apps/meetings-and-calendars#google) account (with Sheets allowed) or [Airtable](https://docs.theavoxai.com/connections/apps/crm-and-sheets#airtable). - **Find a row in a sheet** reads the sheet's tab (its first row holds the column names) and keeps the first row whose column matches your value, upper or lower case alike. Later steps use its columns by name: a column called First Name is `{{sheet.first_name}}`. Pointed at Airtable, the "sheet" is a base and a table. - **Add a row to a sheet** adds a row after the last filled one, with a value for each column in order. Paste the spreadsheet's link, type the tab's name and click **Read the column names** to line the values up with your columns. - **Airtable steps** pick the base (or use the app's default base), the table, a view and fields straight from Airtable. If Avox can't read your base, type the names instead. - **Find Airtable records** matches a field to a value, or uses a filter formula like `{Status} = 'Open'`. Values you insert into a formula are made safe, so a customer's answer can't change it. Later steps use the first record's fields, `{{records.count}}` and `{{records.id}}`. - **Get**, **Update**, **Delete**, **Add files** and **Comment** work on one record: use the id an earlier step found or added, like `{{records.id}}`. - **Add an Airtable record** and **Update an Airtable record** fill the fields you pick. A value the run doesn't have leaves its field as it is. - **Add or update an Airtable record** matches on 1 to 3 of the fields you fill in, like Email: the record with the same values is updated, or a new one is added. Fill those fields in every time. - **Delete an Airtable record** asks you to confirm in the step before it can be switched on ([AVX-3597](https://docs.theavoxai.com/error-codes/avx-3597)). Airtable keeps deleted records in the base's trash for a while. - **Comment on an Airtable record** needs the token's comment permission. - A find that matches nothing carries on with `found` set to `no`, or stops the run, as you choose in **If nothing matches** ([AVX-3619](https://docs.theavoxai.com/error-codes/avx-3619)). - Airtable takes 5 requests a second per base; Avox spaces its calls out. Each run's step shows the table, the record id or how many matched in the [run log](https://docs.theavoxai.com/automation/run-log), never the record's own values. From a **Flow submitted** trigger, put the answers straight into a record: fill each field with `{{flow.}}`, like Email with `{{flow.email}}`. The premade **Save Flow answers to Airtable** does exactly that. ### Values Every message, template variable, table cell and app detail can use values written as `{{group.key}}`. Click **Insert a value** next to a text box to pick one instead of typing it. | Group | What it holds | Available | | --- | --- | --- | | `{{reply}}` | The customer's latest reply. | Always | | `{{contact.}}` | , and your custom contact fields. | Runs with a contact | | `{{row.}}` | The row that started the run, by the column's API name. | Table triggers | | `{{old.}}` | The row before the change, like the old status. | Row changed, Row matches, Booking cancelled | | `{{flow.}}` | The customer's Flow answers. | Flow submitted | | `{{.}}` | What an earlier Find a row, Add a row or app step found or got back, under the name you gave the step. | After that step | - Values read the way a customer would: choices by their label, money with its currency, dates written out in the trigger's time zone. - Only earlier steps' values can be used. A value from a later step, or a misspelt name, can't be saved ([AVX-3594](https://docs.theavoxai.com/error-codes/avx-3594)). - Give a value a fallback after `|`: `Hi {{contact.first_name|there}}` says "Hi there" when the name is empty. - A message that needs a value the run doesn't have, with no fallback, isn't sent, and the run stops ([AVX-3606](https://docs.theavoxai.com/error-codes/avx-3606)). Avox never sends a message with a hole in it. #### Comparing values A **Condition** step can **Compare values (a row, a Flow answer...)**: up to 10 checks like `{{found.status}}` is `Shipped`, or `{{row.date}}` is `today`. Numbers compare as numbers, dates as dates (with `today` and `now`), and text ignores capital letters. #### Filling a template A **Send a template** step fills every variable of the template, in the header, the body and the end of a link button, with fixed text or values. Each variable needs something, or a fallback ([AVX-3595](https://docs.theavoxai.com/error-codes/avx-3595)). The examples Meta reviewed stay as they are; only the real sends change. The template's page shows which automations fill it, and from which tables, in **Filled in by automations** (see [Template send log](https://docs.theavoxai.com/templates/send-log)). ### Credits Only messages cost credits, the same as always: a text 1, buttons or a list 2, a Flow 3, a template 1. Table steps, app steps, conditions and waits are free, whatever values they use. A run that runs out of credits stops before the next message ([AVX-3610](https://docs.theavoxai.com/error-codes/avx-3610)). See [Credits](https://docs.theavoxai.com/automation/credits) and each automation's [credit usage](https://docs.theavoxai.com/automation/run-log#credit-usage). ### Premade automations These premades use tables. Each one works with a table made from a [premade table](https://docs.theavoxai.com/tables/premade), like **Appointments** or **Order status**; if you don't have it yet, its card says so, with a link to make it. Credits are the most one run can cost. | Premade | What it does | Credits per run | | --- | --- | --- | | **Booking confirmation from your calendar** | Confirms each new booking in Appointments with a template. | 1 | | **Reminder a day before each booking** | Reminds the customer a day before, at the booking's time, with Confirm and Reschedule buttons. Confirm marks the row Confirmed. | 2 | | **Reminder an hour before each booking** | A short reminder an hour before. Cancelled bookings are skipped. | 1 | | **Booking cancelled message** | Tells the customer when a booking's status changes to Cancelled, and tells your team. | 1 | | **Change or cancel a booking** | Finds the customer's booking by its number, then cancels it or asks for a new time. | 5 | | **Payment link after a booking** | Looks up the service's price and sends a payment link from your payments app. | 1 | | **Feedback after a visit** | When a booking is marked Completed, asks for a rating and saves it in a Feedback table. | 2 | | **Order status lookup** | Asks for the order number and replies with its status and tracking link. | 2 | | **Order status updates from your orders table** | Sends a template every time an order's Status changes. | 1 | | **Price lookup from your price list** | Asks which item and replies with its current price. | 2 | | **Event seats with a waitlist** | Books a seat and counts it, or puts the customer on the waitlist when it's full. | 2 | | **Low stock alert** | Tells your team once when an item drops to its reorder level. | 0 | | **Lead follow-up on the day you set** | Sends a follow-up template on each lead's date and moves them to Contacted. | 1 | | **Membership anniversary** | A thank-you template every year on the day each member joined. | 1 | | **Add new leads to Google Sheets** | Adds a row to your Google Sheet for every lead added to your Leads table. Needs a spreadsheet app connected. | 0 | | **Save Flow answers to Airtable** | When a customer submits a Flow, adds their answers as an Airtable record and thanks them. Needs Airtable connected. | 1 | | **Save ad chats to a table** | Adds a row to your Chats from ads table for every chat a click-to-WhatsApp ad starts: who, which ad, its link and campaign. | 0 | The templates these premades send are in the Avox [template library](https://docs.theavoxai.com/templates/library), ready to submit to Meta. ### When something changes in the table Automations keep columns by their id, so renaming a column, the table or its API name never breaks them. Deleting a column they use, changing its type, or archiving a table they write to marks them **Needs attention** on the table's [Used by](https://docs.theavoxai.com/tables/analytics#used-by) tab, and the automation shows what to fix ([AVX-3589](https://docs.theavoxai.com/error-codes/avx-3589), [AVX-3590](https://docs.theavoxai.com/error-codes/avx-3590)). Archived tables can still be read, so a lookup keeps working. Every run, and the exact reason one stopped, is in the automation's [run log](https://docs.theavoxai.com/automation/run-log). ### Related --- ## Run log URL: https://docs.theavoxai.com/automation/run-log Section: Flows and automation Every automation keeps a log of each time it ran: who it ran for, what started it, every step it took, and the exact reason it stopped if it didn't finish. Next to it, **Credit usage** shows what the automation costs, step by step, and what it will likely cost next month. Open an automation from the **Automation** page. Below its steps you'll find three panels: **How it's running**, **Run log** and **Credit usage**. Anyone who can view automations can see them. ### How it's running Pick the last 7, 30 or 90 days. | Part | What it shows | | --- | --- | | **Runs**, **Completion rate**, **Stopped or failed**, **Credits used** | Totals for the period. The completion rate counts completed runs out of the runs that ended, so runs still waiting don't pull it down. | | **Runs per day** | Each day's runs, with how many completed and failed. | | **Credits per day** | The credits its messages used each day. | | **Where runs stop or fail** | The steps where runs end early, with the reason and how often. Start here when an automation isn't doing what you expect. | ### Run log The run log lists every run, newest first, 25 to a page: | Column | What it shows | | --- | --- | | **Contact** | Who the run was for. Click the name to open the contact. A run started by a row with no contact shows **No contact**. | | **Started** | When it started, in your time. | | **Trigger** | What started it, in words, like "Row added to Appointments" or "Keyword: book". | | **Outcome** | Where the run is or how it ended (below), with the reason when it didn't finish. | | **Credits** | Credits the run used. | | **Steps** | How many steps it took. | Above the list, pick a date range (up to 366 days, counted in your own time zone) and an outcome to show only those runs. The tiles above it (**Runs**, **Completed**, **Stopped or failed**, **Completion rate**, **Credits used**) count the runs in that range. **Download CSV** saves them. #### A run, step by step Click a run to open **Run details**: what started it, the values it started with (the row's cells or the Flow's answers), and a timeline of every step: - what the step did, in words, like "Sent template booking_confirmation" or "Found a row in Order status", - the credits it used, if any, - for a message, its latest status from WhatsApp (sent, delivered, read or failed), and when it failed, WhatsApp's reason in plain words, - for a table step, the table and the row it read or wrote, - the values it used or got back, and - the reason and code when it stopped there. A Condition that took the other path shows **Took the other path**; a step that wasn't needed shows **Skipped**. #### Why a run stopped When a run ends early, the log gives the reason in plain words and its code. Click the code for what it means and what to do. A run that was already handled for a change shows "Already ran for this change, so it didn't run again." Nothing is wrong: each row change and each date reminder runs once. #### Privacy in the log - A contact without a name is shown by the last four digits of their number, like `•••• 3210`, and phone numbers in the CSV file are written the same way. - A row's contact cell isn't copied into the log. - The CSV file is safe to open in Excel or Google Sheets: a cell that starts like a formula is written as plain text. A download holds up to 10,000 runs; pick a shorter range for more. ### Credit usage Only messages the automation sends cost credits. Table steps, app steps, conditions and waits are free. **Credit usage** shows: | Part | What it shows | | --- | --- | | **This period** | Credits used in the current credit period, with its dates. | | **All time** | Credits used since the automation was made. | | **Per run, on average** | This period's credits divided by its runs. | | **Share of your credits** | This automation's part of everything the Switchboard can spend this period: the plan's credits plus any rolled over. | | **Last 30 days** | A chart of the credits used each day. | | **Steps that cost credits** | Each kind of message step, with its credits and its average per run. | | **Next month** | About how many credits it will use next month at the pace of the last 30 days, or "Not enough use yet to estimate next month." | The **Automation** page also has a **Credits** column for every automation, this credit period (or the last 30 days without one), so you can sort to find the ones that cost the most. Nothing about charging has changed; see [Credits](https://docs.theavoxai.com/automation/credits). ### Related errors | Code | Message | | --- | --- | | [AVX-3580](https://docs.theavoxai.com/error-codes/avx-3580) | Run logs aren't switched on yet. Try again later. | | [AVX-3581](https://docs.theavoxai.com/error-codes/avx-3581) | Couldn't load this automation's runs. Try again. | | [AVX-3582](https://docs.theavoxai.com/error-codes/avx-3582) | Couldn't find that run. It may have been removed. | | [AVX-3583](https://docs.theavoxai.com/error-codes/avx-3583) | Couldn't download the runs. Try again. | | [AVX-3584](https://docs.theavoxai.com/error-codes/avx-3584) | Pick a date range of up to 366 days, with the start before the end. | | [AVX-3585](https://docs.theavoxai.com/error-codes/avx-3585) | Couldn't load this automation's credit usage. Try again. | ### Related --- ## Credits URL: https://docs.theavoxai.com/automation/credits Section: Flows and automation Every message an automation sends spends **automation credits**, also called **Avox AI credits** on plan offers and in your payment history. Each Switchboard gets a credit grant from its plan, and the grant renews on a set schedule. Credits are separate from your plan's automation **count** limit, and separate from what Meta charges for messages (see [Pricing](https://docs.theavoxai.com/whatsapp-platform)). ### What each action costs | Action | Credits per send | | --- | --- | | Text reply | 1 | | Send an image | 1 | | Send a template | 1 | | Quick reply buttons | 2 | | Dropdown list | 2 | | Use Flows | 3 | | Mark as read | Free | | Tags & categories (was Tag contact) | Free | | Condition | Free | | Find a row, Add a row, Change a row, Add to or take from a number, Delete a row | Free | | Use a connected app (payment link, meeting, calendar block, CRM contact) | Free | Every action and its cost is on [Actions](https://docs.theavoxai.com/automation/actions#at-a-glance). - Credits are spent only when Meta accepts the message. A send Meta refuses costs nothing. - Checking triggers and conditions is always free. - Table steps and app steps never send a WhatsApp message, so they cost nothing, whatever values they use. - A message costs the same whatever it's filled with: a template is 1 credit whether its variables come from a table row, a Flow's answers or a payment link. - The conversation preview on the canvas and the **Preview** tab never send anything, so they cost nothing. ### How many credits you get Your grant depends on your plan **and** how you pay for it. The live numbers for every plan and billing cycle are on [Plans](https://docs.theavoxai.com/plans) and on each plan's pricing card. | Billing option | Credit grant | Renews | | --- | --- | --- | | **Monthly** | Your plan's monthly credits. | Every month, on the day of the month you subscribed. | | **Yearly** (a 12-month commitment, paid monthly) | Your plan's larger committed monthly credits. | Every month, on the day of the month you subscribed. | | **One-time** (the whole year paid upfront) | One grant for the whole year. | The one grant covers the whole paid year. | - A credit period starts on your subscription's purchase date, not the 1st of the month. A subscription bought on the 15th renews its credits on the 15th. When the month has no such day (for example the 31st in a 30-day month), it renews on the month's last day. - Unused plan credits roll over into the next period when your plan renews - see [Credits that roll over](#credits-that-roll-over). Credits you buy are different - see [Buying more credits](#buying-more-credits). - A new period's credits are granted while the subscription is active. While a payment is overdue, automations keep using what's left in the current period. ### Credits that roll over When your plan **renews**, the plan credits you didn't use move into the new period, on top of its full grant. For example, on Business with Monthly billing (4,000 credits a month), finishing a month with 1,500 unused gives you those 1,500 rolled-over credits on top of the new 4,000. - **Your plan's rule.** On the standard plans, all unused plan credits roll over. Some plans may set a limit. **Settings > Usage** and **Billing > Buy credits** show your plan's rule in plain words, for example "All unused plan credits roll over when your plan renews, lasting 1 month." - **Only when the plan renews.** If your plan is cancelled, expires, or its renewal payment fails, the unused plan credits are lost when the period ends. Credits you bought keep their own 12 months either way. - **They're used first.** Automations spend rolled-over credits before the new period's plan credits, then any credits you bought. - **They don't last forever.** Rolled-over credits last for a set time from the end of the period they came from (usually one month), then expire. They never roll over a second time. - **Your own limit still applies.** A monthly credit limit on **Settings > Switchboard** caps everything spent in a period, rolled-over credits included. - When credits roll over you get a dashboard notice saying how many, and an email if you get tips and reminders. #### Keep your credits: renewal reminders If your plan might not renew - it's set to cancel, a payment didn't go through, or a plan paid upfront is ending - and you have unused credits that would roll over, we remind you 3 days before the period ends and again on its last day. The reminder says how many credits you'd keep and has a **Renew my plan** button. Sometimes it includes a code for money off your renewal (for example **GET10** for 10% off); enter it at checkout. #### Credits history **Settings > Usage** and **Billing > Buy credits** have a **Credits history** table with a small chart. For each period it shows your plan credits, what rolled in, what you used (and how much of it came from rolled-over or bought credits), what rolled over to the next period, what expired unused, and the credits you bought. A period whose unused credits were lost because the plan didn't renew says **Lost: plan didn't renew**. #### Extra credits from the Avox team - The Avox team can raise your monthly credits for a while. When they have, the credits tile adds a line showing your new monthly amount followed by "includes extra credits from Avox", with "until" and the end date when the extra credits are time-limited. - The Avox team can also add or remove credits in your current period. Each change appears in your payment history on [Billing](https://docs.theavoxai.com/billing) as **Avox AI credits adjusted**. ### Checking your balance At the top of the **Automation** page, the **Automation credits** card shows a bar of credits used, then **Used** (out of this period's credits), **Remaining**, and **Resets on** with the date. Members who can manage billing also see **Top up** ([buy a credit pack](#buying-more-credits)) and **Upgrade** ([Change plan](https://docs.theavoxai.com/billing/change-plan)); anyone else sees "Need more? Ask an Admin to top up credits or upgrade the plan." when credits run low. Below it, the **Credits used** tile in **Overview** shows: - a meter of credits used out of your grant; - credits used and granted, followed by the reset date, for example "· resets Nov 15"; - **Recent usage** - click it to list your 10 latest spends, such as "Send text -1 · 5m ago". **Hide recent usage** closes the list. When the balance runs out, the meter turns amber and reads "This period's automation credits are used up - automated replies are paused until they reset." If the balance can't load you see [AVX-3075](https://docs.theavoxai.com/error-codes/avx-3075). To see what each automation costs, see [Credits per automation](#credits-per-automation). ### Credits per automation Every automation, premade or your own, shows the credits it uses: - **On the Automation page** - the **Credits** column in **Your automations** shows what each one used this credit period (or the last 30 days without one). Sort by **Most credits** to find the ones that cost the most. - **On its Manage page** - the **Credit usage** panel shows **This period**, **All time**, **Per run, on average**, **Share of your credits** (of everything the Switchboard can spend this period, plan and rolled-over credits), a **Last 30 days** chart, **Steps that cost credits** (each message step with its credits and average per run), and **Next month**: an estimate at the pace of the last 30 days, or "Not enough use yet to estimate next month." - **Before you turn one on** - each premade's card shows the most one run can cost, like "Up to 2 credits a run", or "Free to run". See [Premade automations](https://docs.theavoxai.com/automation#premade-automations). The panel only shows what's already counted: nothing about how credits are charged changes. See [Run log and credit usage](https://docs.theavoxai.com/automation/run-log#credit-usage). ### When credits run out - Automations stop sending messages until the next period starts ([AVX-3076](https://docs.theavoxai.com/error-codes/avx-3076)). Nothing is queued up to send later. - If a chain runs out partway, it stops at the first send it can't afford. Actions before that point have already run. The automation's [run log](https://docs.theavoxai.com/automation/run-log) says "Automation credits ran out, so the run stopped." ([AVX-3610](https://docs.theavoxai.com/error-codes/avx-3610)). - **Mark as read**, **Tags & categories**, table steps and app steps cost nothing, so they still run whenever the chain reaches them before that stopping point. Put them first in a chain if they must always happen. - You can still create, edit, and switch automations on and off. - Sending resumes automatically when the next period's credits are granted, or straight away when you [buy more credits](#buying-more-credits). To get more credits sooner, buy a credit pack, or move to a larger plan or a billing cycle with a larger grant - see [Change plan](https://docs.theavoxai.com/billing/change-plan). ### Buying more credits When your plan's credits aren't enough, you can buy a **credit pack**: a one-time payment that adds extra credits to the Switchboard you're in. Open it from **Top up** on the **Automation** page's credits summary, from **Top up** on **Settings > Usage**, or from **Buy credits** on the [Billing](https://docs.theavoxai.com/billing) page. **Upgrade** next to it opens [Change plan](https://docs.theavoxai.com/billing/change-plan) instead, for when you need more credits every month. **Billing > Buy credits** lists the packs on sale, with the number of credits, the price in US dollars, and the price per credit. Indian accounts also see an estimate in rupees. Pick one and click **Continue**. The summary shows the pack, the credits, the date they're usable until, and what you pay today. Click **Change pack** to go back. Approve the payment in PayPal's window. It's a single payment - nothing renews. If you haven't allowed **Third-party integrations** in the cookie banner yet, click **Allow PayPal to load and continue** first. As soon as PayPal confirms the payment the credits are added and your automations can use them. You get a dashboard notice, a **Credits purchased** receipt email, and an invoice on [Billing](https://docs.theavoxai.com/billing/invoices). The payment shows in your payment history as **Automation credits bought**. If PayPal is still clearing the payment, the page says so and the credits are added as soon as it clears - we email you when they are. #### Top-up prices depend on your plan A pack's price can depend on your plan and how you pay for it (Monthly, Yearly or One-time), so customers on bigger plans or longer commitments may pay less per credit. **Billing > Buy credits** always shows the price for your own plan, for example "Prices for your Growth plan (Yearly)", and that's exactly what you're charged. Packs are charged in US dollars; for Indian accounts the rupee figure is an estimate at the current exchange rate. #### How bought credits are used - **Your plan's credits come first.** Each period, automations spend any rolled-over credits, then your plan's credits, then the credits you bought. - **They don't reset.** Bought credits stay when your plan's credits renew. Each pack lasts **12 months** from the day you buy it; anything left after that expires. - **Oldest first.** With more than one pack, the one that expires soonest is used first. - **Your own limit still applies.** If an Admin set a monthly credit limit on **Settings > Switchboard**, it caps everything spent in a period, bought credits included. - On the Automation page and **Settings > Usage**, **Remaining** includes bought credits, with a line saying how many of them are left and when the next ones expire. **Billing > Buy credits** shows what's available now, a breakdown (rolled over from last period, this period's plan credits, bought credits, in the order they're used), the credits history, and every pack you bought. #### Who can buy credits - Buying needs the **Manage billing** permission (every Admin has it). Anyone who can only view billing sees the packs with an **Ask an Admin** note instead. - The Switchboard needs its own plan, because automations only run on a Switchboard with a plan. Without one the page says "Pick a plan first". - A **paused** Switchboard can still buy credits. Automations don't run while it's paused, so the credits wait and are used once you resume it. #### Refunds Credit packs are covered by the same [refund rules](https://docs.theavoxai.com/billing#refunds) as other payments. When a pack is refunded in full, whatever is left of its credits is removed; credits already spent stay spent. ### Setting a spending limit Switchboards on the **One-time** billing option receive one large grant for the whole year, so they can set a lower limit of their own for each credit period. An Admin sets it on **Settings > Switchboard** in the **Automation credit limit** card. Once usage reaches the limit, automations stop sending until the next period, exactly as when credits run out. See [Monthly credit limit](https://docs.theavoxai.com/automation#monthly-credit-limit). ### Frequently asked questions No. A credit is spent only after Meta accepts the message. Yes - when your plan renews, your unused plan credits move into the next period on top of its full grant, and they're used first. If the plan doesn't renew, they're lost. See [Credits that roll over](#credits-that-roll-over). Credits you buy always carry on - they last 12 months from the day you buy them, whatever happens to your plan's period. Yes. Click **Top up** on the Automation page or **Buy credits** on Billing and pay once with PayPal. See [Buying more credits](#buying-more-credits). No. Neither sends a real message. No. Finding, adding, changing, counting and deleting rows, and asking a connected app for a payment link, a meeting, a calendar block or a CRM contact, are all free. Only the messages the automation sends cost credits. Sort **Your automations** on the Automation page by **Most credits**, then open one to see its **Credit usage**. See [Credits per automation](#credits-per-automation). No. Credits measure automated sends inside Avox. Meta's own message charges are separate - see [Pricing](https://docs.theavoxai.com/whatsapp-platform). --- ## Tables URL: https://docs.theavoxai.com/tables Section: Tables A **table** is a spreadsheet that lives inside your Switchboard: typed columns and rows, edited in a grid that works like the spreadsheet apps you already know. Your services and prices, your appointments, your delivery areas, your coupon codes - anything you keep track of can be a table. What makes a table more than a spreadsheet is that the rest of Avox can use it. A Flow can show your menu from a table, check a pincode, or save a booking into it. An automation can start when a row is added or a booking is near, look up an order's status, add a lead, or count down the seats left (see [Automations with tables and Flows](https://docs.theavoxai.com/automation/tables)). Templates can fill in values from a row, and the API can read and write rows from your own systems. ### Find Tables Open **Tables** in the sidebar, under **Interactions**. The page starts with how many tables your plan allows, then **My tables**: every table in the Switchboard with its row count, when it was last edited and what uses it (as cards or a list, with search, Active and Archived filters and sorting). Your drafts follow, then a few premade tables with **See all**, which opens the **Tables library**. There are premade tables, from **Services and prices** to **Appointments**, **Delivery areas** and **Payments due** - see [Premade tables](https://docs.theavoxai.com/tables/premade). Tables needs a WhatsApp number on the Switchboard, like Flows and automations do. Until one is connected, **Tables** shows locked in the sidebar and opening it takes you to **Connections** ([AVX-3502](https://docs.theavoxai.com/error-codes/avx-3502)). Tables you made before stay saved and come back as soon as a number is connected. ### What a table is made of | Part | What it is | | --- | --- | | **Columns** | Each column has a name and a type (text, number, money, date, single choice, phone number and more). The type decides what a cell may hold, so a price is always a number and a date is always a real date. Up to 50 columns per table. See [Column types](https://docs.theavoxai.com/tables/column-types). | | **Rows** | One row per thing you keep track of: one service, one booking, one pincode. Every row gets a number of its own, shown at the left of the grid. | | **Required columns** | Must have a value in every row a Flow, automation, import or the API adds. In the grid you can leave them empty for a while; those cells are marked. | | **Unique columns** | No two rows may hold the same value, like an order number or a coupon code. Capital letters and spaces at the ends don't make two values different. | | **API name** | Each table and each column has a short API name in small letters (like `order_status`), so the API and automations can find them even after you rename them. | ### The pages of a table Open a table and you'll see four tabs, under the table's name. The arrow on the left of the name takes you back to Tables, and the **Copy** button on the right makes a copy of the table from any tab. To archive, restore or delete a table, open its **Settings** tab (**Manage this table** and **Danger zone**): | Tab | What you do there | | --- | --- | | **Data** | The grid: add, edit, paste, sort, filter and search rows, change columns, import and export. See [Editing a table](https://docs.theavoxai.com/tables/editing). | | **Analytics** | Rows over time, reads and writes by where they came from, the values looked up most, and when the table was last used. See [Analytics and used by](https://docs.theavoxai.com/tables/analytics). | | **Used by** | Every Flow, automation, template, API key and app that reads or writes this table, and anything that needs your attention. | | **Settings** | Name, description, icon and colour, the API name, how the grid looks, and copying, archiving or deleting the table. | ### Who can see and change tables Two permissions control Tables in each Switchboard: | Permission | Lets a member | | --- | --- | | **See tables** | Open tables, read their rows, see analytics and where they're used, and download them as CSV. | | **Create and edit tables** | Create tables, edit rows and columns, import, archive, copy and delete. | Admins always have both. Managers have both by default; an Admin can change that for each Manager in **Settings > Switchboard > Members**. See [Members and roles](https://docs.theavoxai.com/switchboard/members). Avox staff can also switch Tables off for one account, or only creating new tables. Then the page and every Tables request, including the [Avox API](https://docs.theavoxai.com/avox-api), are refused ([AVX-3503](https://docs.theavoxai.com/error-codes/avx-3503), [AVX-3504](https://docs.theavoxai.com/error-codes/avx-3504)). Tables you already have keep working inside your Flows and automations. Contact [Support](https://docs.theavoxai.com/support) if that happens to you. ### Plan limits Each plan allows a number of tables per Switchboard and a number of rows per table. Active and archived tables count towards the table limit; drafts don't. Deleted rows stop counting straight away. See [Plans](https://docs.theavoxai.com/plans) for each plan's table and row limits. If you need more than your plan allows, [Support](https://docs.theavoxai.com/support) can raise the tables, rows per table or daily API calls for your account. ### Archived and deleted tables - **Archived:** the table keeps every row and can still be read by Flows, automations and the API, but nothing can change it. It still counts towards your plan's tables. Restore it any time from the banner on its Data tab, its **Settings** tab, or its menu on the Tables page. - **Deleted:** the table and its rows are gone for good. Download it first if you might need it. Delete a table from the **Danger zone** on its **Settings** tab, or from its menu on the Tables page. If a Flow, automation or template uses a table, Avox shows the list before you archive or delete it, so nothing stops working by surprise. ### Related --- ## Create a table URL: https://docs.theavoxai.com/tables/create Section: Tables Creating a table takes three short steps: say what you want to keep track of, check the columns, then name it. Each step is a full page (no pop-ups). Avox AI suggests a premade table or columns from your own words, and you can always start from scratch instead. Your progress is saved as a draft as you go. You need the **Create and edit tables** permission, an active plan, and a free table place on your plan (see [Plans](https://docs.theavoxai.com/plans)). If creating tables was switched off for your account, the buttons say so ([AVX-3504](https://docs.theavoxai.com/error-codes/avx-3504)). ### Open the wizard Go to **Tables** and click **Create table**, or pick one of the premade tables on the Tables page or in the **Tables library** (**Use this table**) to open the wizard with it already chosen. The wizard has three steps, shown at the top as **Find**, **Columns** and **Name**. Describe it in your own words, like *"services I offer with prices and how long they take"*, *"pincodes we deliver to and the delivery fee"* or *"kirana ka udhar"*. While it works, the Avox Avatar shows thinking dots; then Avox AI suggests the premade tables that fit, each marked **Best match** or **Could fit**, with the words that matched. Pick one to use its columns and sample rows. Press Enter to take a **Best match** straight away. Nothing fits? Avox AI also suggests a custom table: a name taken from your words and columns for the details you mentioned (a price becomes a money column, a date a date column, a phone number a phone column, a status a single choice column, and so on). The first column is the thing each row is about: *"rental bikes with daily rent"* gives **Bike**, **Daily rent** and **Notes**. Prefer to build it yourself? Click **Start from scratch**. Want to see what's ready-made? Click **Browse premade tables**. A section opens right below the button with six premade tables, the best fits for what you typed first (tables you already made from a premade come last). Click **Use this table** on one to fill in its columns, or click **Library** to open the **Tables library** and look inside every premade table. Click **Browse premade tables** again, or press Esc inside the section, to close it. Every column is listed with its name and type. Rename columns, change their types, add or remove columns, put them in another order, and mark them **Required** or **Unique**. Choice columns get their options here. A table can have up to 50 columns. See [Column types](https://docs.theavoxai.com/tables/column-types) for what each type holds. Give the table a name (up to 80 characters), and optionally a description, an icon and a colour. For a premade table you can keep its sample rows, which helps you see how it works; delete them whenever you like. Money columns use the currency you pick here. Click **Create table** and the table opens, ready for rows. #### How Avox AI reads your words Avox AI works from rules that run in your browser: nothing you type is sent anywhere, and the same words always give the same answer. - **Synonyms and plurals:** fee, cost, rate and charge all mean a money column; *prices*, *deliveries* and *appointments* are read like *price*, *delivery* and *appointment*. - **Small typos:** *delivry* is read as *delivery* and *apointment* as *appointment*, and Avox AI tells you what it read each word as. - **Hindi-English business words:** for example *udhar*, *khata* and *baki* (money owed), *kirana* (grocery shop), *mandi* and *bhav* (market rates), *daam* (price), *tarikh* (date), *grahak* (customer) and *maal* or *godown* (stock). - **Words it doesn't know** are listed, never guessed at. If it understood only some words it says the result is a rough start; if it understood none, it offers a basic table and shows [AVX-3507](https://docs.theavoxai.com/error-codes/avx-3507). Avox AI can make mistakes. Check the columns before you create the table: you can rename, retype, add or remove any of them on the next step. ### Drafts The wizard saves your progress as you go, so you can close it and come back later. Unfinished tables appear under **Drafts** on the Tables page; open one to continue where you left off, or delete it. You can keep up to 10 drafts per Switchboard, and drafts don't count towards your plan's tables. If a draft can't be saved online for a moment, your progress is still kept in this browser. ### After you create it - Add rows by typing, pasting from a spreadsheet, or importing a CSV or Excel file. See [Editing a table](https://docs.theavoxai.com/tables/editing) and [Import and export](https://docs.theavoxai.com/tables/import-export). - Change columns any time from their header menu. - Each table gets an API name made from its name (for example `services_and_prices`), which you can change in the table's **Settings**. ### Errors you might see | Code | What to do | | --- | --- | | [AVX-3463](https://docs.theavoxai.com/error-codes/avx-3463) | Every table place on your plan is used. Delete a table, or change plan. | | [AVX-3466](https://docs.theavoxai.com/error-codes/avx-3466) | Check the table name and give every column its own name. | | [AVX-3479](https://docs.theavoxai.com/error-codes/avx-3479) | A formula column's formula can't be read. Check the column names in braces. | | [AVX-3486](https://docs.theavoxai.com/error-codes/avx-3486) | You already have 10 drafts. Finish or delete one. | | [AVX-3498](https://docs.theavoxai.com/error-codes/avx-3498) | Choose a plan, or resume a paused one, to create tables. | | [AVX-3504](https://docs.theavoxai.com/error-codes/avx-3504) | Creating tables was switched off for your account. Contact Support. | | [AVX-3506](https://docs.theavoxai.com/error-codes/avx-3506) | The link named a premade table that no longer exists. Pick one from the Tables library. | | [AVX-3507](https://docs.theavoxai.com/error-codes/avx-3507) | Avox AI didn't recognise your words. Try plainer ones, pick a premade table, or start from scratch. | ### Related --- ## Editing URL: https://docs.theavoxai.com/tables/editing Section: Tables A table's **Data** tab is a grid that works like a spreadsheet: click a cell and type, select a range with the mouse or the keyboard, copy and paste to and from Excel or Google Sheets, and right-click for every action. Changes save on their own as you go. Nothing opens over the grid to edit: a row's details and a column's settings open in a panel beside it. You need **Create and edit tables** to change rows and columns. With **See tables** only, the grid is read-only. ### The toolbar | Control | What it does | | --- | --- | | **Find** | Opens a find bar over the top right of the grid (also Ctrl + F). Shows only rows with the words in any cell, including choice names, and how many match. Type a number to find that row number. Enter jumps to the first match; Esc closes it and shows every row again. | | **Filter** | Shows only rows that match up to 12 conditions, like *Status is Confirmed* or *Price is more than 500*. Each column type offers its own conditions (see [Column types](https://docs.theavoxai.com/tables/column-types#filters)). | | **Sort** | Orders the rows by up to three columns. **Table order** goes back to the order you arranged. | | **View** | **Hidden columns**, **Row height** (Compact, Normal, Tall) and **Frozen columns** (columns that stay on the left while you scroll sideways). | | **Undo** and **Redo** | Step back and forward through your last 100 changes. | | **Saved** / **Saving** | Shows whether your changes are saved. **Couldn't save. Retry** tries again after a dropped connection. | | **More** (the three dots) | **Import a CSV or Excel file**, **Download as CSV** (with column names or API names) and **Deleted rows**. See [Import and export](https://docs.theavoxai.com/tables/import-export). | | **Add column** and **Add row** | Add a column (its settings open beside the grid), or a new row at the end. **Add row** is the page's main button. | Under the toolbar you'll see how many rows the table has out of your plan's row limit, and how many rows miss a value in a required column. ### Selecting and editing - **Click** a cell to select it, then type to replace its value, or press Enter or F2 to edit it. - **Drag** or **Shift+click** to select a range. Click a row number to select rows, a column header to select the column, or the corner to select everything. - Each type has its own editor: a calendar for dates, a time list for times, a searchable list for choices (with **Add option** for a new one), stars for ratings, and a box for longer text. - A value that doesn't fit the column (text in a number column, a date Avox can't read) isn't saved; the editor stays open and says what the column expects. - **Auto number** and **formula** cells are filled in by Avox and can't be typed in. ### Keyboard shortcuts On a Mac, use Cmd where this says Ctrl. | Keys | What they do | | --- | --- | | Arrow keys | Move one cell. With Ctrl, jump to the edge. With Shift, grow the selection. | | Tab / Shift + Tab | Move right or left. | | Enter or F2 | Edit the cell. Enter again saves and moves down. | | Esc | Stop editing without saving. With nothing being edited, a selected range shrinks to one cell; press it again to close the panel or the find bar. | | Ctrl + F | Find in this table. Pressed again inside the find bar, your browser's own find opens. | | Any letter or number | Start editing with that character. | | Delete or Backspace | Clear the selected cells. | | Space | Tick or untick a checkbox cell. | | Ctrl + C / X / V | Copy, cut and paste. | | Ctrl + D | Fill down: copy the top cell of the selection into the cells below it. | | Ctrl + Z | Undo. | | Ctrl + Shift + Z or Ctrl + Y | Redo. | | Ctrl + A | Select every cell. | | Home / End | First or last cell in the row. With Ctrl, the first or last cell in the table. | | Page Up / Page Down | Move a screen up or down. | ### Copy and paste with Excel and Google Sheets Copy cells in the grid and paste them into Excel, Google Sheets or a document: they keep their rows and columns. The other way works too: copy a range in your spreadsheet, click the cell where it should start in Avox, and paste. - Pasting one value into a selected range fills every cell of the range. - Pasting past the last row adds new rows, up to 1,000 at a time. For more, use [Import](https://docs.theavoxai.com/tables/import-export). - Extra columns past the last column are left out, and Avox tells you. - Choice names that aren't options yet are added as new options. - Auto number and formula columns are skipped. - Every pasted value is checked like a typed one: numbers with commas, dates in your usual form and times like 2:30 pm are all read (see [Column types](https://docs.theavoxai.com/tables/column-types#how-typed-and-pasted-values-are-read)). The keyboard shortcuts always work. The **Copy**, **Cut** and **Paste** items in the right-click menu need your browser's permission to use the clipboard. ### Right-click menus **On a cell:** Cut, Copy, Paste, Clear, Insert row above, Insert row below, Duplicate row, Delete row, Open row details, Filter by this value, Sort A to Z, Sort Z to A. **On a row number:** Insert row above, Insert row below, Duplicate row, Copy row, Open row details, Delete row. **On a column header** (also the arrow on each header): Sort A to Z, Sort Z to A, Filter by this column, Rename, Change type and settings, Insert column left, Insert column right, Hide column, Freeze up to this column (or Unfreeze columns), Resize to fit, Delete column. **On empty space** below the last row or beside the last column (also when the table has no rows yet): Add a row, Add a column, Paste as new rows (adds what you copied after the last row), Select all, and Import a CSV or Excel file. With nothing copied, Paste as new rows says so ([AVX-3508](https://docs.theavoxai.com/error-codes/avx-3508)). ### Columns - **Resize** a column by dragging the edge of its header; double-click the edge to fit its contents. - **Move** a column by dragging its header. - **Change type and settings** opens the column's settings in a panel beside the grid: name, type, options, required, unique, default value and description. Changing the type shows a preview of how the values convert first. See [Column types](https://docs.theavoxai.com/tables/column-types#changing-a-columns-type). Save or Cancel closes the panel, and so does Esc. While the column has changes you haven't saved, opening another column or a row asks you to save or cancel first ([AVX-3505](https://docs.theavoxai.com/error-codes/avx-3505)). - Tables with many columns (up to 50) stay quick: only the columns on screen are drawn, and the same goes for rows, so a table with 100,000 rows scrolls as smoothly as a small one. - **Delete column** asks again when a Flow, automation, template or formula uses the column. ### Row details Click **Open row details** (or the open button next to a row number) to see one row as a form: every column, hidden ones included, with the same editors, when the row was added and last changed, and where it came from (the dashboard, a Flow, an automation, the API, an import or an app). Use the arrows (or Alt + Up / Down) to go to the previous or next row. On a computer it opens in a panel beside the grid, which makes room for it instead of covering it; on a phone it takes the place of the row cards until you close it. Esc or the close button closes it and puts you back on the grid. ### On a phone On a narrow screen the grid becomes a list of row cards: each card shows the row's title (pick the column in the table's **Settings**) and a few other values. Tap a card to open the row details and edit it, use **Add row** for a new one, and search or filter as usual. More rows load as you scroll. ### Saving Changes show straight away and save in the background a moment after you stop typing. If a save fails, the cells go back to their saved values and a message says why, for example [AVX-3469](https://docs.theavoxai.com/error-codes/avx-3469) when another row already has a value in a unique column. If the connection drops, Avox keeps your changes and tries again. Your browser warns you before you leave the page while changes are still saving. #### When two people change the same row Several people, Flows, automations and the API can change a table at the same time. For each cell, the last change wins. If someone else changed a row since you opened the table, your change is still saved and Avox tells you ([AVX-3472](https://docs.theavoxai.com/error-codes/avx-3472)), so you can check the row. If they deleted the row, your change can't be saved and Avox tells you that too. ### Deleted rows Deleted rows are kept for 30 days. Open **Deleted rows** from the toolbar's **More** menu to see them and bring any of them back. After 30 days they're removed for good. Deleted rows don't count towards your plan's row limit. ### Required and unique columns - **Required** cells left empty are marked in the grid, and the row number shows a red dot. You can leave them empty while you work; Flows, automations, imports and the API must fill them. - **Unique** columns refuse a value another row already has. Capital letters and spaces at the ends don't make a value different. ### Archived tables An archived table opens read-only with a banner and a **Restore** button. You can also restore it from **Manage this table** on its **Settings** tab. ### Moving around a table Every table page has the same header: an arrow back to **Tables**, the table's name, a **Copy** button that makes a copy of the table, and the **Data**, **Analytics**, **Used by** and **Settings** tabs. Switching tabs keeps everything in place. Archive, restore and delete are on the **Settings** tab. ### Related --- ## Import and export URL: https://docs.theavoxai.com/tables/import-export Section: Tables Bring rows into a table from a CSV or Excel file, and download any table as a CSV file. Before an ### Import a file Importing needs **Create and edit tables** and works on active tables (restore an archived table first). Open the table, click the three dots (**More**) in the toolbar and choose **Import a CSV or Excel file** (an empty table also shows an **Import** button, and right-clicking empty space in the grid offers it too). Choose or drop a file: - **CSV**: separated by commas, semicolons or tabs (Avox works out which). Exports from Excel, Google Sheets and most other apps work as they are. - **Excel**: `.xlsx` files. Dates stored by Excel as dates are read as dates. One import takes up to 10,000 rows and 60 columns. Split bigger files into parts. The file is read in your browser; only its rows are sent to Avox. Say whether the first row holds the column names. Then, for each column in the file, choose where it goes: - **a column of the table**, - **a new column**, with a type Avox suggests from the values (you can change it), or - **Don't import**. Two file columns can't go into the same table column, and auto number and formula columns are filled in by Avox. Pick a unique column, like an order number or SKU, to update rows that already have the same value instead of adding them again. Rows with a new value are added. This makes it safe to import the same file again after you change it. Click **Check the file**. Avox checks every row exactly as the import will, without changing anything, and shows: - how many rows will be **added**, how many **updated**, and how many are empty and left out, - every **problem** with its row number and column: a value that doesn't fit the column's type, an empty required column, or a value repeated in a unique column (in the file or in the table), - **new options** that will be added to choice columns, - **new columns** that will be made, and - how many more rows fit in the table on your plan. Fix the problems in your file and check again, or choose to leave out the rows with problems and changed in the meantime in a way that would break the import. Large files are saved in parts of 1,000 rows; if a part can't be saved, the summary says which row the import stopped at, and the rows before it are saved. Imported rows follow the same rules as typed ones: numbers like `1,234.50`, dates like `02/11/2026` or `2 Nov 2026`, times like `2:30 pm` and choice names are all read. See [Column types](https://docs.theavoxai.com/tables/column-types#how-typed-and-pasted-values-are-read). ### Paste instead of importing For a few rows, copy them in your spreadsheet and paste them into the grid. A paste can add up to 1,000 rows. See [Editing a table](https://docs.theavoxai.com/tables/editing#copy-and-paste-with-excel-and-google-sheets). ### Export as CSV Click the three dots (**More**) in the toolbar and, under **Download as CSV**, choose: - **With column names**: the header row uses the names you see, or - **With API names**: the header row uses each column's API name, handy for the API and for importing again. The file holds the rows the grid shows: your current search, filters and sort apply. Details: - Dates and times are written in your own time zone, as `2026-11-02` and `2026-11-02 14:30`. - Choices are written by name, checkboxes as `TRUE` or `FALSE`, durations as `1:30`. - Every cell is quoted, and text that starts with `=`, `+`, `-` or `@` gets a leading `'`, so a spreadsheet opens it as plain text instead of running it. - The file starts with a marker that tells Excel it's UTF-8, so names with accents and other scripts open correctly. - WhatsApp contact columns show the contact's name if you have permission to see contacts. - A file holds up to 100,000 rows. Anyone with **See tables** can export. ### Errors you might see | Code | What to do | | --- | --- | | [AVX-3482](https://docs.theavoxai.com/error-codes/avx-3482) | Save the file as CSV or `.xlsx` and pick a choice for every file column. | | [AVX-3483](https://docs.theavoxai.com/error-codes/avx-3483) | Split the file into parts of up to 10,000 rows. | | [AVX-3484](https://docs.theavoxai.com/error-codes/avx-3484) | Fix the listed rows, or leave them out and import the rest. | | [AVX-3464](https://docs.theavoxai.com/error-codes/avx-3464) | Not enough room for the new rows on your plan. Delete rows or change plan. | | [AVX-3474](https://docs.theavoxai.com/error-codes/avx-3474) | New columns would take the table past 50 columns. | | [AVX-3485](https://docs.theavoxai.com/error-codes/avx-3485) | The download didn't work. Wait a minute and try again. | ### Related --- ## Column types URL: https://docs.theavoxai.com/tables/column-types Section: Tables Every column in a table has a **type**. The type decides what a cell may hold, how it looks in the grid, how it sorts and which filters it offers. The same rules apply everywhere: typing in the grid, pasting, importing, Flows, automations and the API. ### Every type **Auto number** and **formula** columns are filled in by Avox: you can't type in them, paste into them or import into them. ### How typed and pasted values are read You don't need to type values in one exact form. Avox reads the usual ways of writing them and stores them in one clean form: | Type | You can type or paste | Stored as | | --- | --- | --- | | Number, Money | `1234.5`, `1,234.50`, `1.234,50`, `1,23,456`, `₹ 499`, `$12`, `(12.50)` for a negative | A number, rounded to the column's decimals | | Date | `2026-11-02`, `02/11/2026`, `2-11-26`, `2 Nov 2026`, `Nov 2, 2026`, an Excel date | The day. Whether `02/11` is 2 November or 11 February follows the column's date order (day first or month first) | | Time | `14:30`, `2:30 pm`, `2pm`, `1430` | The time of day | | Date and time | `2026-11-02 14:30`, `2 Nov 2026 2:30 pm` | A moment, read in your own time zone and shown in each viewer's | | Duration | `90` (minutes), `1:30`, `1h 30m`, `1 hour 30 min`, `1.5 h`, `45 min` | Minutes, shown as `1 h 30 min` | | Checkbox | `yes` / `no`, `true` / `false`, `1` / `0`, `x`, `ticked` | Ticked or not | | Rating | `4`, `4/5`, `★★★★` | Stars from 1 to the column's most | | Phone number | `+91 98765 43210`, `0091 98765 43210`, `98765 43210` (with the column's default calling code added, when it has one) | The number with its country code, without spaces | | Email | `Name@Example.com`, `mailto:name@example.com` | The address in small letters | | Link | `example.com/menu`, `https://example.com/menu` | A full `https://` address | | Image link | `https://example.com/photo.jpg` | A full `https://` address | | Single choice | An option's name, in any capital letters | That option | | Multiple choice | Option names separated by commas, semicolons or new lines | Those options, in the column's order | Text cells hold up to 1,000 characters (a column can set a shorter limit), long text up to 10,000. A value that can't be read as the column's type isn't saved, and you're told what the column expects ([AVX-3468](https://docs.theavoxai.com/error-codes/avx-3468)). ### Column settings Open a column's settings from its header menu (**Change type and settings**): | Setting | What it does | | --- | --- | | **Name** | Up to 60 characters, different from every other column. Can't contain `{` or `}`. | | **API name** | Small letters, numbers and `_`, starting with a letter. Used by the API and automations. | | **Required** | Flows, automations, imports and the API must fill it. Turning it on keeps existing rows as they are; empty ones are marked in the grid. | | **Unique** | No two rows may share a value. Can be turned on only when no values repeat; Avox shows examples if some do ([AVX-3480](https://docs.theavoxai.com/error-codes/avx-3480)). | | **Default value** | Filled in for new rows that leave the column empty. | | **Description** | A note about the column, up to 300 characters. | | **Type options** | Money: the currency and decimals. Number: decimals and the smallest and largest value. Rating: the most stars (3 to 10). Date and time: day first, month first or year first, and 12 or 24 hours. Phone number: the default calling code. | ### Choice options **Single choice** and **multiple choice** columns pick from options you set, each with a colour. A column can have up to 100 options; option names are up to 60 characters and can't contain commas or semicolons (those separate options when you paste). Rename an option and every row using it shows the new name. Remove an option and it's cleared from the rows that had it. When you paste or import a name that isn't an option yet, Avox can add it as a new option. ### Auto numbers An **auto number** column gives every new row the next number, like `BK-0001`, `BK-0002`. Set a **prefix** (up to 10 characters), the **first number** and how many **digits** to pad to. Numbers are never reused, even after a row is deleted. ### Formulas A **formula** column works out each row's value from its other columns, like a spreadsheet formula. Write column names in braces: ```text {Price} * {Quantity} ROUND({Price} * (1 + {Tax %} / 100), 2) IF({In stock} <= {Reorder at}, "Order more", "OK") DAYS({Due date}, TODAY()) ``` - **Operators:** `+` `-` `*` `/`, `^` for powers, `&` to join text, and `=` `<>` `<` `>` `<=` `>=` to compare (results are true or false). Use brackets to group. - **Text** goes in double quotes; write `""` for a quote inside it. `TRUE` and `FALSE` are yes and no. - **Dates:** a date plus a number is that many days later; one date minus another is the days between them. - **The result** is a number, text, yes or no, or a date: pick which in the column's settings. - A formula can use other formula columns, but not its own column, and formulas can't go round in a circle. - Renaming a column never breaks a formula that uses it. Deleting it asks you first. - `TODAY()` and `NOW()` are worked out when the row is saved. - Up to 1,000 characters per formula. #### Functions #### Formula errors When a formula can't be worked out for a row, the cell shows why and stays empty for sorting, filters, Flows and the API: | Shows | Means | | --- | --- | | `#DIV/0!` | Divided by zero (or an average of nothing). | | `#VALUE!` | A value of the wrong kind, like text where a number is needed. | | `#REF!` | It uses a column that was deleted. | | `#CYCLE!` | Formulas use each other in a circle. | | `#NAME?` | An unknown function. | | `#ERROR!` | The formula is too long or nested too deeply to work out. | ### Filters Each type offers the filters that make sense for it: ### Changing a column's type Pick a new type in the column's settings. Before anything changes, Avox shows a preview: how many values convert, how many won't fit the new type and would be emptied, and a few examples before and after. It also lists any Flow, automation, template or formula that uses the column. Confirm to go ahead ([AVX-3478](https://docs.theavoxai.com/error-codes/avx-3478)). - Every value is converted the way you'd expect: `12` in a text column becomes the number 12, `2026-11-02` becomes a date, `yes` becomes a ticked checkbox. - Changing to a choice column makes options from the existing values. - Changing to auto number or formula replaces the values with ones Avox works out. - Flows, automations and templates that use the column are marked **Needs attention** in the table's **Used by** tab, so you can check them. ### Related --- ## Premade tables URL: https://docs.theavoxai.com/tables/premade Section: Tables Avox has premade tables for what businesses keep track of most. Each one comes with its columns ready (types, required and unique already set) and a few sample rows, so you can see how it works before adding your own. ### Use a premade table - On the **Tables** page, pick one of the premade tables shown, or click **See all** to open the **Tables library**, or - in the create wizard, describe what you want to keep track of: Avox AI suggests the premade tables that fit your words, or - in the create wizard, click **Browse premade tables**: six premade tables open below the button, best fits first, each with **Use this table**, plus a **Library** button. ### The Tables library The Tables library (**Tables > See all**, or **Library** at the top of the Tables page) lists every premade table. Search by name, column or the words you'd use (*salon*, *udhar*, *delivery*; small typos and Hindi-English words work too), or filter by kind: Bookings, Selling, Customers, Answers and Team. Tables you've already made from a premade say **You have one**. Click a table to look inside it in a panel beside the list: what it's good for, every column with its type (required and unique columns are marked) and the example rows. **Use this table** opens the create wizard with it filled in. On a phone the panel takes the list's place; close it to go back. If a link points to a premade table that no longer exists, the library says so ([AVX-3506](https://docs.theavoxai.com/error-codes/avx-3506)). You can change anything before creating it: rename columns, change types, add or remove columns, and choose whether to keep the sample rows. Money columns use the currency you pick. Tables you make from a premade show a small **From Avox AI** label. See [Create a table](https://docs.theavoxai.com/tables/create). The sample rows are made up for illustration. Delete them, or leave them out when you create the table. ### Related --- ## Analytics and used by URL: https://docs.theavoxai.com/tables/analytics Section: Tables Every table has three tabs next to its data: **Analytics** shows how it's used, **Used by** shows what uses it, and **Settings** holds its details. Anyone with **See tables** can open all three; changing settings needs **Create and edit tables**. ### Analytics Pick a range: the last 7, 30, 90 or 365 days. Days are counted in UTC. | Part | What it shows | | --- | --- | | **Rows over time** | How many rows the table held at the end of each day, with the rows added and deleted that day. | | **Reads and writes by source** | Each day's reads and writes, split by where they came from: Flows, automations, templates, the API, apps, imports and the dashboard. Writes are rows added, changed or deleted, from anywhere, including your own edits. Reads are counted for Flows, automations, templates, the API and apps; opening the table in the dashboard isn't counted. | | **Top lookups** | The values Flows and automations looked up most in this table, like the pincodes customers checked or the order numbers they asked about, with how many times. | | **Last used** and **Last edited** | When a Flow, automation, template, the API or an app last read or wrote the table, and when its rows were last changed. | | **Rows now** | The table's rows today, and how many miss a value in a required column. | Daily figures are kept for about a year. ### Used by **Used by** lists everything connected to the table, grouped by kind: - **Flows** that show rows from it, look up a value in it or save answers into it, - **Automations** that start from the table (a row added or changed, a date in a row, a booking) or find, add, change, count or delete its rows, - **Templates** whose variables an automation fills from its rows, - **API keys** that read or write it, and - **Apps** that use it. Each one shows its name (click it to open it), which part uses the table, and the columns it uses (or **Uses the whole table**). #### Used by Flows A live Flow is listed once per screen that uses the table: the part is the screen's id (for example `SLOT`), and the details say what the screen does with it (shows rows when it opens, holds a slot when it's submitted...). The list follows the Flow: connecting a table, changing a screen's steps, or deleting the Flow updates it at once. Flows keep columns by their id, so renaming a column, the table or its API name never breaks a Flow. Deleting a column it uses, or archiving the table when the Flow saves to it, marks it **Needs attention**: the screen shows customers a "try again" message until you fix it on the Flow's page. See [Live Flows](https://docs.theavoxai.com/flows/live-endpoint). #### Used by automations and templates An automation is listed once for its trigger, when the trigger watches the table, and once for each step that uses the table, with the columns each one uses. A template is listed when an automation fills its variables from the table's rows. The list follows the automation: saving it or deleting it updates the list at once. Automations keep columns by their id too, so renaming never breaks them. When one needs attention, opening it shows what to fix ([AVX-3589](https://docs.theavoxai.com/error-codes/avx-3589), [AVX-3590](https://docs.theavoxai.com/error-codes/avx-3590)), and a run that reaches the broken step stops with the reason in its [run log](https://docs.theavoxai.com/automation/run-log). See [Automations with tables and Flows](https://docs.theavoxai.com/automation/tables). #### Needs attention A use is marked **Needs attention** when something changed that may stop it working: | Reason | What to do | | --- | --- | | A column it uses was deleted | Open it and choose another column. | | A column it uses changed type | Open it and check it still works with the new type. | | The table was archived | It can still read the table but not change it: lookups keep working, but adding, changing, counting or deleting rows stops. Restore the table, or point it at another one. | | It was deleted | Nothing to do: its link to the table is no longer used. | Restoring an archived table clears the archived mark. ### Settings | Section | What you can change | | --- | --- | | **Details** | The table's **Name**, **Description**, **Icon**, **Colour** and **Kind**: how the table looks in your list of tables. | | **API name** | The name Flows, automations and the API use to find the table: small letters, numbers and `_`, starting with a letter, up to 60 characters, different from every other table in the Switchboard. Changing it breaks anything that uses the old name, so change it before you connect the table. | | **Grid** | How the Data tab shows the table for everyone in the Switchboard: **Row height**, **Frozen columns**, and the **Title column** that names each row on phones. | | **Columns** | Each column's API name, type, and whether it's required or unique. Edit columns on the Data tab. | | **Plan** | The rows in this table and the tables in this Switchboard, against your plan's limits. See [Plans](https://docs.theavoxai.com/plans). | | **Download** | Every row as a CSV file that opens in Excel and Google Sheets. | | **Manage this table** | Make a copy of the table, and archive or restore it. | | **Danger zone** | Delete the table for good. | #### Copy, archive and delete These live on the **Settings** tab: the table's header only has **Copy**. - **Copy** (also the **Copy** button at the top of every tab): makes a new table with the same columns, and the rows too if you choose. The copy counts as a new table on your plan. Where the original is used isn't copied. - **Archive**: keeps every row, readable by Flows, automations and the API, but nobody can change it. Archived tables count towards your plan's tables. Restore it any time. - **Delete** (in the **Danger zone**): removes the table and its rows for good. Type the table's name to confirm. When a Flow, automation or template uses the table, archiving or deleting it shows the list first and asks you to confirm ([AVX-3489](https://docs.theavoxai.com/error-codes/avx-3489)). ### Related --- ## Avox AI URL: https://docs.theavoxai.com/avox-ai Section: Avox AI **Avox AI** is the name for the always-on part of your Avox dashboard: the automations that watch every incoming WhatsApp message and react the moment one matches a rule you've set. It replies, sends a file or a link, files the contact under the right tags and categories, opens a Flow, sends a template, alerts your team or hands the lead to your CRM - so routine questions get an instant answer and your team's time goes to the conversations that need a person. Avox AI sends exactly what you set up: your own replies, your own approved templates, and your own Flows, started by the triggers you choose. You stay in control of every word. ### What it's built from #### Automation - the engine The visual builder where you pick a trigger (a keyword, any message, outside business hours, no reply after a set number of minutes, a new contact, or a tag being added), add actions, and branch with conditions. The actions come in six groups: - **Messages** - text replies, approved templates, marking read. - **Interactive** - quick reply buttons, lists, link buttons, Flows, questions that wait for the answer, and call permission requests. - **Media** - images, videos, documents, audio, locations and contact cards. - **Contact** - adding or removing tags and categories, setting contact fields, private notes. - **Flow control** - conditions, waiting for a reply, delays and stop. - **Team & integrations** - bell notifications (and email) for your team, and webhooks to your own tools. Open **Automation** in the dashboard sidebar to start; the page carries a **Beta** badge. See [Automation](https://docs.theavoxai.com/automation), [Triggers](https://docs.theavoxai.com/automation/triggers), and [Actions](https://docs.theavoxai.com/automation/actions). #### Templates - what it can send any time WhatsApp needs an approved template to start a conversation or to message someone outside the [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). The **Send a template** action uses the same approved templates you manage on [Templates](https://docs.theavoxai.com/templates). #### Flows - when a reply needs a form Some questions need more than a text answer - booking a slot, collecting details. The **Use Flows** action opens one of your published [Flows](https://docs.theavoxai.com/flows) right inside the chat. ### What a reply looks like This is the reply from the **Store hours auto-reply** premade automation, shown in the same preview component the dashboard uses. The message goes out from your own WhatsApp number, under your business name. ### How it behaves - **One automation per message.** For each new incoming message, the oldest switched-on automation whose trigger matches is the one that runs. - **No spam loops.** The same automation runs at most once an hour for the same contact. - **Credits.** Each message it sends spends Avox AI credits ([automation credits](https://docs.theavoxai.com/automation/credits)) from your plan's grant: 1 for most messages (text, template, media, location, contact card, link button, call request), 2 for buttons or a list, and 3 for a Flow. Everything that doesn't send a message - tags and categories, contact fields, notes, conditions, waits and delays, team notifications, webhooks - is free, and a send Meta refuses costs nothing. - **Hard stop at zero.** When the period's credits run out, automated sends pause until the next period. Admins on the One-time billing option can also set a lower [monthly credit limit](https://docs.theavoxai.com/automation#monthly-credit-limit). - **Your team keeps replying.** Automated replies and your team's own replies sit in the same conversation in the [Inbox](https://docs.theavoxai.com/inbox). The full rules are on [Triggers](https://docs.theavoxai.com/automation/triggers). ### Real use cases All of these are one-click [premade automations](https://docs.theavoxai.com/automation#premade-automations): - **Welcome + tag new customers** - the very first message from a number gets a real welcome, and the contact is tagged and filed under "New customer". - **Lead qualifier** - a new lead is asked for their budget and moves from "Lead" to "Qualified" once they answer. - **VIP routing** - a customer asking about priority or bulk orders is filed under "VIP" and your team is alerted straight away. - **Store hours auto-reply** and **Out of hours away message** - a customer who messages at 2am gets an honest "we're closed" reply, and a follow-up once you're open. - **Order status link** - order questions get a **Track order** button, and the team hears about cancellations and refunds. - **Send your price list** and **Share your store location** - a PDF or a map pin, sent the moment someone asks. - **Callback request** - "call me" sends WhatsApp's call permission request and tells the team. - **Re-engagement with a template** - a lapsed customer gets your approved template, and quiet ones are filed as "Dormant". - **Lead to CRM via webhook** - a new lead's email and details go straight to your CRM. - **Appointment confirm or reschedule**, **Feedback with follow-up**, **Complaint escalation**, **FAQ: pricing questions**, **Booking & appointment inquiry**, **Catch-all with urgent flagging**, **VIP tag follow-up** and **No-reply follow-up** cover the rest of the everyday questions. Each premade opens the wizard with everything filled in, so you can change the wording and replace placeholders (such as `https://example.com/...` links) before switching it on. ### Plans and status How many automations you can run and how many Avox AI credits you get each period depend on your plan and billing option - see [Plans](https://docs.theavoxai.com/plans) and [Credits](https://docs.theavoxai.com/automation/credits). Avox AI has its own line on the [Status page](https://docs.theavoxai.com/status-page), **Avox AI (Beta)**, covering automations and auto-replies. ### Meet the face of Avox AI The [Avox Avatar](https://docs.theavoxai.com/avox-avatar) is the character that reacts throughout your dashboard, including on every Automation page. --- ## Avox Avatar URL: https://docs.theavoxai.com/avox-avatar Section: Avox AI The **Avox Avatar** is the character you see reacting throughout your Avox dashboard - in page headers, during onboarding, in the account menu, and on the Avox websites. It's generated for you, takes its shape from the persona you pick when you join, and changes expression based on what's happening on screen. It's the face of [Avox AI](https://docs.theavoxai.com/avox-ai). ### Every mood, live Hover any of these. This is the real avatar, showing its real expressions. ### Its shape comes from your persona The avatar's shape is set by the persona you pick during onboarding: | Persona | Shape | | --- | --- | | Individual | Round | | Developer | Hexagon | | Business owner | Boxy | | Agency | Sun | Its look is also seeded from your name, so the same person always gets the same-looking avatar. Switchboards without a logo get their own avatar too, seeded from the Switchboard's name. ### Where you'll see it - **Page headers** - most dashboard pages show the avatar next to the page title. Hover buttons and fields on the page and it explains them in a speech bubble, then reacts to what you do: happy when something succeeds, unsure when a field needs fixing, sad when something fails. On [Overview](https://docs.theavoxai.com/overview) it comments on the card or chart you point at. - **Inbox, Contacts, and Calls** - a small avatar sits beside the page and confirms what you just did, such as "Sent." after a reply or "Renamed." after renaming a contact, or tells you why something didn't work. - **Setup wizards** - connecting a number, creating a template, a Flow, or an automation. It reacts to each step, from thinking while a check runs to delighted when your number connects. - **Onboarding chat** - its expression changes with every answer you give. - **Health, Logs, and Analytics** - the **Insights** panel's avatar matches the most urgent insight on the page: sad for a critical one, unsure for a warning, smug when all is well. - **Automation** - the first-visit introduction and every automation page. See [Automation](https://docs.theavoxai.com/automation). - **The account menu** - your own avatar in the top bar, shaped by your persona. - **The sidebar card** - the small rotating card at the bottom of the sidebar, for example pointing you to [Support](https://docs.theavoxai.com/support) or these docs. - **The cookie banner** on Avox websites - hover or click it for a new one-liner and expression. The avatar isn't a chat assistant you talk to. It's a friendly face on real dashboard state, showing at a glance whether things are going well. --- ## Switchboards URL: https://docs.theavoxai.com/switchboard Section: Team A **Switchboard** is a workspace. It has its own WhatsApp connections, contacts, conversations, templates, Flows, automations, and team. You can belong to several - an agency running numbers for a few clients, for example, keeps each client in its own Switchboard - and switch between them at any time. Everything about the Switchboard you're viewing lives in **Settings > Switchboard**. The page has five tabs: **General**, **Workspaces**, **Members**, **Invitations**, and (for Admins) **Activity**. Your plan's WhatsApp connections are one shared pool across every Switchboard where you're an Admin. Templates, Flows, and automations are different: each Switchboard gets its own allowance. The live numbers for each plan are on [Plans](https://docs.theavoxai.com/plans). ### Roles Every member is an **Admin** or a **Manager**, and the Switchboard's first Admin is its **Owner**. Admins run the Switchboard; Managers do the day-to-day work. An Admin can also give a Manager extra permissions, or take some away, one person at a time. The full, area-by-area list is on [Members and roles](https://docs.theavoxai.com/switchboard/members). ### General The Switchboard's identity and the actions that affect the whole workspace. It opens with an overview card: the Switchboard's logo and name, your role, its **Plan** (or "Covered by the owner's plan"), when it was **Created**, how many **Members** it has, and its **WhatsApp numbers** (how many are connected). Below it, the **Name and logo** card ("How this Switchboard shows up in the switcher and to your team") and, under **Pause or delete**, the pause and delete cards. | Field or button | What it does | Who | | --- | --- | --- | | **Name** | The Switchboard's name inside Avox, 1 to 60 characters. It's how you and your team tell Switchboards apart; it isn't sent to WhatsApp customers. | Admin | | **Change icon** | Uploads an image as the Switchboard's logo straight away ("Logo updated"). A square image works best; it shows as a circle. Without one, a generated avatar is shown. | Admin | | **Save changes** | Saves the name. You see "Switchboard updated". | Admin | | **Leave Switchboard** | In the settings menu (bottom of the sidebar; on a phone, the bottom of each settings page). Removes you from this Switchboard after you confirm. The only Admin can't leave, and is offered to pause or delete the Switchboard instead. See [Leaving a Switchboard](https://docs.theavoxai.com/switchboard/members#leaving-a-switchboard). | Admin, Manager | | **Pause Switchboard** | Stops every number and automation, keeps all data, resume any time. See [Pausing a Switchboard](#pausing-a-switchboard). | Admin | | **Delete Switchboard** | Permanently deletes the Switchboard and everything in it. | Admin | The name your WhatsApp customers see is your business name in [Business](https://docs.theavoxai.com/settings/business) and the display name approved by Meta - not the Switchboard name. Errors: [AVX-2003](https://docs.theavoxai.com/error-codes/avx-2003) (name not valid), [AVX-2004](https://docs.theavoxai.com/error-codes/avx-2004) (couldn't save), [AVX-2005](https://docs.theavoxai.com/error-codes/avx-2005) (logo didn't upload). Managers see the same fields, but only an Admin can save them - a Manager who clicks **Save changes** sees "Couldn't save your Switchboard" ([AVX-2004](https://docs.theavoxai.com/error-codes/avx-2004)). #### Pausing a Switchboard Want a break without losing anything? Admins can pause the whole Switchboard from the **Pause this Switchboard** card: The card lists what happens: every connected WhatsApp number is paused (nothing is sent or forwarded from them), every running automation is paused, and contacts, messages, templates, Flows, and settings are all kept. Enter the 6-digit code we email you. It works once, for 10 minutes. The card then shows **Paused** and the date. Click **Resume** any time to put back exactly what was running. If your plan has no room for every number by then, the extra ones stay paused and you can resume them from [Connections](https://docs.theavoxai.com/connections) once there's room. While the Switchboard is paused, its numbers can't be resumed one at a time. Every member sees whether it's paused; only an Admin can pause or resume it. Both are recorded in [Activity](#activity). While a Switchboard is paused: - A **Switchboard paused** banner shows at the top of every dashboard page, with the date and a **Resume** button: "Its numbers, automations and forwarding are stopped and nothing is sent until it's resumed. All your data is kept." - Automations can't be turned on ([AVX-3410](https://docs.theavoxai.com/error-codes/avx-3410)). - [Avox API](https://docs.theavoxai.com/avox-api) sends are refused with [`switchboard_paused`](https://docs.theavoxai.com/api/errors#switchboard_paused). - [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) stops. Anything that was already waiting to be forwarded goes out once the Switchboard is resumed. - You can still read everything, and bought [automation credits](https://docs.theavoxai.com/automation/credits#buying-more-credits) can still be added - they're used once it's resumed. Pausing your whole account from **Settings > Security > Delete account** pauses every Switchboard you're an Admin of in the same way - see [Pausing instead](https://docs.theavoxai.com/security#pausing-instead). #### Deleting a Switchboard Admins delete a Switchboard right on the **Delete this Switchboard** card, not in a pop-up. It first lists what will be deleted - its WhatsApp numbers and message history, contacts, templates, Flows, automations, members' access, API keys, invoices, and any subscription billed here - immediately and with no recovery window. Type the name exactly as shown, including capital letters, then click **Email me a code**. Enter the 6-digit code we email you. It works once, for 10 minutes. **Send a new code** if it doesn't arrive. Press and hold **Hold to delete** for 2 seconds while the ring fills (on a keyboard, hold Space or Enter). Let go early to cancel. If your device is set to reduce motion, click it once, wait 2 seconds, then click again to confirm. The Switchboard is deleted and you're taken back to the dashboard home. Avox refuses the delete in two cases, so a plan or a person is never left stranded: - **It's the only Switchboard where you're an Admin** - "This is your only Switchboard - create another one first if you want to delete this one." To close your last Switchboard, contact [Support](https://docs.theavoxai.com/support). - **Your plan is billed through it** - "Your plan is billed through this Switchboard - cancel the subscription first, then delete it." See [Cancel](https://docs.theavoxai.com/billing/cancel). A cancelled plan keeps running until its end date, so the delete goes through once the plan has ended. What's removed and what's kept is covered on [Data deletion](https://docs.theavoxai.com/data-deletion). ### Automation credit limit On a plan paid as **One-time** (a full year upfront), Admins also see an **Automation credit limit** card under General. It sets a monthly cap on how many [automation credits](https://docs.theavoxai.com/automation/credits) this Switchboard can spend - a budget guard below what the plan grants, not a billing setting. - Tick **Set a monthly limit** and enter a whole number of credits, 0 or higher, then **Save limit**. - Leave it unticked for "No limit - automations can use this Switchboard's full plan grant." - Once the cap is reached for the month, automations stop sending, the same as running out of the plan's own credits. **Mark as read** and **Tag contact** actions keep working because they don't spend credits. If saving fails you see [AVX-3081](https://docs.theavoxai.com/error-codes/avx-3081). More on how credits work: [Automation](https://docs.theavoxai.com/automation#monthly-credit-limit). ### Workspaces **Your Switchboards** lists every Switchboard you belong to, with its logo and name. - The one you're viewing is marked **Currently viewing**. - **Manage** opens that Switchboard's settings (this page, on **General**). For a Switchboard you're not viewing, Avox switches to it first. - **Switch to this one** opens another Switchboard on its **Overview**. The choice is remembered on this browser. - **Create Switchboard** opens **Settings > Switchboard > Create Switchboard** - see [Creating a new Switchboard](https://docs.theavoxai.com/switchboard/invites#creating-a-new-switchboard). With no plan, or when every Switchboard your plan allows is in use, the card says so and shows **See plans** instead. ### Members Everyone with access, their **Joined** date, and their **Role**. Admins can remove anyone except themselves, and change anyone's role between Admin and Manager from the **Role** menu (with a confirm step - the only Admin can't step down). Admins open a member's **Permissions** to change what a Manager can do. Nobody can change their own access: on your own row it's **Your access**, which you can look at but not change ("You can't change your own access"). Managers can't open anyone's permissions. See [Members and roles](https://docs.theavoxai.com/switchboard/members#the-member-list) and [Changing someone's role](https://docs.theavoxai.com/switchboard/members#changing-someones-role). ### Invitations Every invite sent for this Switchboard and its status - pending, accepted, revoked, or expired. Admins see **Invite** and can **Revoke** a pending invite. See [Invites](https://docs.theavoxai.com/switchboard/invites). ### Activity Admins only: the 50 most recent team and settings actions on this Switchboard, filterable by member. See [The Activity log](https://docs.theavoxai.com/switchboard/members#the-activity-log). ### Which Switchboard you're in Most pages - Inbox, Contacts, Templates, Compliance, and so on - show the Switchboard you're currently viewing. Billing is the exception: your plan lives on the first Switchboard you joined and covers every Switchboard where you're an Admin, so **Billing** shows the same plan whichever Switchboard is open. See [Billing](https://docs.theavoxai.com/billing). #### Alerts from your other Switchboards Live alerts belong to the Switchboard you're viewing: new message pop-ups and sounds, the bell, the badges in the sidebar and a ringing WhatsApp call only come from that one. A browser tab left open on a Switchboard you've since switched away from stays quiet, so two tabs never ring for the same thing. What waits in your other Switchboards shows on the **Switchboard switcher** in the header instead: - **A dot on the switcher**, with "Waiting in Shop EU" (or "Waiting in 2 other Switchboards") when you point at it. - **A line on each of those Switchboards** in the switcher's list: **Call ringing**, "3 unread chats", "1 new order" or **Needs a look** (something there needs someone to act, like a connection or billing problem). Each part only counts what you can see in that Switchboard (the Inbox, calls, the shop), and private numbers never count. Pick the Switchboard to go there. If you're on a call, switching asks first, as it ends the call. --- ## Members and roles URL: https://docs.theavoxai.com/switchboard/members Section: Team Everyone who works in a Switchboard is a **member**, and every member has one of two roles: **Admin** or **Manager**. Each role comes with a set of **permissions**, and an Admin can give a Manager extra permissions or take some away, person by person (see [Permissions](#permissions)). This page is the reference for what each role can do across the whole product. ### The roles at a glance | Role | Who has it | In short | | --- | --- | --- | | **Admin** | Whoever created the Switchboard (or signed up and had it made for them), plus anyone invited as an Admin. | Full access - connections, billing, the team, and every setting. | | **Manager** | Anyone invited as a Manager. | Day-to-day work - the Inbox, contacts, calls, templates, Flows, and automations. | ### The Owner (owner of record) A Switchboard can have several Admins, and they all have exactly the same permissions. The **earliest Admin** - normally the person who created the Switchboard - is its **owner of record**, called the **Owner** throughout these docs. Owner isn't a separate role: the dashboard lists the Owner as an Admin, and you can't invite someone "as Owner". The only difference is where some emails go. A few important emails are sent to the Owner rather than to every Admin: payment receipts, payment-failed notices, delete-connection codes, Meta's critical alerts, API problem reports, and setup reminders (see [Emails each role receives](#emails-each-role-receives)). If the Owner leaves the Switchboard, steps down to Manager, or deletes their account, the remaining Admin who joined the Switchboard earliest becomes the Owner. ### Who can do what Each table covers one area of the product. **Yes** means the person can do it; **View** means they can see it but not change it. The **Manager** column shows the Manager defaults: an Admin can change any of them for one person (see [Permissions](#permissions)), so a particular Manager may have more or less. #### Switchboard and team | Action | Admin | Manager | | --- | --- | --- | | See every Switchboard you belong to and switch between them | Yes | Yes | | Create a new Switchboard (needs your own active plan - see [Creating a new Switchboard](https://docs.theavoxai.com/switchboard/invites#creating-a-new-switchboard)) | Yes | Yes | | Rename the Switchboard or change its logo | Yes | No | | See the member list | Yes | Yes | | Invite people (as Admin or Manager) | Yes | No (with the **Invite people** permission: as Manager only) | | Change a member's permissions - see [Permissions](#permissions) | Yes | No | | See pending and past invitations | Yes | View | | Revoke a pending invitation | Yes | No | | Remove another member | Yes | No | | Change someone's role (Admin or Manager) - see [Changing someone's role](#changing-someones-role) | Yes | No | | Leave the Switchboard | Yes, when another Admin exists | Yes | | See the **Activity** log | Yes | No | | Set the automation credit limit (one-time plans) | Yes | No | | Pause or resume the Switchboard (see [Pausing a Switchboard](https://docs.theavoxai.com/switchboard#pausing-a-switchboard)) | Yes | No | | Delete the Switchboard | Yes | No | #### Connections | Action | Admin | Manager | | --- | --- | --- | | See connections, their status, and their details | Yes | Yes | | Connect a WhatsApp number (the setup wizard and Meta's sign-up window) | Yes | Yes | | Run a live health check | Yes | Yes | | Rename a connection | Yes | No | | Pause or resume a connection | Yes | No | | Change message forwarding, calling, username, or identity check | Yes | No | | Delete a connection | Yes (the confirmation code is emailed to the Owner) | No | | Create, rotate, test or revoke API keys | Yes | No | | See API keys and read their recent requests | Yes | No | | See **API logs** | Yes | Yes | See [Connections](https://docs.theavoxai.com/connections) and [API keys](https://docs.theavoxai.com/connections/api-keys) for how each of these works. #### Messaging and content | Action | Admin | Manager | | --- | --- | --- | | Read and reply in the [Inbox](https://docs.theavoxai.com/inbox) | Yes | Yes | | Rename contacts, edit their details and notes, and manage [tags and categories](https://docs.theavoxai.com/contacts#tags-and-categories) | Yes | Yes | | See contacts' full phone numbers | Yes | No (they see the last 4 digits, like •••• 4821) | | See [Calls](https://docs.theavoxai.com/calls) and request calling permission from a contact | Yes | Yes | | Create and edit [templates](https://docs.theavoxai.com/templates) | Yes | Yes | | Delete templates | Yes | No | | Create, edit and publish [Flows](https://docs.theavoxai.com/flows) | Yes | Yes | | Deprecate or delete Flows | Yes | No | | Create, edit, and turn [automations](https://docs.theavoxai.com/automation) on or off | Yes | Yes | | Delete automations | Yes | No | | See [Overview](https://docs.theavoxai.com/overview), [Analytics](https://docs.theavoxai.com/analytics), [Health](https://docs.theavoxai.com/health), and [Logs](https://docs.theavoxai.com/logs) | Yes | Yes | #### Compliance, billing, and support | Action | Admin | Manager | | --- | --- | --- | | Open the [Compliance](https://docs.theavoxai.com/compliance) page | Yes | View | | Export the Switchboard's data or erase a contact's data | Yes | No | | Change retention settings and email preferences | Yes | No | | Export webhook logs as CSV | Yes | Yes | | Open the [Billing](https://docs.theavoxai.com/billing) page and see the plan, payment history, and invoices | Yes | View | | Subscribe, [change plan](https://docs.theavoxai.com/billing/change-plan), [cancel](https://docs.theavoxai.com/billing/cancel), or use a [coupon](https://docs.theavoxai.com/billing/coupons-and-gifts) | Yes | No | | Edit the business name and billing address ([Business](https://docs.theavoxai.com/settings/business)) | Yes | Yes | | Open support tickets, reply, and read the Switchboard's tickets ([Support](https://docs.theavoxai.com/support)) | Yes | Yes | #### Your own account Every member, whatever their role, manages their own account in **Settings**: [Profile](https://docs.theavoxai.com/settings/profile) (name, email address, connected sign-in accounts), [Security](https://docs.theavoxai.com/security) (password, [passkeys](https://docs.theavoxai.com/security/passkeys), [two-factor authentication](https://docs.theavoxai.com/security/two-factor), [active devices](https://docs.theavoxai.com/security/sessions)), [Offers](https://docs.theavoxai.com/billing/coupons-and-gifts#offers-in-your-dashboard), and [deleting the account](https://docs.theavoxai.com/data-deletion). ### What happens when someone lacks a permission Pages you can't open still show in the sidebar, greyed out with a lock; hovering one says **"Ask an Admin for access"**. Opening one anyway (from a bookmark, say) takes you to Overview with a note that you don't have access. Buttons you can't use are greyed out with the same tooltip, and in the Inbox the reply box is switched off with "You can read this conversation but not reply." Avox checks every permission on its servers too, so a hidden button is never the only protection: an action you're not allowed to take is refused with **"You don't have permission to do this in this Switchboard. Ask an Admin for access."** Billing actions are refused with **"Only a Switchboard Admin can manage billing. Ask an Admin to make this change."** ### Permissions Each role starts from a set of permissions. **Admins always have every permission** - that can't be changed, so an Admin can never lock themselves (or another Admin) out. **Managers** start from the Manager defaults below, and an Admin can switch any permission on or off for one Manager without changing anyone else. | Area | Permission | Manager default | | --- | --- | --- | | Messaging | See the Inbox | On | | Messaging | Reply in the Inbox (send messages and templates, ask for call permission) | On | | Messaging | See calls | On | | Contacts | See contacts | On | | Contacts | Edit contacts (rename, add and delete notes, profile details, tags and categories) | On | | Contacts | See full phone numbers (without it, only the last 4 digits show) | Off | | Templates | See templates | On | | Templates | Create and edit templates | On | | Templates | Delete templates | Off | | Flows | See Flows | On | | Flows | Create and edit Flows | On | | Flows | Delete or deprecate Flows | Off | | Automation | See automations | On | | Automation | Create and edit automations (including turning them on or off) | On | | Automation | Delete automations | Off | | Connections | See connections (also opens Health) | On | | Connections | Manage connections (rename, pause, delete, forwarding, calling, username) | Off | | API | See API keys | Off | | API | Manage API keys (create, rotate, test, revoke) | Off | | API | See API logs | On | | Billing | See billing | On | | Billing | Manage billing (pay, change or cancel the plan, redeem codes) | Off | | Team and settings | See the team | On | | Team and settings | Invite people (as Managers) | Off | | Team and settings | Change Switchboard settings (name, logo, credit limit, retention, email preferences) | Off | | Compliance | See compliance | On | | Compliance | Make data requests (export the data, erase a contact) | Off | | Insights | See analytics | On | | Insights | See webhook logs | On | | Support | Use Support (open and reply to tickets) | On | A few things stay with Admins whatever the permissions: changing roles, removing members, revoking invites, changing permissions, the **Activity** log, inviting another Admin, and pausing, resuming or deleting the Switchboard. Your own account (profile, security, deleting your account) is always yours. #### Changing a member's permissions Only an Admin can do this. Switchboard > Members"> Admins see a **Permissions** button in every row (on a phone it shows as a key icon). Their permissions open on the same page, grouped by area. Each one has a switch and a label: **From role** (the Manager default), **Added for this person**, or **Removed for this person**. For an Admin every switch is on and locked, with a note that Admins always have every permission. Switching one on also switches on what it needs (for example **Reply in the Inbox** also turns on **See the Inbox**); switching one off also switches off what depends on it. **Reset to role defaults** puts every switch back to the Manager defaults. Nothing is saved yet. Above the buttons, **Before you save** lists what the person will be able to do and what they will no longer be able to do. Click **Save changes** (or **Discard changes**). You see "[Name]'s permissions are updated". What happens next: - The change applies straight away - the next page the person opens or the next action they take uses it. - They get a **Permissions changed** email listing what they can now do and what they can no longer do, and the same news in their notifications bell. It can't be turned off. - The change appears in the **Activity** log as "Changed a member's permissions". Changing someone's role (for example making a Manager an Admin, or back) clears their individual permissions, so they start from the new role's defaults. ### The member list Open **Settings > Switchboard > Members**. Everyone can see it. | Column | What it shows | | --- | --- | | **User** | The person's avatar and full name ("Unnamed" if they haven't set one in [Profile](https://docs.theavoxai.com/settings/profile)). | | **Joined** | The date they joined this Switchboard. | | **Role** | **Admin** or **Manager**. | Admins also see a **Permissions** button and a remove button (an X) at the end of each row. A Manager whose permissions don't include **See the team** sees "You can't see this Switchboard's team. Ask an Admin for access." instead of the list. Use **Search members…** to filter the list by name. If nothing matches, the list says "No members match that search." ### Removing a member Only an Admin can remove someone. Switchboard > Members"> Admins see a remove button (an X) at the end of every row except their own. They're removed straight away and you see "Member removed". What happens next: - The person loses access to this Switchboard immediately. Their own Avox account and their other Switchboards aren't affected. - They get a **Removed from a Switchboard** email saying who removed them (see [Emails](https://docs.theavoxai.com/emails)). - The removal appears in the **Activity** log as "Removed a member". - Anything they created (templates, automations, replies) stays in the Switchboard. If the removal fails you see "Couldn't remove that member" - try again. ### Leaving a Switchboard Any member - Admin or Manager - can leave: Make sure the Switchboard you want to leave is the one you're viewing. Open any **Settings** page and click **Leave Switchboard** at the bottom of the settings menu (on a phone, at the bottom of the settings page). The **Leave [Switchboard name]?** dialog explains "You'll lose access straight away. An Admin can invite you back later." Click **Leave Switchboard** to confirm, or **Cancel**. You're taken to the dashboard home, showing another Switchboard you belong to, and the one you left disappears from your list. If it was your only Switchboard, you land on **Create your first Switchboard** instead. A Switchboard always keeps at least one Admin. If you're the only Admin, the dialog reads **You can't leave yet** - "You're the only Admin, and a Switchboard always needs one." - and offers two other ways out: **Pause this Switchboard** (stops its numbers and automations, keeps everything) or **Delete this Switchboard** (removes it and everything in it, for good). Otherwise, [make an existing member an Admin](#changing-someones-role), or [invite](https://docs.theavoxai.com/switchboard/invites) another Admin and wait for them to accept, then leave. Leaving is recorded in the **Activity** log as "Left the Switchboard". No email is sent. ### Changing someone's role Only an Admin can change roles. You don't need to remove and re-invite anyone - change it straight from the member list: Switchboard > Members"> Admins see a role menu (**Admin** or **Manager**) in the **Role** column of every row. Managers just see the role as text. Choose **Admin** or **Manager** for the person. Nothing changes yet - a confirm line opens under their row asking, for example, "Make Riya an Admin?" or "Change Riya to Manager?". Click **Make Admin** or **Change to Manager** (or **Cancel** to leave it as it was). You see "Riya is now an Admin" (or "a Manager") and the list updates. For your own row the question reads "Change yourself to Manager?" and the confirmation "You're now a Manager". What happens next: - The new role applies straight away - the next page they open uses it. Any individual [permissions](#permissions) they had are cleared, so they start from the new role's defaults. - They get a **Role changed** email saying who changed it, the old role and the new one (see [Emails](https://docs.theavoxai.com/emails)). It can't be turned off. - The change appears in the **Activity** log as "Changed a member's role". You can also change your **own** role from Admin to Manager, as long as another Admin exists - you'll lose access to the team, billing and most settings straight away. A Switchboard always keeps at least one Admin, so if you're the only Admin your own role menu is locked; hover over it to see why. Make someone else an Admin first. If the change fails you see "Couldn't change that role" with one of these codes: | Code | What it means | What to do | | --- | --- | --- | | [AVX-2009](https://docs.theavoxai.com/error-codes/avx-2009) | The change didn't go through. | Try again. | | [AVX-2010](https://docs.theavoxai.com/error-codes/avx-2010) | It would leave the Switchboard with no Admin. | Make someone else an Admin first. | | [AVX-2011](https://docs.theavoxai.com/error-codes/avx-2011) | Only an Admin can change roles - you're no longer an Admin of this Switchboard. | Refresh the page, or ask an Admin. | Accepting an invite never lowers someone's role. If a person who is already a Manager accepts an older, still-open Admin invite, they become an Admin; an Admin who accepts a Manager invite stays an Admin. ### The Activity log Admins see a fifth tab, **Activity**, in **Settings > Switchboard**. It lists the 50 most recent actions on the Switchboard, newest first, each with who did it and when ("What members and Managers have done on this Switchboard - visible to Admins only."). Use the **Everyone** menu to show one member's actions only. | Entry | What happened | | --- | --- | | Invited a member | An Admin sent an invite. | | Removed a member | An Admin removed someone. | | Left the Switchboard | A member (Admin or Manager) left. | | Changed a member's role | An Admin made someone an Admin or a Manager. | | Changed a member's permissions | An Admin gave a Manager extra permissions or took some away. | | Updated Switchboard settings | The name, logo, business details, billing address, or automation credit limit changed. | | Paused a connection / Resumed a connection | An Admin paused or resumed a WhatsApp number. | Someone who has since left shows as "A former member". An empty log says "Nothing recorded yet." ### Emails each role receives Who gets a Switchboard's emails depends on the role. The full list is on [Emails](https://docs.theavoxai.com/emails). - **The Owner** gets payment receipts, payment-failed notices, the "subscription canceled" notice from PayPal, delete-connection codes, Meta's critical alerts, API problem reports, and setup reminders. - **Every Admin** gets plan-ending reminders, the "plan ended" notice, automation-credit warnings, API key notices, new and removed WhatsApp numbers, rejected or paused templates and Flows, and Meta access expiry warnings. - **Everyone** gets their own account and security emails, the **Role changed** and **Permissions changed** emails when an Admin changes their access, and replies to tickets they opened. ### Related errors - [AVX-2007](https://docs.theavoxai.com/error-codes/avx-2007) - that email is already a member. - [AVX-2006](https://docs.theavoxai.com/error-codes/avx-2006) - an invite couldn't be sent. - [AVX-2004](https://docs.theavoxai.com/error-codes/avx-2004) - the Switchboard couldn't be saved. - [AVX-2009](https://docs.theavoxai.com/error-codes/avx-2009), [AVX-2010](https://docs.theavoxai.com/error-codes/avx-2010), [AVX-2011](https://docs.theavoxai.com/error-codes/avx-2011) - a role couldn't be changed. - [AVX-3093](https://docs.theavoxai.com/error-codes/avx-3093) - your account can't be deleted while you're a Switchboard's only Admin. --- ## Invites URL: https://docs.theavoxai.com/switchboard/invites Section: Team People join a Switchboard by invitation. An Admin sends an invite to an email address, the person opens the link in that email, and they're in. This page covers every step on both sides, plus creating a brand new Switchboard of your own. ### Who can invite An **Admin** can send and revoke invites. Managers can see the **Invitations** list, but their **Invite** button is greyed out ("Ask an Admin for access") unless an Admin has given them the **Invite people** permission (see [Permissions](https://docs.theavoxai.com/switchboard/members#permissions)). A Manager with that permission can invite people as **Managers** only - inviting another Admin, and revoking invites, stay with Admins. An invite sent by a Manager stops working if that Manager loses the permission or leaves before it's accepted. See [Members and roles](https://docs.theavoxai.com/switchboard/members) for everything each role can do. ### Sending an invite Switchboard > Invitations"> Make sure the Switchboard you want to invite into is the one you're currently viewing - the invite always goes to the Switchboard on screen. The **Invite someone** dialog opens. Type it in **Email** (for example `teammate@company.com`). It must be a valid email address, or you see "Enter a valid email address". Choose **Admin** or **Manager**. **Manager** is selected by default. You see "Invite sent to" followed by the address, and the invite appears in the list as **pending**. #### When an invite can't be sent | What you see | Why | What to do | | --- | --- | --- | | "That email is already a member" ([AVX-2007](https://docs.theavoxai.com/error-codes/avx-2007)) | That person is already in this Switchboard. | Nothing - they already have access. To change their role, see [Changing someone's role](https://docs.theavoxai.com/switchboard/members#changing-someones-role). | | "An invite is already pending for that email" (shown with [AVX-2007](https://docs.theavoxai.com/error-codes/avx-2007)) | There's already an open invite for that address. | Wait for them to accept, or revoke it and send a new one (see [Re-sending an invite](#re-sending-an-invite)). | | "Couldn't send that invite" ([AVX-2006](https://docs.theavoxai.com/error-codes/avx-2006)) | The invite couldn't be created - for example you're no longer an Admin of this Switchboard, lots of invites were sent in a short time, or you haven't finished onboarding yet. | Wait a minute, check the address, and try again. If you're a Manager, ask an Admin to send it. If Avox asked you to answer the onboarding questions again, finish them first. | ### The invite email The person you invite gets a **Team invite** email. It says: - who invited them (your full name, or your email address if you haven't set a name), - which Switchboard it's for, - the role they're invited as (**Admin** or **Manager**), - a button that opens their personal invite link. The link is personal to that invite, works once, and only for someone signed in with the invited address. The email is a mandatory service email - it can't be turned off. See [Emails](https://docs.theavoxai.com/emails) for every email Avox sends. ### Accepting an invite The link opens the invite page on theavoxai.com, titled **Join** followed by the Switchboard's name. It shows: - the Switchboard's name and **Invited by** with the inviter's name, - small avatars for the people already in the Switchboard (just shapes - no names or emails), - **Your role**, with what it means: Admin is "Full access - connections, billing, team and every setting", Manager is "Day-to-day work - inbox, templates, flows and automations", - **For** and the invited email address, - **Invite open for**, a countdown to when the invite expires. What you do next depends on whether you're signed in: | Your situation | What the page offers | | --- | --- | | Not signed in, already have an Avox account | **Sign in to accept**. You come straight back to the invite after signing in. | | Not signed in, new to Avox | **New to Avox? Create your account**. The invited address is filled in for you ("We'll fill in your address for you"). | | Signed in with the invited address | **Accept invite**. Under the button: "By accepting, you agree to the Terms of Service and Privacy Policy." | | Signed in with a different address | "This invite is for another account", then **Sign out and switch**, which signs you out and opens sign-in with the invited address. | After **Accept invite**, the page shows **Welcome to** the Switchboard's name and "You've joined", then opens your dashboard a moment later. **Go to dashboard** takes you there straight away. You must sign in with the **exact address the invite was sent to**, and that address must be confirmed. If it isn't confirmed yet you see "Confirm your email address before accepting an invite"; if you're signed in as someone else you see "This invite was sent to a different email". #### Signing up from an invite If you create your Avox account while an invite to your address is open, Avox doesn't make an empty Switchboard for you - you join the one you were invited to as soon as you accept. If you sign up without an open invite, you get a Switchboard of your own as usual, and accepting an invite later simply adds a second Switchboard to your list. Like everyone, you finish a short onboarding chat before the dashboard opens. If you joined by invite and don't run a Switchboard of your own, it only asks about you, such as your name and phone, not the business questions: those belong to the Switchboard's Admin. See [Details asked during onboarding](https://docs.theavoxai.com/settings/profile#details-asked-during-onboarding). #### Accepting when you're already a member Accepting an invite never lowers your role. A Manager who accepts an open Admin invite becomes an Admin; an Admin who accepts a Manager invite stays an Admin. ### After someone joins - The Switchboard appears in their Switchboard list. They switch to it from the Switchboard switcher in the dashboard header, or from **Settings > Switchboard > Workspaces > Switch to this one**. - The invite's status changes to **accepted**. - The person who sent the invite gets a **Team member joined** email with the new member's name, email address, and role. - Their agreement to the Terms of Service and Privacy Policy is recorded and shows under **Agreements** in their [Profile](https://docs.theavoxai.com/settings/profile) as "when you joined a Switchboard". ### Expiry An invite stays open for **7 days**. After that: - The link stops working. Opening it shows "This invite has expired - Invites stay open for 7 days. Ask whoever invited you to send a new one." - The invite's status changes to **expired**. - The person who sent it gets a **Team invite expired** email (if they're still in the Switchboard), with a link back to the team page. ### Revoking an invite An Admin can withdraw a **pending** invite before it's accepted. Switchboard > Invitations"> Pending invites have a **Revoke** button. You see "Invite revoked" and the status changes to **revoked**. Anyone who opens a revoked link sees "This invite was withdrawn - The Switchboard's admin cancelled it." No email is sent to them. If revoking fails, you see "Couldn't revoke that invite" - try again. ### Re-sending an invite There's one open invite per email address at a time. To send a fresh one (for example the email was lost, or the invite expired): 1. If the old invite is still **pending**, click **Revoke** on it. 2. Click **Invite** and send to the same address again. The person gets a new email with a new link, open for another 7 days. ### The Invitations list **Settings > Switchboard > Invitations** shows every invite for this Switchboard, with: | Column | What it shows | | --- | --- | | **Email** | The invited address. | | **Role** | **Admin** or **Manager**. | | **Status** | **Pending** (waiting), **Accepted**, **Revoked**, or **Expired**. | If there are none yet, it says "No invitations yet." ### Invite links that don't work | Page title | Meaning | | --- | --- | | This invite has expired | More than 7 days passed. Ask for a new invite. | | This invite's already been used | It was accepted. If that was you, sign in and pick the Switchboard from your list. | | This invite was withdrawn | An Admin revoked it. Ask for a new one. | | This invite link is incomplete | Part of the link is missing. Open it again from the button in the email. | | We couldn't find that invite | The link isn't recognised. Check you opened the whole link. | | Couldn't load this invite | A temporary problem on our side. Refresh in a moment - the invite is still there. | ### Creating a new Switchboard A new Switchboard is a separate workspace with its own connections, contacts, templates, Flows, automations, and team. You become its first Admin - its [Owner](https://docs.theavoxai.com/switchboard/members#the-owner-owner-of-record). #### Before you start - You need an **active plan**. Without one, the page shows "Subscribe to a plan first" with [AVX-2002](https://docs.theavoxai.com/error-codes/avx-2002) and a **View plans** button. - Your plan sets how many Switchboards you can create. Every Switchboard where you're an Admin counts, including ones you were invited to as an Admin. **Billing** shows "Switchboards created" as *used of allowed*. When you've used them all, the **Add another Switchboard** card says you've used all the Switchboards your plan allows and shows **Upgrade**. See [Plans](https://docs.theavoxai.com/plans) for each plan's limit. - Your plan's WhatsApp connections are one shared pool across every Switchboard where you're an Admin. Templates, Flows, and automations are counted per Switchboard instead. See [Plans](https://docs.theavoxai.com/plans). #### Steps Go to **Settings > Switchboard > Workspaces** and click **Create Switchboard**. The **+** next to your Switchboard's name in the header, **Create Switchboard** on the "Choose a Switchboard" screen, search, and **Create new Switchboard** on the **Billing** page all open the same page. Click the round upload button next to **Logo** and choose an image. You can also add one later. Type a **Switchboard name** (for example "Acme Support"), 1 to 60 characters. The new Switchboard becomes the one you're viewing, and you go straight to its onboarding questions. The page lives in Settings (**Settings > Switchboard > Create Switchboard**). It shows how many of your plan's Switchboards you own, and when they're all in use it says "Your plan has no room for another Switchboard" with **See plans** instead of the form. If you don't have a Switchboard at all yet, the same page is titled **Create your first Switchboard** ("You don't have a Switchboard yet - every WhatsApp connection lives inside one"). Once you have one, it's titled **Create Switchboard**, shows **Back to Your Switchboards**, and lists **Your Switchboards** beside the form. #### Errors | What you see | What to do | | --- | --- | | "Give your Switchboard a name" or "Keep it under 60 characters" | Enter a name between 1 and 60 characters. | | "Couldn't create that Switchboard" ([AVX-2008](https://docs.theavoxai.com/error-codes/avx-2008)) | Nothing was changed - try again. This also appears when your plan's Switchboard limit is reached. | | "Switchboard created, but the logo didn't upload" ([AVX-2005](https://docs.theavoxai.com/error-codes/avx-2005)) | The Switchboard exists. Add the logo later from **Settings > Switchboard > General > Change icon**. | --- ## Plans URL: https://docs.theavoxai.com/plans Section: Plans and billing Avox has three plans - Starter, Growth and Business. Each one includes the shared inbox, templates, Flows, Tables, connected apps, Automation and Avox AI, plus smart links and QR codes, Broadcasts, Chat signals and Analytics. What changes between them is how much of each you get, and whether the plan includes API access. Everything on this page is read live from the same place [Avox pricing page](https://theavoxai.com/pricing) reads it, so the cards, prices and limits below are always the ones you can buy today. ### The plans With Yearly, you still pay every month, just at a lower price, for 12 months. Over the year you save about the cost of 2 months, so it's "2 months free". Example: Starter is $24 a month on Monthly ($288 a year) or $20 a month on Yearly ($240 a year), so you save $48. Cancelling before 12 months has a small fee. Switch the tabs above the cards to see each billing option. Each card shows: - **The plan name, who it suits and its detail line** - how many WhatsApp numbers, automations and Switchboards the plan includes, and the automation credits for the billing option you picked. The credits figure changes with the tab, because each billing option grants a different amount. - **The price** - always a whole number. Monthly and Yearly show the monthly payment ("/mo"); One-time shows the single payment that covers the whole year ("/yr"). A struck-through price, when a card has one, is the regular price before a launch or promotional price. - **The feature lines** - what the plan includes, in groups: your workspace, automation, reaching customers and building on Avox. Every number comes from the plan itself. A line with a lock is something the plan doesn't include. ### Billing options Every plan can be paid three ways. The price of each option is worked out from the plan's monthly price, rounded to a whole number: - **Monthly** - the plan's monthly price, every month, with no minimum term. Cancel whenever you like. - **Yearly** - a 12-month commitment, still billed monthly, with each payment off the monthly price. Cancelling before all 12 payments are made has a flat $8 (USD) early-cancellation fee; after that it carries on month to month with no fee. See [Cancel](https://docs.theavoxai.com/billing/cancel). - **One-time** - the whole year in one payment, off twelve monthly payments. It doesn't renew by itself. Every plan comes with a 15-day money-back guarantee on its first payment - see [Refunds](https://docs.theavoxai.com/billing#refunds). Every plan is paid through PayPal, in US dollars. Checkout always shows the exact amount you'll pay before you confirm it with PayPal. ### Limits on each plan What each limit counts: - **Switchboards you can own** - how many Switchboards (workspaces) you can be an Admin of. Every Switchboard where you're an Admin counts, including one you were invited to as an Admin; Switchboards where you're a Manager don't. See [Switchboards](https://docs.theavoxai.com/switchboard). - **WhatsApp numbers** - connected numbers across every Switchboard where you're an Admin, added together. Only numbers that are actually connected count; one that's still being set up or was disconnected doesn't. See [Connections](https://docs.theavoxai.com/connections). - **Templates, Flows and Automations per Switchboard** - each Switchboard gets its own allowance of each. See [Templates](https://docs.theavoxai.com/templates), [Flows](https://docs.theavoxai.com/flows) and [Automation](https://docs.theavoxai.com/automation). - **Tables and rows** - Tables are simple spreadsheets your Flows and Automation read and write. Each Switchboard gets its own number of tables, and each table holds up to the plan's number of rows. Archived tables count too. See [Tables](https://docs.theavoxai.com/tables). - **Connected apps** - the tools you link to a Switchboard, like payments, calendars, stores, CRMs and spreadsheets, so your Flows and Automation can use them. "All apps" means the plan allows every app Avox can connect. See [Connected apps](https://docs.theavoxai.com/connections/apps). - **Live Flow requests** - each screen of a live Flow that asks Avox for data is one request, counted per Switchboard each calendar month. Health checks don't count. - **Smart links** - live, scheduled, paused and ended smart links count. Drafts don't, and deleting a link frees its place. When a plan shows Unlimited, there's no cap. Extra links bought once with PayPal sit on top of the plan's number and never expire. - **Broadcasts a month** - a broadcast counts once it starts sending, and ones already scheduled for this month are held for it. Drafts don't count. Counts start again on the 1st of each month (UTC). When a plan shows Unlimited, there's no cap. Meta charges the messages themselves to your own Meta account. - **Custom chat signals** - signals a Switchboard makes itself or adds from a ready-made pack count, switched on or off. The six built-in signals never count, and deleting a custom one frees its place. When a plan shows Unlimited, there's no cap. See [Chat signals](https://docs.theavoxai.com/chat-signals). - **Builder API reads and writes** - calls your own code makes to manage Tables, Flows, templates and automations, counted per Switchboard each day (UTC). Reads (listing and viewing) and writes (creating, changing and deleting) are counted separately. Sending messages through the API doesn't count. A plan without API access shows "-". See [Builder API](https://docs.theavoxai.com/avox-api/builder). - **Automation credits** - one credit is spent each time an automation sends a reply. Monthly and Yearly subscriptions get a fresh allowance every month (Yearly's is larger); a One-time purchase gets the whole year's allowance at once. See [Credits](https://docs.theavoxai.com/automation/credits). One plan covers you everywhere: your plan lives on your first Switchboard and applies to every Switchboard where you're an Admin. [Billing](https://docs.theavoxai.com/billing) shows how many of your WhatsApp numbers and Switchboards are in use. ### What each feature means ### Checking out Choosing a plan on the [pricing page](https://theavoxai.com/pricing) opens checkout. You need to be signed in; if you aren't, you sign in (or create an account) first and come straight back with the same plan, billing option and code. - **What you've already told us is filled in.** Your name, business name and phone number from the welcome chat, and the billing address and country from an earlier purchase, are already in the form. Checkout opens on the first step that still needs something; when nothing does, it opens on the review, and **Back** takes you to any step to change a detail. Your username is kept: checkout never makes you a new one. - **Date of birth.** Avox plans are for people 18 or older. If your account doesn't have a date of birth yet, checkout asks for it once, in the first step, and saves it on your account. A date under 18 stops the purchase ([AVX-1132](https://docs.theavoxai.com/error-codes/avx-1132)). To change a saved date, use Settings > Profile, or contact [Support](https://docs.theavoxai.com/support) if it can't be changed there. - **Billing country.** Once a Switchboard has paid for anything, its billing country stays the same and checkout shows it greyed out. Contact [Support](https://docs.theavoxai.com/support) if it needs to change. - **Paying.** Every plan is paid through PayPal, so there's no payment method to choose: tick the box to agree to the terms and the PayPal button appears. A coupon that makes the plan free shows an **Activate** button instead. - **Leaving and coming back.** What you typed is kept in that browser tab for 15 minutes, so the browser's Back button or a reload brings you back to the same step with the same details. Only a Switchboard Admin (or a Manager an Admin gave billing access) can buy a plan ([AVX-1137](https://docs.theavoxai.com/error-codes/avx-1137)). Avox staff accounts can't buy plans. The 18-or-older rule applies everywhere a plan starts or changes, not just checkout: changing plan, starting a free trial, opening a gifted plan, accepting a plan offer and resuming a paused account all check the date of birth on your account first. With no date saved you're asked to add it ([AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110)); a date under 18 stops it ([AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111)). Plans the Avox team grants by hand aren't blocked, but the team sees the same check first. ### Coupons and gifts A coupon takes money off the price of the billing option you choose - it always applies on top of the Yearly or One-time discount, never instead of it. A coupon can be a percentage off, a fixed amount off, or free, and it can cover just the first payment, a set number of payments, or every payment. On a One-time purchase it applies once, to the single payment. The total after a coupon is still a whole number. Some coupons are applied for you automatically at checkout when you qualify; if more than one fits, you get the one that saves you the most today. A coupon that makes the plan free activates it straight away, with no payment step. Point at an applied code in the checkout summary, move to it with the keyboard, or tap it on a phone to see its details in plain words: what it takes off and for how long, which plans and billing options it works on, when it ends, and any limits, like one use per account. Amounts are shown in rupees first for India, with the US dollars beside them. Two coupons can be used together when both of them allow it: after the first code, checkout shows **Add another code?**. An automatic coupon that combines with your typed code stays applied next to it. Percent-off codes apply first, then amount-off ones, and if the two last for different lengths, checkout shows each price you'll pay and for how long. Gift codes and 100% off codes always work on their own, and two codes can't together make a payment free. A gift is a plan the Avox team sets aside for you and sends by email with its own link and a personal code. Accepting it takes you to checkout with the gift already applied. You can use one code per purchase (two when both allow combining), and codes have no cash value. See [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts) for redeeming either one. ### Upgrading and downgrading - **Monthly or Yearly subscriptions** can move to any other plan from [Billing > Change plan](https://docs.theavoxai.com/billing/change-plan). PayPal usually asks you to approve the change; your plan switches as soon as PayPal confirms it, and your new limits apply from that moment. - **The new price starts with your next payment.** There's no extra charge or credit for the rest of the current month. - **Your billing option stays the same.** A Yearly subscription moves to the new plan's Yearly price (at today's Yearly discount); a Monthly one moves to its monthly price. To move between Monthly and Yearly, cancel and check out again on the option you want, or ask [Support](https://docs.theavoxai.com/support) to help. - **One-time purchases** are paid up for the year - contact [Support](https://docs.theavoxai.com/support) to change plan. - **A plan you've already cancelled** keeps working until the end of the period you paid for. To change plan in the meantime, subscribe to the new one - it replaces the old one straight away. See [Change plan](https://docs.theavoxai.com/billing/change-plan) and [Cancel](https://docs.theavoxai.com/billing/cancel) for every step. ### When a plan stops A plan stops when it ends, is cancelled, expires, is paused or a payment is overdue. Your conversations stay in Avox and new messages from customers keep arriving. - **Inbox replies** keep working for 7 days after the plan stops. The Inbox shows the exact time replying ends. After that the Inbox is read-only: you can still read conversations, search and open contacts, but you can't reply from Avox until the plan is renewed. - **Your WhatsApp username and calling** can only be changed while the plan is active. - **A member of someone else's Switchboard** follows that Switchboard owner's plan, so the owner is the one who renews. Choose a plan again in [Billing > Change plan](https://docs.theavoxai.com/billing/change-plan) and replying works again straight away. --- ## Billing URL: https://docs.theavoxai.com/billing Section: Plans and billing Your Avox plan is paid through **PayPal**. Everything about it - the plan you're on, its status, what you pay, your invoices, and Meta's own WhatsApp charges - is on your dashboard's **Billing** page. This page explains how it all fits together. The step-by-step guides are: - [Change plan](https://docs.theavoxai.com/billing/change-plan) - upgrading, downgrading, and switching billing option. - [Cancel](https://docs.theavoxai.com/billing/cancel) - cancelling, the early-cancellation fee, and what happens after. - [Invoices](https://docs.theavoxai.com/billing/invoices) - invoices, receipts, and payment history. - [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts) - discount codes, gifted plans, and business offers. - [Plans](https://docs.theavoxai.com/plans) - what each plan includes, with live prices and limits. ### How billing works - **PayPal is the payment method.** You approve each subscription or payment in PayPal. Avox never sees or stores your card or bank details. - **Charged in US dollars.** PayPal charges the US dollar amount shown at checkout. If your billing address is in India, checkout also shows prices in rupees (₹) - those are an estimate at today's exchange rate, and your bank may convert slightly differently. If your card or bank account uses another currency, PayPal or your bank converts it at their own rate. - **Rupees first for India accounts.** If your billing country is India (or, before you've added a billing address, Avox detects you're in India), your dashboard's Billing pages show amounts in rupees first, converted at the current rate, with the US dollar amount you're actually charged beside them - for example "₹2,436 (charged as $29.00)". This covers your plan's price, **Manage subscription**, payment history, invoices and credit packs. Everyone else sees plain US dollars. - **Whole numbers only.** Every price Avox shows or charges is a whole number of the currency - no cents. - **One plan covers all your Switchboards.** Your plan lives on the first Switchboard you joined (your billing Switchboard) and covers every Switchboard where you're an Admin. Its WhatsApp connections are one shared pool; templates, Flows, and automations are counted per Switchboard. - **Meta's message fees are separate.** WhatsApp conversation charges are billed by Meta to your own WhatsApp Business Account, not by Avox. See [Meta charges and payment problems](#meta-charges-and-payment-problems). ### Billing options At checkout you pick one of three options. The discounts for Yearly and One-time are the ones shown on the pricing cards and at checkout - they're set by Avox and can change, and checkout always shows the exact amount before you approve anything in PayPal. | Option | How you pay | Renews? | Automation credits | | --- | --- | --- | --- | | **Monthly** | A PayPal subscription charged every month at the plan's monthly price. No minimum term. | Yes, every month until you cancel. | The plan's monthly allowance, refreshed every month. | | **Yearly** | A 12-month commitment, still charged **monthly** through PayPal, each payment at the Yearly discount shown on the pricing cards. Cancelling before all 12 payments are made has a flat $8 (USD) early-cancellation fee. | Yes, every month. After the 12th payment it carries on month to month at the same price until you cancel, with no fee. | A larger monthly allowance, refreshed every month. | | **One-time** | The whole year in **one** PayPal payment, at the One-time discount shown on the pricing cards (off 12 monthly payments). | No. It covers one year and doesn't renew by itself. | A full year's credits at once when the plan starts. | A coupon applies on top of whichever option you pick. See [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts). ### Buying a plan Checkout opens with everything Avox already knows about you filled in: your name, business name and phone from your account (or from an earlier checkout), and your saved billing address. It starts at the first step that still needs something. When nothing does, it opens straight on the review (step 3) with "We filled in the details saved on your account. Check them below, or go back to change them." If your saved details can't be loaded, you see [AVX-1135](https://docs.theavoxai.com/error-codes/avx-1135) and fill them in yourself. On [theavoxai.com/pricing](https://theavoxai.com/pricing), choose a plan and a billing option. You're asked to sign in (or create an account) first if you aren't signed in. Step 1 of 3 asks for **Your name**, **Business name**, your email address, and **Phone number** (with its country code). Your name also renames your account. If your account has no date of birth yet, **Date of birth** is asked here too (once only). Click **Save & Continue**. Step 2 of 3: **Country**, **Address line 1**, **Address line 2 (landmark, optional)**, **City**, **State**, and **Postal code** (shown as **Pincode** for India). Click **Save address & Continue**. This address is saved to your [Business](https://docs.theavoxai.com/settings/business) settings. Step 3 of 3: check the **Checkout summary**, switch between **Monthly**, **Yearly**, and **One-time**, and add a code under **Have a coupon?** if you have one. Tick the box to agree to the Terms of Service, Privacy Policy, and Cancellation & Refund Policy. PayPal is the only way to pay, so there's no payment method to choose: just PayPal's button. It appears once you've agreed (until then the button area reads "Agree to the terms above to continue"). Approve the subscription or payment in PayPal's window. #### Date of birth Avox plans are for people aged 18 and over. Checkout asks for your date of birth only when your account doesn't have one yet (you may already have given it in the dashboard or in [Settings > Profile](https://docs.theavoxai.com/settings/profile#your-details)), and saves it on your account. | Code | When | | --- | --- | | [AVX-1130](https://docs.theavoxai.com/error-codes/avx-1130) | The date of birth was left empty. | | [AVX-1131](https://docs.theavoxai.com/error-codes/avx-1131) | The date isn't a real date of birth. | | [AVX-1132](https://docs.theavoxai.com/error-codes/avx-1132) | The date shows you're under 18. | | [AVX-1133](https://docs.theavoxai.com/error-codes/avx-1133) | The date couldn't be saved. Try again. | | [AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110) | A date of birth is needed before the plan can start: checkout takes you back to step 1 to add it. | | [AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111) | The account is under 18. | If your account is under 18, checkout stops on **Avox plans are for adults**, with **Contact Avox** in case your date of birth is wrong. #### Billing country Once the Switchboard has made a payment (or has a plan running), its billing country is locked: your prices and invoices were worked out for that country. Checkout still shows it, but you can't change it there ("Your billing country can't be changed after a payment. Contact support if it needs to change."). The rest of the address can still be edited. If the country really needs to change, contact hello@theavoxai.com. #### Coupon details Once a coupon is applied, its code in the **Checkout summary** is underlined. Hover over it, move to it with the keyboard, or tap it to see what the code gives and for how long, which plans and billing options it works on, when it ends, and its limits. Escape, moving away or tapping elsewhere closes it. See [Coupon details](https://docs.theavoxai.com/billing/coupons-and-gifts#coupon-details). #### Who can't check out - **Avox staff accounts** can't buy plans: checkout shows **Staff accounts can't check out** ([AVX-1136](https://docs.theavoxai.com/error-codes/avx-1136)). Sign in with a customer account instead. - **Managers** without the **Manage billing** permission can't buy a plan for the Switchboard: checkout shows **Ask an Admin to buy this plan** ([AVX-1137](https://docs.theavoxai.com/error-codes/avx-1137)) before you fill anything in. Your plan starts as soon as PayPal confirms the payment. The thank-you page shows "Confirming your payment…" and then "You're all set". If the confirmation doesn't reach Avox, checkout keeps your PayPal approval and shows **Try again** - "You won't be charged twice." PayPal's button is a third-party script, so it only loads once you've allowed **Third-party integrations** in the cookie banner. If you haven't, checkout shows **Allow PayPal to load and continue** instead. A checkout tab left open for 15 minutes times out with "This session gave up on you" - click **Back to plans** and start again. You can only have one live plan at a time - checkout won't start a second one, because that would bill you twice ("You already have an active plan. To switch, use Change plan in your dashboard's Billing page - subscribing again would bill you twice."). To move to another plan, use [Change plan](https://docs.theavoxai.com/billing/change-plan). A plan you've cancelled that's still running out its paid time doesn't block a new checkout: the new plan replaces it straight away. ### Offers and discounts Now and then Avox may send you a small offer or reminder, for example: - a thank-you before your plan renews - a code if you cancelled and might want to stay - a reminder to finish a checkout you started Each one arrives as a notice in your dashboard bell, and usually by email too. - **Personal codes.** A code made for you works once, only while you're signed in to your own account with the same email address, and only until the date shown. It doesn't work for anyone else. - **Your offers.** Unused codes and gifts are listed in **Your offers** on the Billing page, with the date they stop working. **Apply at checkout** opens checkout with the code filled in (a gift has **Accept gift**). You can also type a code under **Have a coupon?**. **See all offers** opens **Settings > Offers**, where every offer from Avox is kept - see [Offers in your dashboard](https://docs.theavoxai.com/billing/coupons-and-gifts#offers-in-your-dashboard). - **Plans that renew by themselves.** A code applies to a new checkout rather than to a monthly or yearly PayPal plan that's already running - for example after you've cancelled the renewal. - **Bonus credits.** Credits that come with a reminder email are added to your account straight away. Credits, higher limits and perks sent to your dashboard as an offer are added when you click **Claim** on them. - **Not interested?** Just ignore the email. Nothing changes. You can turn offers and reminders off any time with **Setup reminders** in **Email Preferences** on your dashboard's **Compliance** page, and every offer email has an unsubscribe link. Emails about a failed payment are service emails, so they're still sent. ### Who can manage billing Only an **Admin** of your billing Switchboard (or a **Manager** an Admin has given **Manage billing**) can subscribe, change plan, cancel, or check out with a coupon. Anyone else sees "Only a Switchboard Admin can manage billing. Ask an Admin to make this change." Every member can open the Billing page and see the plan, payment history, and invoices. Payment receipts and payment-failed notices go to the Switchboard's Owner (its first Admin). See [Members and roles](https://docs.theavoxai.com/switchboard/members). ### The Billing page | Part of the page | What it shows | | --- | --- | | **Billing alert** | Only when something needs attention - see [Billing alerts](#billing-alerts). | | **Payment updates** | Only when there's something to say about a payment: one still clearing, PayPal's next try after a failed renewal, a disputed payment, or a recent refund. See [Payment updates](#payment-updates). | | **Your plan** | The plan name, its status badge, what you pay per charge ("/ month, billed monthly" for Yearly, or "One time"), **Connections used** and **Switchboards created** against your plan's limits, installments paid for Yearly, and the plan's features. Links: **Change plan**, **Manage subscription**, and **Buy credits** ([buy more automation credits](#buying-more-credits)). | | **Meta payment problem** | A red banner, only when Meta can't take payment for one of your WhatsApp numbers, with **Fix in Meta** and **How to fix**. See [Payment problems](#payment-problems). | | **Meta payment status** | For each WhatsApp number on the Switchboard you're viewing: **OK**, **Problem** or **Pending**, when it was last checked, **Check again**, and **View Meta invoices**. See [Meta charges and payment problems](#meta-charges-and-payment-problems). | | **Buy more** | Automation credits and smart links side by side, for the Switchboard you're viewing: what you have now, the lowest pack price, **Buy credits** (opens **Billing > Buy credits**) and **Buy smart links** (opens the link packs). When one can't be bought right now it's greyed out with the reason: no plan, unlimited links already, nothing on sale, no **Manage billing** permission, or payments paused by Avox for a short while. See [Buying from the Billing page](#buying-from-the-billing-page). | | **Meta charges** | A daily chart of what Meta charges, by category, for the last 7, 30 or 90 days, with totals, the change from the previous period, the cost per billable message, a table view and a day-by-day reconciliation you can download as CSV. Labelled **Synced with Meta** or **Live estimate**. See [Meta charges](#meta-charges). | | **Your offers** | Only when you have one: personal codes and gifts from Avox that you haven't used yet, each with the date it stops working and **Apply at checkout** (or **Accept gift**), gifts to claim, perks from the team, and **See all offers**. See [Offers and discounts](#offers-and-discounts). | | **Add another Switchboard** | **Create new Switchboard** opens **Settings > Switchboard > Create Switchboard**. With no plan it shows **Subscribe**; when every Switchboard your plan allows is in use it says so and shows **Upgrade**. | | **Invoices** | Every invoice for your plan. See [Invoices](https://docs.theavoxai.com/billing/invoices). | With no plan, **Your plan** says "Choose a plan to create a Switchboard and connect your WhatsApp number." with **View plans**, and lists what a plan opens. **Billing > Manage subscription** shows your plan's **Price**, **Paid via**, **Next billing date** (or **Ends on** once cancelled), and for Yearly the **Installments** paid, followed by your [Payment history and Invoices](https://docs.theavoxai.com/billing/invoices). It's also where you [cancel](https://docs.theavoxai.com/billing/cancel). ### Billing alerts A banner at the top of the Billing page appears only when your plan needs attention. Click it to see the status, the period end, and (for Yearly) the installments paid. | Banner | What it says | Button | | --- | --- | --- | | **Your last payment didn't go through** | "Update your payment method to keep this Switchboard active." ([AVX-3003](https://docs.theavoxai.com/error-codes/avx-3003)) | **Fix billing** opens Manage subscription. The details also link to **Manage subscription** and **Change plan**. | | **This plan is paused** | "Resume anytime - you'll pick up right where you left off." | **Fix billing** opens Manage subscription. The details also link to **Manage subscription** and **Change plan**. | | **Your plan has ended** | "Your connections are paused and your data is safe. Renew to pick up where you left off." ([AVX-3003](https://docs.theavoxai.com/error-codes/avx-3003)) | **Renew plan** opens checkout for the same plan. The details link to **See all plans**. | The **Your plan has ended** banner shows once a plan's last paid day has passed - after a cancellation, at the end of a One-time year, or when a plan switched on by a free code or gift reaches its end date. Renew or buy a plan and your numbers switch back on as soon as it's paid. ### Payment updates **Payment updates** on the Billing page tells you, in plain words, about payments that need a word. It shows only when there's something to say: | Update | What it says | | --- | --- | | **Payment pending** | The amount and what it's for, then why it's waiting: "PayPal is still clearing it, which can take a few working days for a bank payment", "PayPal is reviewing it, which usually takes up to a day", or "We're finishing it on our side in PayPal". It switches on as soon as it clears, and you aren't charged if it doesn't ([AVX-1151](https://docs.theavoxai.com/error-codes/avx-1151)). | | **PayPal tries your payment again on** a date | A renewal didn't go through. Update your payment method in PayPal before then to keep everything running. **Fix my payment** opens Manage subscription ([AVX-1152](https://docs.theavoxai.com/error-codes/avx-1152)). | | **A payment is disputed in PayPal** | The amount that's disputed. Avox sorts it out with PayPal; if it was a mistake, you can close the dispute in PayPal's Resolution Center ([AVX-1153](https://docs.theavoxai.com/error-codes/avx-1153)). | | **Refunded** or **Partly refunded** | Refunds of the last 30 days: the amount, the date and the invoice reference. It can take a few days to show in PayPal or on your card ([AVX-1154](https://docs.theavoxai.com/error-codes/avx-1154)). | Amounts show in the currency you paid in. A pending payment, a failed renewal and a plan that's active again are also sent to you by email and in the bell. After checkout, the thank-you page says **Payment pending** when PayPal is still clearing a plan payment. ### Plan statuses | Status | Meaning | Do your numbers work? | | --- | --- | --- | | **Active** | Paid and running. | Yes | | **Trial** | Your plan is in a trial period. It works exactly like Active. | Yes | | **Payment due** | A renewal payment failed. PayPal retries it automatically. | Yes, but no new automation credits until a payment succeeds, and Inbox replies work for only 7 days (see [The Inbox, username and calling when a plan stops](#the-inbox-username-and-calling-when-a-plan-stops)). | | **Paused** | PayPal suspended billing (repeated failed payments), or a payment is disputed or reversed in PayPal. | No - connections and automations pause. | | **Incomplete** | A payment you just approved is still being confirmed. | Not yet | | **Cancels on** a date | You cancelled. The plan keeps working until that date. | Yes, until the date | | Ended | The plan has ended. The **Your plan has ended** banner shows with **Renew plan**, and **Your plan** says "Choose a plan to create a Switchboard and connect your WhatsApp number." | No - connections pause until a plan is active again. | ### Failed payments Your plan shows **Payment due**. The Owner gets a **Payment failed** email (and a note in the bell) with the amount, the date PayPal tries again, a hint from PayPal about why it failed, and a link to fix it. The Billing page shows "Your last payment didn't go through" ([AVX-3003](https://docs.theavoxai.com/error-codes/avx-3003)) and, under [Payment updates](#payment-updates), when PayPal tries again with **Fix my payment**. The failed attempt appears in your payment history as "Payment didn't go through". PayPal retries the payment by itself. Your numbers keep working, but your automation credits aren't topped up until a payment succeeds. When you open the dashboard, a **Your last payment didn't go through** pop-up says what happens now, with **Fix payment**. PayPal can suspend the subscription. Your plan shows **Paused**, and your WhatsApp numbers and automations pause too. You're told in the dashboard ("Your plan is paused"). Everything switches back on automatically ("Your plan is active again") - you don't need to resume anything by hand. When PayPal re-activates a suspended subscription, you also get a **Plan active again** email. The usual fix is to update the payment method in your PayPal account. If you're stuck, open a ticket in [Support](https://docs.theavoxai.com/support). ### When numbers pause for billing When your plan is **Paused** or has ended, every connection on your Switchboards is paused: no automations and no sending through the API. A connection paused for billing can't be resumed by hand from Connections or Health ([AVX-3082](https://docs.theavoxai.com/error-codes/avx-3082)); it switches back on by itself as soon as a plan is active again. Nothing is deleted - your contacts, conversations, and settings stay where they are. ### The Inbox, username and calling when a plan stops A plan stops when it ends, is cancelled, is paused, or a payment is overdue (**Payment due**). From that moment: - **Inbox replies keep working for 7 days.** The Inbox shows a banner with the exact day and time replies stop, and a **Renew** button for the Switchboard's Owner; teammates who can't renew are asked to have the Owner do it. After the 7 days the Inbox is read-only: the reply box is replaced by a notice with **Renew**, and **Request a call** is hidden ([AVX-3420](https://docs.theavoxai.com/error-codes/avx-3420)). Reading conversations, search and contacts keep working, and new messages from customers keep arriving. See [When your plan stops](https://docs.theavoxai.com/inbox#when-your-plan-stops). - **The WhatsApp username and the Calling switch need an active plan**, with no 7-day grace. Your current username and calling setting stay as they are, but the controls show "Needs a plan" with a link to choose one ([AVX-3422](https://docs.theavoxai.com/error-codes/avx-3422), [AVX-3423](https://docs.theavoxai.com/error-codes/avx-3423)). - **A Switchboard that has never had a plan** can read its Inbox but can't reply from Avox ([AVX-3421](https://docs.theavoxai.com/error-codes/avx-3421)). These follow the plan behind the Switchboard: its own, or its Owner's, so teammates in someone else's Switchboard follow that Owner's plan. Renew or pick a plan and everything works again as soon as it's paid. The full list is on [What happens when a plan stops](https://docs.theavoxai.com/billing/cancel#what-happens-when-a-plan-stops). ### Automation credits How you pay decides how many [automation credits](https://docs.theavoxai.com/automation/credits) your plan includes: Monthly gets the plan's monthly allowance, Yearly a larger monthly allowance, and One-time a full year's credits at once. Monthly and Yearly allowances refresh every month. Credits have no cash value. The exact numbers for each plan are on [Plans](https://docs.theavoxai.com/plans). #### Credits that roll over Your unused plan credits roll into the next period **when your plan renews**, on top of its full new allowance, and they're used first. Your plan's rule (and how long they last) is shown on **Settings > Usage**. If the plan is cancelled, expires or its renewal payment fails, unused plan credits are lost at the end of the period - so if you have credits that would roll over and your renewal is at risk, we remind you 3 days before and on the last day, sometimes with a renewal code such as **GET10**. Details: [Credits that roll over](https://docs.theavoxai.com/automation/credits#credits-that-roll-over). #### Buying more credits Need more before your credits renew? **Buy credits** (under **Your plan**, or **Top up** on the Automation page) opens **Billing > Buy credits**, where you pick a credit pack and pay for it once with PayPal, in US dollars. Nothing renews. The credits are added to the Switchboard you're in as soon as PayPal confirms the payment, and you get an invoice and a **Credits purchased** receipt email. - **Top-up prices depend on your plan.** A pack can cost less on some plans or billing options; **Buy credits** always shows (and charges) the price for your own plan. Indian accounts also see a rupee estimate; you're charged in US dollars. - Bought credits are used after your plan's own credits (and any rolled-over ones) each period. - They don't reset with your plan: each pack lasts 12 months from the day you buy it. - Buying needs the **Manage billing** permission, and the Switchboard needs its own plan. A paused Switchboard can buy credits; they're used once it's resumed. The full details are in [Buying more credits](https://docs.theavoxai.com/automation/credits#buying-more-credits). #### Buying from the Billing page The **Buy more** card on the Billing page puts both top-ups side by side for the Switchboard you're viewing: **Automation credits** (your balance and the lowest pack price) and **Smart links** (how many are in use and the lowest pack price). **Buy credits** opens **Billing > Buy credits**; **Buy smart links** opens the same link packs as **Buy more links** on the Smart links page. Prices, who can buy and the PayPal payment are the same as there. A side that can't be used right now is greyed out and says why in plain words: - **No plan** - credits and extra links come with a plan. **See plans** shows them. - **Unlimited links** - your plan already includes unlimited smart links. - **Nothing on sale** - no packs are on sale right now. - **No permission** - buying needs **Manage billing**. Ask an Admin. - **Payments paused** - Avox has paused payments for a short while; nothing can be bought until they're back. The [status page](https://docs.theavoxai.com/status-page) shows when. A paused Switchboard can still buy both: the card says so, and what you buy waits until it's resumed. ### Smart link limits and extra links Your plan sets how many [smart links](https://docs.theavoxai.com/chat-links) each Switchboard can have, and a plan can allow unlimited links. Every link that isn't archived counts (live, scheduled, paused, ended and draft links); archiving a link, or deleting a draft, frees its place. The count is on the **Smart links** page ("Smart links used") and on **Settings > Usage**. When every link is in use, a new one can't be made until there's room ([AVX-1170](https://docs.theavoxai.com/error-codes/avx-1170)), and the links you already have keep working. While a plan is paused it allows no smart links of its own until it's resumed. The full rules: [Smart link limits and extra links](https://docs.theavoxai.com/chat-links/limits). #### Buying extra links When your plan has a limit, **Buy more links** on the **Smart links** page opens the link packs. Pick a pack, check **Total today** and pay once with PayPal. - **Bought once, kept for good.** Nothing renews or expires. The extra links stay with the Switchboard you bought them for, on top of what your plan includes, and you can use them straight away. - **Priced in US dollars.** India accounts see the price in rupees first; PayPal charges the US dollar amount. - **A receipt for each.** You get an invoice and a **Smart links purchased** email, and the payment shows in your payment history as "Extra smart links bought". - **Who can buy:** people with the **Manage billing** permission. Anyone who can see billing sees the packs, with a note to ask an Admin. - **When you can't:** extra links come with a plan, the Switchboard's own or its Owner's ([AVX-1171](https://docs.theavoxai.com/error-codes/avx-1171)), and a plan with unlimited links has nothing to add ([AVX-1172](https://docs.theavoxai.com/error-codes/avx-1172)). A Switchboard whose plan is paused can still buy them, and they count straight away; the plan's own links come back once it's resumed. If PayPal is still clearing a payment, the links are added as soon as it does, and we email you. If something goes wrong after PayPal took the money, the links are added automatically or the payment is refunded ([AVX-1175](https://docs.theavoxai.com/error-codes/avx-1175)). A full refund of a link pack takes those extra links back. Links you already made keep working, but no new link can be made while the Switchboard is over its limit. See [Refunds](#refunds). ### Broadcasts each month Your plan sets how many [broadcasts](https://docs.theavoxai.com/broadcasts) each Switchboard can send each calendar month, and a plan can allow unlimited broadcasts. See [Plans](https://docs.theavoxai.com/plans). - A broadcast counts when someone presses **Send now** or **Schedule**: sent, scheduled, paused and stopped broadcasts all count. Drafts don't. See [Broadcast limits](https://docs.theavoxai.com/broadcasts/limits). - The count starts again on the 1st of each month (UTC). It's on the **Broadcasts** page ("Broadcasts this month") and on **Settings > Usage**. - When the month's broadcasts are used up, new ones wait until next month ([AVX-3868](https://docs.theavoxai.com/error-codes/avx-3868)), or you can [change your plan](https://docs.theavoxai.com/billing/change-plan). There are no extra broadcasts to buy. - Broadcasts need an active plan: with no plan, or a paused one, none can be sent ([AVX-3869](https://docs.theavoxai.com/error-codes/avx-3869)). The limit counts broadcasts, not messages. What Meta charges for the messages themselves is billed to your own Meta account, below. ### Meta charges and payment problems WhatsApp charges for some messages. That's Meta's cost, billed by Meta to your own WhatsApp Business Account, separate from your Avox plan. Avox never takes, holds or marks up these payments. See [Pricing](https://docs.theavoxai.com/whatsapp-platform) for how Meta prices messages. #### What Meta charges for - **Marketing, utility and authentication** template messages are charged per message delivered. The rate depends on the category and on the country of the person you message. - **Service** messages - your replies while the 24-hour customer service window is open - are free up to a monthly allowance per business number (1,000 as of October 2026), then charged. - **Utility** templates sent while a window is open are charged since 1 October 2026. - Messages sent while a **free entry point** window is open (for example after someone taps an ad that opens WhatsApp) are free. #### Meta charges The **Meta charges** chart shows what Meta charges for the Switchboard you're viewing, day by day and by category. Pick **Last 7 days**, **Last 30 days** or **Last 90 days**. Above the chart: - **Total** for the range. Indian accounts also see an "about ₹" figure next to US dollar amounts, at today's exchange rate, as a reference only. - **Vs previous period** - the change from the same number of days before. - **Per billable message** - the total divided by the messages Meta charged for. - **Free messages** - messages Meta didn't charge for. Hover over a day (or tap it) to see each category's cost. Switch between **Chart** and **Table** to see the same figures as a table. #### Estimate vs reported figures Every figure is labelled: - **Synced with Meta** - Meta's figures for your WhatsApp Business Account, in the currency Meta bills you in. Avox syncs them daily, and when you click **Check again**. - **Live estimate** - calculated from every billable message as it's sent, at Meta's published rates, in US dollars. It covers the most recent day or two until Meta's daily figures arrive. #### Usage estimates Rates depend on each recipient's country. Once Meta's daily figures arrive, the chart uses them. #### Reconciliation Under the chart, **Reconciliation** lists each day and category with the number of billable messages Avox saw Meta price, the number Meta reports, Meta's cost, and the difference: | Status | Meaning | | --- | --- | | **Matched** | Both counts are the same. | | **Off by** a number | The counts differ by that many messages, for example messages sent from another tool on the same number. | | **Waiting for Meta** | The day ended less than 48 hours ago, or Meta's figures aren't in yet. | **CSV** downloads the table. It also shows how many messages were free (service replies inside Meta's monthly allowance, and free entry points) and how many were billable. #### Where your Meta invoices are Meta's WhatsApp invoices are in **Billing & payments** in Meta Business Suite. **View Meta invoices** on the Billing page takes you straight there. #### Payment problems Avox watches for two signs that Meta can't take payment for a WhatsApp number: Meta's own health check for the number, and messages Meta refuses with its payment error. When either shows a problem, the number's **Meta payment status** turns to **Problem**, a red banner appears on Billing, the alert bar and the bell on Overview show it, and every Admin gets one email about it. | Code | What it means | | --- | --- | | [AVX-3440](https://docs.theavoxai.com/error-codes/avx-3440) | Meta can't take payment for this WhatsApp Business Account, so messages may not send (Meta's error 131042). | | [AVX-3441](https://docs.theavoxai.com/error-codes/avx-3441) | Meta has stopped this WhatsApp Business Account from sending until a billing problem is fixed. | | [AVX-3442](https://docs.theavoxai.com/error-codes/avx-3442) | Avox couldn't check the payment status with Meta right now. It doesn't mean anything is wrong. | On Billing in Avox, click **Fix in Meta**. It opens **Billing & payments** in Meta Business Suite. Pick the WhatsApp Business Account for the number. Add a payment method, or update a card that expired or was declined. If Meta shows an amount due, or a credit line over its limit, pay it or ask Meta to raise the limit. Back on Billing in Avox, click **Check again**. It can take a few minutes for Meta to show the change. If Meta still blocks sending after the payment is fixed, contact Meta support from Meta Business Suite. ### Refunds Every plan - Monthly, Yearly, or One-time - has a **15-day money-back guarantee**. If it isn't right for you, ask within 15 days of your first payment and that payment is refunded in full. The guarantee covers the first payment for a plan; later monthly payments and the early-cancellation fee are outside it. Outside the guarantee, Avox can still refund all or part of a payment, up to what you paid, at its discretion. Manage subscription"> Click **Request help / refund**. Inside the guarantee, the card also tells you which day of the guarantee you're on. Choose **Cancel and request my money back**, **Ask for a refund**, or another option (for a One-time plan, a plan change during a Yearly commitment, or help cancelling), and add anything we should know. Avox opens a **Billing** support ticket with your plan, your payment references and your guarantee status already filled in, and emails you a confirmation. A refund request inside the guarantee goes up the queue. Sending a request doesn't cancel or refund anything by itself: the Avox team checks it and replies on the ticket. You can also email hello@theavoxai.com or open a ticket in [Support](https://docs.theavoxai.com/support) from your account's registered email address and say which payment it's about. Approved refunds go back through PayPal to the account or payment method you paid with, and can take a few days to show. When a plan is refunded under the guarantee, it's also cancelled so you aren't charged again, with no early-cancellation fee. You get a **Refund issued** email, the refund appears in your payment history, and the invoice is marked **Refunded** or **Partly refunded** (a payment can be refunded in more than one part). Refunds of the last 30 days also show under [Payment updates](#payment-updates). A refund goes back in the currency you paid in. When part of a credit or smart link pack is refunded, the same share of the pack is taken back from what's left, never more than you haven't used. If something looks wrong with a charge, contact Avox first - it's usually the fastest fix. A disputed payment shows under [Payment updates](#payment-updates). While a payment is disputed as a chargeback or an unauthorised payment, or reversed in PayPal, the plan it paid for is paused until the dispute is resolved, and credits bought with it are held. When the dispute is settled in Avox's favour, the plan and credits come back; when the money goes back to you, the plan stays paused and what that payment bought (credits or extra smart links) is removed. The full rules are in the [Cancellation & Refund Policy](https://theavoxai.com/cancellation-refund-policy). ### Creating another Switchboard Creating another Switchboard gives you a separate workspace that spends from the same plan. It's done in **Settings > Switchboard > Create Switchboard** (the old address `/switchboards/new` opens it too). You need an active plan and room under your plan's Switchboard limit. The full steps are on [Creating a new Switchboard](https://docs.theavoxai.com/switchboard/invites#creating-a-new-switchboard). ### Related errors - [AVX-2002](https://docs.theavoxai.com/error-codes/avx-2002) - a plan is needed to create a Switchboard. - [AVX-3003](https://docs.theavoxai.com/error-codes/avx-3003) - payment is needed to keep this Switchboard active. - [AVX-3082](https://docs.theavoxai.com/error-codes/avx-3082) - a connection is paused because the plan ended. - [AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009) - you've used every connection your plan allows. - [AVX-3420](https://docs.theavoxai.com/error-codes/avx-3420) - the Inbox is read-only because the plan ended more than 7 days ago. - [AVX-3421](https://docs.theavoxai.com/error-codes/avx-3421) - replying from the Inbox needs a plan. - [AVX-3422](https://docs.theavoxai.com/error-codes/avx-3422) - changing the WhatsApp username needs an active plan. - [AVX-3423](https://docs.theavoxai.com/error-codes/avx-3423) - turning calling on or off needs an active plan. - [AVX-3440](https://docs.theavoxai.com/error-codes/avx-3440) - Meta can't take payment for a WhatsApp Business Account. - [AVX-3441](https://docs.theavoxai.com/error-codes/avx-3441) - Meta has stopped sending until a billing problem is fixed. - [AVX-3442](https://docs.theavoxai.com/error-codes/avx-3442) - Avox couldn't check the payment status with Meta. --- ## Change plan URL: https://docs.theavoxai.com/billing/change-plan Section: Plans and billing **Change plan** moves your existing subscription to a different plan **in place** - no new checkout and no re-entering billing details. You approve the new price in PayPal, and the switch happens as soon as PayPal confirms it. Only an **Admin** of your billing Switchboard can change the plan (see [Members and roles](https://docs.theavoxai.com/switchboard/members)). Avox plans are for people aged 18 and over, so changing plan also needs your date of birth on your account (see [Your date of birth](#your-date-of-birth)). ### Where to find it - **Billing > Change plan** (the link under your plan card), or - **Billing > Manage subscription > Change plan**, or - **See plans** when you reach a plan limit (the pop-up that tells you so, or an automation your plan switched off). #### When you came from a plan limit Coming from a plan limit, the page starts with that limit and what each plan allows for it, for example "Smart links: what each plan allows", with your plan marked **(your plan)** and each plan's number (or **Unlimited**, or **Not included**). Pick a plan with more room from the cards below. The pop-up's **See all your usage** opens [Settings > Usage](https://docs.theavoxai.com/settings#usage) with that limit highlighted. The page shows the same plan cards as the pricing page, with the **Monthly**, **Yearly**, and **One-time** toggle opening on your current billing option. Your current plan's button reads **Current plan**; every other card reads **Switch to** followed by the plan name. On the **One-time** tab every card reads **Start one-time checkout** (see [Switching billing option](#switching-billing-option)). ### Changing plan Check that the toggle is on your current billing option (it opens there by default). The button shows "Switching plan" while Avox asks PayPal to move your subscription. PayPal usually needs you to approve the new price. A notice appears - "Approve the change in PayPal to move to" the new plan, "You stay on" your current plan "until you do" - with an **Approve in PayPal** button. Click it and approve. PayPal sends you back to **Billing** with "Plan change approved - Your new plan shows here as soon as PayPal confirms it - usually within a minute." When PayPal confirms, your plan switches and you get a dashboard notice "You're now on" the new plan. If PayPal doesn't need your approval, the switch is checked with PayPal and applied straight away - you see "You're now on the" new plan and land back on **Billing**. If PayPal hasn't shown the new plan yet, the notice reads "Plan change pending approval" - your move "applies as soon as PayPal confirms it. You stay on" your current plan "until then." #### While a change is waiting Until PayPal confirms, your plan card and **Manage subscription** show **Plan change pending approval**, and Manage subscription says your switch "is waiting for approval in PayPal. You stay on" your current plan "until PayPal confirms it." - If you back out in PayPal, you return to Change plan and see "Plan change cancelled - Nothing was approved in PayPal, so you're still on your current plan." The pending note goes away. - If you just close the window, a change that's still unapproved after 24 hours is cleared automatically. ### Price and timing - The new plan's price applies from your **next billing date**. - There's **no prorated charge or credit** for the rest of the current period - nothing is charged when you switch. - A Yearly subscription keeps its Yearly discount: it moves to the new plan's Yearly price (at today's Yearly discount), and keeps counting toward the same 12 payments. - A coupon discount belongs to the plan you bought with it. After a plan change, the new plan is billed at its regular price for your billing option. ### What happens to your limits Your new plan's limits (connections, Switchboards, templates, Flows, automations, automation credits) apply as soon as the change is confirmed. - **Upgrading** - the higher limits are available straight away. - **Downgrading** - nothing you already have is deleted or paused. The lower limits apply the next time you add something: while you're at or over a limit, creating another one of that thing is refused until you're back under it. For example, connecting another number shows [AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009), resuming a paused number shows [AVX-3021](https://docs.theavoxai.com/error-codes/avx-3021), and new templates, Flows, or automations show [AVX-3014](https://docs.theavoxai.com/error-codes/avx-3014), [AVX-3033](https://docs.theavoxai.com/error-codes/avx-3033), or [AVX-3068](https://docs.theavoxai.com/error-codes/avx-3068). #### API access Each plan either includes API access or doesn't, and the plan cards list **API access** on the plans that include it. Moving to a plan without it doesn't delete your [API keys](https://docs.theavoxai.com/connections/api-keys): they stay listed, but they stop sending ([`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan)) and new keys can't be created or rotated. Move back to a plan with API access and the same keys work again. The live limits for every plan are on [Plans](https://docs.theavoxai.com/plans). ### Switching billing option A plan change keeps your billing option: Monthly stays Monthly and Yearly stays Yearly. If you pick a plan on the other tab, you see "You're on Monthly billing" (or Yearly) - "Plan changes keep your billing option." To move to a different billing option: | From | To | How | | --- | --- | --- | | Monthly | Yearly | Contact [Support](https://docs.theavoxai.com/support), or [cancel](https://docs.theavoxai.com/billing/cancel) and subscribe again on Yearly. | | Yearly | Monthly | Contact [Support](https://docs.theavoxai.com/support), or cancel and subscribe again on Monthly. Cancelling yourself before 12 payments has the $8 early-cancellation fee, so ask Support first (**Request help / refund** in Manage subscription). | | Monthly or Yearly | One-time | Cancel first. **Start one-time checkout** on a live plan shows "You already have a plan - change it instead" - "A one-time purchase can only start once your current plan has been cancelled." After you cancel, the same button opens checkout. | When you subscribe again after cancelling, the new plan takes over as soon as it starts and the old one ends at that moment. ### Plans that can't be switched here | Your plan | What you see | What to do | | --- | --- | --- | | Paid **One-time** (a year upfront) | "Your plan is paid up for the year, so it can't be switched here - contact support and we'll sort it out." | Open a ticket in [Support](https://docs.theavoxai.com/support). | | **Cancelled** and running out its paid time | The page says "Your current plan is cancelled - picking a plan starts a new checkout that replaces it straight away." Buttons read **Subscribe to** a plan, or **Subscribe again**. | Pick a plan - it opens checkout, and the new plan replaces the old one immediately. | | **Payment due** or **Paused** | "Your plan needs to be active to switch - sort out the payment first." | Fix the payment (see [Failed payments](https://docs.theavoxai.com/billing#failed-payments)), then try again. | | Not billed through PayPal (a plan added by Avox, a business plan paid by invoice, or a plan a free code or gift switched on) | "Your plan is managed by the Avox team - contact support to change it." | Open a ticket in [Support](https://docs.theavoxai.com/support). | | No plan yet | "Subscribe to a plan first from the pricing page." | Buy a plan at [theavoxai.com/pricing](https://theavoxai.com/pricing). | ### Other messages These show as **Couldn't change your plan** with the reason underneath: - "You're already on that plan" - pick a different one. - "PayPal couldn't change that plan" - PayPal refused the change. Nothing changed; try again later. - Yearly billing for the chosen plan "isn't available right now - try again shortly." - "Only a Switchboard Admin can manage billing. Ask an Admin to make this change." - ask an Admin of your billing Switchboard. - "Too many requests" - wait a minute and try again. #### Your date of birth Changing plan needs a date of birth on your account, showing you're 18 or older. - "Add your date of birth to continue." ([AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110)) - your account has no date of birth yet. The message has an **Add date of birth** button that opens [Settings > Profile](https://docs.theavoxai.com/settings/profile#your-details), where you add it under **Your details**. Then pick the plan again. - "You need to be 18 or older to have an Avox plan." ([AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111)) - the plan can't be changed. If your date of birth is wrong, contact hello@theavoxai.com. - "Couldn't check your account just now." ([AVX-1121](https://docs.theavoxai.com/error-codes/avx-1121)) - try again in a moment. ### Emails When the switch is confirmed, a **Plan changed** email names your old and new plan. The full list of billing emails is on [Invoices](https://docs.theavoxai.com/billing/invoices#emails-about-payments). --- ## Cancel URL: https://docs.theavoxai.com/billing/cancel Section: Plans and billing Cancelling stops all future charges. Your plan **keeps working until the end of the period you've already paid for**, then your WhatsApp numbers pause until a plan is active again. Nothing is deleted. Only an **Admin** of your billing Switchboard can cancel (see [Members and roles](https://docs.theavoxai.com/switchboard/members)). ### At a glance | Billing option | Fee to cancel | When the plan stops | | --- | --- | --- | | Monthly | None | End of the month already paid for | | Yearly, fewer than 12 payments made | **$8 (USD)**, paid through PayPal in the cancel dialog | End of the month already paid for | | Yearly, all 12 payments made | None | End of the month already paid for | | One-time (a year upfront) | None - nothing to cancel in PayPal | End of the paid year. To end it early or ask for a refund, use **Request help / refund** | ### Cancelling Manage subscription"> Your plan's card shows its price, **Paid via**, **Next billing date**, and (for Yearly) how many **Installments** are paid. The **Cancel your subscription?** dialog opens. With no fee owed, the dialog says "You won't be charged again", that your plan and connections keep working until the end of the period you've already paid for (with the date), and that your Switchboards keep whatever data they already have. Click **Cancel subscription** to confirm, or **Keep my plan** to back out. If a fee is owed, see [The early-cancellation fee](#the-early-cancellation-fee). You see "Subscription cancelled - You won't be charged again. Everything keeps working until" the end date, "then your connections stop." You're taken back to **Billing**. ### What happens next - **Right away** - PayPal stops all future charges. Your plan card shows **Cancels on** followed by the end date, and Manage subscription says "Your plan is cancelled - you won't be charged again. Everything keeps working until" that date. Its **Change plan** button now reads **Choose a new plan**. You get a dashboard notice (for example "Growth is cancelled - it stays on until" the end date) and a **Cancellation confirmed** email (including the fee, if you paid one, and the last day the plan works). - **Until the end date** - everything keeps working: sending, automations, the Inbox, all of it. - **On the end date** - the plan ends and every connection on your Switchboards pauses: no automations and no sending through the API. Your team can still reply from the Inbox for 7 more days (see [What happens when a plan stops](#what-happens-when-a-plan-stops)). Each Admin gets a **Subscription canceled** email. - **Your data stays** - contacts, conversations, templates, Flows, automations, and settings are kept. Deleting data is a separate step - see [Data deletion](https://docs.theavoxai.com/data-deletion). If nothing paid is left on the plan when you cancel, it ends immediately and your numbers pause at once. ### What happens when a plan stops A plan stops when it ends, is cancelled, is paused (including [pausing your account](#pausing-your-account-instead)), or a payment is overdue. The same rules apply in every case, and they cover every Switchboard that runs on that plan, including teammates in your Switchboards: | Part of Avox | After the plan stops | | --- | --- | | Inbox replies | Keep working for **7 days**. A banner in the Inbox shows the exact day and time replies stop, with **Renew** (teammates who can't renew are asked to have the Switchboard owner do it). After that the Inbox is read-only ([AVX-3420](https://docs.theavoxai.com/error-codes/avx-3420)). | | Reading the Inbox | Always works: every conversation, search and contacts, and new messages from customers keep arriving. | | Request a call (Inbox) | Works during the 7 days, then hidden with the reply box. | | WhatsApp username | Your current username stays, but changing it needs an active plan, with no 7-day grace. The control shows "Needs a plan" ([AVX-3422](https://docs.theavoxai.com/error-codes/avx-3422)). | | Calling switch | Each number keeps its current setting, but turning Calling on or off needs an active plan, with no 7-day grace. The switch shows "Needs a plan" ([AVX-3423](https://docs.theavoxai.com/error-codes/avx-3423)). | | Automations and the API | Follow their own plan rules: they stop once your connections pause for billing (see [When numbers pause for billing](https://docs.theavoxai.com/billing#when-numbers-pause-for-billing)). | | Your data | Kept: contacts, conversations, templates, Flows, automations and settings. | Renew or pick a new plan and everything works again as soon as it's paid. See [When your plan stops](https://docs.theavoxai.com/inbox#when-your-plan-stops) for how the Inbox looks during and after the 7 days. ### Inside the money-back guarantee Within 15 days of your plan's first payment, the cancel dialog shows which day of the guarantee you're on and puts **Cancel and request my money back** first. It opens a **Billing** support ticket (with your plan and payment filled in) instead of cancelling straight away. The Avox team then refunds your first payment and cancels the plan together, with **no early-cancellation fee**, and you get a **Refund issued** email. Until they do, your plan keeps working. Below that option you can still cancel now without a refund. ### The early-cancellation fee A **Yearly** plan is a 12-month commitment billed monthly. If you cancel before all 12 payments are made, there's a flat **$8 (USD)** early-cancellation fee. You pay it through PayPal when you confirm the cancellation, and the cancellation only goes through once that payment succeeds: It says "This plan is on a Yearly commitment", how many of the 12 installments are paid, that cancelling before it's fulfilled has a flat $8 early-cancellation fee charged via PayPal, and that your plan and connections keep working until the end of the period you've paid for. Click PayPal's **Pay** button in the dialog and approve the fee payment. (If PayPal isn't allowed to load yet, click **Allow PayPal to load and continue** first.) Once PayPal confirms the fee, the cancellation goes through on its own. The confirmation adds that the early-cancellation fee was charged, with its amount. The fee appears in your payment history as "Early-cancellation fee", with its own invoice. - The fee is **never charged twice**. If PayPal takes the fee but then refuses the cancellation itself, you can try again - Avox sees the fee is already paid ("Your early-cancellation fee is already paid - finishing the cancellation") and only finishes the cancellation. - A Yearly plan that has made all 12 payments carries on month to month at the same price, and cancels with no fee. - One-time and Monthly plans never have a fee. - If the fee changes while you're cancelling, you pay the amount the dialog showed when you started. - The fee isn't covered by the money-back guarantee - but inside the guarantee you don't need to pay it: see [Inside the money-back guarantee](#inside-the-money-back-guarantee). - Want to change plans instead of leaving? Click **Request help** in the dialog before paying, and Support replies with your options. ### If something goes wrong Problems show as a **Couldn't cancel your subscription** message with one of these explanations: | Message | What it means | | --- | --- | | "PayPal couldn't cancel your subscription right now. Nothing has changed - please try again." | PayPal refused. You're still subscribed and nothing was charged twice. Try again. | | "Part of your cancellation went through, but PayPal refused to cancel one subscription. Please try again - nothing is charged twice." | Try again to finish it. | | "PayPal is still clearing the fee - your cancellation will finish once it does. Our team has been told." | The fee payment is pending at PayPal. | | "PayPal didn't confirm the cancellation fee" | The fee wasn't taken. Try again with a different payment method in PayPal. | | "Could not confirm the cancellation fee with PayPal - please try again" | Avox couldn't reach PayPal for a moment. Try again - the fee is never taken twice. | | "Only a Switchboard Admin can manage billing. Ask an Admin to make this change." | You aren't an Admin of your billing Switchboard. | | "No active subscription to cancel" | There's no live plan on your billing Switchboard. | | "The early-cancellation fee is now ... Please check it and try again." | The fee changed since you opened the page. The dialog now shows the new amount; nothing was charged. | If the fee charge can't start, you see **Couldn't start the cancellation fee charge** - close the dialog and try again. If your plan was already set to end, cancelling again just confirms it: "Your plan is already cancelled." ### Changed your mind? - **Before the end date** - your plan is still running. Click **Choose a new plan** in Manage subscription (or go to [Change plan](https://docs.theavoxai.com/billing/change-plan)): the page says "Your current plan is cancelled - picking a plan starts a new checkout that replaces it straight away." The cards read **Subscribe again** (your current plan) and **Subscribe to** another plan. - **After the end date** - the Billing page shows a **Your plan has ended** alert ("Your connections are paused and your data is safe. Renew to pick up where you left off.") with a **Renew plan** button that opens checkout for the same plan, and **Your plan** says "Choose a plan to create a Switchboard and connect your WhatsApp number." with **View plans**. Renew or buy a plan and your numbers switch back on as soon as it's paid. ### Pausing your account instead If you only need a break, **Delete account** in **Settings > Security** opens a page that, once you've picked a reason, offers **Pause your account instead**. Click **Pause my account** and your WhatsApp numbers and automations pause, and your contacts, templates and history stay exactly as they are. On a Monthly or Yearly plan, PayPal won't charge you while you're paused; a One-time plan's end date doesn't change. To come back, open the same page and click **Resume my account**. Resuming restarts your plan's billing, so, like starting a plan, it needs a date of birth on your account showing you're 18 or older: - "Add your date of birth to continue." ([AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110)) - add it in [Settings > Profile](https://docs.theavoxai.com/settings/profile#your-details), then resume again. - "You need to be 18 or older to have an Avox plan." ([AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111)) - if your date of birth is wrong, contact hello@theavoxai.com. ### One-time plans A One-time plan covers one year and never renews. Each Admin gets a **Plan ending soon** email 7 days before it ends and again 1 day before, then a **Plan ended** email when it does - at which point your numbers pause until you pick a new plan. There's nothing to cancel in PayPal, so **Cancel subscription** on a One-time plan explains that and offers **Request help / refund**: send a request if you want to end it early, change it, or ask about a refund. ### Refunds Cancelling doesn't refund anything by itself, and automation credits aren't refunded when you cancel part-way through a period. The 15-day money-back guarantee on a plan's first payment is explained on [Billing](https://docs.theavoxai.com/billing#refunds); a plan refunded under it is cancelled at the same time so you aren't charged again. For any other refund, plan change or cancellation problem, use **Request help / refund** in Manage subscription. --- ## Invoices URL: https://docs.theavoxai.com/billing/invoices Section: Plans and billing Every payment you make for Avox produces an **invoice**, and every billing event - payments, renewals, refunds, failed charges, plan changes, cancellations - is recorded in your **payment history**. Both live in your dashboard; there's no separate billing portal to log in to. ### Where to find them | Where | What's there | | --- | --- | | **Billing** | The **Invoices** table, under your plan. | | **Billing > Manage subscription** | Your subscription's details, then **Payment history**, then **Invoices**. | Both show the plan on your billing Switchboard (the first Switchboard you joined), whichever Switchboard you're currently viewing. Every member can open these pages. ### What creates an invoice Invoices are created automatically - you never have to ask for one. One is made when: - The first payment of a Monthly or Yearly subscription goes through. - Every monthly renewal payment goes through. - A One-time payment for a full year is captured. - An early-cancellation fee is paid (see [Cancel](https://docs.theavoxai.com/billing/cancel)). - A business plan is paid through PayPal, or the Avox team marks a business plan as paid. - A free coupon or gift switches a plan on - a $0 invoice, alongside a **Coupon or gift applied** email (see [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts)). A discount code, including one from a retention offer, simply lowers the amount on the invoice of the payment it's used on. Bonus credits and plans the Avox team adds for you directly don't create an invoice, because nothing is paid; they show in your payment history instead. ### The Invoices list Each row shows the invoice number (like `INV-000123`, numbered in order), the date, the status (**Paid**, **Refunded**, **Partly refunded**) and the amount. With none yet, it says "No invoices yet." ### Opening an invoice Click any invoice to open it in a large panel. It shows: - The invoice number, issue date and status. - The plan and billing cycle, and the period the payment covers. - Line items: the plan price, any Yearly or One-time discount, any coupon, tax, and the total. Refunds show as their own lines, with the net amount paid. - How it was paid (PayPal, a coupon, or recorded by the Avox team) and the payment reference. - Your billing details and Avox's details. Two buttons sit at the top: - **Download PDF** opens your browser's print window with a clean, printable invoice. Choose **Save as PDF** to keep a copy. - **Email me this invoice** sends a copy to your own account email. You can send the same invoice again after 10 minutes. Press **Esc** or click outside the panel to close it. ### Payment history **Billing > Manage subscription > Payment history** lists every billing event, newest first. Wide rows scroll sideways on a phone. | Column | What it shows | | --- | --- | | **Date** | When it happened. | | **What** | The kind of event (below), with the plan name under it. | | **Amount** | The amount. Refunds show with a minus sign. Events with no money involved (like a plan change) show "-". | | **Status** | **Paid**, **Pending**, **Failed**, **Refunded**, **Partly refunded**, **Cancelled**, or **Voided** ("-" for record-only events). | | **Invoice** | The invoice reference the event produced. Click it to open the invoice. | #### Event types | What | Meaning | | --- | --- | | Subscription payment | The first payment of a Monthly or Yearly plan. | | Monthly renewal | A recurring monthly payment, on a Monthly or a Yearly plan. | | One year, paid upfront | A One-time payment. | | Early-cancellation fee | The $8 fee for cancelling a Yearly plan early. | | Refund | Money returned to you through PayPal. | | Payment didn't go through | A failed charge. See [Failed payments](https://docs.theavoxai.com/billing#failed-payments). | | Business plan payment | A payment for a custom business plan. | | Plan added by Avox | The Avox team switched a plan on for you, or a free coupon or gift did. | | Avox AI credits adjusted | The Avox team changed your credit balance. | | Plan changed | Your subscription moved to another plan. No money moves at that moment. | | Subscription cancelled | The plan was cancelled, or reached its end date. | With nothing yet, it says "No payments yet." ### Emails about payments | Email | When | Who gets it | | --- | --- | --- | | **Payment receipt** | A Monthly or Yearly subscription becomes active after its first payment ("plan is active"), and on each renewal ("plan renewed"). | The Switchboard's Owner | | **Payment failed** | A renewal payment fails. | The Owner | | **Refund issued** | A full or partial refund is made. | The person who paid | | **Plan changed** | Your subscription moves to another plan. | The Admin who changed it | | **Cancellation confirmed** | You cancel from Billing. | The Admin who cancelled | | **Coupon or gift applied** | A free code or gift switches a plan on. | The person who used it | | **Plan ending soon** / **Plan ended** | A plan that doesn't renew by itself (One-time, or from a free code or gift) is 7 days and 1 day from its end, then ends. | Every Admin | | **Subscription canceled** | A cancelled plan reaches its end date. | Every Admin | | **Invoice copy** | You press **Email me this invoice** on an invoice. | You | All of them are mandatory service emails - they can't be turned off in Compliance. Every email is listed on [Emails](https://docs.theavoxai.com/emails). ### Your billing details Your business name and billing address are the ones in [Business](https://docs.theavoxai.com/settings/business) - the same details you entered at checkout. Keep them up to date there. ### Getting a copy or a correction To get a copy, open the invoice and use **Download PDF** or **Email me this invoice**. If something on an invoice looks wrong, open a ticket in [Support](https://docs.theavoxai.com/support) under the **Billing** category with the invoice reference. --- ## Coupons and gifts URL: https://docs.theavoxai.com/billing/coupons-and-gifts Section: Plans and billing There are three ways to get a plan for less than its regular price: - a **coupon code** you enter at checkout, or one applied for you automatically, - a **gift** - a plan the Avox team sends to your email address with a personal code, - a **business offer** - a custom plan made for your company, sent as a private link. The Avox team can also send you **offers** straight to your dashboard - a code, a gifted plan, free automation credits, a higher limit, or a perk. They're all in one place: see [Offers in your dashboard](#offers-in-your-dashboard). ### Using a coupon code Pick a plan on [theavoxai.com/pricing](https://theavoxai.com/pricing) and continue to the **Checkout** step. It's in the **Checkout summary**, under the billing option. Codes are letters, numbers, dashes, and underscores, up to 32 characters. Spaces are removed and letters are made capitals as you type, so case doesn't matter. The summary shows the code as applied, then **Subtotal**, **Discount** with the code, and **Total today**, plus what you pay once the discount ends. A shared link can carry a code too - for example `theavoxai.com/checkout?plan=growth&coupon=CODE`. The code is checked the same way before any price changes. #### Coupon details Once a code is applied, it's underlined in the **Checkout summary**. Hover over it, move to it with the keyboard, or tap it (on a phone) to open its details: - what the code gives and for how long, - which plans and billing options it works on, - when it ends (or that it has no end date), - its limits: a smallest payment, first purchase only, uses per account, a limited number of uses overall, a personal gift for your account only, or that it can be combined with one other code. It never shows who else a code is for, or how many uses are left. Press Escape, move away or tap elsewhere to close it. #### One code at a time You can use **one code per purchase**. To take a code off, click the X on it; the **Have a coupon?** field comes back so you can enter another. When a discount was applied automatically, you can also click **Have a different code?** to replace it with your own. #### How long a discount lasts The line under the code says exactly what you get: | Discount | Example wording | What happens after | | --- | --- | --- | | First payment only | "20% off your first month" | "Then" the regular price "/month after that". | | A number of months | "$10 off for 3 months" | The discounted price "/month for 3 months, then" the regular price "/month after that". | | For as long as you keep the plan | "20% off every month" | The discount never ends while you stay on that plan. | | One-time (a year upfront) | "20% off the one-time payment" | Applies once, to the single upfront payment. | A coupon applies **on top of** the billing option's own price - so on Yearly it's taken off the already-discounted Yearly payment. After a discount ends, PayPal charges the plan's regular price for your billing option automatically. Every amount is a whole number. A coupon belongs to the plan you bought with it. If you later [change plan](https://docs.theavoxai.com/billing/change-plan), the new plan is billed at its regular price. #### Free codes When a code covers the whole price (for example "Free for 3 months" or "A year free"), there's nothing to pay and **no PayPal step**: - The summary says "Nothing to pay and no card needed - your plan switches on as soon as you confirm." - The button reads **Activate** followed by the plan name and a zero price. - Your plan starts straight away, and you get a **Coupon or gift applied** email instead of a payment receipt, saying which code you used and the last day it covers. A $0 invoice is added to your [Invoices](https://docs.theavoxai.com/billing/invoices), and the payment history shows "Plan added by Avox". - A free code covers a month for each free monthly payment, or a whole year on One-time. - For a limited free period, the summary says "Your plan runs for" that many months; "renew it from your dashboard after that." Before it ends, each Admin gets **Plan ending soon** emails (7 days and 1 day before) and a **Plan ended** email when it does. A 100% discount on only the first payment(s) of a subscription (for example "First month free") works like a free trial instead: PayPal still sets up the subscription now, charges nothing for the free months, then the regular price. Codes have no cash value and can't be exchanged for a refund. If you're refunded for a purchase made with a code, the refund is for the amount you actually paid. #### Automatic discounts Some discounts apply by themselves when you're eligible. The summary shows the code with "applied automatically". If more than one applies, you get the one that takes the most off today. You can still replace it with a code of your own. #### Why a code might not work Checkout tells you exactly why: | Message | Meaning | | --- | --- | | We couldn't find that code. Check the spelling and try again. | The code doesn't exist. | | This code expired on a date. / This code starts on a date. / This code isn't active yet. | Outside the dates it works. | | This code is paused right now. / This code is no longer available. | The code has been switched off. | | This code doesn't apply to this plan. | It's for other plans. | | This code only works with monthly, yearly, or one-time billing. | Switch to the billing option it names. | | This code needs an order of at least a set amount. | The order is below its minimum. | | This code has reached its usage limit. / You've already used this code. | No uses left, overall or for you. | | This code is only for your first purchase. | You've paid for a plan before. | | This code isn't available in your billing country. / This code isn't available in your country. | It's limited to certain countries, and your account looks like it's somewhere else. | | This discount code is only for certain countries, and this payment looks like it comes from a different one. This PayPal payment wasn't taken. ([AVX-1160](https://docs.theavoxai.com/error-codes/avx-1160)) | Before taking the payment, a code limited to certain countries checks again where you are. Nothing was charged and the code wasn't used up: pay without the code, or with a PayPal account from a country it covers. | | This code is for newer accounts. / This code is for accounts created in the last N days. / This code is for accounts created before a certain date. | It depends on when you signed up. | | Your account isn't eligible for this code. | Another condition on the code isn't met. | | Sign in with the account this code was made for to use it. / This code was made for a different account. | It's a personal code for someone else. | | Codes can't be combined with a custom business offer. | Business offers have their own price. | | There's nothing to discount on this plan. | The plan has no price to take a discount from. | | Too many attempts - wait a minute and try again. | Lots of codes were tried in a short time. | Applying a code holds one use of it for you for 30 minutes while you finish checkout. If you leave without paying, the hold is released and the use goes back. #### Codes for certain countries Some codes only work in certain countries. To decide where you are, Avox looks at several things together instead of just one: the country of the PayPal account that pays, the country of your earlier PayPal payments, the country of your account phone number and connected WhatsApp number, where you're connecting from, and your billing address. Only the country is kept, never your phone number or internet address. When these clearly point to a country the code isn't for, the code is refused and nothing is charged. When they're mixed, the payment goes ahead and our team may take a look. If a code is refused and you are in a country it covers, contact support. Your account keeps the country you first save with your billing details: after that, checkout and Settings show it but can't change it ([AVX-1142](https://docs.theavoxai.com/error-codes/avx-1142)). The rest of your address stays editable. If the saved country is wrong, contact support and we'll update it. Only an **Admin** of your billing Switchboard can check out with a code. Coupons are for new purchases - if you already have a live plan, use [Change plan](https://docs.theavoxai.com/billing/change-plan) instead. ### Gifts A gift is a plan the Avox team sends to one person. #### The gift email You get a **Plan gift** email ("A gift for you" with the plan's name) showing what the gift is, your personal one-time code, any personal message, and an **Accept your gift** button. Under "Prefer to do it yourself?" it lists the manual steps for entering the code yourself, and it says the last day you can use it. The code works once, and only for your account - don't share it. #### Accepting a gift The gift page says "You've been gifted the" plan, shows what's included (WhatsApp numbers, Switchboards, templates, Flows, automations, and Avox AI credits), what it's worth, and how long it's still **Open for**. The page shows the address with part of it hidden. If you're signed in as someone else, it says the gift "is for someone else" - click **Sign out and switch account** and sign in with that address. You can also create your account with it. You're taken to checkout with the gift already applied ("Your gift is applied"). A fully free gift needs no payment - confirm your details and activate. A partial gift finishes in PayPal at the discounted price. Accepting a gift starts a plan, so it needs a date of birth on your account showing you're 18 or older. Without one you're asked to add it first ([AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110)); under 18, the gift can't be accepted ([AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111)). You can add your date of birth in [Settings > Profile](https://docs.theavoxai.com/settings/profile#your-details) or at checkout. If you accept but don't finish, the page later says "Your gift is waiting" with **Continue to checkout**. Once your gifted plan is active, the link shows "is all yours" with **Open your dashboard**. #### Gift rules - A gift is for **one person** and can be used **once**. - It must be accepted while signed in with the address it was sent to. - You must be 18 or older, with your date of birth on your account. - It can expire - the page then says "This gift has expired" with the last day it was open. - The Avox team can withdraw a gift - the page then says "This gift was withdrawn". ### Offers in your dashboard Offers from the Avox team land in your dashboard first - a thank-you, a perk, or a deal. Several offers sent together form a **bundle** (for example "a gift plan plus free credits"). #### What an offer can be | Offer | What you do | What happens | | --- | --- | --- | | **A personal code** | **Copy** the code, or click **Use at checkout**. | Checkout opens with the code filled in. "Your personal code. It's applied when you pay." | | **A gifted plan** | Click **Accept gift**. | The gift page opens - see [Accepting a gift](#accepting-a-gift). "Accept it to start the plan. No payment needed." | | **Free credits** | Click **Claim credits**. | The [automation credits](https://docs.theavoxai.com/automation/credits) are added to the Switchboard the offer was made for. | | **A limit boost** | Click **Claim boost**. | One of your plan's limits goes up for that Switchboard - for the number of days shown, or with no end date. | | **A perk** | Click **Request it**. | "Requested. Our team will email you to set it up." | Each offer shows when it ends: "Ends in 5 days", "Ends in 3 hours", or "Works until" a date. After its end date an offer is gone, so use it in time. #### The gift button and the offers window While you have an offer you can still use, a **gift button** sits in the dashboard header, just before the notification bell. It counts down to the offer that ends first (it turns amber in the last 24 hours), or shows how many offers you have when none of them has an end date. Click it to open the **offers window**. A new offer also opens the offers window by itself, once per browser session, so you see it. It never interrupts you in the middle of something: setup wizards, sign-in steps, the template, Flow and automation builders, checkout pages and the Delete account page stay quiet. In the offers window: - Each offer has its own slide with a picture, what it is, when it ends, and its button. - A bundle opens on a summary, "Your bundle", listing everything in it. **Claim all** adds every credit, boost and perk in one go. Codes and gifts need their own step, so they follow on the next slides. - **Maybe later** closes the window and stops those offers popping up again. They keep working until they end, and they stay in **Settings > Offers**. #### Settings > Offers **Settings > Offers** (under **Account** in the settings menu) lists every offer you can still use, grouped by bundle, each with its code, end date and button, plus **Claim all** for a bundle. At the top, a summary says how many offers you have and when the first one ends. Below them, **Used and past offers** keeps a record of what you've claimed, used or let run out, newest first: | Label | Meaning | | --- | --- | | **Claimed** | Credits or a boost were added. | | **Used** / **Accepted** | A code was used at checkout, or a gifted plan was accepted. | | **Requested** / **Done** | Our team is setting up a perk, or has finished it. | | **Withdrawn** | The Avox team withdrew the offer. | | **Ended** | The offer reached its end date unused. | With nothing open, the page reads **No offers right now** - "When we have something for you, a thank-you, a perk or a deal, it lands here first." The **Your offers** card on [Billing](https://docs.theavoxai.com/billing#offers-and-discounts) shows your codes, gifts and perks too, with **See all offers**. #### Who can claim - **Codes, gifts and perks** are yours: whoever the offer was sent to can use them. - **A gifted plan** (in **Settings > Offers**, or one offered when you go to cancel) needs a date of birth on your account showing you're 18 or older, like any plan ([AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110), [AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111)). Other offers don't. - **Credits and limit boosts** are added to a Switchboard, so claiming them needs the **See billing** permission there (Admins always have it). Without it you see "Ask an Admin to claim this. Only people who can see billing can add it to the Switchboard." If a claim doesn't go through, the reason shows under the button - for example "This offer has ended.", "You've already claimed this one." or "Avox withdrew this offer.". For anything else, contact [Support](https://docs.theavoxai.com/support). ### Business offers For larger teams, the Avox team can put together a custom plan with its own price and limits and send it as a private link to `theavoxai.com/offer/...`. It's titled "A plan made for" your company and lists what's included and how it's billed - monthly, or a full year paid once. Use the address the offer was sent to, or create your account with it. If you're signed in with a different address, click **Sign out and switch account**. Tick the box to agree to the Terms of Service, Privacy Policy, and Cancellation & Refund Policy, then click **Accept and continue**. For a PayPal offer ("Start your subscription" or "Pay for the year"), checkout opens with the offer applied. If the offer is paid by invoice ("Pay by invoice"), accepting is enough - the page says "Offer accepted", and your plan starts the moment the Avox team marks it paid. If your payment was already received, the button reads **Accept and go live**. If your account already has a PayPal subscription, the page says "You already have a subscription" with **Contact Avox**, so the Avox team can switch you over without billing you twice. A one-time business plan is billed in US dollars as one payment for the year. Coupons can't be added to a business offer. Offers are open for a limited time - an expired one says "This offer has expired" (ask for a fresh link), and a withdrawn one says "This offer was withdrawn". You may get a **Business offer - expiry reminder** email when an unaccepted offer has 3 days or less left, and a **Business plan active** email once your plan is live. --- ## Settings URL: https://docs.theavoxai.com/settings Section: Settings In the sidebar, **Settings** is grouped under **Account** (Profile, Security, Offers), **Personalisation** (nine pages of your own preferences, see [Personalisation](https://docs.theavoxai.com/settings/personalisation)), **Switchboard** (Switchboard, API Keys, Usage, Chat signals) and **Business**. Every page can also be opened from the command palette by typing "Settings". **Usage** shows for members with the **See billing** or **See analytics** permission, **API Keys** for members with **See API keys**, and **Chat signals** for members with **See chat signals**. ### Finding your way around Settings - **On a computer**, the settings menu stays open on the left of every settings page, with the page you're on highlighted. Nothing folds away. - **On a phone**, the same pages sit in a tab bar across the top that stays put as you scroll. Swipe it sideways to see them all. - At the bottom of the menu (on a phone, at the bottom of each settings page) are three more actions: - **Contact support** opens [Support](https://docs.theavoxai.com/support) with a new ticket already started, its subject naming the settings page you were on. - **Leave Switchboard** removes you from the Switchboard you're viewing. See [Leaving a Switchboard](#leaving-a-switchboard). - **Sign out everywhere** signs you out on this device and every other device, and clears your recent searches from this browser. Any other Avox tabs you have open go to the sign-in page. #### Leaving a Switchboard Any member can leave. Click **Leave Switchboard**, then confirm. You lose access straight away and an Admin can invite you back later. If you're the **only Admin**, you can't leave - a Switchboard always needs one. The dialog says so and offers two other ways out: - **Pause this Switchboard** stops its numbers and automations but keeps everything. See [Pausing a Switchboard](https://docs.theavoxai.com/switchboard#pausing-a-switchboard). - **Delete this Switchboard** removes it for good. See [Deleting a Switchboard](https://docs.theavoxai.com/switchboard#deleting-a-switchboard). Or make someone else an Admin first (**Switchboard > Members**), then leave. | Tab | What's there | Who it's for | Full guide | | --- | --- | --- | --- | | **Profile** | Your avatar and name, **Your details** (username, business name, date of birth, gender, phone and avatar shape), your email address (and any change waiting to be confirmed), your sign-in methods, and the agreements you've accepted. | You | [Profile](https://docs.theavoxai.com/settings/profile) | | **Business** | The business name and billing address of the Switchboard you're viewing. | Every member | [Business](https://docs.theavoxai.com/settings/business) | | **Security** | A security overview, password, two-factor authentication, passkeys, active devices, recent security events, and deleting your account. | You | [Security](https://docs.theavoxai.com/security) | | **Personalisation** | Nine pages about how the dashboard looks and behaves for you: **Appearance**, **Time and date**, **Navigation**, **Inbox**, **Notifications**, **Shortcuts**, **Lists**, **Blobatar** (your Avox Avatar) and **Tour and reset**. Saved to your account, so they follow you to every device. | You | [Personalisation](https://docs.theavoxai.com/settings/personalisation) | | **Offers** | Gifts, perks and deals from Avox that you can still use, and the ones you've already used. | You | [Offers in your dashboard](https://docs.theavoxai.com/billing/coupons-and-gifts#offers-in-your-dashboard) | | **Switchboard** | An overview of this Switchboard, its name and logo, pausing or deleting it, your other Switchboards, members, invitations, and activity. | Every member (most actions Admin-only) | [Switchboards](https://docs.theavoxai.com/switchboard) | | **Usage** | What this Switchboard has used this period against its plan's limits. | Members who can see billing or analytics | [Usage](#usage) | | **API Keys** | Outbound API keys across every connection, with test and recent requests. | Members with **See API keys** (create, test, rotate and revoke: **Manage API keys**). Admins have both. | [API keys](https://docs.theavoxai.com/connections/api-keys) | | **Chat signals** | The labels that mark Inbox chats needing attention: the six built-in signals, your own signals, ready-made packs and who each one tells. | Members with **See chat signals** (create, edit and add packs: **Set up chat signals**). Admins have both. | [Chat signals](https://docs.theavoxai.com/chat-signals) | Many cards have a **How this works** button that opens the matching section below. ### Profile The top card shows your avatar, name, email, username, account ID, and when you joined. Your avatar is made from your name, so it changes when your name does. Edit your **Full name** (up to 120 characters) and click **Save changes** to keep it - you see "Profile updated". The tab also lists the policies you've agreed to, with the version and date. See [Profile](https://docs.theavoxai.com/settings/profile). #### Your details The **Your details** card holds your **Username** (checked as you type), **Business name**, **Date of birth**, **Gender**, **Phone number** and **Avatar shape**. Fields you must fill in are marked **Required**, and anything still missing is listed at the top of the card. Your date of birth is only used to check you're 18 or older, which every plan needs. Only you and Avox support can see your date of birth, gender and phone - your team can't. Click **Save details** to keep your changes. See [Your details](https://docs.theavoxai.com/settings/profile#your-details). #### Email address **Change email** walks you through three short steps: confirm it's you (your current password, or a code we email you if you sign in with Google or Facebook), type the new address, then enter the codes we send. The code for the new address and, when we ask, the code for your current address are both on the same screen, with a tick for each and "1 of 2 confirmed" in between. Until then you keep signing in with your current address; **Send new codes** and **Cancel this change** are right there. Asking for your password first and asking both inboxes stops anyone with access to a signed-in browser from quietly moving your account to an address they control. Steps and messages: [Changing your email address](https://docs.theavoxai.com/settings/profile#changing-your-email-address). #### Connected accounts The **Sign-in methods** card lists every way you can sign in: **Email and password** (with a shortcut to change your password, or **Set a password** if you signed up with Google or Facebook), **Google**, and **Facebook**. Connect **Google** or **Facebook** to sign in with it instead of a password. Each row shows **Connected** or **Not connected**. You can disconnect one only while you have another way to sign in - otherwise its button shows "Connect another sign-in method first". See [Connected accounts](https://docs.theavoxai.com/settings/profile#connected-accounts). ### Business Your registered business name and billing address - the same details checkout collects when you buy a plan, kept in sync both ways. The business name is also what template and Flow previews show. Any member can edit them, and the change applies to the Switchboard selected in the header. See [Business](https://docs.theavoxai.com/settings/business). ### Security The tab opens with three tiles: whether **Two-factor** is on, how many **Passkeys** you have, and how many **Signed-in devices** there are. Click a tile to jump to its card. #### Password Changing your password takes three steps on the **Password** card: 1. **Confirm your current password** - click **Continue** and Avox checks it on the server. 2. **Choose a new password** - type your own (a strength bar and a checklist show the rules as you go) or click **Generate a strong password** for a 20-character one you can copy. Type it again, then click **Review**. 3. **Confirm and save** - check the summary and click **Update password**. The new password needs 8 to 72 characters, an uppercase letter, a lowercase letter, and a number, with no spaces at the start or end, and it can't be the password you already use. Changing it signs you out on every other device; the one you're using stays signed in. See [Security](https://docs.theavoxai.com/security#your-password). If you signed up with Google or Facebook, there's no password to change yet: the card points you to **Set a password** in [Settings > Profile > Sign-in methods](https://docs.theavoxai.com/settings/profile#setting-a-password). #### Passkeys Sign in with Face ID, Touch ID, Windows Hello, or a security key instead of a password. Click **Add a passkey** to create one, and the bin icon to remove one. Add as many as you like. See [Passkeys](https://docs.theavoxai.com/security/passkeys). #### Two-factor authentication Adds a 6-digit code from an authenticator app after you sign in. Click **Enable**, scan the QR code, and enter the code to turn it on. Once it's on, every sign-in stops at a verification step until the code is entered. If you lose the phone with your authenticator app, contact hello@theavoxai.com from your account's email address. See [Two-factor](https://docs.theavoxai.com/security/two-factor). #### Active devices Every browser that has opened your dashboard, with its system, browser, IP address, approximate location, and when it was last active. Each other device has its own **Sign out** button; the row marked **This device** has **Sign out everywhere**, which signs you out here and on every other device. Under the list, **Sign out of all other sessions** signs out every device except the one you're using. See [Sessions](https://docs.theavoxai.com/security/sessions). #### Recent security events Your own recent security changes: password changes, two-factor turned on or off, and Switchboards you paused, resumed, deleted, or left, plus role and permission changes you made. If something here wasn't you, change your password and contact support. See [Recent security events](https://docs.theavoxai.com/security#recent-security-events). #### Delete account Click **Delete my account** to permanently delete your Avox sign-in and profile. You confirm by typing your account email, plus your current password if your account has one. An account that signs in only with Google or Facebook must have signed in within the last 15 minutes. If you're the only Admin of a Switchboard, you're asked to add another Admin, delete that Switchboard, or leave it first. See [Deleting your account](https://docs.theavoxai.com/data-deletion#deleting-your-account). ### Personalisation **Settings > Personalisation** is how the dashboard looks and behaves for you alone. Every change applies straight away and is saved to your account, so it follows you to every device you sign in on. Your teammates choose their own. It has nine pages: - **Appearance**: theme (**System**, **Light** or **Dark**), accent colour, density, and accessibility (reduce motion, higher contrast, larger text). - **Time and date**: your time zone, 12 or 24-hour clock, date order and the first day of the week. - **Navigation**: the page Avox opens on after you sign in, opening your last Switchboard, and the sidebar (start collapsed, the banner, pinned and hidden pages). - **Inbox**: message text size, the key that sends, sounds, desktop alerts, contact pictures, and your saved quick replies. - **Notifications**: which kinds of notice show in your bell, and quiet hours. - **Shortcuts**: turn them on or off, and change the keys for any of them. - **Lists**: the views Contacts, Tables and Logs open with for you. - **Blobatar**: your Avox Avatar's shape and colours, and its tips and hints. - **Tour and reset**: take the dashboard tour again, bring back the page tours, or reset every choice. Every option, with its default: [Personalisation](https://docs.theavoxai.com/settings/personalisation). The dashboard tour and page tours: [Tours](https://docs.theavoxai.com/settings/tours). ### Switchboard The tab labeled **Switchboard** in the dashboard has five views: **General** (an overview, name and logo, pause, delete), **Workspaces** (every Switchboard you belong to, with **Manage** for each and **Create Switchboard**), **Members**, **Invitations**, and **Activity** (Admins only). Creating a Switchboard has its own page, **Settings > Switchboard > Create Switchboard**. Leaving is in the settings menu. See [Switchboards](https://docs.theavoxai.com/switchboard). ### Usage **Settings > Usage** shows what the Switchboard you're viewing has used this period, against its plan: - **Your plan and period** at the top: the plan's name and the dates of this period, with **See plans** (opens Billing) and **Refresh**. - **Automation credits**: a ring showing how much of this period's credits are used, **Used**, **Remaining** and the date they **Reset**, and a chart of credits spent per day for the last 30 days. **Top up** [buys more](https://docs.theavoxai.com/automation/credits#buying-more-credits) and **Upgrade** opens [Change plan](https://docs.theavoxai.com/billing/change-plan) (both need **Manage billing**; anyone else sees "Need more credits? Ask an Admin to top up or upgrade the plan."). Below it, "Where your credits come from, in the order they're used" breaks them down (rolled over from last period, this period's plan credits, bought credits), followed by the **Credits history**. See [Credits that roll over](https://docs.theavoxai.com/automation/credits#credits-that-roll-over). - **Messages** sent and received this period (sent includes replies from the WhatsApp Business app), and a chart of the last 30 days. - **Plan limits**: templates, Flows, automations (and **Automations switched on**, how many can be on at once), connected numbers, members, API keys in use, **Tables** (archived ones count too), **Connected apps** (those not disconnected), **Live Flow requests this month**, **Custom chat signals used**, the shop and ads limits (numbers with a shop, products, orders and ad conversions this month, WhatsApp groups, ads launched this month and ad audiences), plus **Smart links** ([smart links](https://docs.theavoxai.com/chat-links/limits) that are live, scheduled, paused or ended, drafts left out, with any extra links for this Switchboard) and **Broadcasts this month** ([broadcasts](https://docs.theavoxai.com/broadcasts/limits) count once they start sending; counts start again on the 1st of each month (UTC); drafts don't count). Bars turn amber at 80% and red when full, and each row has a **Manage** link to its page (**Smart links** also has **Buy more**). Arriving from a plan limit pop-up highlights that row. Connected numbers are one pool shared by every Switchboard the owner has; members and API keys have no plan limit. - **API requests** this period, **Live** (real messages) and **Test** (nothing reaches Meta). - **Forwarded messages** this period, delivered and failed (with how many are still retrying). - **Contacts** stored, with **Open Contacts**. "This period" runs from your plan's monthly renewal date (or the calendar month without a plan). You need the **See billing** or **See analytics** permission to open it. See [Plans](https://docs.theavoxai.com/plans) for each plan's limits. ### Offers **Settings > Offers** lists the gifts, perks and deals the Avox team has sent you: personal codes (**Copy**, **Use at checkout**), gifted plans (**Accept gift**), free credits and limit boosts (**Claim credits**, **Claim boost**), and perks (**Request it**), each with when it ends. Below them, **Used and past offers** keeps a record of the rest. While you have an offer open, a gift button in the dashboard header counts down to the one that ends first. With nothing to use, the page reads **No offers right now**. See [Offers in your dashboard](https://docs.theavoxai.com/billing/coupons-and-gifts#offers-in-your-dashboard). Got a coupon code some other way? Enter it at checkout under **Have a coupon?** - see [Using a coupon code](https://docs.theavoxai.com/billing/coupons-and-gifts#using-a-coupon-code). ### Organization "Organization" is the same thing as the **Switchboard** tab above - your workspace, its team, and its settings. Everything is explained on [Switchboards](https://docs.theavoxai.com/switchboard), with roles on [Members and roles](https://docs.theavoxai.com/switchboard/members) and invites on [Invites](https://docs.theavoxai.com/switchboard/invites). ### API keys The **API Keys** tab lists every outbound API key across every connection in this Switchboard, with **Test** (a safe check that sends nothing) and each key's recent requests. Admins (and members with **Manage API keys**) can create, rotate and revoke keys, each confirmed with a 6-digit code emailed to them. A new key is shown in full exactly once, and rotating keeps the key's name, description and limits. See [API keys](https://docs.theavoxai.com/connections/api-keys) and [Authentication](https://docs.theavoxai.com/avox-api/authentication). - **Create a key** opens **Create an API key**: pick the Switchboard and WhatsApp number, choose **Live key** or **Test key**, name it, then **Email me a code** to confirm. - The arrow next to a key shows its **Recent requests**, with **See all in API logs**. - **API logs** at the top of the tab opens the full request log; **How this works** opens the guide. - Keys that were revoked, rotated or have expired move to **Revoked and expired keys** below. ### Need help? Every card's **How this works** button links here. For anything else, open a ticket from [Support](https://docs.theavoxai.com/support) or email hello@theavoxai.com. --- ## Profile URL: https://docs.theavoxai.com/settings/profile Section: Settings **Settings > Profile** is about you, not your Switchboard. Everything here applies to your own account in every Switchboard you belong to. It has five cards: **Profile**, **Your details**, **Email address**, **Connected accounts**, and **Agreements**. ### Your name The **Profile** card shows your Avox Avatar - generated from your name, so it changes when your name does - and your **Full name**. Up to 120 characters. It can't be empty ("Name can't be empty"). The button only becomes active once the name has changed. You see "Profile updated". Your name is what teammates see in **Members**, the **Activity** log, and invite emails you send. If saving fails, you see [AVX-3004](https://docs.theavoxai.com/error-codes/avx-3004). ### Your details The **Your details** card holds the rest of what Avox knows about you. Its **How this works** button opens this section. | Field | What it is | | --- | --- | | **Username** | Your handle on Avox, shown with an @. Checked as you type: you see **Checking**, then **Available**, or why it can't be used. | | **Business name** | Your business, project or name. Up to 120 characters. | | **Date of birth** | Only used to check you're 18 or older. See [Date of birth](#date-of-birth) below. | | **Gender** | **Woman**, **Man**, **Non-binary** or **Prefer not to say**. | | **Phone number** | With the country code, digits only, like +919876543210. It's for your account, not your WhatsApp number. | | **Avatar shape** | What describes you: **Individual, just me**, **Developer**, **Business owner** or **Agency**. It sets the shape of your Avox Avatar, and the card shows a preview as you pick. | Each field is marked **Required** or **Optional**, and which ones are required can vary: Avox decides whether business name, gender and phone are required, optional or not asked at all, so go by the marks on the card. Your full name (in the **Profile** card above) is always required. If you run your own Switchboard (or haven't joined anyone else's), your date of birth is always required too, because Avox is for people aged 18 and over. If you only belong to Switchboards other people own, you're asked for fewer details, and your date of birth only when you start a plan of your own. Username and avatar shape are always optional. Anything still missing is listed at the top of the card, under **Still needed**. Change what you need and click **Save details**. Only the fields you changed are saved, and you see "Details saved". #### Details asked during onboarding These details are first asked in the onboarding chat, which everyone finishes before the dashboard opens. If you haven't finished it, opening the dashboard takes you to the chat first, then on to the page you wanted. Accounts made before the chat became required don't have to go through it, unless Avox asks you to answer the questions again. - The chat asks for your full name, date of birth, gender, phone and business name, leaving out anything Avox doesn't ask for and anything you've already given. Optional ones can be skipped. - If you joined by invite and don't run a Switchboard of your own, you only answer questions about yourself, such as your name and phone, not the business questions. - Until onboarding is finished, some actions are refused: creating or rotating an API key, sending from the Inbox, inviting people, and changing a connection's settings. Most of them say "Finish setting up your account first." ([AVX-1122](https://docs.theavoxai.com/error-codes/avx-1122)). Choosing and paying for a plan at checkout stays available. Anything you skipped can be added here later, in **Your details**. #### Username - 3 to 30 characters: small letters, digits, dots, underscores and hyphens. - It starts and ends with a letter or digit, with no two dots, underscores or hyphens in a row. - Reserved words (like admin, support or billing) and anything containing "avox" are refused, so no username can look like an Avox account. - If you never pick one, Avox makes one from your name, with accents folded (José Núñez becomes jose-nunez) and a number added if it's already taken. Errors: [AVX-1114](https://docs.theavoxai.com/error-codes/avx-1114) (taken), [AVX-1115](https://docs.theavoxai.com/error-codes/avx-1115) (doesn't follow the rules), [AVX-1116](https://docs.theavoxai.com/error-codes/avx-1116) (reserved), [AVX-1117](https://docs.theavoxai.com/error-codes/avx-1117) (too many changes in a short time - wait a minute). #### Date of birth You must be 18 or older to have a paid plan, and your date of birth is how Avox checks. The date must be real, not in the future and not implausibly far back. - A saved date can't be changed to one under 18: the saved date stays as it was. - While your account has a plan, a date under 18 can't be saved. - If you enter a date under 18 when none is saved yet, Avox doesn't keep the date, your account can't start a plan, and the dashboard shows that Avox is for people aged 18 and over. From then on the date is locked here: if it was a mistake, contact hello@theavoxai.com. Errors: [AVX-1102](https://docs.theavoxai.com/error-codes/avx-1102) (not a real date), [AVX-1103](https://docs.theavoxai.com/error-codes/avx-1103) (in the future), [AVX-1104](https://docs.theavoxai.com/error-codes/avx-1104) (too far back), [AVX-1105](https://docs.theavoxai.com/error-codes/avx-1105) (under 18), [AVX-1112](https://docs.theavoxai.com/error-codes/avx-1112) (changed to a date under 18), [AVX-1113](https://docs.theavoxai.com/error-codes/avx-1113) (locked), [AVX-1120](https://docs.theavoxai.com/error-codes/avx-1120) (under 18 while the account has a plan). #### Who can see your details Only you and, through Avox's own staff tools, Avox staff with access to customer data. Your teammates can't see your date of birth, gender or phone. #### Other errors | Code | When | | --- | --- | | [AVX-1106](https://docs.theavoxai.com/error-codes/avx-1106) | The gender isn't one of the options. | | [AVX-1107](https://docs.theavoxai.com/error-codes/avx-1107) | The phone number isn't in the right form (country code, digits only). | | [AVX-1108](https://docs.theavoxai.com/error-codes/avx-1108) | The business name is empty or longer than 120 characters. | | [AVX-1109](https://docs.theavoxai.com/error-codes/avx-1109) | Your details couldn't be saved. Try again. | | [AVX-1118](https://docs.theavoxai.com/error-codes/avx-1118) | Your details couldn't be loaded. Refresh the page. | | [AVX-1119](https://docs.theavoxai.com/error-codes/avx-1119) | Account details can't be saved just yet. Try again later. | | [AVX-1122](https://docs.theavoxai.com/error-codes/avx-1122) | You haven't finished onboarding yet, so this action is refused. Finish the onboarding chat, then try again. | | [AVX-1123](https://docs.theavoxai.com/error-codes/avx-1123) | A few onboarding questions are still open. The chat asks them again so you can finish. | When a plan is refused because of your date of birth, you see [AVX-1110](https://docs.theavoxai.com/error-codes/avx-1110) (add your date of birth) or [AVX-1111](https://docs.theavoxai.com/error-codes/avx-1111) (under 18), and [AVX-1121](https://docs.theavoxai.com/error-codes/avx-1121) if Avox couldn't check your account just then. See [Change plan](https://docs.theavoxai.com/billing/change-plan). ### Changing your email address The address you sign in with, and where all your account emails go. The **Email address** card shows "You sign in with" your current address. Click **Change email** to start; a short row of steps at the top shows where you are. Type your **Current password** and click **Continue**. If you sign in with Google or Facebook and have no Avox password, click **Email me a code** and enter the 6-digit code we send to your current address. Right after a Google or Facebook sign-in this step is skipped. Wrong password: [AVX-1124](https://docs.theavoxai.com/error-codes/avx-1124). Wrong or old code: [AVX-1125](https://docs.theavoxai.com/error-codes/avx-1125). Up to 254 characters, and a different address from the one you have now ([AVX-1126](https://docs.theavoxai.com/error-codes/avx-1126)). Click **Send codes**. Both code boxes are on the same screen. **Code sent to** your new address comes in **Email change - confirm new address**. When we also ask your current address to approve the change, a second box shows **Code sent to** your current address, from **Email change - approve from old address**. Enter them in any order: each one gets a tick, and "1 of 2 confirmed" shows in between. Each email also has a link that does the same as its code. The card says "All done": you now sign in with the new address. Your old address gets an **Email address changed** notice. Until it's finished, nothing changes - you keep signing in with your current address, and the card opens straight on the codes whenever you come back to it. - **Send new codes** sends fresh codes to both addresses (once a minute). The older codes stop working, and both addresses need the new ones. - **Cancel this change** stops it: the codes and links already sent stop working, and you keep your current address. If cancelling fails you see [AVX-1129](https://docs.theavoxai.com/error-codes/avx-1129). - **The links in the emails** open a page in your dashboard that says what's left, for example "Your new address is confirmed. Now approve it from" your current address, or "All done". A link that has run out or was already used says so; start again from **Send new codes**. Asking for your password (or a code) first, and asking both inboxes, means someone using a signed-in browser of yours can't quietly move your account to an address they control. If we didn't ask your current address to approve the change, it gets an **Email change asked for** notice instead, with a button to review or cancel it. If the change can't be started you see [AVX-3094](https://docs.theavoxai.com/error-codes/avx-3094) or [AVX-1128](https://docs.theavoxai.com/error-codes/avx-1128); an account that signs in only with Google or Facebook and has no Switchboard yet may be asked to sign in again first ([AVX-1127](https://docs.theavoxai.com/error-codes/avx-1127)). The checkout's details step uses the same steps: click **Change** next to your email there. Switchboard invites and gifts are tied to an email address. If you change your address, an invite or gift sent to the old one must be accepted from an account using that old address. ### Connected accounts Connect **Google** or **Facebook** to sign in with one click instead of a password. Each row shows **Connected** or **Not connected**. - **Connect** - takes you to Google or Facebook to approve, then back to **Settings > Profile**. You get a **Sign-in method added or removed** email. - **Disconnect** - removes that sign-in method straight away ("Account disconnected"). You always need at least one way to sign in. While a provider is your only sign-in method, its **Disconnect** button is disabled with the hint "Connect another sign-in method first". An account that signs in with an email and password always has that as a second way in. Errors: [AVX-3095](https://docs.theavoxai.com/error-codes/avx-3095) (couldn't connect), [AVX-3096](https://docs.theavoxai.com/error-codes/avx-3096) (couldn't disconnect). #### Setting a password If you signed up with Google or Facebook, the **Email and password** row says "Not set up". Add a password so you can also sign in with your email address: On the **Email and password** row of the **Sign-in methods** card. Click **Email me a code** and enter the 6-digit code we send to your account's address. The code works once, for 10 minutes. If you aren't part of a Switchboard yet, this step is skipped right after a Google or Facebook sign-in; otherwise sign out and sign in again first. Type it twice. It needs 8 to 72 characters, an uppercase letter, a lowercase letter and a number, with no spaces at the start or end (the same rules as signing up). A strength bar and a checklist show the rules as you go. **Sign out other devices** is ticked unless you untick it; the device you're using stays signed in. The row then shows **Set up**, you get an "Email and password sign-in was added to your Avox account" email, and **Recent security events** shows "Set a password". From now on you can sign in on the sign-in page with your email and password, or with Google or Facebook as before. Because you now have a second way in, you can disconnect Google or Facebook if you want to. To change the password later, use [Settings > Security > Password](https://docs.theavoxai.com/settings#password). If you have two-factor authentication on, Avox asks for your authenticator code before you can set a password, just as it does for any other account change. Errors: [AVX-1186](https://docs.theavoxai.com/error-codes/avx-1186) (wrong or expired code), [AVX-1191](https://docs.theavoxai.com/error-codes/avx-1191) (email not confirmed), [AVX-1192](https://docs.theavoxai.com/error-codes/avx-1192) (not available yet), [AVX-1193](https://docs.theavoxai.com/error-codes/avx-1193) (couldn't set it), [AVX-1194](https://docs.theavoxai.com/error-codes/avx-1194) (sign in again first). Facebook sign-in matters for data deletion: if you remove Avox from your Facebook settings, Meta asks Avox to delete the data linked to that Facebook login. See [Data deletion](https://docs.theavoxai.com/data-deletion). ### Agreements A read-only list of the policies you've agreed to, each one listed once: - the document - **Terms of Service**, **Privacy Policy**, **Cancellation & Refund Policy**, **Cookie Policy**, or **Data Processing Agreement** - linked to its current version on theavoxai.com, - the latest version you agreed to and the date, - where you agreed: "when you signed up", "at checkout", "when you accepted a business offer", "when you joined a Switchboard", "when you connected WhatsApp", or "after we emailed you about an update". You agree to the same policy in several places (signing up, each checkout, each number you connect…), and each of those is kept as its own record. **History** next to a policy opens all of them, newest first: whether you agreed, the version, where, how (**Ticked a box**, **Clicked through**, **Cookie banner**, or **Update notice (continued use)**), the date and time, and a partly hidden IP address. For the Cookie Policy it shows the choice you made in the cookie banner while signed in. When a policy you agreed to gets a new version, you're told in the dashboard and by email, and a record of that notice is added here. See [When a policy changes](https://docs.theavoxai.com/compliance#when-a-policy-changes). With nothing yet, it says "Nothing recorded yet." The **Cookie settings** link under the list reopens the cookie banner so you can change your cookie choice. See [Cookie choices](https://docs.theavoxai.com/compliance#cookie-choices). ### Related - Password, passkeys, two-factor, devices, and deleting your account: [Security](https://docs.theavoxai.com/security). - Light or dark theme: [Personalisation](https://docs.theavoxai.com/settings/personalisation#appearance). - Business name and billing address: [Business](https://docs.theavoxai.com/settings/business). - Every email Avox sends: [Emails](https://docs.theavoxai.com/emails). - Stuck? Open a ticket in [Support](https://docs.theavoxai.com/support) or email hello@theavoxai.com. --- ## Business URL: https://docs.theavoxai.com/settings/business Section: Settings **Settings > Business** holds your business name and billing address. These are the same details checkout collects when you buy a plan - change them here and checkout uses the new ones; change them at checkout and they show up here. **Every member** of the Switchboard can view and edit this tab, Admins and Managers alike (see [Members and roles](https://docs.theavoxai.com/switchboard/members)). The tab always edits the Switchboard selected in the header. If you belong to several, switch Switchboards first, then open **Settings > Business**. If you aren't in any Switchboard yet, the tab says "You aren't part of a Switchboard yet. Create one to add your business details." ### Fields | Field | Required? | Limit | Notes | | --- | --- | --- | --- | | **Business name** | Yes | 1 to 120 characters | Your registered business name. It's also the business name Avox shows in template and Flow previews. | | **Billing contact** | No | Up to 120 characters | The person billing questions should go to. | | **Phone** | No | Up to 20 characters | A billing phone number. | | **Address** (line 1) | No | Up to 200 characters | Street address. | | Address line 2 (optional) | No | Up to 200 characters | Building, landmark, and so on. | | City | No | Up to 100 characters | | | State | No | Up to 100 characters | | | Postal code | No | Up to 20 characters | | | **Country** | No | Pick from the list | "Kept in sync with what you entered when buying your plan - changing it here updates the same billing address checkout uses, and vice versa." | ### Saving A problem with a field shows under it - for example "Business name can't be empty" or "Business name is too long". You see "Business details updated". The change is recorded in the Switchboard's **Activity** log as "Updated Switchboard settings". If saving fails you see [AVX-3005](https://docs.theavoxai.com/error-codes/avx-3005) - check what you entered and try again. ### How it connects to billing - **Checkout** fills these fields from its **Your details** and **Billing address** steps, and starts from what's saved here next time. - The **billing country** decides how checkout displays prices: an address in India also shows rupee estimates next to the US dollar price. What PayPal charges is explained on [Billing](https://docs.theavoxai.com/billing). - Your plan is billed through your billing Switchboard (the first one you joined), so that Switchboard's details are the ones used for your plan. See [Invoices](https://docs.theavoxai.com/billing/invoices). ### Business name vs. Switchboard name vs. WhatsApp name | Name | Where you set it | Who sees it | | --- | --- | --- | | Business name | Here | You and your team, on billing records and in template and Flow previews. | | Switchboard name | **Settings > Switchboard > General** | You and your team, to tell Switchboards apart. See [Switchboards](https://docs.theavoxai.com/switchboard). | | WhatsApp display name | Meta, for each connected number | Your WhatsApp customers. See [Display names](https://docs.theavoxai.com/whatsapp/display-names). | --- ## Emails URL: https://docs.theavoxai.com/emails Section: Settings This page lists every email Avox sends to customers - when it goes out, who receives it, what's in it, and whether you can switch it off. Every email comes from **Avox**. Replying to one reaches the Avox support team, so you can answer any email directly if you have a question about it (the address is hello@theavoxai.com). ### Turning emails off Four kinds of optional email can be switched off for a whole Switchboard in **Compliance > Email Preferences** (Admins only - see [Compliance](https://docs.theavoxai.com/compliance#email-preferences)): | Toggle | Covers | | --- | --- | | **Setup reminders** | A reminder if you haven't picked a plan 3 days after signing up, and one if a WhatsApp number has been stuck mid-setup for a day (at most one of each every 2 weeks). The same switch covers offer and reminder emails from Avox and the credit rollover emails - see [Reminders and news](#reminders-and-news). | | **Product news and announcements** | Product updates and announcements from the Avox team, including email copies of dashboard notifications. | | **WhatsApp account alerts** | Alerts Meta sends about your WhatsApp account, a template that's rejected, paused or disabled, a Flow that's blocked or throttled, and a Meta access token that's about to expire. | | **WhatsApp API problem reports** | One email per issue when requests Avox makes to Meta for you keep failing - for example sending a message, changing a template or Flow, or updating a number's settings. At most one email per issue per week. | All four are **on** for a new Switchboard. Required emails are always sent and can't be turned off: sign-in and security notices, billing and payment emails, team invites and changes, support replies, automation credit warnings, message forwarding pauses, and WhatsApp numbers being connected or removed. Everything else on this page that isn't marked as switchable is one of these. Marketing-type emails (setup reminders, announcements, business offers, the newsletter) carry a **Manage preferences** / unsubscribe link at the bottom. **Owner** below means the Switchboard's first Admin - its owner of record. **Admins** means every Admin of the Switchboard. See [Members and roles](https://docs.theavoxai.com/switchboard/members). ### Signing in and your address All sent to you, and always sent. | Email | When it's sent | What it contains | | --- | --- | --- | | **Sign-up confirmation** | You sign up with an email and password. If no code arrives, you may already have an account with that address: sign in, or reset your password. An account whose email is never confirmed may be removed after a couple of weeks. | A 6-digit code to enter on the sign-up page, and a one-click confirmation link. | | **Password reset code** | You click **Forgot password?** on the sign-in page. See [Forgot your password](https://docs.theavoxai.com/security#forgot-your-password). | A 6-digit code to enter on the sign-in page, and a link that does the same in the browser you asked from. | | **Email change - confirm new address** | You change your email in [Profile](https://docs.theavoxai.com/settings/profile). Goes to the **new** address. | Both addresses, a 6-digit code to enter on the Avox page where you asked for the change, and a confirmation link. | | **Email change - approve from old address** | The same change. Goes to your **current** address, so you can approve it - or spot a change you didn't make. | Both addresses, a 6-digit code to enter on the Avox page where you asked for the change, and an approval link. | ### Security notices Always sent. | Email | When it's sent | Who | What it contains | | --- | --- | --- | --- | | **Password changed** | Your password changes in **Settings > Security**, or you reset it with **Forgot password?**. | You | When it changed. If it wasn't you, it tells you to reset your password and reply to the email so the team can help you lock things down. | | **Email address changed** | An email change completes. Goes to the **old** address. | You | The old and new address, when, and a reset link. | | **Email change asked for** | Someone starts changing your email and your current address isn't asked to approve it. Goes to the **current** address. | You | The current and new address, when, a button to review or cancel the change in Settings, and a reset link. | | **Two-factor turned on or off** | You turn [two-factor authentication](https://docs.theavoxai.com/security/two-factor) on or off. | You | Whether it's on or off, when, and a link to Settings > Security. | | **Sign-in method added or removed** | Google or Facebook sign-in is connected to or disconnected from your account. | You | Which provider, added or removed, and when. | | **New sign-in** | Your account opens the dashboard on a device it hasn't used in the last 30 days. At most one every 10 minutes. See [Sessions](https://docs.theavoxai.com/security/sessions). | You | The device (system and browser), approximate location, IP address, time, a link to your active devices, and a reset link. | | **API key created** | A new API key is created. | Admins | The key's name, its first characters, the number it sends from, and when. | | **API key revoked** | A key is revoked, by your team or by the Avox team. | Admins | The key's name and first characters, who revoked it, and why (when Avox revoked it). | | **API key security alert** | A key is used from a new IP address, or a request is blocked by the key's IP allow-list. At most once a day per key and kind. | Admins | The key's first characters and the IP address. | | **Delete-connection code** | An Admin asks to delete a WhatsApp connection. | Owner | The Switchboard, the connection, and a one-time code that expires after a few minutes. | | **Confirm it's you (code)** | You ask for a code to create, rotate or revoke an API key, or to pause or delete a Switchboard. See [Emailed codes for sensitive actions](https://docs.theavoxai.com/security#emailed-codes-for-sensitive-actions). | You | A 6-digit code that works once, for 10 minutes. | ### Team and account | Email | When it's sent | Who | Can be turned off? | | --- | --- | --- | --- | | **Team invite** | An Admin invites someone to a Switchboard. Contains who invited them, the Switchboard, the role, and the accept link. See [Invites](https://docs.theavoxai.com/switchboard/invites). | The invited person | No | | **Team member joined** | Someone accepts an invite. Contains their name, email, and role. | Whoever sent the invite | No | | **Team invite expired** | An invite passes its 7-day limit unaccepted. | Whoever sent it | No | | **Removed from a Switchboard** | An Admin removes someone. Says who removed them. | The removed person | No | | **Role changed** | An Admin changes someone's role (Admin or Manager). Says who changed it, the old role and the new one. See [Changing someone's role](https://docs.theavoxai.com/switchboard/members#changing-someones-role). | The person whose role changed | No | | **Permissions changed** | An Admin gives a Manager extra permissions or takes some away. Says who changed it, what they can now do and what they can no longer do; the same news shows in the notifications bell. See [Changing a member's permissions](https://docs.theavoxai.com/switchboard/members#changing-a-members-permissions). | The Manager whose permissions changed | No | | **Welcome** | You finish a Switchboard's onboarding questions for the first time (once per Switchboard). | You | No - it's sent once | | **Support request received** | You open a ticket in [Support](https://docs.theavoxai.com/support). Contains the subject, ticket reference (like `T-4F2K9A`), and what you wrote. | You | No | | **Support reply** | The Avox team replies to a ticket. Contains the reply and a link to the ticket. | Whoever opened the ticket | No | | **Account updated by Avox** | Something about your account changes: the Avox team adds limits or credits, grants, extends, or ends a plan, or a billing event changes your plan's status (for example a paused plan switching back on). Contains what changed, from and to. | You, or the Owner | No | | **Account deleted** | You delete your account. The last email sent to that address. | You | No | | **Facebook data deletion completed** | A data-deletion request from Meta is matched to your account and carried out. Contains Meta's confirmation code and a status link. See [Data deletion](https://docs.theavoxai.com/data-deletion). | You | No | | **Policy updated** | Avox publishes a new version of a policy you agreed to (Terms, Privacy Policy, Refund Policy, Cookie Policy or DPA). Contains a summary of what changed, the date it takes effect and a link to read it. Has no unsubscribe link. See [When a policy changes](https://docs.theavoxai.com/compliance#when-a-policy-changes). | Everyone who agreed to an earlier version | No | ### Billing All always sent. See [Billing](https://docs.theavoxai.com/billing). | Email | When it's sent | Who | | --- | --- | --- | | **Payment receipt** | A subscription becomes active after a successful payment, and on renewals. Contains the plan and amount. | Owner | | **Payment failed** | A renewal payment fails and the plan shows Payment due. | Owner | | **Payment reminder** | The Avox team sends a reminder about a payment that's due, sometimes with a note. | Owner | | **Plan changed** | You move your subscription to another plan from Billing. Contains the old and new plan. | The Admin who changed it | | **Cancellation confirmed** | You cancel from Billing. Contains any early-cancellation fee paid and the last day the plan works. | The Admin who cancelled | | **Subscription canceled** | A plan ends - right away when PayPal cancels it, or when a cancelled plan's paid time runs out. | Owner, or every Admin when the paid time runs out | | **Refund issued** | A full or partial refund is made. Contains the amount and invoice reference. | The person who paid | | **Coupon or gift applied** | A free code or gift switches a plan on with no payment. Contains the code, what it gave, and the last day it covers. | You | | **Plan gift** | The Avox team gifts you a plan. Contains the gift, your code, an accept link, and the last day to use it. See [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts). | The gifted person | | **Plan ending soon** | A plan that doesn't renew by itself (paid a year upfront, added by Avox, or from a code) ends in 7 days, and again 1 day before. | Admins | | **Plan ended** | That plan reaches its end date and your numbers pause. | Admins | | **Invoice copy** | You press **Email me this invoice** on an invoice. Contains the line items, total and billing details. See [Invoices](https://docs.theavoxai.com/billing/invoices). | You | | **Credits purchased** | You buy an automation credit pack in **Billing > Buy credits** and PayPal confirms the payment. Contains the credits added, the amount (India accounts: rupees first, with the US dollar amount charged beside them), when they stop counting, and a link to the invoice. See [Buying more credits](https://docs.theavoxai.com/automation/credits#buying-more-credits). | The person who bought them | | **Retention offer accepted** | You accept an offer on the Delete account page. Contains what you get, your personal code (if any) and how to use it. See [If you accepted an offer](https://docs.theavoxai.com/security#if-you-accepted-an-offer). | You | | **Campaign billing reminder** | A renewal payment didn't go through: a friendly note on how to fix it in PayPal, with a link to Billing. | You | ### Business offers | Email | When it's sent | Who | Can be turned off? | | --- | --- | --- | --- | | **Business plan offer** | The Avox team sends your company a custom plan. Contains the plan, price, billing, expiry, and your personal offer link. | The business contact | No | | **Business offer - expiry reminder** | An unaccepted offer expires within 3 days (once per offer). | The business contact | Unsubscribe link in the email | | **Business plan active** | Your business plan is paid and live. | The business contact | No | ### Connections, templates, and usage | Email | When it's sent | Who | Can be turned off? | | --- | --- | --- | --- | | **WhatsApp number connected** | A number finishes connecting through Meta's sign-up window. | Admins | No | | **WhatsApp number removed** | An Admin confirms deleting a number. Says who removed it and the last day Support can restore it. | Admins | No | | **Message forwarding paused** | Avox pauses [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) for a connection because your endpoint failed several deliveries in a row, each after a long run of retries. Contains the connection, how many deliveries failed, the last error, and a button to turn forwarding back on. Your messages stay in the Inbox, and you can resend any of them from the delivery log. Sent once per pause. | Admins | No | | **Automation credits 80% / 100%** | A Switchboard uses 80%, then 100%, of its automation credits for the period (once each per period). Contains used, granted, and the reset date. | Admins | No | | **Meta access expiring** | A connected number's access to Meta expires within 7 days, and again at 1 day. | Admins | Yes - **WhatsApp account alerts** | | **Template rejected / paused** | Meta rejects, pauses, disables, or flags a template. Contains the template, language, status, and Meta's reason. | Admins | Yes - **WhatsApp account alerts** | | **Flow blocked / throttled** | Meta blocks, throttles, or deprecates a Flow. | Admins | Yes - **WhatsApp account alerts** | | **Critical Meta alert** | Meta sends an account-affecting alert about a connected number. At most once a week per alert. | Owner | Yes - **WhatsApp account alerts** | | **API problem report** | Requests Avox makes to Meta for you keep failing - for example sending a message, changing a template or Flow, or updating a number's settings. At most once a week per issue. | Owner | Yes - **WhatsApp API problem reports** | | **Meta payment problem** | Meta reports a payment problem on a connected number's WhatsApp Business Account, so messages may stop sending. Says what's wrong, the error code, how to fix it, and links to Billing & payments in Meta and to your Avox Billing page. Sent once per problem. See [Payment problems](https://docs.theavoxai.com/billing#payment-problems). | Admins | No | | **Automation team alert** | An automation's "Notify the team" step runs with email turned on. Contains the automation, the step's title and message, and a link to the customer. At most once per automation every 15 minutes. | Admins | Turn email off in that automation step | ### Reminders and news | Email | When it's sent | Who | Can be turned off? | | --- | --- | --- | --- | | **Setup reminder** | No plan 3 days after sign-up, or a connection stuck mid-setup for a day. At most once every 14 days for each reason. | Owner | Yes - **Setup reminders** | | **Offer or reminder** | Now and then: a thank-you before your plan renews, an offer to stay, a reminder to finish a checkout, or a tip. May carry a personal code or bonus credits. See [Offers and discounts](https://docs.theavoxai.com/billing#offers-and-discounts). | You | Yes - **Setup reminders**, and the unsubscribe link in the email | | **Keep your credits: renew your plan** | 3 days before a credit period ends, and on its last day, when unused plan credits would roll over but the plan may not renew (it's set to cancel, a payment failed, or a paid-upfront plan is ending). Sometimes with a renewal code. See [Credits that roll over](https://docs.theavoxai.com/automation/credits#credits-that-roll-over). | Admins | Yes - **Setup reminders** | | **Credits rolled over** | Your plan renewed and its unused plan credits moved into the new period. Says how many, this period's own plan credits, and when the rolled-over credits stop counting. | Admins | Yes - **Setup reminders** | | **Product announcement** | The Avox team announces something new. Written for each send. | Admins or every member, as chosen for that announcement | Yes - **Product news and announcements** | | **Notification (email copy)** | A dashboard notification from the Avox team (for example planned maintenance) is also sent by email. | The people it's addressed to | Yes - **Product news and announcements** | ### From theavoxai.com | Email | When it's sent | Who | | --- | --- | --- | | **Contact form - confirmation** | You send a message through theavoxai.com's contact form. Quotes your message back with a reference number. | You | | **Newsletter - confirm your email** ("Confirm your Avox updates") | You type your address into the email field on theavoxai.com (including **Get announcements by email** on the announcements page). You're only subscribed once you open its link and press **Confirm my email** on the page it opens. The link works for 7 days; if you didn't ask, ignore it and nothing is sent. | You | | **Newsletter - welcome** | You confirm your subscription from the confirmation email. Contains a one-click unsubscribe link and a link to manage your subscription without signing in. | You | | **Announcement (newsletter)** | The Avox team publishes an announcement on theavoxai.com/announcements and chooses to email it to newsletter subscribers. Carries an unsubscribe link and a **Manage preferences** link. | Newsletter subscribers | Signing up for an Avox account adds you to the newsletter without a confirmation email, because the sign-up code already confirmed your address. An address that unsubscribed before stays unsubscribed, and you can unsubscribe any time. People who subscribed before the confirmation email was added stay subscribed and don't need to confirm. Prefer not to get email? Every announcement is also on **theavoxai.com/announcements**, which has an RSS feed, and product changes are listed in the docs [Changelog](https://docs.theavoxai.com/changelog). The **Manage preferences** link in a newsletter or marketing email opens your subscription settings on theavoxai.com without a password. If you open theavoxai.com/preferences while signed in, it sends you to your dashboard's Compliance page instead. ### Not getting an email? - Check your spam or junk folder, and add Avox to your contacts. - Check which address the email goes to: many Switchboard emails go only to the Owner or to Admins (see the tables above). - Check **Compliance > Email Preferences** for the four optional kinds. - No sign-up code? If that address already has an Avox account, sign in instead, or reset your password with **Forgot password?**. - Signed up for product updates on theavoxai.com but nothing came? Look for the "Confirm your Avox updates" email: nothing else is sent until you confirm. An address that's already subscribed gets no new email. - Still missing? Open a ticket in [Support](https://docs.theavoxai.com/support) or email hello@theavoxai.com. --- ## Personalisation URL: https://docs.theavoxai.com/settings/personalisation Section: Settings **Settings > Personalisation** is how the dashboard looks and behaves for you alone. Nothing here changes anything for your teammates, your contacts or your Switchboard: each person sets their own. Open **Settings**, then pick a page under **Personalisation** in the settings menu (on a phone, in the tab bar across the top). There are ten pages: | Page | What it changes | | --- | --- | | [**Appearance**](#appearance) | Theme, accent colour, density and accessibility. | | [**Time and date**](#time-and-date) | Your time zone, clock, date order and first day of the week. | | [**Navigation**](#navigation) | Where Avox opens for you, and how the sidebar looks. | | [**Inbox**](#inbox) | How the Inbox reads and sends, and your saved quick replies. | | [**Notifications**](#notifications) | What Avox tells you about, how, and when to stay quiet. | | [**Camera & mic**](#camera-mic) | Allow, choose and test the microphone, camera and speaker Avox uses for voice notes, photos and videos. | | [**Shortcuts**](#shortcuts) | The keys that move you around Avox. | | [**Lists**](#lists) | How Contacts, Tables and Logs open: sort, filters, columns and rows per page. | | [**Blobatar**](#blobatar) | Your Avox Avatar's shape and colours, and its tips. | | [**Tour and reset**](#tour-and-reset) | Take the dashboard tour again, choose if tours open by themselves, or put every choice back to its default. | You can also find every page from search: type "personalisation", or the name of a setting such as "theme" or "time zone". ### How your choices are saved There's no Save button. Every change applies straight away and is saved to your account as you go. While it saves, the top of the page says **Saving...**, then: "Changes save as you go and follow you to every device you sign in on." - **They follow you.** Sign in on another computer, phone or browser and the dashboard already looks and works the way you set it, from the very first screen. - **They're yours alone.** Your teammates can't see or change them. Avox support can see them when helping you with your account. - **They're the same in every Switchboard.** Switching Switchboard doesn't change them. A few things also depend on the device or browser you're using. Each is explained where it comes up: - **The last page I used** (under [Where you land](#where-you-land)) is remembered by each browser. - **Desktop alerts** (under [Inbox comfort](#inbox-comfort)) need each browser's own permission. - **Automatic** choices (the theme's **System**, **Follow my device**, the automatic clock, date order and week start, and **Use my device's time zone**) follow whichever device you're on. If Avox can't save to your account for a moment, the page says "Your choices can't be saved to your account right now, so they last for this visit." Your changes still apply until you leave. The theme is then kept on this device only, and only while your cookie choices allow **Site preferences**: the **Theme** card shows a **Cookie settings** link when they don't. See [Cookie choices](https://docs.theavoxai.com/compliance#cookie-choices). ### Appearance Four cards: **Theme**, **Accent colour**, **Density** and **Accessibility**. #### Theme "Choose how Avox looks." Three choices, each with a small drawn preview of the dashboard: | Choice | What it does | | --- | --- | | **System** (default) | Follows your device, and changes when it does. While it's picked, the card tells you whether your device is light or dark right now. | | **Light** | Always light, whatever your device uses. | | **Dark** | Always dark, whatever your device uses. | The theme changes straight away and follows you to every device you sign in on. You can also switch it without opening Settings: - the sun and moon button in the dashboard header (**Switch to dark theme** or **Switch to light theme**), or - search: **Use light theme**, **Use dark theme** or **Match system theme**. Whichever way you change it, the new theme is saved to your account too. #### Accent colour "The colour of main buttons, the page you're on in the sidebar and the outline around whatever has keyboard focus." Pick one of seven: **Avox** (the default: the dashboard's own black and white), **Blue**, **Violet**, **Rose**, **Amber**, **Teal** or **Slate**. Each swatch shows the shade it uses in the theme you're on: accents are a little lighter in dark mode so they stay easy to read. #### Density **Spacing**: **Comfortable** (default) or **Compact**. "Compact fits more on the screen: tighter cards and table rows." #### Accessibility | Setting | Choices | What it does | | --- | --- | --- | | **Reduce motion** | **Follow my device** (default), **On**, **Off** | Turns off sliding, fading and moving effects. **Follow my device** uses your system's own setting. With motion reduced, your Avox Avatar and the tours stay still too. | | **Higher contrast** | On or off (default off) | Stronger borders and darker secondary text. | | **Larger text** | On or off (default off) | Makes text and everything around it a step bigger, across the whole dashboard. | **Larger text** makes the whole dashboard bigger. To change only the size of chat messages, use **Message text size** on the [Inbox](#inbox-comfort) page instead. ### Time and date "How Avox shows times and dates to you. Messages and schedules themselves don't change." Changing these never moves a scheduled broadcast or an automation's timing: it only changes how times read on your screen. | Setting | Choices | What it does | | --- | --- | --- | | **Time zone** | **Use my device's time zone** (default), or any time zone | Times in the Inbox, logs and lists are shown in this zone. The list shows each zone with its current offset from GMT, and you can type to search it (**Search time zones**). | | **Clock** | **Automatic** (default), **12-hour**, **24-hour** | **Automatic** follows your browser's language. | | **Date order** | **Automatic** (default), **Day first** (31/12/2026), **Month first** (12/31/2026), **Year first** (2026-12-31) | The order of day, month and year everywhere a date is shown. **Automatic** follows your browser's language, and the menu shows how it looks for you. | | **Week starts on** | **Automatic (from your browser's language)** (default), **Monday**, **Sunday**, **Saturday** | Used by calendars and date pickers. | Under the settings, a live line shows the current date and time the way you've set it ("Right now that reads: ..."), so you can compare choices before you leave the page. Your time zone is also the one [quiet hours](#quiet-hours) use. ### Navigation Two cards: **Where you land** and **Sidebar**. #### Where you land | Setting | Choices | What it does | | --- | --- | --- | | **Open Avox on** | **Overview** (default), **Inbox**, **Contacts**, **Automation**, **The last page I used** | Where Avox opens after you sign in. | | **Open my last Switchboard** | On or off (default off) | When you're in more than one Switchboard, skip choosing at sign-in and open the one you used last. | How **Open Avox on** works: - It's used once per sign-in, on the first dashboard page you open. After that, **Overview** in the sidebar opens the Overview as usual. - If you can't open the page you picked in the Switchboard you're in (no number connected yet, no access to it, or it isn't part of the plan), you land on the Overview. - **The last page I used** is remembered by each browser, not by your account. It only works while your cookie choices allow **Site preferences**. If they don't, Avox opens the Overview and the card says so, with a **Cookie settings** link. See [Cookie choices](https://docs.theavoxai.com/compliance#cookie-choices). With **Open my last Switchboard** on, you can still switch any time from the header. Opening the Switchboard chooser on purpose always shows every Switchboard. See [Switchboards](https://docs.theavoxai.com/switchboard). #### Sidebar | Setting | Default | What it does | | --- | --- | --- | | **Start with the sidebar collapsed** | Off | Opens as a narrow row of icons on a computer. You can still open it whenever you like. | | **Show the sidebar banner** | On | The card under the sidebar's pages, with tips, offers and the dashboard tour. Off, nothing shows there at all. The tour stays in the account menu. | **Pages in the sidebar** lists every page of the main sidebar. "Pin the pages you use most to the top. Hide the ones you never open: search still finds them." - **Pin to the top** (the pin button) moves a page into a **Pinned** group at the top of the sidebar. Pinned pages show in the order you pinned them. Click the button again to **Unpin**. - The switch on each row shows or hides that page in the sidebar. A hidden page is still one search away, and its address still works. - Pinning a hidden page shows it again, and hiding a pinned page unpins it. Pinning and hiding only change your own sidebar. They never change what you're allowed to open. ### Inbox Two cards: **Inbox comfort** and **Saved quick replies**. #### Inbox comfort "How conversations look and behave for you. Saved to your account, so they follow you to any device." | Setting | Choices | What it does | | --- | --- | --- | | **Message text size** | **Small**, **Normal** (default), **Large** | The size of the text in chat bubbles and the reply box. | | **Send with** | **Enter** (default), **Ctrl or Cmd + Enter** | With **Enter**: Enter sends and Shift + Enter starts a new line. With **Ctrl or Cmd + Enter**: Ctrl + Enter (Cmd + Enter on a Mac) sends and Enter starts a new line. | | **Sound for new messages** | On (default) or off | A short sound when a new message arrives, on any page of the dashboard. **Play it** lets you hear it first. The sound itself is picked under [Sounds](#sounds). | | **Desktop alerts** | On or off (default off) | An alert saying "New WhatsApp message" or "New WhatsApp call" while Avox is open in a tab you aren't looking at. It never shows who wrote or what they said. | | **Contact pictures** | On (default) or off | Show each contact's picture in the conversation list and beside their messages. | **Desktop alerts** need your browser's permission. Your browser asks only when you turn the switch on, never when a page opens, and each browser asks once for itself. So on a new computer or browser the switch shows as off until you turn it on there and allow alerts. - If you block alerts, the card says "Your browser is blocking alerts from Avox. Allow them in the browser's site settings, then turn this on." - If the browser can't show alerts at all, it says "This browser can't show desktop alerts." The new-message sound and desktop alerts stay quiet during your [quiet hours](#quiet-hours). #### Saved quick replies "Replies you send often." Each one has: | Field | Rules | | --- | --- | | **Shortcut** | What you type after **/** in the Inbox, like `thanks`. Small letters, digits, hyphens and underscores, up to 24 characters. Each of your replies needs its own shortcut. | | **Name** | A short title, up to 60 characters, like "Thank you for your order". | | **Reply** | The text that goes into the reply box, up to 1,000 characters. It can't be empty. | A small form opens under your list. If the shortcut is already used by another of your replies, the form says "You already use /thanks for another reply. Pick a different shortcut." You see "Quick reply saved". Use the pencil button to edit a reply and the bin button to delete one. Deleting asks first ("Delete this quick reply?"): **Delete** removes it from your Inbox, **Keep it** cancels. Messages you already sent with it aren't changed. You can save up to 100 quick replies, and the card shows how many you have (for example "12 of 100"). When you reach 100, delete one you no longer use to add another. **Using them in the Inbox:** type / and the shortcut in the reply box, or click the **Saved quick replies** button beside it and search. In the list, the arrow keys move, Enter adds the reply and Esc closes the list. The reply goes into the box as plain text for you to check and send. See [Inbox](https://docs.theavoxai.com/inbox). Your quick replies are yours alone: teammates don't see them. They work in every Switchboard you reply from, and resetting your preferences keeps them. ### Notifications "What shows in the bell at the top of the page, just for you. Your teammates choose their own." Each kind of notice has two choices: **Show** (the default) or **Hide**. | Kind | What it covers | | --- | --- | | **Support replies** | When the Avox team answers one of your support requests. | | **Billing and payments** | A payment that failed, a plan about to end, and other billing problems. | | **WhatsApp number problems** | A number that's disconnected, paused or needs attention. | | **Connected apps** | An app that stopped working or needs to be connected again. | | **Chat signals** | A chat signal that tells you, like "Asked for a human". Who each signal tells is set in **Settings > Chat signals**: see [Chat signals](https://docs.theavoxai.com/chat-signals). | | **Notices from Avox** | News and notes from the Avox team, and notes about changes to your account. Urgent notices always show. | **Hide** only keeps that kind out of your bell. It doesn't change anything for your teammates, and anything that isn't one of these kinds always shows. **Emails** about these are set for the whole Switchboard, not per person. Members who can manage settings see a link to **Compliance, Email preferences**; everyone else is asked to check with an Admin. Sign-in, security and billing emails always arrive. See [Emails](https://docs.theavoxai.com/emails). #### New messages and calls "How Avox tells you about a new message or call while you're on another page." | Setting | Choices | What it does | | --- | --- | --- | | **Pop-ups** | On (default) or off | A small note under the search bar (at the top of the page on a phone) with who it's from and the first line of the message, or **New call** / **Missed call**. Click it to open the chat or the call. It goes after about 5 seconds (it waits while your pointer is on it), or swipe it away or press its x. Up to three show at once. | | **Count in the tab title** | On (default) or off | How many messages and calls are new, in your browser tab, like "(3) Inbox". | The **Inbox** and **Calls** items in the sidebar always show how many are new since you last opened them (**+3**, or a dot when the sidebar is collapsed; **99+** at most). Opening the page clears it. The count is kept for you in each Switchboard, so a teammate opening the Inbox doesn't clear yours. You only hear about what you're allowed to see: people without access to the Inbox get nothing about messages, and people without access to calls nothing about calls. #### Sounds "A short sound when something new arrives. Saved to your account, so it follows you to any device." | Setting | Choices | What it does | | --- | --- | --- | | **New messages** | On (default) or off | When a customer's message arrives, on any page of the dashboard. | | **Calls** | On (default) or off | When a customer calls your WhatsApp number, on any page of the dashboard. | | **Notifications** | On (default) or off | When something new lands in the bell at the top of the page. | | **Message sound** | **Chime** (default), **Pop**, **Bell**, **Marimba**, **Ring**, **Glass**, **Bubble**, **Soft knock**, **Twinkle**, **Ding-dong** | The sound for messages and notifications. Picking one plays it; **Play** plays it again. | | **Call sound** | **Ring** (default), or any of the message sounds | The sound for calls, picked on its own. Picking one plays it. | | **Volume** | 0 to 100 (default 60) | At 0 no sound plays. | | **Play in background** | On or off (default off) | Also play while Avox is open in a tab you aren't looking at. | There's never a sound for messages you or your team send, chats brought in from your WhatsApp history, or the chat you have open. Sounds wait for your first click in Avox (browsers only allow sound after that), play at most once every two seconds, and stay quiet during your quiet hours. With Avox open in several tabs, only one of them plays each sound. #### Quiet hours **Quiet hours** (off by default): "No sounds or desktop alerts during these hours. The bell still keeps everything for later." Turn the switch on, then pick **From** and **to** times in half-hour steps (the defaults are 22:00 to 07:00). Quiet hours can run past midnight. They follow the time zone you chose on [Time and date](#time-and-date), or your device's time if you use your device's time zone. ### Camera & mic Four cards: **Access** (allow Avox to use your microphone and camera, or see how to unblock them in your browser), **Microphone** (pick one, check its level, record 3 seconds and hear it back), **Camera** (pick one, preview it, mirror the preview, take a test photo) and **Speaker** (where sound plays, in browsers that let a page choose). Set it up once in each browser you use, before recording voice notes, photos or videos. Your choices are remembered in that browser, and by device name on your other devices. See [Camera & mic](https://docs.theavoxai.com/settings/camera-and-microphone) for every detail. ### Shortcuts **Use shortcuts** is on by default. Press ? anywhere in the dashboard to see every shortcut, with a **Change them** link back to this page. These are the shortcuts and their standard keys. On a Mac, Ctrl is Cmd. | Group | Action | Keys | | --- | --- | --- | | General | **Open or close search** | Ctrl + K | | General | **Open search (quick key)** | / | | General | **Show shortcuts** | ? | | Go to | **Go to Overview** | G then O | | Go to | **Go to Inbox** | G then I | | Go to | **Go to Contacts** | G then C | | Go to | **Go to Templates** | G then M | | Go to | **Go to Flows** | G then F | | Go to | **Go to Tables** | G then T | | Go to | **Go to Automation** | G then A | | Go to | **Go to Logs** | G then L | | Go to | **Go to Settings** | G then S | | Inbox | **Jump to the reply box** | R | For a two-key shortcut, press the first key, then the second within about a second. Single keys don't fire while you're typing in a box; Ctrl and Cmd shortcuts still do. #### Changing a shortcut The row says **Press the new keys**. One key (with Ctrl, Cmd, Alt or Shift if you like), or two plain keys one after the other. Esc or **Cancel** stops without changing anything. The new keys work straight away, everywhere in the dashboard, on every device you sign in on. Some keys can't be used. The row tells you why: | Message | Why | | --- | --- | | "Use one key, or two keys one after the other." | A shortcut is one or two steps. | | "A two-key shortcut can't use Ctrl, Cmd or Alt." | Two-key shortcuts use plain keys only. | | "Your browser uses that one. Pick another." | Ctrl with A, C, V, X, Z, Y, W, T, N, Q, R, L, F, P or S stays with your browser. | | "Already used for ..." | Another action has those keys. | | "Clashes with ..." | One key that starts another action's two-key shortcut (or the other way round), like G on its own. | A changed shortcut gets a **Reset** button that puts back its standard keys. **Reset every shortcut** puts them all back at once. #### Turning shortcuts off Turn off **Use shortcuts** and none of them fire, including the search keys. Search stays one click away at the top of the page. ### Lists The **List defaults** card covers three lists: **Contacts**, **Tables** and **Logs**. Each can open with your own saved view: its sort, filters, columns and rows per page. Sort it, filter it and choose its columns and rows per page the way you like. It's the bookmark button in the list's filter bar. You see "Saved as your default view", and the button now reads **My default** while the list shows that view. From then on the list opens that way for you, on every device. A link with its own filters still opens as sent. **Reset to the standard view** in the same menu goes back to the list's own view. On **Settings > Personalisation > Lists**, each list shows either "The standard view" or a short summary of what you saved (for example a segment, a status, how it's sorted, rows per page or how many columns). Click a list's name to open it, or **Reset** to go back to the standard view. Saved views are yours alone: your teammates' lists open their own way. ### Blobatar This page is about your **Avox Avatar**, the little face that stands for you around Avox: in the header, on every page and in the tours. It has two cards: **Your Blobatar** and **Tips and hints**. For the Avox Avatar itself and all its moods, see [Avox Avatar](https://docs.theavoxai.com/avox-avatar). #### Your Blobatar "Pick its shape and colours. Contacts and team members keep their own." A live preview shows your Avox Avatar in four moods (**Resting**, **Happy**, **Thinking** and **Delighted**) and changes as you pick. - **Shape**: **Automatic, from your account type** (the default), or one of ten shapes: **Round**, **Organic**, **Boxy**, **Capsule**, **Nub**, **Cloud**, **Droplet**, **Hexagon**, **Sun** or **Triangle**. Automatic uses the shape that goes with the **Avatar shape** you chose in [Your details](https://docs.theavoxai.com/settings/profile#your-details). - **Colours**: **Automatic, from your account** (the colours your account has always had, the default), one of ten ready-made pairs (**Mint**, **Teal**, **Sky**, **Violet**, **Pink**, **Rose**, **Coral**, **Amber**, **Lime** or **Slate**), or **Pick any colour** for the body. With your own colour, the eyes switch between black and white so the face always shows. The card says "This is your default look." or "Changed from your default look." **Reset to my default** puts back the automatic shape and colours. Your choice shows everywhere your own Avox Avatar appears, on every device, and nowhere else: it doesn't change how your contacts or teammates look. #### Tips and hints **Tips and hints** (on by default): your Avox Avatar's little tips about new features, and its speech bubble in the sidebar card. Turning it off also stops what your Avox Avatar offers by itself: - the tour's offer in the sidebar banner, - the page tours that start by themselves the first time you open a page, and the small dot on a page's **Show me around** button. You can still start any tour yourself. See [Tours](https://docs.theavoxai.com/settings/tours). ### Tour and reset | Setting | Button | What it does | | --- | --- | --- | | **Show tours by themselves** | A switch | On by default: each page shows you around the first time you open it, and the sidebar offers the dashboard tour. Off: tours open only when you start one. **Don't show tours again** in a tour turns it off too. | | **Dashboard tour** | **Restart the tour** | "A short walk through the main parts of Avox. Takes about a minute." Takes you to the Overview and starts the tour from the beginning. It also brings back every page tour. | | **Page tours** | **Reset page tours** | "Each page shows you around once, the first time you open it. Bring those back to see them again." Only the page tours come back. The button is greyed out until you've seen at least one. | | **Reset all preferences** | **Reset all** | Every Personalisation choice goes back to how Avox starts, your Avox Avatar and the sidebar banner included. Saved quick replies are kept. | How the tours work, and every other way to start them: [Tours](https://docs.theavoxai.com/settings/tours). #### Resetting everything **Reset all** asks first: "Reset all preferences?" It lists what goes back to its default: theme, accent colour, density, time and date, where you land, the sidebar and its banner, accessibility, Inbox comfort, notifications, shortcuts, list settings and your Avox Avatar's look, on every device. The tours start fresh too. - **Reset preferences** resets them. You see "Your preferences are back to their defaults." - **Keep my choices** cancels. Your saved quick replies stay. Nothing about your account, your Switchboard or your teammates changes. ### Questions Reload the dashboard on your phone: your saved choices are read when a page loads. If the top of the Personalisation page says your choices can't be saved right now, they lasted only for that visit on the laptop. Try again in a moment. The page you picked has to be one you can open in that Switchboard. Without a connected number, or without access to the page, you land on the Overview. With **The last page I used**, also check that your cookie choices allow **Site preferences** on this browser. Alerts show only while Avox is open in a tab you aren't looking at, and never during your quiet hours. If the card says your browser is blocking alerts, allow them in the browser's site settings for Avox, then turn the switch on again. Check that **New messages** or **Calls** is on under [Sounds](#sounds) and the volume isn't 0. Click anywhere in Avox once after it opens: browsers only allow sound after that. Sounds are quiet during your quiet hours, and in a tab you aren't looking at unless **Play in background** is on. There's no sound for the chat you have open, or for messages your team sends. It clears when you open the Inbox in that Switchboard. It counts messages since you last opened it, for you alone, so a teammate reading the chats doesn't clear yours. No. Each new message or call plays its sound in one tab only. Pop-ups show in the tab you're looking at. Check that **Use shortcuts** is on. Single-key shortcuts don't fire while you're typing in a box: click outside it first. Press ? to see the keys you've set. No. Every choice here is yours alone, including your sidebar, your notifications, your list views and your quick replies. Settings that apply to the whole Switchboard, such as its emails, are in [Compliance](https://docs.theavoxai.com/compliance) and [Switchboards](https://docs.theavoxai.com/switchboard). ### Related --- ## Tours URL: https://docs.theavoxai.com/settings/tours Section: Settings Avox has two kinds of tour, both led by your own Avox Avatar: - **The dashboard tour**: a short walk through the header and the main pages, about a minute long. You start it whenever you like. - **Page tours**: a few steps about one page. Most pages have one. Each page shows you around once by itself, the first time you open it, and you can replay it any time with **Show me around**. A tour points at one part of the screen at a time, with a short note beside it. Everything you've seen is saved to your account, so a tour you've finished on one device doesn't play again on another. ### Moving through a tour Each step shows **Step 2 of 8** (for example), a title and a short note, with a progress bar under it. | To | Click | Or press | | --- | --- | --- | | Go to the next step | **Next** | → | | Go back a step | **Back** | ← | | Stop the tour | **Stop tour**, or the X (**Close the tour**) | Esc | | Stop tours opening by themselves | **Don't show tours again**, under the buttons | | | End on the last step | **Finish** (dashboard tour) or **Done** (page tour) | | While a tour is open, the dashboard's own shortcuts wait until it closes, and Tab stays inside the tour's note. On a phone, the note docks at the top or bottom of the screen. If your Avox Avatar can't find the part it wants to show on your screen just then, the note says so and the step still explains it. With **Reduce motion** on (Settings > Personalisation > Appearance), nothing slides or bounces. ### The dashboard tour The dashboard tour covers what works before a WhatsApp number is connected. It moves between pages by itself, in this order: | # | Step | Where | What it shows | | --- | --- | --- | --- | | 1 | **Hi, it's me** | The header | Your Avox Avatar introduces the bar at the top of every page. | | 2 | **Your Switchboard** | The header | What a Switchboard is, and how to switch between them (or make a second one if you have only one). | | 3 | **Search everything** | The header | One box for pages, settings, contacts, chats and actions, with your search keys if [shortcuts](https://docs.theavoxai.com/settings/personalisation#shortcuts) are on. | | 4 | **Alerts** | The header | The bell: billing nudges, connection problems, support replies, and chat signals if you see them. | | 5 | **Your account menu** | The header | Settings, Billing, your Switchboards, the docs and support, and where to find this tour again. | | 6 | **Connections** | Connections | Where your WhatsApp numbers live, and what opens up once one is connected. | | 7 | **Apps** | Apps | Connecting the tools you already use: payments, meetings, stores, CRM and sheets. | | 8 | **Billing** | Billing | Your plan, credits and invoices. | | 9 | **Compliance** | Compliance | Data requests, consent records and how long logs are kept. | | 10 | **Settings** | Settings | Your profile, security, team and API keys, and Personalisation. | | 11 | **Overview, and that's the tour** | Overview | Your account at a glance, and the **Show me around** button on every page. | The tour fits what you can do: - Pages you can't open are left out: pages your role doesn't allow (see [Members and roles](https://docs.theavoxai.com/switchboard/members)) and pages switched off for your account. - **Your Switchboard** is left out until you're in a Switchboard. - If no number is connected and you can't open Connections, a step called **A few rooms are still locked** comes before the pages instead: it explains that Inbox, Contacts, Templates, Flows and more open once your Admin connects a WhatsApp number. Pages that need a connected number (Inbox, Templates, Flows and the rest) aren't in the dashboard tour. Each has its own page tour instead. #### Starting the dashboard tour The dashboard tour never starts by itself. Start it from any of these: | Where | What to click | Starts | | --- | --- | --- | | Sidebar banner | **Take the tour** (under "Fancy a quick tour?") | From the beginning | | Sidebar banner, after stopping part way | **Carry on the tour** (under "We stopped part way") | From the step you stopped at | | Account menu (your avatar, top right) | **Take the tour**, under **Help** | From the beginning | | Search | **Take the dashboard tour** | From the beginning | | Settings > Personalisation > Tour and reset | **Restart the tour** | From the beginning, with every page tour brought back too | The tour's offer is the first card in the sidebar banner until you finish the tour. It shows only while **Show the sidebar banner** (Personalisation > Navigation) and **Tips and hints** (Personalisation > Blobatar) are both on. The X on that card hides the offer for good; **Restart the tour** or **Reset all** brings it back. With the offer hidden, or either setting off, the tour is still in the account menu, search and Personalisation. The tour doesn't open over the onboarding chat, the Switchboard chooser, creating a Switchboard, or the two-factor sign-in step. #### Stopping part way Closing the tour saves the step you were on. The sidebar banner then offers **Carry on the tour** and picks up there. **Take the tour** in the account menu or search always starts from the beginning. ### Page tours A page tour explains one page in a few steps, and stays on that page. It only points at what's on your screen: steps for parts you can't see (no data yet, something your role doesn't allow, or a part that doesn't show on a phone) are left out. If nothing on the page can be shown yet, a single note says there isn't much to point at and to ask again once there's something there. Leaving the page ends its tour. #### Pages with a tour Pages marked "Needs a number" have their tour only once a WhatsApp number is connected, because the page itself opens only then. | Page | What it covers | | | --- | --- | --- | | **Overview** | Your numbers, picking a date range, the quick-look cards, the charts, and connecting a number when none is connected yet. | | | **Inbox** | Your chats, finding a chat, the conversation, the reply box, quick replies and who you're talking to. | Needs a number | | **Calls** | Your call history, where to turn calling on, asking a customer before you call, and filters. | Needs a number | | **Contacts** | Everyone who messaged you, quick counts, segments, search, and tags and categories. | Needs a number | | **Templates** | Your templates, writing a new one, ready-written templates, drafts, and search and filters. | Needs a number | | **Flows** | Your Flows, building one, ready-made Flows, drafts, and search and filters. | Needs a number | | **Tables** | Your tables, making one, drafts, sorting and views, and ready-made tables. | Needs a number | | **Automation** | What automations do, the summary, ready-made automations, drafts, your list, making one and the library. | Needs a number | | **Smart links** | Your allowance, folders, search and filters, a link's row and making a link. | Needs a number | | **Broadcasts** | This month's allowance, ready-made ideas, search and filters, a broadcast's row and starting one. | Needs a number | | **Analytics** | Picking a date range, the headline numbers, the charts, wait times and notes. | Needs a number | | **Health** | Your numbers, checking now, notes, delivery, quality history and recent calls. | Needs a number | | **Logs** | Picking a date range, the charts, narrowing down, the list and notes. | Needs a number | | **Connections** | Your allowance, adding a number, setup in progress, a number, its status, and settings. | | | **Apps** | Your apps, finding one, browsing by job, an app's card and apps already connected. | | | **Billing** | Your plan, changing it, paying Meta, Meta charges, your offers and invoices. | | | **Compliance** | Your data, requests, consent records, how long logs are kept, emails and exporting logs. | | | **Support** | Reaching the team, the FAQ and tickets, searching the FAQ, your tickets and opening a ticket. | | | **Settings > Profile** | Your profile card, your details, email address, sign-in methods, agreements and the rest of the settings menu. | | | **Settings > Security** | The overview, password, two-factor sign-in, passkeys, active devices, recent activity and deleting your account. | | | **Settings > Switchboard** | This Switchboard, the team tabs, name and logo, the automation credit limit, and pausing or deleting. | | | **Settings > API Keys** | API keys, making one, API logs, your keys, testing a key and old keys. | | | **Settings > Business** | Business name, billing address, country and saving. | | | **Settings > Usage** | Plan and period, automation credits, messages, plan limits, and API and forwarding. | | | **Settings > Chat signals** | What chat signals are, the built-in signals, turning them on or off, your signals, making one and ready-made packs. | | | **Settings > Personalisation** | Appearance (theme, accent, density, accessibility), Navigation (where you land, sidebar), Inbox (comfort, quick replies) and Blobatar (its look, tips and tours). Pages with a single card have no tour. | | | **Settings > Offers** | Your offers, one offer, used and past offers, and the gift button in the header. | | | **Create smart link** | The steps, the form, the preview and moving on. | Needs a number | | **New broadcast** | The steps, each step's form, the message preview, saving a draft and moving on. | Needs a number | | **Create table** | The three steps, describing your table, other ways to start, your columns and the live preview. | Needs a number | | **Create Flow** | The steps, starting from scratch, ready-made Flows, the phone preview and continuing. | Needs a number | | **Create template** | The steps, ready-made templates, writing your own and the preview. | Needs a number | | **Create automation** | The three steps, what starts an automation, the preview and continuing. | Needs a number | A page's tour is also left out if you can't open that page at all. #### When a page tour starts by itself The first time you open a page with a tour, it starts by itself, once. It waits until: - the dashboard tour has had its turn: you finished or closed it, hid its offer, switched the sidebar banner off, or the offer has been showing since an earlier visit (an hour or more ago, or a day), - **Tips and hints** is on (Settings > Personalisation > Blobatar), - the page has finished loading and settled, with nothing else open on top, and - there are at least two things on the page for it to point at. It waits a moment after the page opens. If you start clicking or typing first, it leaves you alone, and the **Show me around** button still offers it. If the page takes too long to load, it waits for your next visit. #### Starting a page tour yourself | Where | What to click | | --- | --- | | Next to the page's title | The compass button, **Show me around**. It shows only on pages that have a tour. | | Search | **Tour this page**. On a page without its own tour, this starts the dashboard tour instead. | | The shortcuts list (press ?) | **Show me around this page**, at the top of the list. | Until you've seen a page's tour, a small dot pulses on its **Show me around** button and its label reads "New here? I'll show you around" (with **Reduce motion** on, the dot stays still). The dot shows only while **Tips and hints** is on. ### How Avox remembers what you've seen Your tour progress is saved to your account, so it's the same on every device you sign in on: - **The dashboard tour**: the step you reached (for **Carry on the tour**), whether you finished it, and whether you closed it early. - **Page tours**: which page tours you've seen, and when. A page tour counts as seen as soon as it opens, whether it started by itself or you started it, even if you close it straight away. Each page tour starts by itself only once. After that it plays only when you ask. ### Seeing the tours again Open **Settings > Personalisation > Tour and reset**: | Button | What happens | | --- | --- | | **Restart the tour** | Takes you to the Overview and starts the dashboard tour from the beginning. Every page tour comes back too, so each page shows you around again the first time you open it. | | **Reset page tours** | Brings back only the page tours: "Page tours are back. Each page shows you around again the first time you open it." Greyed out until you've seen at least one. | | **Reset all** | Puts every Personalisation choice back to its default, the tours included. See [Resetting everything](https://docs.theavoxai.com/settings/personalisation#resetting-everything). | You never need to reset anything to replay one page's tour: click **Show me around** on that page. ### Fewer tours - Click **Don't show tours again** in any tour, or turn off **Show tours by themselves** (Settings > Personalisation > Tour and reset). Page tours stop starting by themselves, the dot on **Show me around** goes, and the tour's offer leaves the sidebar banner. You can still start any tour yourself, and turning the switch back on brings it all back. - Turn off **Tips and hints** (Settings > Personalisation > Blobatar). Page tours stop starting by themselves, the dot on **Show me around** goes, and the tour's offer leaves the sidebar banner. You can still start any tour yourself. - Turn off **Show the sidebar banner** (Settings > Personalisation > Navigation) to remove the whole card under the sidebar, the tour's offer included. - Finish the dashboard tour once and its offer leaves the sidebar banner for good. See [Personalisation](https://docs.theavoxai.com/settings/personalisation) for every setting. ### Related --- ## Camera & mic URL: https://docs.theavoxai.com/settings/camera-and-microphone Section: Settings **Settings > Personalisation > Camera & mic** is where you get your microphone, camera and speaker ready for Avox. Set it up once in each browser you use, before you record a voice note, take a photo or record a video to send. The page has four cards: [**Access**](#access), [**Microphone**](#microphone), [**Camera**](#camera) and [**Speaker**](#speaker). Avox turns your microphone or camera on only while you record, take a photo or test one on this page. While one is on, a small **Microphone on**, **Camera on** or **Camera and microphone on** note shows in the bottom corner of the dashboard. Nothing you test on this page is saved or sent. ### Access Your browser decides whether Avox may use your microphone and camera, and asks you the first time. The **Access** card shows where each one stands in the browser you're using: | Shows | What it means | | --- | --- | | **Not asked yet** | Your browser hasn't asked you. Press **Allow access**, then choose **Allow** in the browser's question. | | **Allowed** | Avox may use it when you record or test. | | **Allowed, none found** | Allowed, but nothing is plugged in or switched on. | | **Blocked** | Your browser says no. Follow the steps the card shows for your browser, then press **Check again**. | | **Not available** | This browser or page can't use one at all. Open Avox from its usual address (it starts with https) in the latest Chrome, Edge, Firefox or Safari. | Your browser asks once for both the microphone and the camera. The card changes to **Allowed**, and the pickers below now list every device by name. #### When it's blocked A page can't ask again once the browser has blocked it: only you can change it, in the browser. The card shows the steps for the browser you're using (Chrome, Edge, Firefox, Safari, iPhone or iPad, or Android). In most browsers: 1. Click the icon just left of the web address. 2. Set **Camera** and **Microphone** to **Allow**. 3. Reload the page and press **Check again**. If the browser allows them but they're still blocked, your computer or phone may be blocking the browser itself: - **Windows**: Settings > Privacy & security > Camera (and Microphone). - **Mac**: System Settings > Privacy & Security > Camera (and Microphone). You may need to quit and reopen the browser. - **iPhone and iPad**: the Settings app, then your browser, then Camera and Microphone. - **Android**: Settings > Apps > your browser > Permissions. Safari forgets your answer between visits, so it may ask again the next time you record. That's normal: choose **Allow** again. ### Microphone Pick the microphone Avox records voice notes and video sound from: **System default** (it follows your computer's own choice, and shows its name where the browser says it) or any microphone by name. Then test it: - **Check level**: speak and watch the bars move. It turns itself off after 30 seconds, or press **Stop check**. - **Record 3 seconds**: Avox records three seconds and plays them straight back through your chosen speaker. **Play again** replays it. Clear and loud enough? You're set. ### Camera Pick the camera Avox uses for photos and videos: **System default** or any camera by name. - **Turn on preview** shows what the camera sees. The preview turns off by itself while the tab is hidden and comes back when you return, and turns off when you leave the page. - **Mirror the preview** (on by default) shows you like a mirror. Photos and videos you send are never flipped. - **Take a test photo** shows a still beside the preview. It stays on your screen only: **Discard photo** removes it. ### Speaker Where voice notes, test recordings and calls play. In Chrome and Edge you can pick **System default** or any speaker or headset by name, then press **Play a test sound**. Other browsers (Safari, Firefox and most phones) always use your device's own choice: change it in your computer's or phone's sound settings. ### How your choices are remembered - **In this browser**, Avox remembers exactly which device you picked. - **On your other devices**, Avox remembers its name (for example "Jabra Evolve 65") and picks the same one when it's there. Only the name is saved to your account, never a recording. - **Unplugged?** If your chosen device isn't plugged in, the card says so and Avox uses the system default until it's back. Nothing to change. - **Plugged in something new?** It appears in the list straight away, marked **New**. Pick it to use it. ### When a feature needs them If you try to record before setting up, or the browser blocks it, the feature says so in one line with a button (**Set up**, **Show me how** or **Check devices**) that brings you to this page. | Message | What to do | | --- | --- | | Set up your microphone first. | Allow access and pick your microphone on this page, once per browser. | | Your browser is blocking Avox from using your microphone. | Follow the steps under [When it's blocked](#when-its-blocked). | | No microphone was found. | Plug one in or switch it on. | | Your microphone is being used by another app or tab. | Close the other app (a video call, for example) or pick another microphone. | | This browser can't use a microphone in Avox. | Use the latest Chrome, Edge, Firefox or Safari. | The same messages appear for the camera. ### Questions No. The microphone and camera are on only while you record, take a photo or test one, and the **Microphone on** or **Camera on** note shows the whole time. Leaving the page or hiding the tab turns a preview off. Check the headset is plugged in and switched on: if Avox can't find it, the **Microphone** card says so and uses the system default meanwhile. Some headsets show up under two names (one for calls): try the other one. Allow access once on the phone too (each browser asks for itself). Your choices follow you by name, so the same headset is picked when it's there. ### Related --- ## Security URL: https://docs.theavoxai.com/security Section: Security and privacy Your customers trust you with their phone numbers and conversations, and you trust Avox with the same data. This page explains how that's protected, and the security settings you control yourself in **Settings > Security**. Avox is a verified Meta Business Partner. Every WhatsApp connection runs through Meta's official WhatsApp Business Platform. ### Settings > Security | Card | What it does | Guide | | --- | --- | --- | | **Overview tiles** | Two-factor on or off, how many passkeys, how many signed-in devices. Click one to jump to its card. | - | | **Password** | Change your password. | [Your password](#your-password) | | **Passkeys** | Sign in with Face ID, Touch ID, Windows Hello, or a security key. | [Passkeys](https://docs.theavoxai.com/security/passkeys) | | **Sign in with an emailed code** | Get a 6-digit code by email instead of typing your password, on devices you've used before. | [Sign in with an emailed code](#sign-in-with-an-emailed-code) | | **Two-factor authentication** | Require a 6-digit authenticator code at sign-in. | [Two-factor](https://docs.theavoxai.com/security/two-factor) | | **Active devices** | See where you're signed in and sign out everywhere else. | [Sessions](https://docs.theavoxai.com/security/sessions) | | **Recent security events** | Your own recent security changes. | [Recent security events](#recent-security-events) | | **Delete account** | Opens the Delete account page: pause your account instead, or delete it. | [Deleting your account](#deleting-your-account) | Everything on this tab is about your own account, so every member can use it, whatever their role. ### Sign in with an emailed code You can sign in with a 6-digit code we email you instead of your password. There are two ways to get one. #### After a wrong password If the password you type isn't accepted, **Email me a sign-in code instead** appears under the message. With your email already typed, it sends the code straight away; otherwise it asks for your email first. Type the 6 digits into the boxes, or click the link in the same email (it works in the browser where you asked for the code). **Use my password instead** takes you back to the password. #### Every time, on your own devices In **Settings > Security**, turn on **Sign in with an emailed code**. Next time you sign in on a device you've used before, the sign-in page opens on **Sign in with a code** instead of asking for your password: enter your email, click **Email me a code**, and type the code. **Use my password instead** is always there. - The setting belongs to your account, so only you can change it. Each device picks it up the next time you sign in on it. - Turn it off and the next sign-in asks for your password again ("We'll ask for your password again"). - A new device, or a browser that has cleared its cookies, asks for your password first. #### Good to know - The page says the same thing whether or not an account exists for that email, so nobody can use it to find out who has an Avox account. If no code arrives, check spam, then check the address (**Wrong email?** lets you change it). - If your account has two-factor authentication, you're asked for your authenticator code next, just as after a password. See [Two-factor](https://docs.theavoxai.com/security/two-factor). - **Send a new code** works after a short wait. Only the newest code works. - Forgotten your password? **Forgot password?** also works with an emailed code: see [Forgot your password](#forgot-your-password). ### Your password Changing your password takes three steps on the **Password** card. The heading above the fields tells you which step you're on, and the main button is always at the bottom right. Type it and click **Continue** (or press Enter). Avox checks it on its server; if it's wrong you see "That's not your current password". Use the eye button to show or hide what you typed. Type your own: a strength bar and a checklist show the rules as you go (8 to 72 characters, an uppercase letter, a lowercase letter, a number, no space at the start or end, and different from your current password). Or click **Generate a strong password** for a random 20-character password with no look-alike letters, then copy it into your password manager. Type it again in **Type it again** (a generated password fills this in for you), then click **Review**. Check the summary and click **Update password**. **Back** takes you to the previous step. You see "Your password is updated", you get a **Password changed** email, and **every other device is signed out** - they sign in again with the new password. The device you're on stays signed in. If a password is too common to be safe, you see "That password can't be used - pick a stronger, less common one". An account that only signs in with Google or Facebook has no password to change ("This account signs in with Google or Facebook and has no password to change"); set one first in [Settings > Profile > Sign-in methods](https://docs.theavoxai.com/settings/profile#setting-a-password). If the change fails for another reason you see [AVX-3087](https://docs.theavoxai.com/error-codes/avx-3087). Repeated attempts are slowed down ("Too many attempts - wait a few minutes and try again"). Can't remember your password? Reset it from the sign-in page - see [Forgot your password](#forgot-your-password) below. ### Forgot your password Click **Forgot password?** under the password field on the sign-in page. It gets easier to spot after a wrong password, or once you've been on the page for a minute. Everything happens inside the sign-in card: It's filled in from the sign-in form. Click **Email me a code**. Check your inbox (and spam) for the **Password reset code** email and type the code into the six boxes - it's checked as soon as the last digit is in. You see the same message whether or not the address has an account, so nobody can use this form to find out who uses Avox. Typed the wrong address? Click **Wrong email?**. No email after a minute? Click **Send a new code** (you can ask once a minute). If you've turned on [two-factor authentication](https://docs.theavoxai.com/security/two-factor), enter the code from your authenticator app before you can choose a new password. Type your own - a checklist shows the rules as you go (8 to 72 characters, an uppercase letter, a lowercase letter, a number, no space at the start or end), with a strength bar - or click **Generate a strong password** and copy it into your password manager. Click **Save new password**. You're taken back to the sign-in form with your email filled in and "Password updated", and you sign in with the new password. Every other device is signed out, and you get a **Password changed** email. The email also has a **Choose a new password** link. It does the same as the code, but only in the browser where you clicked **Forgot password?** - on another device, use the code. - "That code has expired or was already used" - click **Send a new code** and use the newest one. - "That's the password you already have" - pick a different one. - "Too many tries" - wait a few minutes, then try again. If you can't get the email at all, sign in another way you've set up (a passkey, Google, or Facebook), or email hello@theavoxai.com from your account's email address and the Avox team will help you back in. ### Recent security events The **Recent security events** card lists your own latest security changes, newest first: password changes, two-factor turned on or off, Switchboards you paused, resumed, deleted, or left, and role or permission changes you made. Only you see your own list. If something there wasn't you, change your password, sign out your other devices, and contact support. ### How your account is protected - **Strong sign-in options.** Email and password, Google, Facebook, and passkeys - and you can add [two-factor authentication](https://docs.theavoxai.com/security/two-factor) on top. With two-factor on, your account stays closed until the second step is done - the dashboard, the data, everything. - **Alerts for important changes.** You get an email whenever your password, email address, two-factor setting, or connected sign-in accounts change, and when your account is opened on a new device. Each one has a link to reset your password if it wasn't you. See [Emails](https://docs.theavoxai.com/emails#security-notices). - **Confirmation for risky actions.** Changing your email needs approval from both your old and new inbox. Deleting your account needs your current password or a 6-digit code emailed to you, the word DELETE typed in, and a press-and-hold to confirm. Deleting a WhatsApp connection needs a one-time code emailed to the Switchboard's Owner. Deleting a Switchboard needs its exact name typed in, a one-time code emailed to you, and a press-and-hold to confirm. Pausing a Switchboard, and creating, rotating or revoking an API key, need an emailed code too - see [Emailed codes for sensitive actions](#emailed-codes-for-sensitive-actions). - **Sessions that end.** Sign-ins expire and refresh automatically, so an old browser tab or a lost laptop isn't a permanently open door. You can sign out every other device at any time from [Active devices](https://docs.theavoxai.com/security/sessions). - **Suspended accounts are paused everywhere at once.** If the Avox team suspends an account, it can't be used anywhere until the suspension is lifted. Changes such as a new password show "This account is suspended. Contact Avox support." ### Emailed codes for sensitive actions A few actions change something important for the whole Switchboard, so Avox asks the person doing them to confirm with a 6-digit code sent to their own sign-in email address: - creating, rotating or revoking an [API key](https://docs.theavoxai.com/connections/api-keys#confirmation-codes); - [pausing a Switchboard](https://docs.theavoxai.com/switchboard#pausing-a-switchboard); - [deleting a Switchboard](https://docs.theavoxai.com/switchboard#deleting-a-switchboard). Each code: - works **once**, for **10 minutes**; - works only for you, in that Switchboard, for that one action on that one key or Switchboard - a code sent to revoke one key can't revoke another; - is replaced when you ask for a new one (the earlier code stops working); - stops working after **5 wrong tries** - ask for a new code then. So even someone using a signed-in browser of yours can't make these changes without also reading your inbox. Deleting a WhatsApp connection uses a code too, sent to the Switchboard's Owner - see [Delete](https://docs.theavoxai.com/connections#delete). ### Your data is kept separate from every other business Avox is a shared platform, but every piece of your data - connections, contacts, conversations, templates, logs - belongs to your Switchboard, and only that Switchboard's members can see it. Inside your Switchboard, [roles and permissions](https://docs.theavoxai.com/switchboard/members) decide who can see and change what. Managers do the day-to-day work by default, while connections, API keys, the team, Switchboard settings and billing start out Admin-only. An Admin can give a Manager individual permissions, or take some away, person by person, and Avox checks every permission on its servers, not only in the dashboard. See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). ### Phone numbers are encrypted Your customers' phone numbers are stored encrypted, not as plain text. ### Incoming events are verified - Every event from Meta about your WhatsApp numbers is checked against Meta's signature before Avox acts on it. Anything that merely *claims* to be Meta is refused. - Payment updates are confirmed with PayPal before your plan changes. - Data-deletion requests from Meta are checked the same way. See [Data deletion](https://docs.theavoxai.com/data-deletion). ### API keys Outbound API keys are shown in full only once, when created. Each key has a name, an optional description and a record of who created it, sends from one connection only, can be limited to a list of IP addresses, and can be revoked instantly. Creating, rotating and revoking a key need an [emailed code](#emailed-codes-for-sensitive-actions), and rotating keeps the key's limits, so it's never a way around them. Admins are emailed when a key is created or revoked, used from a new IP address, or blocked by its IP list. See [API keys](https://docs.theavoxai.com/connections/api-keys) and [Authentication](https://docs.theavoxai.com/avox-api/authentication). ### Limits on repeated attempts Repeated guessing or flooding is slowed down and refused. If you see a "too many attempts" or "too many requests" message, wait a minute or two and try again. ### Avox staff access Avox staff work in a separate internal dashboard with its own extra sign-in step. Staff actions on customer accounts are recorded, and you're emailed when the Avox team changes something on your account ("Account updated by Avox"). ### Privacy choices - **Cookies.** theavoxai.com, the docs, and the status page ask before setting anything beyond essential cookies. See [Cookie choices](https://docs.theavoxai.com/compliance#cookie-choices). - **Agreements.** **Settings > Profile > Agreements** lists every policy you've agreed to. See [Profile](https://docs.theavoxai.com/settings/profile#agreements). ### Deleting your account Open **Settings > Security** and click the **Delete account** card's button. The Delete account page walks you through four short steps, and **Continue deleting** is on every one of them: Pick a reason (and add a few words if you like). It helps us improve. Prefer to skip it? Click **Go straight to deleting**. Depending on your reason, you may see an offer, a way to send us feedback, or a quick way to open a support ticket. You never have to take any of them. You also see what's in your account, and **Pause your account instead**. The page shows exactly what will happen to your account and your Switchboards. Confirm it's you with your password or a 6-digit code we email you, type **DELETE**, then press and hold the button. You see a short goodbye, and we email you a confirmation. What happens depends on your Switchboards: - **Every Switchboard you're an Admin of has another Admin** (or you're only a Manager): your login and profile are deleted straight away and you're signed out. Those Switchboards carry on without you. - **You're the only member of a Switchboard**: that Switchboard is deleted together with your account, with everything in it. The Avox team carries this out within 30 days, usually much sooner, and emails you when it's done. Until then your account works as normal, and you can cancel the request from [Compliance](https://docs.theavoxai.com/compliance). - **You're the only Admin of a Switchboard other people use**: make someone else an Admin (or remove the other members) first. If your plan is billed through a Switchboard that would be deleted, cancel the plan on **Billing** first so PayPal stops charging you. The page tells you which applies. Payment and invoice records we're required to keep by law are kept separately from your login. #### Pausing instead **Pause my account** pauses every Switchboard you're an Admin of: its WhatsApp numbers and its automations stop, and nothing is deleted. If you pay monthly through PayPal, billing is paused too, so you aren't charged while paused. A plan paid upfront keeps its end date. Come back to the Delete account page and click **Resume my account** to switch everything back on. If your plan's number limit is reached, any numbers that don't fit stay paused and you can resume them from [Connections](https://docs.theavoxai.com/connections). #### If you accepted an offer An offer you accept is set aside for your account only and we email you the details. A discount code works once, while you're signed in to this account, until the date shown - **Apply to my plan** takes you to checkout with the code filled in. If you already pay through PayPal, the code can't be added to that plan; cancel its renewal on **Billing** and check out again with the code, and the discounted plan replaces the old one straight away. A plan gift has an **Accept your gift** link. Bonus automation credits are added to your account immediately. ### Data deletion You can delete a Switchboard, your account, or your Facebook-linked data, and track a request from Meta on a public status page. See [Data deletion](https://docs.theavoxai.com/data-deletion) and [Compliance](https://docs.theavoxai.com/compliance). ### Reporting a security problem If you spot something that looks wrong - a sign-in you don't recognise, an email you didn't expect - change your password, sign out your other devices, and email hello@theavoxai.com or open a ticket in [Support](https://docs.theavoxai.com/support). --- ## Two-factor URL: https://docs.theavoxai.com/security/two-factor Section: Security and privacy Two-factor authentication adds a second step to signing in: after your password (or Google or Facebook), you enter a 6-digit code from an authenticator app on your phone. Someone who learns your password still can't get in without your phone. It's set per person, for your own account, in **Settings > Security > Two-factor authentication**. Any member can turn it on, whatever their role. ### What you need An authenticator app - Google Authenticator, Authy, 1Password, and similar apps all work. Each one shows a new 6-digit code roughly every 30 seconds. ### Turning it on On the **Two-factor authentication** card ("Add a second step at sign-in using an authenticator app"). A QR code appears. Scan the QR code with the app. If you can't scan it, use the key under "Can't scan? Enter this key manually:" - the copy button next to it copies it for you. Type the 6-digit code the app shows and click **Verify**. You see "Two-factor authentication is on", the card shows **On** - "an authenticator app code is required at sign-in", and you get a "Two-factor authentication is on for your Avox account" email. Changed your mind halfway? Click **Cancel** - nothing is turned on. Errors: [AVX-3088](https://docs.theavoxai.com/error-codes/avx-3088) (setup couldn't start), [AVX-3089](https://docs.theavoxai.com/error-codes/avx-3089) (the code didn't work - codes only last about 30 seconds, so check your phone's clock is right and try the next one). ### Signing in with two-factor on With your password, a passkey, Google, or Facebook. The sign-in card changes to **Two-factor authentication** - "Enter the 6-digit code from your authenticator app to finish signing in." Type the 6 digits from your app. The code is checked as soon as the last digit is in - there's nothing to click. You go straight on to your dashboard (or the page you were opening). If you open a dashboard link before finishing this step, the dashboard shows the same verification step first. Until the code is entered, every page sends you back to it, and your account stays closed - a password on its own opens nothing. Once you're through, you stay signed in for the usual length of a session. - A wrong code shows "That code didn't work. Check your authenticator app and enter the newest code." The boxes clear so you can type the next code. - Too many wrong codes in a row show "Too many tries. Wait a minute, then try again." - **Sign in with a different account** signs you out and takes you back to the sign-in form. - **Use a different method** explains what to do if you can't get a code - see [If you lose your phone](#if-you-lose-your-phone). - If you see "This account needs a second sign-in step we can't show here. Contact Avox support for help.", email hello@theavoxai.com from your account's email address. ### Resetting your password with two-factor on [Forgot password?](https://docs.theavoxai.com/security#forgot-your-password) asks for the code from your authenticator app too, after the code we email you and before you choose a new password. An emailed code alone can't change the password of a two-factor account. ### Turning it off Click **Disable** on the card. Because you're already signed in with both steps, no extra code is needed. You see "Two-factor authentication is off" and get a "Two-factor authentication was turned off" email - if you didn't do it, change your password straight away and reply to that email. If turning it off fails, you see [AVX-3090](https://docs.theavoxai.com/error-codes/avx-3090). ### Changing phones Two-factor uses one authenticator at a time. To move to a new phone while you still have the old one: 1. Sign in, completing the verification step with the old phone. 2. Click **Disable** in **Settings > Security**. 3. Click **Enable** and scan the new QR code with the new phone. Many authenticator apps can also move their accounts to a new phone themselves - check your app's own settings. ### If you lose your phone The verification step needs a code from your authenticator app. If you can't get one: - If your authenticator app syncs to another device you still have, open it there and use the code it shows. - Otherwise, email hello@theavoxai.com from your account's email address and the Avox team will help you get back in. A person on the team checks it's really you first. Use **Sign in with a different account** on the verification step to leave it in the meantime. Before you change or reset your phone, turn two-factor off and on again with the new phone (see [Changing phones](#changing-phones)), so you're never left without a code. ### Related - [Security](https://docs.theavoxai.com/security) - every security setting. - [Sessions](https://docs.theavoxai.com/security/sessions) - see and sign out other devices. - [Emails](https://docs.theavoxai.com/emails#security-notices) - the security emails Avox sends. --- ## Passkeys URL: https://docs.theavoxai.com/security/passkeys Section: Security and privacy A passkey lets you sign in with your device's own unlock - Face ID, Touch ID, Windows Hello, or a security key - instead of typing a password. There's no code to type and nothing to remember, and a passkey only works on the real theavoxai.com, so it can't be phished. Passkeys belong to your own account. Every member can add them, whatever their role. ### Creating a passkey when you sign up Right after you create your account with an email and password, Avox offers one: **Secure your account** - "Set up a passkey now and you can skip the password next time - sign in with Face ID, Touch ID, Windows Hello, or a security key instead." - **Create a passkey** - your device asks you to confirm (the button shows "Waiting for your device"). Once it's created, you continue to your dashboard. - **Skip for now** - you continue without one. "You can add or remove passkeys later from Settings → Security." If your device's prompt is cancelled or fails, the message appears on the same screen and you can try again or skip. ### Adding a passkey later Security > Passkeys"> The card lists your passkeys, or says "No passkeys yet on this account." Your browser or device asks you to confirm with your face, fingerprint, PIN, or security key. You see "Passkey added" and it appears in the list with its name (or just "Passkey") and the date it was added. Add as many as you like - one for your laptop and one for your phone, for example. Passkeys saved to a password manager or your device's cloud keychain can follow you to your other devices. If something goes wrong you see "Couldn't create a passkey" with the reason from your device. If the list itself can't load, you see "Couldn't load your passkeys" - refresh the page. ### Signing in with a passkey On theavoxai.com, open **Sign in**. It sits under the Google and Facebook buttons. Pick your passkey when your device asks, and confirm. The button shows "Signing in with a passkey" while it works. You're signed in and taken on to your dashboard. The passkey button is on the sign-in page only - you create an account first, then add a passkey. ### Removing a passkey Click the bin icon next to it in **Settings > Security > Passkeys**. It's removed straight away and the others keep working. If the device it lives on is lost, remove it here. If removing fails you see "Couldn't remove that passkey". Your device may keep its own copy of the passkey after you remove it here - it simply stops working for Avox. You can delete it from your device's password or passkey settings too. ### Related - [Two-factor authentication](https://docs.theavoxai.com/security/two-factor) - [Sessions](https://docs.theavoxai.com/security/sessions) - [Security](https://docs.theavoxai.com/security) Lost every passkey and have no other way in? Email hello@theavoxai.com from your account's email address. --- ## Sessions URL: https://docs.theavoxai.com/security/sessions Section: Security and privacy **Settings > Security > Active devices** shows every browser that has opened your Avox dashboard, so you can spot one you don't recognise and sign it out. It's about your own account; every member has their own list. ### The device list Each row shows: | Detail | Example | Notes | | --- | --- | --- | | System and browser | Windows · Chrome | A phone icon for iOS and Android, a laptop icon for everything else. "Unknown device" if it can't be told. | | **This device** | | Marks the browser you're using right now. | | IP address | 203.0.113.24 | "Unknown IP" if there isn't one. | | Location | Mumbai, Maharashtra, India | Approximate - see below. "Unknown location" if it can't be found. | | Last active | Oct 8, 2:05 PM | The last time that browser opened the dashboard. | A browser is added (or its row updated) each time it opens the dashboard. With nothing recorded yet, the card says "No device activity recorded yet." If the list can't load you see [AVX-3091](https://docs.theavoxai.com/error-codes/avx-3091). Location is looked up from the IP address by an outside location service when the browser visits. It's usually right to a city or region, never an exact address, and can be off for anyone on a VPN, a mobile network, or a company network. Each browser is recognised by a random id it keeps in its own storage. If you clear your browser's site data, that browser shows up as a new device next time. ### Signing out **Sign out** - in your account menu, the command palette, or **Sign out everywhere** at the bottom of the Settings menu - signs you out on **all your devices**, not only the one you're using. Every other browser has to sign in again too. - **Other open tabs follow.** Signing out in one tab sends your other open Avox tabs in that browser straight to the sign-in page. A tab on another device goes there the next time it's used. - **This browser is cleared.** Your recent searches and your last-used Switchboard are removed from it, so the next person to use it starts fresh. ### Signing out one device or everywhere Each row in the list has its own button: - **Sign out** on another device - confirm with **Sign out device**. That device is signed out straight away and needs your password (and two-factor code, if it's on) to get back in. You see "Device signed out". - **Sign out everywhere** on the row marked **This device** - signs you out here and on every other device, exactly like **Sign out**. If signing out a device fails you see "Couldn't sign out that device" - try again. ### Signing out of all other sessions To end every other session but stay signed in where you are: Under the list. It's disabled when this is the only device. You see "Signed out of every other session". Every other browser is signed out and removed from the list; the one you're on stays signed in. If it fails you see [AVX-3092](https://docs.theavoxai.com/error-codes/avx-3092) - try again. Changing your password also signs out every other device automatically. If you don't recognise a device, change your password, sign out the others, and turn on [two-factor authentication](https://docs.theavoxai.com/security/two-factor). ### New sign-in emails You get a **New sign-in** email ("New sign-in to your Avox account from Windows · Chrome", for example) when your account opens the dashboard on a device it hasn't used recently. It shows the device (system and browser), approximate location, IP address, and time, with a **See your active devices** button. If it wasn't you, reset your password, reply to the email, and sign that device out here. To avoid noise, it's sent only when: - the browser is new to your account, **and** - your account already has other devices (your very first sign-in isn't news), **and** - no device with the same system, browser, and country was used in the last 30 days. At most one is sent every 10 minutes. Clearing site data on your usual laptop doesn't trigger one. ### How long sessions last Sign-ins expire and refresh on their own while you use Avox, so an old tab doesn't stay signed in forever. To end every other session at once, use **Sign out of all other sessions**. ### Something looks wrong? If you see a device you don't recognise, sign out the others, change your password, and email hello@theavoxai.com or open a ticket in [Support](https://docs.theavoxai.com/support). --- ## Compliance URL: https://docs.theavoxai.com/compliance Section: Security and privacy The **Compliance** page ("Your data requests, consent records, retention settings and log exports") is where a Switchboard exports or deletes its data, sees who agreed to which policy, controls how long Avox keeps its operational records, picks which optional emails it receives, and downloads its webhook logs. It applies to the Switchboard you're viewing. | Section | View | Change | | --- | --- | --- | | Privacy first | Every member | - | | Your data: export, erase a contact, delete this Switchboard | Every member | Admins | | Your data: delete my account | Every member | Every member, for their own account | | Requests | Admins see every request; other members see their own | Whoever made it can cancel it while it's waiting | | Meta data-deletion requests | Every member | - (read-only) | | Consent records (summary) | Every member sees their own; Admins also see how many their team has | - | | Data Retention | Every member | Admins | | Email Preferences | Every member | Admins | | Export Logs | Every member | Every member can download | Managers can see every setting, but saving one is refused - they see the same "Couldn't save..." message as any other failed save. Ask an Admin to make the change. See [Members and roles](https://docs.theavoxai.com/switchboard/members). ### Privacy first The box at the top of the page sums up how Avox looks after your data, with a link to the [Privacy Policy](https://theavoxai.com/privacy-policy): - **Phone numbers are encrypted.** Your customers' numbers are stored encrypted, and team members only see full numbers if you allow it. - **Your data, your call.** Export everything, or ask for a contact, a Switchboard or your account to be deleted, right on this page. - **You choose how long we keep logs.** The retention settings below clear older delivery and health records automatically. Smart link chats, broadcast recipient lists and chat reply times are kept for 13 months; totals and reports stay. - **No ad tracking.** Avox runs no advertising or analytics trackers of its own and never sells your data. ### Your data The **Your data** card has four actions. #### Export all data **Request export** builds a ZIP of everything in this Switchboard: contacts (with their phone numbers), messages, calls, Flow answers, templates, Flows, automations, WhatsApp connections, webhook logs, API request logs, message forwarding logs, the activity log, invoices, agreement records, support tickets and the team list. Each data set is in the ZIP twice, as `json/.json` and `csv/.csv`, with a `README.txt` and a `manifest.json` that lists how many rows each one has. You see "Export started - we'll email you when it's ready." The request appears in **Requests** as **Requested**, then **In progress**. Only one export can run at a time. Avox builds the file on its servers, usually within a few minutes. When it's ready you get a "Your data export is ready" email with a link back to this page, and the request shows **Ready**. Each click asks for a fresh download link that works for a few minutes, so a forwarded email or an old link can't be used to get your data. The file is kept for **7 days**, then deleted and the request shows **Expired**. Request a new export any time. Secrets (access tokens, API key hashes, signing secrets) and raw webhook payloads are never included. CSV cells that start with `=`, `+`, `-` or `@` get a leading `'` so spreadsheets open them as text. Very large data sets are capped at 100,000 rows each; the README says when that happened. Only Admins can request or download an export. #### Erase a contact's data When one of your customers asks you to delete what you hold about them (the right to erasure), click **Choose a contact**, find them by name or by the last digits of their number, add an optional reason, then **Email me a code**. Enter the 6-digit code from your email to confirm. Avox then permanently deletes that contact with their messages, calls, Flow answers and automation history in this Switchboard, and emails you when it's done. This can't be undone. Admins only. #### Delete this Switchboard Asks the Avox team to permanently delete this Switchboard and everything in it. Type the Switchboard's name, add an optional reason, then confirm with the emailed code. The request waits in **Requests** until the team carries it out; you get an email when it's done. A paid plan billed through this Switchboard has to be canceled first ([Billing](https://docs.theavoxai.com/billing)). To delete a Switchboard straight away yourself instead, see [Data deletion](https://docs.theavoxai.com/data-deletion). Admins only. #### Delete my account Asks the Avox team to delete your own login and profile. Type your account email, then confirm with the emailed code. Switchboards only you use are deleted with it. If you're the only Admin of a Switchboard other people use, add another Admin first, or the team will ask you to. Every member can request this for their own account. The confirmation code goes to your own sign-in email, works for 10 minutes and only once, and is locked after 5 wrong tries - request a new one with **Resend code**. While a deletion request is still **Requested**, **Cancel** next to it withdraws it. ### Requests **Requests** lists every data request for this Switchboard (other members see only their own), newest first: what was asked, who asked and when, and its status. | Status | Meaning | | --- | --- | | **Requested** | Waiting to start, or waiting for the Avox team (Switchboard and account deletions). | | **In progress** | Being built or carried out. | | **Ready** | An export you can download, until the date shown. | | **Done** | Carried out. You were emailed. | | **Retrying** | Something went wrong; Avox tries again automatically and the team is told. | | **Declined** | The team couldn't carry it out as asked. Their note says why, and you were emailed. | | **Canceled** / **Expired** | Withdrawn, or an export past its 7 days. | ### Meta data-deletion requests When someone removes Avox from their Facebook account, Meta sends Avox a signed deletion request and gives them a confirmation code to track on the public status page. Avox matches the request to the account that signs in with that Facebook login and carries it out, always within 30 days. Requests that affected this Switchboard are listed here, read-only, with their confirmation code and a link to the status page. You don't need to do anything. How it works and what's removed: [Data deletion](https://docs.theavoxai.com/data-deletion). ### Consent records **Consent records** is a short summary: each policy you agreed to (Terms, Privacy Policy, Data Processing Agreement and so on), once, with the latest version and the date. Admins also see how many agreement records the rest of their team has on this Switchboard. **Full list** opens **Settings > Profile > Agreements**, which has the whole record for each policy under **History**: every time you agreed, the version, where (signing up, checkout, joining by invite, connecting WhatsApp, the cookie banner, a policy update notice), how (ticked a box, clicked through, cookie banner choice, or continued use after an update notice), when, and a partly hidden IP address. #### When a policy changes When Avox publishes a new version of a policy you agreed to, you get a notice in the dashboard's bell ("Terms of Service was updated. Click to read what changed.", with the policy's name) and an email with a summary of what changed and the date it takes effect. That email is a required service email, so it's sent even if you've turned off optional emails. A record that you were told is added to your Agreements with the method **Update notice (continued use)**: if you keep using Avox after the new version takes effect, you accept it. If you don't agree, contact support or close your account before then. ### Retention settings **Data Retention** - "Configure how long operational metadata is retained". Two records are kept on a timer: | Setting | What it covers | Options | Default | | --- | --- | --- | --- | | **Webhook Logs** | Event delivery records - what arrived from Meta, when, and whether it was processed. These are what you see on [Logs](https://docs.theavoxai.com/logs). | 7, 14, 30, 60, or 90 days | 30 days | | **Health Checks** | Phone status history - your numbers' health and quality over time, as on [Health](https://docs.theavoxai.com/health). | 7, 14, 30, 60, or 90 days | 30 days | Use the two menus. You see "Retention settings saved". Records older than the new period are removed automatically from then on. If saving fails ("Couldn't save retention settings") you see [AVX-3010](https://docs.theavoxai.com/error-codes/avx-3010) - check that you're an Admin of this Switchboard, then try again. Retention only applies to these operational records. Your conversations, contacts, templates, Flows, and automations aren't removed on this timer - they stay until you delete them. A few detailed records have a fixed time instead: smart link chats and conversions, broadcast recipient lists and chat reply times are kept for 13 months (totals and reports stay). See [Data deletion](https://docs.theavoxai.com/data-deletion#how-long-avox-keeps-things). ### What Avox stores - By default, Avox stores your conversations so the shared [Inbox](https://docs.theavoxai.com/inbox) and [Contacts](https://docs.theavoxai.com/contacts) work. - If you turn on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) for a connection, Avox also sends each incoming customer message to your own endpoint, signed with a secret only you see, retrying if your server doesn't answer. It keeps a delivery log of those forwards for up to 30 days (or your Webhook Logs retention setting, if shorter). Your conversations still appear in the Inbox as usual. - The retained operational data is webhook delivery status, event types, trace IDs, phone number health metrics, and template management events - all scoped to your Switchboard and subject to the retention settings above. - Customers' phone numbers are stored encrypted. See [Security](https://docs.theavoxai.com/security). ### Email preferences **Email Preferences** - "Manage optional organization-wide emails". These four switches apply to the whole Switchboard. All four are on by default. | Switch | What it covers | | --- | --- | | **Setup reminders** | A reminder if you haven't picked a plan 3 days after signing up, and one if a WhatsApp number has been stuck mid-setup for a day (at most one of each every 2 weeks). Also covers offer and reminder emails from Avox, and the credit rollover emails: the **Keep your credits** reminder to renew and the note when unused credits roll over. See [Emails Avox sends](https://docs.theavoxai.com/emails#reminders-and-news). | | **Product news and announcements** | Product updates and announcements from the Avox team, including email copies of dashboard notifications. | | **WhatsApp account alerts** | Alerts Meta sends about your WhatsApp account, a template that's rejected, paused or disabled, a Flow that's blocked or throttled, and a Meta access token that's about to expire. | | **WhatsApp API problem reports** | One email per issue when requests Avox makes to Meta for you keep failing - for example sending a message, changing a template or Flow, or updating a number's settings. At most one email per issue per week. | Flip the switches, then click **Save Email Preferences**. You see "Email preferences saved". If saving fails ("Couldn't save email preferences") you see [AVX-3011](https://docs.theavoxai.com/error-codes/avx-3011) - only an Admin can save these. Turning off **WhatsApp account alerts** can delay you finding out about a real outage - a rejected template or a number about to lose access, for example. The card also says: "Required emails are always sent and can't be turned off: sign-in and security notices, billing and payment emails, team invites and changes, support replies, automation credit warnings, and WhatsApp numbers being connected or removed." The full list of every email, who gets it, and which switch covers it is on [Emails](https://docs.theavoxai.com/emails). These switches cover emails about your Switchboard. The theavoxai.com newsletter is separate: manage it with the **Manage preferences** or unsubscribe link in any newsletter email. See [Email from Avox](https://docs.theavoxai.com/integrations/email#newsletter-and-unsubscribe-links). Signing up for the newsletter on theavoxai.com takes two steps: first you type your address, then Avox sends a "Confirm your Avox updates" email, and you're only subscribed once you confirm from its link (it works for 7 days). Your agreement is recorded when you confirm. Creating an Avox account subscribes you without that extra email, because the sign-up code already confirmed your address, and you can unsubscribe any time. People who subscribed before this confirmation step was added stay subscribed. See [Emails Avox sends](https://docs.theavoxai.com/emails#from-avoxcom). ### Export logs **Export Logs** - "Download webhook delivery logs as CSV for audit purposes". Click **Export as CSV** to download `avox-webhook-logs-...csv` with your Switchboard's most recent 5,000 webhook events. Each row has: | Column | Meaning | | --- | --- | | `id` | The event's id in Avox. | | `event_type` | What kind of event Meta sent. | | `status` | Whether it was processed. | | `attempt_count` | How many times processing was tried. | | `dedupe_key` | The key used to make sure the same event is never handled twice. | | `received_at` | When it arrived. | | `processed_at` | When it was processed. | The export covers what's currently kept under your retention settings. Cells that a spreadsheet might treat as a formula are made safe so they open as plain text. With no connections yet, the section says "No connections to export logs from." If the export fails you see [AVX-3012](https://docs.theavoxai.com/error-codes/avx-3012). ### Cookie choices The first time you open theavoxai.com, the docs, or the status page, a banner titled **A quick word about cookies** asks what you allow: | Category | What it does | Default | | --- | --- | --- | | **Essential** | Keeps you signed in, keeps your account secure, and remembers your cookie choice. | Always on | | **Site preferences** | Remembers your light or dark theme on this browser. | Off until you allow it | | **Third-party integrations** | Lets PayPal's own checkout load when you pay. Nothing from PayPal loads until then. | Off until you allow it | On these sites the banner offers **Customize** (switch each category, then **Save preferences**), **Reject non-essential**, and **Accept all**. In the dashboard it offers **Only necessary** and **Accept**. Your choice is shared by every Avox site, so you only answer once per browser. To change it later, use **Cookie settings** - the cookie icon in the theavoxai.com footer, the link in this docs site's sidebar and in the status page footer, or the link under **Agreements** in **Settings > Profile**. The banner opens again with your current choice. The full details are in the [Cookie Policy](https://theavoxai.com/cookie-policy). --- ## Data deletion URL: https://docs.theavoxai.com/data-deletion Section: Security and privacy You decide what stays in Avox and what goes. This page covers every way to delete data, what each one removes, how a deletion request from Meta works, and how long Avox keeps things. ### Ways to delete | What | Where | Who | | --- | --- | --- | | Your account | **Settings > Security > Delete account**, which opens the **Delete account** page | You | | A Switchboard and everything in it | **Settings > Switchboard > General > Delete Switchboard** | An Admin | | One WhatsApp connection | The connection's own page in [Connections](https://docs.theavoxai.com/connections) | An Admin, with a code emailed to the Owner | | Your Facebook-linked data | Remove Avox from your Facebook account settings - Meta sends Avox a deletion request | You | | Anything else, or on your behalf | Email hello@theavoxai.com from your account's email address | You | Cancelling a plan **doesn't** delete anything: your numbers pause and your data stays until you delete it. See [Cancel](https://docs.theavoxai.com/billing/cancel). ### Deleting your account Deleting your account happens on its own page in the dashboard, not in a pop-up. Open **Settings > Security** and click **Delete account**. **Keep my account** is on every step, so you can stop at any point and nothing changes. Pick one reason, such as "I'm not using it enough" or "Technical problems". **Something else** needs a few words. You can also add a note. To skip the questions, click **Go straight to deleting**, or **Export your data first** to download a copy from [Compliance](https://docs.theavoxai.com/compliance). Depending on your reason, this step can show an offer from Avox, a way to report a problem or ask for a feature (it becomes a support ticket), and **Pause your account instead** (see below). It also lists what you'd lose: your Switchboards and how many numbers, contacts, messages, templates, Flows and automations are in them. Click **Continue deleting** to go on. The page shows exactly what deleting does for your account (see "Deleted now, or on request" below), including which Switchboards are deleted with it, which carry on without you, and which you only lose access to. Enter **Your current password**, or click **Email me a code** and type the 6-digit code from the email. Accounts that sign in only with Google or Facebook use the code. Then type `DELETE` in capitals. Press and hold **Hold to delete my account** (or **Hold to request deletion**) until it fills. #### Deleted now, or on request | Your Switchboards | What happens | | --- | --- | | You run none, or every Switchboard you're an Admin of has another Admin | **Deleted now.** Your login and profile are deleted straight away and you're signed out everywhere. You get an **Account deleted** email, the last email Avox sends to that address. | | You're the only member of one or more Switchboards | **On request.** Those Switchboards are deleted with your account, with every number, contact, message, template, Flow and automation in them. The Avox team carries this out within 30 days, usually much sooner, and emails you when it's done. Your account keeps working until then, and you can follow or cancel the request on the [Compliance](https://docs.theavoxai.com/compliance) page. | If you've already asked for your account to be deleted, the page says so and links to the request on [Compliance](https://docs.theavoxai.com/compliance) instead of asking again. #### What's removed - Your sign-in (password, passkeys, connected Google or Facebook, two-factor) and your profile. - Your membership of every Switchboard. - Switchboards where you're the only member, on request (see above). #### What isn't removed - Switchboards that other Admins still run carry on without you. - Switchboards where you're a Manager: you lose access, and nothing in them is deleted. - Payment and invoice records Avox must keep by law, kept separately from your login (see "How long Avox keeps things" below). #### When it can't go ahead yet | What the page says | What to do | | --- | --- | | You're the only Admin of a Switchboard, and other people use it | A Switchboard always keeps an Admin. Make someone else an Admin, or remove the other members, in **Settings > Switchboard**. See [Invites](https://docs.theavoxai.com/switchboard/invites). | | Your plan is still billed through a Switchboard that would be deleted | Cancel the plan on the [Billing](https://docs.theavoxai.com/billing) page first so PayPal stops charging you. See [Cancel](https://docs.theavoxai.com/billing/cancel). | | "That password isn't right" | Check the password, or click **Email me a code** instead. | | "Your confirmation code has expired - request a new one" | Codes last 10 minutes and work once. Ask for a new code. | | "Type DELETE in capitals to confirm" | Type `DELETE` exactly, in capital letters. | | "Couldn't delete your account. Please try again or contact support." | Something else went wrong. Try again, or email hello@theavoxai.com from your account's email address. | #### Pause instead If you only need a break, **Pause your account instead** on the **Before you go** step stops things without deleting anything: - Every Switchboard you're an Admin of is paused: its WhatsApp numbers and automations stop, nothing is sent or forwarded from it, and the dashboard shows a **Switchboard paused** banner. - A monthly or yearly PayPal plan is paused too, so PayPal doesn't charge you while you're paused. A plan that's already paid for keeps its end date. - Your contacts, templates, messages and settings stay exactly as they are. To come back, open **Settings > Security > Delete account** (or click **Resume account** on the banner) and click **Resume my account**. Avox switches back on exactly what the pause stopped. If your plan has no room for every number, the extra ones stay paused and you can resume them from [Connections](https://docs.theavoxai.com/connections). An Admin can also pause or resume a single Switchboard in **Settings > Switchboard**. ### Deleting a Switchboard An Admin types the Switchboard's exact name and clicks **Delete permanently**. Everything in it is deleted immediately, with no recovery window: its WhatsApp connections, contacts, conversations, templates, Flows, automations, team memberships, webhook and health logs, and its own subscription and invoice records. Full steps: [Deleting a Switchboard](https://docs.theavoxai.com/switchboard#deleting-a-switchboard). It's refused while it's your only Switchboard, or while your plan is billed through it (cancel the plan first). To close your last Switchboard, email hello@theavoxai.com or open a ticket in [Support](https://docs.theavoxai.com/support) and the Avox team deletes it for you. ### Deleting a connection Deleting one WhatsApp connection needs a one-time code emailed to the Switchboard's Owner. After you confirm, the connection disappears from Avox right away, every Admin gets a **WhatsApp number removed** email, and the Avox team can still restore it for a few days - the email says until when. After that it's removed for good. See [Connections](https://docs.theavoxai.com/connections). ### Deletion requests from Meta If you remove Avox from your Facebook account settings, Meta sends Avox a signed deletion request and gives you a **confirmation code** - a 36-character code like `3f6c2a91-8d4e-4b7a-9c15-0e2f7a6b5d43`. Avox checks the request really came from Meta before doing anything. #### What Avox does Avox looks for Avox accounts that sign in with that Facebook login, and for each one: 1. **The WhatsApp numbers** in the Switchboards you're an Admin of are removed. 2. **If Facebook was your only way to sign in and no plan is being billed through PayPal**, your whole Avox account is deleted, together with any Switchboard where you're the only member. 3. **Otherwise**, only the Facebook sign-in is removed from your account. Your other sign-in methods and your Switchboards stay. (If a plan is still being billed, cancel it yourself - see [Cancel](https://docs.theavoxai.com/billing/cancel).) 4. You get a **Facebook data deletion completed** email with the confirmation code and a link to the status page. If no Avox account uses that Facebook login, the request is closed as "no data found". A request from Meta is matched through Facebook sign-in. If you connected WhatsApp but never signed in to Avox with Facebook, email hello@theavoxai.com from your account's email address, or delete the Switchboard or connection yourself. #### The deletion status page Meta links you to **theavoxai.com/data-deletion-status**. You can also open it yourself and paste your code under **Confirmation code**, then click **Check**. The page shows only the request's progress and dates - nothing about your account: | Title | Meaning | | --- | --- | | We're deleting your data | Received and in progress. "It's always done within 30 days - usually much sooner." The timeline shows the date it's due by at the latest. | | Your data has been deleted | Finished, with the date. "Nothing linked to this request is left on Avox." | | No data found | Nothing on Avox was linked to the Facebook account that asked, so there was nothing to delete. | | We couldn't find that code | Check it matches the code Meta showed you - all 36 characters. | The timeline has three steps - **Request received**, **Deleting your data** (or **Checking for your data**), and **Deleted** (or **Nothing to delete**) - and a copy button for the code. Use **Check another code** to look up a different request. The [Data Deletion](https://theavoxai.com/data-deletion) page on theavoxai.com has a quick **Check status** box too: paste the code to see **In progress**, **Deleted**, or **No data found** with the dates, then **Open the deletion status page** for the full timeline. ### Your customers' data People who message your WhatsApp numbers are your contacts, and you control their data in your Switchboard. If one of them asks Avox to delete their data, email hello@theavoxai.com - Avox passes the request to the business they messaged and confirms once it's done. ### How long Avox keeps things | Data | How long | | --- | --- | | Webhook delivery logs | Your choice in [Compliance](https://docs.theavoxai.com/compliance#retention-settings): 7, 14, 30, 60, or 90 days (30 by default). | | Number health history | Your choice in Compliance: 7, 14, 30, 60, or 90 days (30 by default). | | Conversations, contacts, templates, Flows, automations | Until you delete them, or the connection or Switchboard they belong to. | | Smart link visits | 400 days (about 13 months). The link's all-time totals stay. | | Chats started from a smart link, and smart link conversions | 13 months. The link's all-time totals stay. | | Who a broadcast went to and what happened to each message | 13 months after the broadcast finished. The broadcast's report stays. | | Chat reply times, and when each chat's customer and team last wrote (for chat signals) | 13 months. | | Cleared chat signals | 180 days. | | Records Avox must keep by law | Payment records (plan, amount, currency, date, status, PayPal reference), coupon and gift use, your agreements to Avox's terms and policies, and the audit log of account and billing actions are kept for as long as Indian tax, accounting, and legal record-keeping rules require - even after an account or Switchboard is deleted. | The full policy is on Avox's [Data Deletion](https://theavoxai.com/data-deletion) page and in the [Privacy Policy](https://theavoxai.com/privacy-policy). --- ## Support URL: https://docs.theavoxai.com/support Section: Help **Support & Feedback** in your dashboard is where you find an answer yourself, reach a real person when you can't, and tell the team what could be better. Every member of a Switchboard can use it (it's the **Use Support** permission, on for Admins and Managers by default). Open it from **Support & Feedback** at the bottom of the sidebar, under **Settings**. The page header says "Get help, report a problem, or share feedback about Avox - we usually reply" followed by the team's current reply time. ### Contacting Avox directly Under the header, a card lists how to reach the team: **Email** (hello@theavoxai.com), and - when the team has set them - **Phone**, **WhatsApp**, **Hours**, and **We usually reply** with the current reply time. Email, phone, and WhatsApp are links you can tap. These are the same details shown on theavoxai.com and the status page, kept up to date by the Avox team. You can also: - **Reply to any email from Avox.** Replies go straight to the support team. - **Use the contact form on theavoxai.com** if you can't sign in. You get a "We got your message" email that quotes your message with a reference number. ### FAQ The **FAQ** tab is a searchable list of common questions. - Type in **Search the FAQ…** to search questions and answers. - Filter by category: **All**, **Getting started**, **WhatsApp and Meta**, **Inbox and contacts**, **Templates**, **Flows**, **Automation and Avox AI** (marked Beta), **Calls**, **Connections and forwarding**, **Avox API and keys**, **Team and Switchboards**, **Billing**, **Security and privacy**, **Status and updates**, **Troubleshooting**, **Account**, and **Feedback**. - Click a question to open its answer. Some answers explain an error code and show it as a badge. - At the bottom, "Still stuck?" links to **Open a ticket**, **Visit docs**, and **View all error codes** (the [error code reference](https://docs.theavoxai.com/error-codes)). ### Opening a ticket Or click **Open a ticket** at the bottom of the FAQ. **General**, **Bug report**, **Connections**, **Inbox, Contacts & Calls**, **Templates & Flows**, **Automation** (Beta), **Compliance**, **Billing**, **Technical**, **Feedback**, or **Other**. **Subject**: up to 150 characters. Message: at least 10 and up to 4,000 characters - "as much detail as you can." You see "Ticket submitted - we usually reply" with the usual reply time, and the ticket appears in **Your tickets**. The **Open a ticket** card sits next to **Your tickets** on the **Tickets** tab. You get a **Support request received** email ("We got your request: your subject [T-4F2K9A]") with what you wrote, the ticket reference, and a link to the ticket. Mention that reference if you contact the team another way. Include any `AVX-XXXX` code you saw, what you were doing, and which connection or page it was on. The [Error codes](https://docs.theavoxai.com/error-codes) page explains each code. Feedback is welcome too - a feature idea or "this feels clunky" is exactly what the **Feedback** category is for. ### Reporting a bug Pick **Bug report** when something in Avox is broken. The card becomes **Report a bug** and adds: | Field | What to put | | --- | --- | | **Steps to reproduce** | What you clicked, in order, so the team can make it happen again. | | **What you expected** | What should have happened. | | **What happened instead** | What you saw, including any `AVX-XXXX` code. | | **Page where it happened** | Filled in for you with the dashboard page you came from. Change it if that's not the right page. | | **Include my browser details** | Shows exactly what will be sent (browser and version, system, window size, language) before you send. Untick it to leave it out. No cookies, passwords or page content are ever sent. | Click **Send bug report**. Bug reports are marked **Urgent** for the Avox team: they go to the top of the team's queue and the support team is emailed straight away. The ticket shows an **Urgent** badge in **Your tickets**. Only bug reports are marked urgent; you can't set a priority yourself. ### Your tickets **Your tickets** lists every ticket opened in this Switchboard, newest first, with its subject, category, priority (when it's **Urgent**), date, and status: | Status | Meaning | | --- | --- | | **Open** | Waiting for the Avox team. | | **Replied** | The team has answered. | | **Closed** | Finished. It can be read but not replied to ("This ticket is closed."). | With none yet: "No tickets yet - open one to get started." Every member of the Switchboard can see and reply to its tickets, so a teammate can pick up a conversation. #### Reading and replying Click a ticket to open its own page. At the top: **All tickets** (back to the list), the subject, its status, category, priority, reference (`T-...`) and when it was opened. A bug report also shows its steps, expected and actual result, page and browser. Below is the conversation: your original message, then every reply in order - the team's replies are marked **Avox Support**, and yours show your name. Type in **Write a reply…** (up to 4,000 characters) and click **Send reply**. To share a screenshot, paste a link to it in your reply. Replying to a ticket the team has answered sets it back to **Open**, so the team knows there's something new to read. Replying many times in a row shows "You're replying too quickly - wait a minute and try again". Each ticket has its own address (`/support/tickets/...`), so you can bookmark it or share it with a teammate in the same Switchboard. ### When the team replies - The person who opened the ticket gets a **Support reply** email ("Re: your subject [T-4F2K9A]") with the reply and a link straight to the ticket. - A red dot appears on the **Tickets** tab and next to the ticket. - The notification bell shows "Support replied to" your ticket's subject, with **View reply**. The dot and the bell notice clear as soon as you open the ticket. The ticket link in the email opens the ticket's own page. ### Errors | Code | When | | --- | --- | | [AVX-3083](https://docs.theavoxai.com/error-codes/avx-3083) | Your tickets couldn't load. | | [AVX-3084](https://docs.theavoxai.com/error-codes/avx-3084) | The category, subject, or message isn't valid - for example a message under 10 characters. | | [AVX-3085](https://docs.theavoxai.com/error-codes/avx-3085) | The ticket couldn't be submitted. | | [AVX-3086](https://docs.theavoxai.com/error-codes/avx-3086) | Your reply couldn't be sent. | Opening many tickets in a short time shows "You're opening tickets too quickly - wait a minute and try again." ### Is something down? Before opening a ticket about something that suddenly stopped working, check the [Status page](https://docs.theavoxai.com/status-page). If the Avox team is already working on a problem, it's posted there with updates as they happen. If everything shows green and it's still broken for you, open a ticket with the time it happened. ### News and updates - **Announcements** - product news from the Avox team is posted on theavoxai.com/announcements. You can get the big ones by email (**Get announcements by email**) or follow the RSS feed. - **Changelog** - every new feature, improvement, and fix is listed in the docs [Changelog](https://docs.theavoxai.com/changelog), which has its own RSS feed. - **Dashboard notifications** - notices from the Avox team (for example planned maintenance) appear in the notification bell, and can also be emailed. See [Emails](https://docs.theavoxai.com/emails#reminders-and-news). - **New on this page** - when something new ships on a dashboard page, the [Avox Avatar](https://docs.theavoxai.com/avox-avatar) appears in that page's header with "Something new here" (or "3 new things here"). Click it to read the update, with a link to the full changelog entry. Close it or click **Got it** and it's marked as seen for you, on every device. - **Offers** - gifts, perks and deals from the Avox team appear behind the gift button in the header and in **Settings > Offers**. See [Offers in your dashboard](https://docs.theavoxai.com/billing/coupons-and-gifts#offers-in-your-dashboard). ### Other help - Every `AVX-XXXX` code: [Error codes](https://docs.theavoxai.com/error-codes). - Meta's own error codes: [Meta error codes](https://docs.theavoxai.com/meta-error-codes). - Avox API errors: [API errors](https://docs.theavoxai.com/api/errors). - Live service status: [Status page](https://docs.theavoxai.com/status-page). - Every email Avox sends: [Emails](https://docs.theavoxai.com/emails). --- ## Error codes URL: https://docs.theavoxai.com/error-codes Section: Help When something in the Avox dashboard doesn't work, the message comes with a code in brackets, like "(AVX-3089)". Find the code below for a one-line summary, then click through for the full explanation, likely causes, and steps to fix it. ### Reading a code | Range | Area | | --- | --- | | `AVX-1xxx` | Signing in and your session. | | `AVX-2xxx` | Your Switchboard - creating it, its name and logo, and invites. | | `AVX-3xxx` | Everything you do with a WhatsApp connection - connecting, templates, Flows, the Inbox, contacts, calls, automations, logs, health, API keys, compliance, support, billing locks, and your account settings. | | `AVX-4xxx` | General - a missing page or an unexpected error. | These codes are for the dashboard. The Avox API answers with its own error codes - see [API errors](https://docs.theavoxai.com/api/errors). Errors that come from Meta itself are on [Meta error codes](https://docs.theavoxai.com/meta-error-codes). ### Getting help with a code 1. Open the code's page below and follow its steps. 2. Still stuck? Open a ticket in [Support](https://docs.theavoxai.com/support) - or email hello@theavoxai.com - with the code and what you were doing when it appeared. ### Every code {ERROR_CODE_CATEGORIES.map((category) => ( {ERROR_CODE_ENTRIES.filter((entry) => entry.category === category.slug).map((entry) => ( ))} ))} --- ## Avox API URL: https://docs.theavoxai.com/avox-api Section: Avox API The Avox API lets your own server send WhatsApp messages through a number you've connected to Avox. You call one endpoint with an Avox API key, and Avox sends the message to WhatsApp for you. Your server never needs Meta's own access token - that stays inside Avox. ``` POST https://api.theavoxai.com/api/messages/send ``` - **One endpoint for every message type** - text, templates, media, locations, contacts, interactive messages, and reactions. See [Message types](https://docs.theavoxai.com/avox-api/messages). - **One key, one number.** Each key belongs to exactly one connected WhatsApp number. There's no phone number id in the URL: the key already knows which number it sends from. See [Authentication](https://docs.theavoxai.com/avox-api/authentication) and [Sending from several WhatsApp numbers](#sending-from-several-whatsapp-numbers). - **WhatsApp's own message format.** The body is the same JSON WhatsApp's Cloud API uses, so existing payloads work with little or no change. - **Clear errors.** Every failure returns a stable `code` you can branch on, with a link to its explanation on [API errors](https://docs.theavoxai.com/api/errors). - **Safe retries.** Send an `Idempotency-Key` header and a retried request never sends the same message twice. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). - **Live and test keys.** A live key (`avx_live_...`) sends real messages. A test key (`avx_test_...`) runs every check and answers with a pretend result, so you can build without messaging anyone. See [Testing](https://docs.theavoxai.com/avox-api/testing). - **A full audit trail.** Every request made with your keys is listed on the **API logs** page in the dashboard, with its outcome, error code, masked recipient, request id and timing. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). - **Build, not just send.** Give a key more permissions and the same key can create and change tables, rows, Flows, templates and automations through the [builder API](https://docs.theavoxai.com/avox-api/builder), from your own code or an AI assistant you trust. See [API for AI assistants](https://docs.theavoxai.com/avox-api/ai-assistants), the [builder reference](https://docs.theavoxai.com/avox-api/reference) and the OpenAPI file at [/openapi.json](https://docs.theavoxai.com/openapi.json). ### 5-minute quickstart You need a WhatsApp number connected to Avox (see [Getting started](https://docs.theavoxai.com/getting-started)) and an active plan that includes API access - the plan cards on [Plans](https://docs.theavoxai.com/plans) list **API access** on the plans that have it. Then: In the dashboard, open **Settings > API Keys** and click **Create a key**. In **Create an API key**, pick the **Switchboard** and the **WhatsApp number**, choose **Live key** (or **Test key** while you build), keep **Send messages** on under **What this key may do**, give it a **Key name** (2 to 60 characters) and, if you like, **What it's for**. Click **Email me a code** and enter the 6-digit code we email you. You can also create a key from a connection's own page. Creating keys needs an Admin (or a member with the **Manage API keys** permission) - see [API keys](https://docs.theavoxai.com/connections/api-keys) for the full walkthrough. The dialog **Your new API key** shows the full key exactly once. A live key starts with `avx_live_`, a test key with `avx_test_`. Copy it and click **Done**. If you lose it, rotate the key or create a new one - a key can't be shown again. Put it in an environment variable (for example `AVOX_API_KEY`) or your secrets manager on the server that will send messages. Never put it in a browser page or a mobile app. Back in **Settings > API Keys**, click **Test** next to the key. It confirms the key works and which number it sends from, without sending a message. See [Testing](https://docs.theavoxai.com/avox-api/testing). Run one of the examples below with your own WhatsApp number as `to`. Your number must have messaged the connected number in the last 24 hours for a plain text message to go through - otherwise send an approved template. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). Open **API logs** in the dashboard's sidebar. Your send is at the top of the **Sent** tab with its key (and a **Live** or **Test** badge), status `200`, the recipient's number partly hidden, and its request id. Click the row for **Request details**. The arrow next to a key in **Settings > API Keys** also shows that key's **Recent requests**. ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6f1d2c1e-8a4b-4c7e-9a51-3b0f2d9e7c10" \ -d '{ "to": "15551234567", "type": "text", "text": { "body": "Hello from Avox!" } }' ``` ```js import { randomUUID } from "node:crypto"; const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": randomUUID(), }, body: JSON.stringify({ to: "15551234567", type: "text", text: { body: "Hello from Avox!" }, }), }); const data = await res.json(); if (data.ok) { console.log("Sent:", data.message_id); } else { console.error(res.status, data.error.code, data.error.message); } ``` ```python import os import uuid import requests res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={ "Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "to": "15551234567", "type": "text", "text": {"body": "Hello from Avox!"}, }, timeout=30, ) data = res.json() if data["ok"]: print("Sent:", data["message_id"]) else: print(res.status_code, data["error"]["code"], data["error"]["message"]) ``` A successful send returns `200`: ```json { "ok": true, "request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9", "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5", "result": { "messaging_product": "whatsapp", "contacts": [{ "input": "15551234567", "wa_id": "15551234567" }], "messages": [{ "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5" }] } } ``` Keep `message_id`. It's WhatsApp's id for the message, and every later status update (sent, delivered, read, failed) carries the same id. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). ### The request | Part | Value | | --- | --- | | Method and URL | `POST https://api.theavoxai.com/api/messages/send` | | `Authorization` header | `Bearer avx_live_...` (or `Bearer avx_test_...` for a test key) - required. See [Authentication](https://docs.theavoxai.com/avox-api/authentication). | | `Content-Type` header | `application/json` | | `Idempotency-Key` header | Optional, recommended. 1 to 255 visible characters, no spaces. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). | | Body | One JSON object, at most 64 KB. See [Message types](https://docs.theavoxai.com/avox-api/messages). | The body always has `to` (the recipient's full international number) and `type`, plus one object named after the type: ```json { "to": "15551234567", "type": "template", "template": { "name": "order_update", "language": { "code": "en_US" }, "components": [ { "type": "body", "parameters": [{ "type": "text", "text": "A-1042" }] } ] } } ``` The accepted types are `text`, `template`, `image`, `video`, `audio`, `document`, `sticker`, `location`, `contacts`, `interactive` and `reaction`. Avox adds `messaging_product` for you, and any top-level field it doesn't recognise is dropped rather than passed on to WhatsApp. ### Sending from several WhatsApp numbers The request has no `from` field. The key decides the sending number: every key belongs to the one WhatsApp number picked when it was created, and keeps it when rotated. A `from` or `phone_number_id` in the body is dropped like any other unknown field. When your Switchboard has more than one number: - **Create a key for each number you send from**, and pick the key in your code by the number the message should come from. One number can have several keys. - **The 24-hour window belongs to the key's number.** A customer who wrote to another of your numbers hasn't opened a window on this one. - **Templates live on a WhatsApp account.** Numbers on the same account share templates. A template Avox knows is on another account is refused with [`template_other_account`](https://docs.theavoxai.com/api/errors#template_other_account) before anything is sent; copy it to the number's account from the number's page (**Copy my templates to this WhatsApp account**). - **Products come from the catalogue linked to the key's number.** Another catalogue is refused with [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload), and a number whose shop is past your plan's shops gets [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached). - **Private numbers and blocks are per number.** A person marked private or blocked on the key's number is refused with [`recipient_not_allowed`](https://docs.theavoxai.com/api/errors#recipient_not_allowed) or [`recipient_blocked`](https://docs.theavoxai.com/api/errors#recipient_blocked). The details, with every error for these cases, are on [Which number sends the message](https://docs.theavoxai.com/avox-api/messages#which-number-sends-the-message) and [Errors about the sending number](https://docs.theavoxai.com/avox-api/messages#errors-about-the-sending-number). ### What happens to each request Every request goes through the same checks, in this order, and stops at the first one that fails. The error you get back is always the most basic thing to fix first. The body must be a JSON object under 64 KB. Otherwise: [`payload_too_large`](https://docs.theavoxai.com/api/errors#payload_too_large) or [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload). The `Authorization: Bearer` header must hold a real key that hasn't been revoked or expired, used from an allowed address. Only API keys work here - being signed in to the dashboard doesn't count. Codes: [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key), [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key), [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked), [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired), [`ip_not_allowed`](https://docs.theavoxai.com/api/errors#ip_not_allowed). The key sends only from the number it was created for. That number must still exist, be connected, and not be paused, and its Switchboard must not be paused. Codes: [`connection_not_found`](https://docs.theavoxai.com/api/errors#connection_not_found), [`switchboard_paused`](https://docs.theavoxai.com/api/errors#switchboard_paused), [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused), [`connection_inactive`](https://docs.theavoxai.com/api/errors#connection_inactive). API access must be on, the account in good standing, and the plan active (not paused) and one that includes API access. While a failed payment is still being retried, sending keeps working. Codes: [`api_access_disabled`](https://docs.theavoxai.com/api/errors#api_access_disabled), [`account_suspended`](https://docs.theavoxai.com/api/errors#account_suspended), [`subscription_inactive`](https://docs.theavoxai.com/api/errors#subscription_inactive), [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan). Each key and each account can only send so fast, and some keys have a daily allowance. Codes: [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited), [`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded). See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). The key must also have the **Send messages** permission: [`scope_missing`](https://docs.theavoxai.com/api/errors#scope_missing). The recipient must be a valid international number and the message valid for its type. Codes: [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient), [`unsupported_message_type`](https://docs.theavoxai.com/api/errors#unsupported_message_type), [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload). With a live key, the person must not be marked private or blocked on the key's number, and anything but a template needs a message from them to that number in the last 24 hours: [`recipient_not_allowed`](https://docs.theavoxai.com/api/errors#recipient_not_allowed), [`recipient_blocked`](https://docs.theavoxai.com/api/errors#recipient_blocked), [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window), [`address_not_available`](https://docs.theavoxai.com/api/errors#address_not_available). Product messages must use the catalogue linked to the key's number (otherwise `invalid_payload`). A product message from a number whose shop is past your plan's shops, or a template kind your plan doesn't include, gets [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached). A template must be on the WhatsApp account of the key's number: [`template_other_account`](https://docs.theavoxai.com/api/errors#template_other_account). If you sent an `Idempotency-Key`, Avox checks whether it has seen it before. A repeat of a finished request returns the first result without sending again. Codes: [`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key), [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict), [`idempotency_in_progress`](https://docs.theavoxai.com/api/errors#idempotency_in_progress). Only now is the message handed to WhatsApp. If WhatsApp refuses it, you get a clear code such as [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) or [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) instead of WhatsApp's raw reply, plus WhatsApp's own number in `meta_code`. A test key stops here with a pretend result instead - see [Test mode](https://docs.theavoxai.com/avox-api/testing#1-test-mode). Once Avox has matched a request to one of your keys (even a revoked or expired one), its outcome, successful or not, is written to the [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs), so you can look up its `request_id` later. A request that never names a real key can't be tied to your account, so it isn't listed. ### Responses Every response, successful or not, carries two headers: - `X-Request-Id` - a unique id for this request, like `req_4f1c9a0b7e2d36a8c5b1f0e9`. Log it, and include it if you contact [Support](https://docs.theavoxai.com/support). You can paste it into the search box on **API logs** to find the request. - `Cache-Control: no-store` Some responses carry more: | Header | When | | --- | --- | | `Retry-After` | On errors that waiting fixes (`rate_limited`, `quota_exceeded`, `meta_rate_limited`, `idempotency_in_progress`). Whole seconds, at least `1`. | | `Idempotent-Replayed: true` | When the response is a stored result for an `Idempotency-Key` you already used. Nothing was sent again. | | `Avox-Test-Mode: true` | On every response to a test key. The body also has `"test": true`. | A failed request returns `"ok": false` and an `error` object: ```json { "ok": false, "error": { "code": "outside_messaging_window", "message": "It's been more than 24 hours since this person last messaged you. Send an approved template instead.", "docs_url": "https://docs.theavoxai.com/api/errors#outside_messaging_window", "request_id": "req_9b2e5d7a1c4f80e36d2a7b15", "meta_code": 131047 } } ``` Branch on `error.code` - codes never change once published. `details` (which fields to fix) and `meta_code` (WhatsApp's own error number) appear only when they apply. | Status | Codes | | --- | --- | | `200` | Sent (or an idempotent replay of an earlier result) | | `400` | `invalid_payload`, `invalid_recipient`, `unsupported_message_type`, `invalid_idempotency_key` | | `401` | `missing_api_key`, `invalid_api_key`, `key_revoked`, `key_expired` | | `402` | `subscription_inactive` | | `403` | `ip_not_allowed`, `api_access_disabled`, `api_not_in_plan`, `account_suspended`, `scope_missing`, `recipient_not_allowed`, `plan_limit_reached` | | `404` | `connection_not_found` | | `409` | `connection_paused`, `connection_inactive`, `connection_not_ready`, `switchboard_paused`, `recipient_blocked`, `idempotency_conflict`, `idempotency_in_progress` | | `413` | `payload_too_large` | | `422` | `template_other_account`, `template_not_found`, `template_unavailable`, `template_params_invalid`, `outside_messaging_window`, `address_not_available`, `recipient_unreachable`, `meta_rejected` | | `429` | `rate_limited`, `quota_exceeded`, `meta_rate_limited` | | `500` | `internal_error` | | `502` | `meta_unavailable` | Every code, its causes, and the fix are on [API errors](https://docs.theavoxai.com/api/errors). Integrations written before this error format read `error` as a plain string. Read `error.message` instead, or better, branch on `error.code`. ### Who can do what | Action | Who | | --- | --- | | Create a live or test key | Admin, or a member with **Manage API keys** | | Rotate a key | Admin, or a member with **Manage API keys** | | Revoke a key | Admin, or a member with **Manage API keys** | | Click **Test** on a key | Admin, or a member with **Manage API keys** | | Change what a key may do (**Permissions**) | Admin, or a member with **Manage API keys**, with an emailed code, and only permissions they have themselves | | See keys and their recent requests | Admin, or a member with **See API keys** | | Read and export the **API logs** | Admin and Manager (**See API logs** is on for Managers by default) | | Resend a forwarded message from the API logs | Admin | | Call the API | Anyone holding the key - keep it secret | Managers start without **See API keys** and **Manage API keys**; an Admin can give either one to a Manager person by person - see [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). See [Members and roles](https://docs.theavoxai.com/switchboard/members) for what each role can do elsewhere in the dashboard. ### Your plan and API access API access depends on your plan: each plan either includes it or doesn't. On a plan without it, the dashboard shows "API access isn't included in your plan" with a link to the plans that include it. Your keys stay listed, but new keys can't be created or rotated, and existing keys stop sending with [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan) until your plan includes API access again. A paused plan has no API access either. See [API access and your plan](https://docs.theavoxai.com/connections/api-keys#api-access-and-your-plan). ### What a key can do A key does only what its permissions (scopes) allow. Every key starts with **Send messages**, and keys made before permissions existed are send-only: they send from their own number on this one endpoint, and the response holds only the outcome: `request_id`, WhatsApp's `message_id` and its reply to the send, or an `error` with its code. A key without **Send messages** is refused here with [`scope_missing`](https://docs.theavoxai.com/api/errors#scope_missing). Whoever manages your keys can also give a key **Read** or **Write** for **Tables**, **Table rows**, **Flows**, **Templates** and **Automations**, for the [builder API](https://docs.theavoxai.com/avox-api/builder) at `https://api.theavoxai.com/api/v1`. The key then acts with the permissions of the person who set them, and test keys can only read and check. No key can read your contacts, conversations, billing or team, whatever its permissions. Incoming messages reach your server through [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) instead. The details are on [What a key can do, and what it can't](https://docs.theavoxai.com/connections/api-keys#what-a-key-can-do-and-what-it-cant) and [Authentication](https://docs.theavoxai.com/avox-api/authentication#permissions-scopes). ### Next steps A complete backend in Express, Next.js, FastAPI or Flask, with retries, idempotency and logging built in. Keys, the header, scoping, and rotation. Every type with a full example. Retry safely without sending twice. What a limited request looks like and when to retry. Receive customer messages on your server, and where to see delivery statuses. Every request made with your keys, with filters and CSV export. Build and test with a test key first. Everything to check before real customers see it. Create tables, rows, Flows, templates and automations with a key. Instructions an AI assistant follows to build in Avox with your key. Every builder endpoint, its permission, and the OpenAPI file. Ready-made examples: [Node.js](https://docs.theavoxai.com/integrations/nodejs), [Laravel](https://docs.theavoxai.com/integrations/laravel), [Shopify](https://docs.theavoxai.com/integrations/shopify), [n8n](https://docs.theavoxai.com/integrations/n8n), [Make](https://docs.theavoxai.com/integrations/make), [Zapier](https://docs.theavoxai.com/integrations/zapier), [Chatwoot](https://docs.theavoxai.com/integrations/chatwoot). --- ## Connect your server URL: https://docs.theavoxai.com/avox-api/connect-your-server Section: Avox API This guide builds a small, production-ready backend that sends WhatsApp messages through a number connected to Avox. Pick your stack - **Express**, **Next.js**, **FastAPI** or **Flask** - and copy the code. Every version does the same things: - sends one `Idempotency-Key` per message, so a retry never sends twice, - retries only the errors that are safe to retry, honouring `Retry-After`, - backs off with jitter between attempts, - logs the `X-Request-Id` of every call, and - reads `error.code` to decide what happens next. ``` Your app → your server (this guide) → Avox API → Meta Cloud API → Customer's WhatsApp Customer replies → Avox Inbox and Automation → (message forwarding) → your server Delivery statuses → Avox Logs ``` ### Before you start - A WhatsApp number connected to Avox with **Connected** status. See [Getting started](https://docs.theavoxai.com/getting-started). - An active plan. See [Plans](https://docs.theavoxai.com/plans). - The **Admin** role in your Switchboard, to create the API key. - One of: Node.js 18 or later, or Python 3.9 or later. - At least one approved template, for messages your server starts. See [Templates](https://docs.theavoxai.com/templates). ### Step 1: Create an API key API Keys">In the dashboard, go to **Settings** and open the **API Keys** tab. Under **Create a new key**, pick **Live key** or **Test key**, then the number in **Choose a connection**. The dialog **Your new API key** opens with the full key, starting `avx_live_` (or `avx_test_`). This is the only time the full key is shown. If you lose it, rotate the key or revoke it and create another. Next to the new key, click **Test**. "Working - routes to" and your connection's name means it's ready. No message is sent. You can also create a key from the **Outbound API keys** section on the connection's own page. Every detail of both screens is on [API keys](https://docs.theavoxai.com/connections/api-keys). Build and run the code below with a **test key** first. It goes through every check a live send does, answers with a pretend result, and never messages anyone. Swap in a live key when you're ready. See [Test mode](https://docs.theavoxai.com/avox-api/testing#1-test-mode). ### Step 2: Store the key safely The key can send WhatsApp messages from your number, so treat it like a password. - **Do** keep it in an environment variable (`AVOX_API_KEY`) or a secrets manager, and load it on the server only. - **Do** give each system its own key, so you can revoke one without touching the others. - **Don't** put it in a browser page, a mobile app, a public repository, or a shared automation template. Anything shipped to a device can be extracted. ```bash ### .env - never commit this file AVOX_API_KEY=avx_live_your_key_here ### A secret your own apps send to this server, so only they can trigger messages INTERNAL_TOKEN=a-long-random-string ``` ### Step 3: The Avox client One function that sends a message, retries what's safe to retry, and explains failures. The retry rules follow [Which errors to retry](https://docs.theavoxai.com/avox-api/rate-limits#which-errors-to-retry): | `error.code` | What the client does | | --- | --- | | `rate_limited`, `idempotency_in_progress` | Waits `Retry-After` seconds, retries with the **same** `Idempotency-Key`. | | `internal_error`, network errors and timeouts | Backs off, retries with the same key. | | `meta_rate_limited` | Waits `Retry-After`, retries with a **new** key (WhatsApp's refusal is stored against the old one). | | `meta_unavailable` | Doesn't retry automatically - the message may already be out. Your code decides. | | Everything else | Stops and raises the error with its code, details and request id. | ```js // avox.js - Node.js 18+ (built-in fetch) import { randomUUID } from "node:crypto"; const AVOX_URL = "https://api.theavoxai.com/api/messages/send"; const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const MAX_ATTEMPTS = 5; const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => { const base = Math.min(30_000, 1_000 * 2 ** (attempt - 1)); // 1s, 2s, 4s ... 30s return base / 2 + Math.random() * (base / 2); }; export class AvoxError extends Error { constructor({ status, code, message, requestId, details }) { super(`${code}: ${message}`); Object.assign(this, { status, code, requestId, details }); } } export async function sendWhatsApp(message, idempotencyKey = randomUUID()) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { let res; try { res = await fetch(AVOX_URL, { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }); } catch (networkError) { if (attempt >= MAX_ATTEMPTS) throw networkError; console.warn(`[avox] network error on attempt ${attempt}, retrying`); await sleep(backoffMs(attempt)); continue; } const requestId = res.headers.get("X-Request-Id"); const data = await res.json().catch(() => null); if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data; } const code = data?.error?.code ?? `http_${res.status}`; console.warn(`[avox] ${res.status} ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= MAX_ATTEMPTS) { throw new AvoxError({ status: res.status, code, message: data?.error?.message ?? "Unexpected response", requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); const retryAfter = Number(res.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } ``` ```ts // lib/avox.ts - Next.js (App Router), server only import "server-only"; import { randomUUID } from "node:crypto"; const AVOX_URL = "https://api.theavoxai.com/api/messages/send"; const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const MAX_ATTEMPTS = 5; const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => { const base = Math.min(30_000, 1_000 * 2 ** (attempt - 1)); return base / 2 + Math.random() * (base / 2); }; export type AvoxSuccess = { ok: true; request_id: string; message_id: string | null; result: unknown }; export class AvoxError extends Error { constructor( public status: number, public code: string, message: string, public requestId: string | null, public details?: { path: string; message: string }[] ) { super(`${code}: ${message}`); } } export async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID()): Promise { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { let res: Response; try { res = await fetch(AVOX_URL, { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }); } catch (networkError) { if (attempt >= MAX_ATTEMPTS) throw networkError; await sleep(backoffMs(attempt)); continue; } const requestId = res.headers.get("X-Request-Id"); const data = await res.json().catch(() => null); if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data as AvoxSuccess; } const code: string = data?.error?.code ?? `http_${res.status}`; console.warn(`[avox] ${res.status} ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= MAX_ATTEMPTS) { throw new AvoxError(res.status, code, data?.error?.message ?? "Unexpected response", data?.error?.request_id ?? requestId, data?.error?.details); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); const retryAfter = Number(res.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } ``` ```python ### avox.py - FastAPI (async, httpx) import asyncio import logging import os import random import uuid import httpx log = logging.getLogger("avox") AVOX_URL = "https://api.theavoxai.com/api/messages/send" RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error"} RETRY_NEW_KEY = {"meta_rate_limited"} MAX_ATTEMPTS = 5 class AvoxError(Exception): def __init__(self, status, code, message, request_id, details=None): super().__init__(f"{code}: {message}") self.status, self.code, self.request_id, self.details = status, code, request_id, details def backoff(attempt): base = min(30.0, 2 ** (attempt - 1)) # 1s, 2s, 4s ... 30s return base / 2 + random.random() * base / 2 async def send_whatsapp(client: httpx.AsyncClient, message: dict, idempotency_key: str | None = None) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 try: res = await client.post( AVOX_URL, headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, timeout=30, ) except httpx.TransportError: if attempt >= MAX_ATTEMPTS: raise await asyncio.sleep(backoff(attempt)) continue request_id = res.headers.get("X-Request-Id") try: data = res.json() except ValueError: data = None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or f"http_{res.status_code}" log.warning("%s %s request_id=%s attempt=%s", res.status_code, code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= MAX_ATTEMPTS: raise AvoxError(res.status_code, code, error.get("message", "Unexpected response"), error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) retry_after = int(res.headers.get("Retry-After") or 0) await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) ``` ```python ### avox.py - Flask (sync, requests) import logging import os import random import time import uuid import requests log = logging.getLogger("avox") AVOX_URL = "https://api.theavoxai.com/api/messages/send" RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error"} RETRY_NEW_KEY = {"meta_rate_limited"} MAX_ATTEMPTS = 5 session = requests.Session() class AvoxError(Exception): def __init__(self, status, code, message, request_id, details=None): super().__init__(f"{code}: {message}") self.status, self.code, self.request_id, self.details = status, code, request_id, details def backoff(attempt): base = min(30.0, 2 ** (attempt - 1)) return base / 2 + random.random() * base / 2 def send_whatsapp(message, idempotency_key=None): key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 try: res = session.post( AVOX_URL, headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, timeout=30, ) except requests.RequestException: if attempt >= MAX_ATTEMPTS: raise time.sleep(backoff(attempt)) continue request_id = res.headers.get("X-Request-Id") try: data = res.json() except ValueError: data = None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or f"http_{res.status_code}" log.warning("%s %s request_id=%s attempt=%s", res.status_code, code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= MAX_ATTEMPTS: raise AvoxError(res.status_code, code, error.get("message", "Unexpected response"), error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) retry_after = int(res.headers.get("Retry-After") or 0) time.sleep(retry_after if retry_after > 0 else backoff(attempt)) ``` ### Step 4: A route your apps call Your own apps (a website backend, a job, an admin tool) call this route instead of the Avox API directly, so the key lives in one place. The caller passes a `reference` - an id from your own system, like an order id - which becomes the `Idempotency-Key`, so the same notification is never sent twice even if the caller retries. ```js // server.js - npm install express import express from "express"; import { timingSafeEqual } from "node:crypto"; import { sendWhatsApp, AvoxError } from "./avox.js"; const app = express(); app.use(express.json({ limit: "100kb" })); function authorized(req) { const given = Buffer.from(req.get("x-internal-token") ?? ""); const expected = Buffer.from(process.env.INTERNAL_TOKEN ?? ""); return expected.length > 0 && given.length === expected.length && timingSafeEqual(given, expected); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } app.post("/notify", async (req, res) => { if (!authorized(req)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, components: params.length ? [{ type: "body", parameters: params.map((text) => ({ type: "text", text: String(text) })) }] : undefined, }, biz_opaque_callback_data: reference, }, reference ); return res.json({ ok: true, message_id: result.message_id }); } catch (err) { if (err instanceof AvoxError) { return res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } console.error(err); return res.status(502).json({ ok: false, code: "network_error" }); } }); app.get("/healthz", (_req, res) => res.send("ok")); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; import { AvoxError, sendWhatsApp } from "@/lib/avox"; export const runtime = "nodejs"; function authorized(request: NextRequest) { const given = Buffer.from(request.headers.get("x-internal-token") ?? ""); const expected = Buffer.from(process.env.INTERNAL_TOKEN ?? ""); return expected.length > 0 && given.length === expected.length && timingSafeEqual(given, expected); } export async function POST(request: NextRequest) { if (!authorized(request)) return NextResponse.json({ error: "unauthorized" }, { status: 401 }); const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((text: unknown) => ({ type: "text", text: String(text) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { if (err instanceof AvoxError) { return NextResponse.json( { ok: false, code: err.code, request_id: err.requestId, details: err.details }, { status: err.status >= 500 ? 502 : 422 } ); } console.error(err); return NextResponse.json({ ok: false, code: "network_error" }, { status: 502 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import hmac import os from contextlib import asynccontextmanager import httpx from fastapi import FastAPI, Header, HTTPException from fastapi.responses import JSONResponse from pydantic import BaseModel from avox import AvoxError, send_whatsapp @asynccontextmanager async def lifespan(app: FastAPI): app.state.http = httpx.AsyncClient() yield await app.state.http.aclose() app = FastAPI(lifespan=lifespan) class Notify(BaseModel): to: str template: str reference: str params: list[str] = [] language: str = "en_US" @app.post("/notify") async def notify(body: Notify, x_internal_token: str = Header(default="")): if not hmac.compare_digest(x_internal_token, os.environ.get("INTERNAL_TOKEN", "")) or not x_internal_token: raise HTTPException(status_code=401) template = {"name": body.template, "language": {"code": body.language}} if body.params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": p} for p in body.params]}] try: result = await send_whatsapp( app.state.http, {"to": body.to, "type": "template", "template": template, "biz_opaque_callback_data": body.reference}, idempotency_key=body.reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: status = 502 if err.status >= 500 else 422 return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=status) except httpx.TransportError: return JSONResponse({"ok": False, "code": "network_error"}, status_code=502) @app.get("/healthz") async def healthz(): return "ok" ``` ```python ### app.py - pip install flask requests ; run: flask --app app run --port 3000 import hmac import os import requests from flask import Flask, jsonify, request from avox import AvoxError, send_whatsapp app = Flask(__name__) def authorized(): given = request.headers.get("x-internal-token", "") expected = os.environ.get("INTERNAL_TOKEN", "") return bool(expected) and hmac.compare_digest(given, expected) @app.post("/notify") def notify(): if not authorized(): return "", 401 body = request.get_json(silent=True) or {} to, template_name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and template_name and reference): return jsonify(error="to, template and reference are required"), 400 template = {"name": template_name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: result = send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return jsonify(ok=True, message_id=result.get("message_id")) except AvoxError as err: status = 502 if err.status >= 500 else 422 return jsonify(ok=False, code=err.code, request_id=err.request_id, details=err.details), status except requests.RequestException: return jsonify(ok=False, code="network_error"), 502 @app.get("/healthz") def healthz(): return "ok" ``` Call it from any of your apps: ```bash curl -X POST http://localhost:3000/notify \ -H "x-internal-token: $INTERNAL_TOKEN" \ -H "Content-Type: application/json" \ -d '{"to":"15551234567","template":"order_shipped","params":["A-1042"],"reference":"order-A-1042-shipped"}' ``` The route sends templates because your server usually starts the conversation. To send other types (text, media, buttons) to someone who messaged you in the last 24 hours, pass a different body to `sendWhatsApp` / `send_whatsapp` - see [Message types](https://docs.theavoxai.com/avox-api/messages). For high volume, put messages on a queue and let a few workers call the client, instead of sending from inside a web request. The `reference` still makes every retry safe. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits#sending-in-bulk). ### Step 5: Receiving events What happens after a send is handled inside Avox: | Event | Where it goes | | --- | --- | | Customer replies, button taps, new conversations | The [Inbox](https://docs.theavoxai.com/inbox), where your team answers, and [Automation](https://docs.theavoxai.com/automation), which can answer automatically. With message forwarding on, also your own server - see [Receive messages](#receive-messages). | | Delivery statuses (`sent`, `delivered`, `read`, `failed`) of your API messages | [Logs](https://docs.theavoxai.com/logs), each with its full payload. Match them by `message_id`, or by the `reference` you sent as `biz_opaque_callback_data`. | | The result of each API call | The **Sent** tab on the **API logs** page (and the key's **Recent requests** in **Settings > API Keys**). See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). | | Each message forwarded to your server | The **Received** tab on the **API logs** page, and **Recent deliveries** on the connection's page. | See [Statuses and replies](https://docs.theavoxai.com/avox-api/webhooks) for the payload shapes. #### Receive messages To get each new customer message on your own server too, turn on **Message forwarding** on the connection's page (Admins). Avox then `POST`s one signed `message.received` event per incoming customer message to your **Endpoint URL**. Only incoming customer messages are forwarded - statuses, calls and messages your team sends stay in Avox. **What's sent.** A small JSON event - the message only, never tokens or account ids: ```json { "id": "evt_5f0c9a7e1b2d4c6e8f00a1b2c3d4e5f6", "type": "message.received", "api_version": "2026-10-01", "created_at": "2026-10-10T10:00:02.000Z", "connection_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d", "data": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdC", "from": "+15551234567", "contact_name": "Maria Lopez", "timestamp": "2026-10-10T10:00:00.000Z", "type": "image", "media": { "id": "1203949581720283", "mime_type": "image/jpeg", "caption": "My receipt" } } } ``` `data.type` is `text`, `image`, `audio`, `video`, `document`, `sticker`, `location`, `contacts`, `interactive`, `button` or `reaction`; an example of each is on [What's sent](https://docs.theavoxai.com/avox-api/webhooks#whats-sent). **Headers.** `Avox-Signature: t=,v1=`, `Avox-Event-Id`, `Avox-Event-Type: message.received` and `User-Agent: Avox-Webhooks/1.0`. **Check the signature.** Each `v1` is a hex HMAC-SHA256 of `.`, keyed with your whole signing secret (`whsec_...`) as text. Read the raw body, refuse a `t` more than 5 minutes from your clock, and compare in constant time. Then answer `2xx` within 10 seconds and do your work afterwards. Add this route next to `/notify`, with the secret in `AVOX_WEBHOOK_SECRET`: ```js // add to server.js import { createHmac } from "node:crypto"; // timingSafeEqual is already imported above function verifyAvoxSignature(rawBody, header) { const secret = process.env.AVOX_WEBHOOK_SECRET; if (!header || !secret) return false; let t = null; const signatures = []; for (const part of header.split(",")) { const [key, value = ""] = part.trim().split("="); if (key === "t" && /^\d+$/.test(value)) t = Number(value); if (key === "v1") signatures.push(value); } if (t === null || Math.abs(Date.now() / 1000 - t) > 300) return false; const expected = createHmac("sha256", secret).update(`${t}.`).update(rawBody).digest(); return signatures.some((sig) => { const given = Buffer.from(sig, "hex"); return given.length === expected.length && timingSafeEqual(given, expected); }); } const handled = new Set(); // use your database in production // Registered with express.raw so the body stays byte-for-byte as sent. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!verifyAvoxSignature(req.body, req.get("Avox-Signature"))) return res.sendStatus(401); res.sendStatus(200); // answer fast const event = JSON.parse(req.body.toString("utf8")); if (event.test || handled.has(event.id)) return; // test events and repeats handled.add(event.id); console.log(`[avox] ${event.data.type} from ${event.data.from}`); }); ``` ```ts // app/avox/messages/route.ts import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; function verifyAvoxSignature(rawBody: string, header: string | null): boolean { const secret = process.env.AVOX_WEBHOOK_SECRET; if (!header || !secret) return false; let t: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const [key, value = ""] = part.trim().split("="); if (key === "t" && /^\d+$/.test(value)) t = Number(value); if (key === "v1") signatures.push(value); } if (t === null || Math.abs(Date.now() / 1000 - t) > 300) return false; const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => { const given = Buffer.from(sig, "hex"); return given.length === expected.length && timingSafeEqual(given, expected); }); } export async function POST(request: Request) { const rawBody = await request.text(); if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"))) { return new Response("invalid signature", { status: 401 }); } const event = JSON.parse(rawBody); after(async () => { if (event.test) return; // dedupe on event.id in your database, then handle event.data console.info(`[avox] ${event.data.type} from ${event.data.from}`); }); return new Response(null, { status: 200 }); } ``` ```python ### add to main.py import hashlib, json, time from fastapi import BackgroundTasks, Request, Response def verify_avox_signature(raw: bytes, header: str | None) -> bool: secret = os.environ.get("AVOX_WEBHOOK_SECRET", "").encode() if not header or not secret: return False t, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): t = int(value) elif key == "v1": signatures.append(value) if t is None or abs(time.time() - t) > 300: return False expected = hmac.new(secret, f"{t}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, s) for s in signatures) def handle_event(event: dict) -> None: if event.get("test"): return # dedupe on event["id"] in your database, then handle event["data"] print("avox:", event["data"]["type"], "from", event["data"]["from"]) @app.post("/avox/messages") async def avox_messages(request: Request, background: BackgroundTasks, avox_signature: str | None = Header(default=None)): raw = await request.body() if not verify_avox_signature(raw, avox_signature): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) return Response(status_code=200) ``` ```python ### add to app.py import hashlib, json, time from concurrent.futures import ThreadPoolExecutor pool = ThreadPoolExecutor(max_workers=4) def verify_avox_signature(raw: bytes, header: str | None) -> bool: secret = os.environ.get("AVOX_WEBHOOK_SECRET", "").encode() if not header or not secret: return False t, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): t = int(value) elif key == "v1": signatures.append(value) if t is None or abs(time.time() - t) > 300: return False expected = hmac.new(secret, f"{t}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, s) for s in signatures) def handle_event(event: dict) -> None: if event.get("test"): return # dedupe on event["id"] in your database, then handle event["data"] print("avox:", event["data"]["type"], "from", event["data"]["from"]) @app.post("/avox/messages") def avox_messages(): raw = request.get_data() if not verify_avox_signature(raw, request.headers.get("Avox-Signature")): return "", 401 pool.submit(handle_event, json.loads(raw)) return "", 200 ``` In Express, register `/avox/messages` with `express.raw` as shown. The `app.use(express.json())` from Step 4 parses every route's body first, so either register this route before it, or limit `express.json()` to your other routes - otherwise the raw bytes are gone and every signature fails. **Skip repeats.** Retries and resends keep the same `Avox-Event-Id`, so store the ids you've handled. **Retries.** If your endpoint doesn't answer `2xx` within 10 seconds (redirects count as failures), Avox retries after about 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours, with a little randomness - about 21 hours in all - then marks the delivery **Failed**. **Test events.** **Send test event** on the connection's page sends a signed sample with `"test": true` right away and shows the result. It isn't retried. **Rotating the secret.** **Rotate secret** shows a new secret once. For 24 hours each request carries two `v1` signatures (new and old), so code that accepts any matching `v1` keeps working while you deploy the new one. **The delivery log.** **Recent deliveries** on the connection's page shows each message's status, HTTP code, attempts and payload. **Resend** queues one again with the same event id. The **Received** tab on the **API logs** page lists the same deliveries across all your numbers. **Auto-pause.** After 5 deliveries in a row fail all their retries, Avox pauses forwarding and emails your Admins. Fix the endpoint, send a test event, turn forwarding back on, and resend what you missed. **Troubleshooting.** A `401` from your own route almost always means the body was parsed before the signature check, or the wrong secret. More fixes are on [Troubleshooting](https://docs.theavoxai.com/avox-api/webhooks#troubleshooting), and every detail of the section is on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### Step 6: Test locally Start it on port 3000 with `AVOX_API_KEY` and `INTERNAL_TOKEN` set. Send any WhatsApp message from your personal phone to the connected number, so non-template messages work too. Run the `curl` above with your personal number. Expect `{"ok":true,"message_id":"wamid..."}` and the message on your phone. You get the same `message_id`, and no second message arrives - that's the idempotency key at work. Open **API logs** in the dashboard: the **Sent** tab shows both calls, the second marked **replayed**. Open [Logs](https://docs.theavoxai.com/logs) to see the `sent`, `delivered` and `read` statuses. With message forwarding on and a tunnel (below), reply from your phone. The message reaches `/avox/messages` and shows **Delivered** under **Recent deliveries** on the connection's page and on the **Received** tab of **API logs**. #### Exposing localhost over HTTPS Message forwarding only accepts a public `https://` Endpoint URL. To try it with a server on your own machine, use a tunnel that gives localhost a temporary HTTPS address: ```bash ### ngrok ngrok http 3000 ### Cloudflare Tunnel (quick tunnel) cloudflared tunnel --url http://localhost:3000 ``` Paste the `https://...` address the tunnel prints, plus `/avox/messages`, into **Endpoint URL**, click **Save URL**, turn forwarding on, and click **Send test event**. You'll see **Delivered - your endpoint answered 200** when the tunnel, your server and your signature check all work. Then send a WhatsApp message to the number from your phone and watch it arrive. Tunnel addresses usually change each time you restart them, so set your real server's URL before going live. More ways to test, including safe error-path requests, are on [Testing](https://docs.theavoxai.com/avox-api/testing). ### Step 7: Deploy - **Secrets:** `AVOX_API_KEY` and `INTERNAL_TOKEN` (and `AVOX_WEBHOOK_SECRET`, if you receive messages) set in your host's secret store, not in the code or the image. - **Live key:** production uses an `avx_live_...` key. A test key answers `200` but never sends - check responses don't carry the `Avox-Test-Mode: true` header. - **Receiving:** if you use message forwarding, the Endpoint URL points at your production server and **Send test event** shows **Delivered**. - **HTTPS:** the server runs behind HTTPS, and `/notify` is only reachable by your own apps. - **Timeouts:** every Avox call has a timeout (30 seconds above), and your web server allows enough time for a retry or two - or sends from a queue worker instead. - **Logs:** `request_id` and `error.code` are logged for every failed call. - **References:** every caller sends a stable `reference` per message. - **Templates:** every template your server uses is approved, in the languages you send. - **Key check:** **Test** on the production key shows "Working - routes to" the right number. - **Rotation:** you know how to rotate the key - create, deploy, check, revoke. See [Authentication](https://docs.theavoxai.com/avox-api/authentication#rotating-a-key). Then work through the [Go-live checklist](https://docs.theavoxai.com/avox-api/go-live). ### Troubleshooting | `error.code` | Likely cause | Fix | | --- | --- | --- | | [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key) | `AVOX_API_KEY` isn't loaded, so no header was sent. | Check the environment of the running process. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | Key cut off, quoted, or with a stray space. | Copy it again, or create a new key. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) | The key was revoked. | Create a new key and redeploy. | | [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | The key was rotated and its grace period ended. | Deploy the key that replaced it. | | [`ip_not_allowed`](https://docs.theavoxai.com/api/errors#ip_not_allowed) | The key is limited to certain addresses. | Call from an allowed address, or ask [Support](https://docs.theavoxai.com/support) to update the list. | | [`subscription_inactive`](https://docs.theavoxai.com/api/errors#subscription_inactive) | No active plan, or the plan is paused. | Fix it on [Billing](https://docs.theavoxai.com/billing). | | [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan) | Your plan doesn't include API access. | Move to a plan with API access on **Billing > Change plan**. | | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | The number is paused. | Resume it on [Connections](https://docs.theavoxai.com/connections). | | [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready) | The number needs reconnecting on Meta's side. | Reconnect it from [Connections](https://docs.theavoxai.com/connections). | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | `to` lacks a country code. | Send the full international number. | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | A field is missing or too long. | Read `details` - each entry names the field. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same `reference` was used for a different message. | Make references unique per message. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Wrong template name or language. | Copy both from [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Wrong number or format of `params`. | Match the template's placeholders, in order. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | A non-template message to someone who hasn't written in 24 hours. | Send a template. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | Too many requests at once. | The client retries; for bulk, queue and pace. | | [`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded) | The key used up its daily allowance. | Wait for midnight UTC, or ask [Support](https://docs.theavoxai.com/support) about the allowance. | | [`meta_unavailable`](https://docs.theavoxai.com/api/errors#meta_unavailable) | WhatsApp didn't answer in time. | Check [Logs](https://docs.theavoxai.com/logs) for a status before resending. | | [`internal_error`](https://docs.theavoxai.com/api/errors#internal_error) | A problem at Avox. | The client retries; if it persists, contact [Support](https://docs.theavoxai.com/support) with the `request_id`. | Every code is explained on [API errors](https://docs.theavoxai.com/api/errors). To see how often each one happens, open **API logs** and pick it in the error code filter (**Any error code**), or paste a `request_id` into the search box. --- ## Authentication URL: https://docs.theavoxai.com/avox-api/authentication Section: Avox API Every request to the [Avox API](https://docs.theavoxai.com/avox-api) is authenticated with an **Avox API key** sent in the `Authorization` header. There's nothing else to set up - no OAuth, no signing, no Meta token. ### What a key is - A key starts with a prefix that says what it does, followed by a long random string: | Prefix | Kind | What a send does | | --- | --- | --- | | `avx_live_` | Live key | Sends a real WhatsApp message. | | `avx_test_` | Test key | Runs every check, then answers with a pretend result (`"test": true`, `Avox-Test-Mode: true`). Never sends. See [Testing](https://docs.theavoxai.com/avox-api/testing#1-test-mode). | - Each key belongs to **one connection** - one WhatsApp number in one Switchboard. You pick the number when you create the key, and it can only ever send from that number. - Each key has a **name** (2 to 60 characters, unique among the Switchboard's working keys) and an optional description, so the dashboard, the API logs and any security warning say exactly which key and which system it is. It also records who created it and when. - A connection can have several active keys at once, which is how you rotate keys without downtime. - Each key has **permissions** (scopes): **Send messages**, and Off, Read or Write for tables, rows, Flows, templates and automations. See [Permissions (scopes)](#permissions-scopes). - The full key is shown exactly once, when it's created or rotated. After that the dashboard only shows its first few characters (for example `avx_live_8f2a…`) so you can tell keys apart. - Your code can tell the two kinds apart by the prefix, and every response from a test key carries the `Avox-Test-Mode: true` header. ### Getting a key Admins - and Managers an Admin has given **Manage API keys** - can create, rotate or revoke keys, and change their permissions. Each of those actions also needs a **6-digit code emailed to the person doing it**: it works once, for 10 minutes, only for that one action on that one key (or number), and stops working after 5 wrong tries. See [Confirmation codes](https://docs.theavoxai.com/connections/api-keys#confirmation-codes). API Keys and click Create a key"> This tab lists every key across every connection in the Switchboard. You can also use **Create a key for this number** in the **Outbound API keys** section on a connection's own page. The Switchboard you're in is picked to start with. If it has more than one number, choose one - each shows its name, the number partly hidden, and its status. Avox never guesses the number. If you have no connected number yet, the tab shows "Connect a WhatsApp number first - a key always sends from one number." **Live key** "Sends real WhatsApp messages from this number"; **Test key** "Never sends anything". The **Key name** is suggested for you (for example "Sales line live key"); add **What it's for** if you like. Under **What this key may do**, **Send messages** is on to start with. For the [builder API](https://docs.theavoxai.com/avox-api/builder), set **Tables**, **Table rows**, **Flows**, **Templates** and **Automations** to **Off**, **Read** or **Write**. See [Permissions (scopes)](#permissions-scopes). The key is created as soon as the last digit is in, and **Your new API key** opens with the full key and a copy button. This is the only time the full key is shown. If you close the dialog without copying it, rotate that key (or revoke it and create another). The step-by-step guide with every button on both screens is on [API keys](https://docs.theavoxai.com/connections/api-keys). API access depends on your plan. On a plan without it, both screens read "API access isn't included in your plan" in place of the create form, with a link to the plans that include it. Your keys stay listed, but new keys can't be created or rotated, and existing keys stop sending with [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan) until your plan includes API access again. A paused plan has no API access either. See [API access and your plan](https://docs.theavoxai.com/connections/api-keys#api-access-and-your-plan). If API keys are switched off for your account, both screens say so in place of the create form ("API keys have been turned off for your account"). Existing keys stop sending too, with [`api_access_disabled`](https://docs.theavoxai.com/api/errors#api_access_disabled). Contact [Support](https://docs.theavoxai.com/support) if you need them. ### Permissions (scopes) Every key holds a list of permissions, called **scopes**. They decide which endpoints it may call. | In the dashboard | Scope | Lets the key | | --- | --- | --- | | **Send messages** | `send` | Send WhatsApp messages from this key's number with `POST /api/messages/send`. | | **Tables**: Read / Write | `tables:read` / `tables:write` | See tables and their columns / create, rename, archive and restore tables, and add, change or delete columns. | | **Table rows**: Read / Write | `rows:read` / `rows:write` | Read, filter and search rows / add, change and delete rows, and import CSV files. | | **Flows**: Read / Write | `flows:read` / `flows:write` | See Flows, their JSON, live data settings, request logs and answers / create Flows, change drafts, publish, deprecate and change live data settings. | | **Templates**: Read / Write | `templates:read` / `templates:write` | See templates and their review status / create templates, send them to WhatsApp for review and delete them. | | **Automations**: Read / Write | `automations:read` / `automations:write` | See automations, their steps, run logs and credit use / create and change automations and turn them on or off. | - **Existing keys are send-only.** Every key made before permissions existed holds `send` only, so nothing an existing key could do changed. A new key starts with **Send messages** too. - **Write includes read** for the same area. `GET /api/v1/me` and `GET /api/v1/catalog` work with any key. - **Change them any time** with **Permissions** on the key in **Settings > API Keys**. The **Key permissions** dialog shows the same choices; click **Email me a code** and type the 6-digit code we email you. "Permissions saved": the key can do what you picked from its next request. A rotated key keeps its permissions. See [API keys](https://docs.theavoxai.com/connections/api-keys#key-permissions). - **Only what you have yourself.** You can only give a key permissions you have in the Switchboard; the others can't be picked ([AVX-3621](https://docs.theavoxai.com/error-codes/avx-3621)). - **The key acts as the person who set its permissions.** Whoever last saved a key's permissions is the person it acts for. If they leave the Switchboard or lose a permission (for example **Create and edit tables**), the key's calls in that area answer [`scope_owner_no_access`](https://docs.theavoxai.com/api/errors#scope_owner_no_access) until someone who can sets its permissions again. Deleting also needs the matching delete permission. - **Test keys only read.** A test key reads and checks for real but is refused every change with [`test_key_read_only`](https://docs.theavoxai.com/api/errors#test_key_read_only). - A call outside the key's permissions answers [`scope_missing`](https://docs.theavoxai.com/api/errors#scope_missing), with the scope it needs in `details`. Write permissions let anything holding the key create, change and delete what you allowed. Give them only to code or an AI assistant you trust, keep the key secret, and revoke it when you no longer need it. See [Builder API](https://docs.theavoxai.com/avox-api/builder#permissions-scopes) and [API for AI assistants](https://docs.theavoxai.com/avox-api/ai-assistants). ### Sending the key Put the key in the `Authorization` header with the `Bearer` scheme, on every request: ``` Authorization: Bearer avx_live_your_key_here ``` ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to":"15551234567","type":"text","text":{"body":"Hi!"}}' ``` ```js const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ to: "15551234567", type: "text", text: { body: "Hi!" } }), }); ``` ```python import os import requests res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}"}, json={"to": "15551234567", "type": "text", "text": {"body": "Hi!"}}, timeout=30, ) ``` - The word `Bearer` can be any case, followed by one or more spaces and the key. - Send the key exactly as it was shown - no quotes, no line breaks, nothing cut off. - Dashboard sign-ins don't work on this endpoint, and an API key can't sign in to the dashboard. The two are kept fully separate. ### Scoping: one key, one number A key carries its connection with it. That's why the URL has no phone number id, and why nothing in the request body can point a send at a different number or a different account. - To send from two numbers, create one key per number and pick the key by number in your code. - With builder permissions, a key works only on its own Switchboard's tables, Flows, templates and automations. Ids from another Switchboard never match: they answer [`not_found`](https://docs.theavoxai.com/api/errors#not_found). - If the number is paused, every key for it gets [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) until it's resumed. - If the number is deleted, its keys get [`connection_not_found`](https://docs.theavoxai.com/api/errors#connection_not_found). - If the number needs reconnecting on Meta's side, its keys get [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready). Use **Test** in **Settings > API Keys** to see which number a key sends from - a working key shows "Working - routes to" followed by the connection's name. ### Authentication errors | Code | Status | What it means | | --- | --- | --- | | [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key) | `401` | No `Authorization` header was sent. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | `401` | The header isn't `Bearer `, or the key isn't one Avox recognises. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) | `401` | The key was revoked. | | [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | `401` | The key was rotated and its grace period has ended. Use the key that replaced it. | | [`ip_not_allowed`](https://docs.theavoxai.com/api/errors#ip_not_allowed) | `403` | The key only works from certain IP addresses, and this request came from another one. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | `429` | Also returned when one address sends many wrong keys in a short time. Fix the key before retrying. | | [`scope_missing`](https://docs.theavoxai.com/api/errors#scope_missing) | `403` | The key doesn't have the permission this request needs. | | [`scope_owner_no_access`](https://docs.theavoxai.com/api/errors#scope_owner_no_access) | `403` | The person who set the key's permissions can't do this in the Switchboard any more. | | [`test_key_read_only`](https://docs.theavoxai.com/api/errors#test_key_read_only) | `403` | A test key tried to change something. Use a live key with write permissions. | | [`feature_disabled`](https://docs.theavoxai.com/api/errors#feature_disabled) | `403` | The feature is turned off for the account that set the key's permissions. | ### Keeping keys safe - **Server side only.** Keep the key in an environment variable or a secrets manager. Never put it in a website, a mobile app, a public repository, or a shared automation template. - **One key per system.** Give each server or integration its own key. Then you can revoke one without touching the others, and the recent-requests list tells you which system sent what. - **Watch the warnings.** **Settings > API Keys** highlights a key that needs attention, with a warning such as **Used from a new place**, **Blocked request from an unknown address**, **Far more requests than usual**, **Requests are failing**, **Hit its per-minute limit** or **Hit its daily limit**. You also get a notification in the dashboard. - **Check the API logs.** The **API logs** page lists every request made with your keys, with the calling IP address. Filter by key to see exactly what one system has been doing. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). - **Restrict by IP address.** A key can be limited to your servers' addresses. Contact [Support](https://docs.theavoxai.com/support) to set or change the list. - **Use test keys while you build.** A test key can't send a real message, so a leaked test key can't reach your customers. See [Testing](https://docs.theavoxai.com/avox-api/testing#1-test-mode). ### Rotating a key **Rotate** swaps a key for a new one with no downtime. The new key keeps the old one's name, number, mode (a test key rotates into a new test key), description, permissions and limits, and the old key keeps working for the grace period you pick. Rotating never resets anything. The new key gets the limits the old key has at that moment (allowed IPs, per-minute limit, daily allowance), and the counts carry on: requests made with the old key today count toward the new key's daily allowance, and both keys share the per-minute limit while both work. A rotation can't be used to get a fresh allowance. Click **Rotate** on the key in **Settings > API Keys** or on the connection's page. **Immediately**, **In 1 hour**, **In 24 hours** or **In 7 days**. Both keys work until it ends. Click **Email me a code to rotate** and type the 6-digit code. Copy it from **Your rotated API key**, update the secret on every server that sends, and redeploy. On the [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs), filter by the old key and confirm nothing new is arriving. Its row shows "Expires in ..." until it stops. After the grace period the old key fails with [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired). Full details: [Rotate a key](https://docs.theavoxai.com/connections/api-keys#rotate-a-key). - A key can be rotated once. **Rotate** is hidden on a key that's already counting down; rotate its replacement instead. - Rotating doesn't move the old key's history: [`Idempotency-Key`](https://docs.theavoxai.com/avox-api/idempotency) values belong to one API key, so a retry sent with the new key runs as a new request. Finish any retries in flight before you switch, or accept that one message could go out twice. ### Revoking a key Click the bin button (**Revoke this key**) next to the key in **Settings > API Keys** or on the connection's page, then **Email me a code to revoke** and type the 6-digit code. A revoked key stops working on the very next request, with [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked), and moves to **Revoked and expired keys** in **Settings > API Keys**. Revoking can't be undone - create a new key if you need one again. Its past requests stay on the API logs. If a key may have leaked, rotate it with **Immediately** (or revoke it). It fails with [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) or [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) on the very next request. --- ## Message types URL: https://docs.theavoxai.com/avox-api/messages Section: Avox API Every message goes to the same endpoint, `POST https://api.theavoxai.com/api/messages/send`. The body follows WhatsApp's own Cloud API message format: `to`, `type`, and one object named after the type. This page shows every type the API accepts, with the limits Avox checks before anything is sent. | `type` | Use it for | Needs an open 24-hour window? | | --- | --- | --- | | [`text`](#text) | Plain text, optionally with a link preview | Yes | | [`template`](#template) | An approved template - the only way to start a conversation | No | | [`image`](#image), [`video`](#video), [`audio`](#audio), [`document`](#document), [`sticker`](#sticker) | Media by public link or media id | Yes | | [`location`](#location) | A map pin | Yes | | [`contacts`](#contacts) | One or more contact cards | Yes | | [`interactive`](#interactive) | Reply buttons, lists, link buttons, Flows, [products](#products-from-your-catalogue) | Yes | | [`reaction`](#reaction) | An emoji reaction to a message | Yes | The 24-hour rule is WhatsApp's: outside it, only a template goes through, and anything else returns [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window). See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). ### Setup for the examples The curl examples are complete on their own. The Node.js and Python examples on this page call a small `send` helper, so each example only shows the message itself: ```bash export AVOX_API_KEY="avx_live_your_key_here" ``` ```js // send.js - Node.js 18 or later (built-in fetch) import { randomUUID } from "node:crypto"; export async function send(message, idempotencyKey = randomUUID()) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": idempotencyKey, }, body: JSON.stringify(message), }); const data = await res.json(); if (!data.ok) { throw new Error(`${res.status} ${data.error.code}: ${data.error.message}`); } return data; } ``` ```python ### send.py import os import uuid import requests def send(message, idempotency_key=None): res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={ "Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": idempotency_key or str(uuid.uuid4()), }, json=message, timeout=30, ) data = res.json() if not data["ok"]: raise RuntimeError(f"{res.status_code} {data['error']['code']}: {data['error']['message']}") return data ``` Every successful send returns the same shape, whatever the type: ```json { "ok": true, "request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9", "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5", "result": { "messaging_product": "whatsapp", "contacts": [{ "input": "15551234567", "wa_id": "15551234567" }], "messages": [{ "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5" }] } } ``` `result` is WhatsApp's own reply, passed back unchanged. `message_id` is the same id as `result.messages[0].id`, lifted to the top level for convenience. A [test key](https://docs.theavoxai.com/avox-api/testing#1-test-mode) accepts exactly the same bodies and runs the same checks on them, so every example here works in test mode too - the answer adds `"test": true` and a `message_id` starting with `wamid.TEST`, and nothing is sent. ### Fields every message can use | Field | Required | Rules | | --- | --- | --- | | `to` | Yes | The recipient's full international number with country code: 7 to 15 digits, not starting with `0`. Spaces, dashes, dots, brackets and one leading `+` are allowed and removed. `+44 7700 900123` and `447700900123` are the same. | | `type` | Yes | One of the eleven types on this page. | | `recipient_type` | No | Only `"individual"`. | | `context.message_id` | No | Reply to a specific message (quotes it in the chat). 1 to 256 characters - use the `id` of a message you received. | | `biz_opaque_callback_data` | No | Your own reference, up to 512 characters. WhatsApp returns it on this message's status updates. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). | Any other top-level field (for example `messaging_product`) is dropped. Avox adds `messaging_product: "whatsapp"` itself. The whole body must be under 64 KB. ### Which number sends the message There's no `from` field. Every API key belongs to exactly one WhatsApp number, the one picked under **WhatsApp number** when the key was created, and every message sent with that key goes out from that number. Rotating a key keeps its number. A `from`, a `phone_number_id` or any other top-level field is dropped like every unknown field, so nothing in the body can move a message to another number or Switchboard. When your Switchboard has more than one WhatsApp number: - **Use one key per sending number.** Create a key for each number you send from, and pick the key in your code by the number the message should come from. One number can have several keys, for example one per server. See [Create a key in Settings](https://docs.theavoxai.com/connections/api-keys#create-a-key-in-settings). - **Every check is about the key's number.** It must be connected and not paused. The 24-hour window is counted on this number alone: a customer who wrote to another of your numbers hasn't opened a window on this one. People marked private or blocked on this number are refused. Templates must be on this number's WhatsApp account ([Templates and your WhatsApp accounts](#templates-and-your-whatsapp-accounts)), and products must be in the catalogue linked to it ([Products from your catalogue](#products-from-your-catalogue)). - **The message shows in the Inbox** in the chat with that person on the key's number. - **To see a key's number,** look at the key in **Settings > API Keys** (its name and the number, partly hidden), or click **Test**: it answers "Working - routes to" and the number's name. Your code can read it too, as `whatsappNumber` from `GET /api/v1/me` - see the [builder reference](https://docs.theavoxai.com/avox-api/reference). The errors that come from the key's number are listed in [Errors about the sending number](#errors-about-the-sending-number). ### Text `text.body` is required: 1 to 4096 characters. Set `text.preview_url` to `true` to show a preview of the first link in the message. ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "text", "text": { "body": "Your order A-1042 has shipped: https://example.com/track/A-1042", "preview_url": true } }' ``` ```js import { send } from "./send.js"; const result = await send({ to: "15551234567", type: "text", text: { body: "Your order A-1042 has shipped: https://example.com/track/A-1042", preview_url: true, }, }); console.log(result.message_id); ``` ```python from send import send result = send({ "to": "15551234567", "type": "text", "text": { "body": "Your order A-1042 has shipped: https://example.com/track/A-1042", "preview_url": True, }, }) print(result["message_id"]) ``` #### Replying to a message Add `context.message_id` with the id of the customer's message to quote it: ```json { "to": "15551234567", "type": "text", "context": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdC" }, "text": { "body": "Yes - your table for 4 is booked for 8pm." } } ``` ### Template Templates are the only messages you can send outside the 24-hour window, and the only way to start a conversation. The template must be approved for the WhatsApp Business Account behind your key's number. Find the exact name and language on the [Templates](https://docs.theavoxai.com/templates) page. | Field | Rules | | --- | --- | | `template.name` | Required. Lowercase letters, numbers and underscores, up to 512 characters. | | `template.language.code` | Required. A code like `en` or `en_US`. It must match a language the template was approved in - `en` and `en_US` are different. | | `template.language.policy` | Optional. Only `"deterministic"`. | | `template.components` | Optional. At most 20 components. Each has a `type` (like `header`, `body`, `button`), and buttons also take `sub_type` and `index` (0 to 20). | | `components[].parameters` | At most 100 per component. Each has a `type` (like `text`, `image`, `currency`, `date_time`, `payload`); a `text` value can be up to 1024 characters. | Parameters fill the template's placeholders in order (`{{1}}`, `{{2}}`, ...). For a template built with named placeholders, add `parameter_name` to each parameter, as WhatsApp's format describes. ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "template", "template": { "name": "order_shipped", "language": { "code": "en_US" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "https://example.com/parcel.jpg" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "Maya" }, { "type": "text", "text": "A-1042" } ] }, { "type": "button", "sub_type": "url", "index": "0", "parameters": [{ "type": "text", "text": "A-1042" }] } ] } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "template", template: { name: "order_shipped", language: { code: "en_US" }, components: [ { type: "header", parameters: [{ type: "image", image: { link: "https://example.com/parcel.jpg" } }], }, { type: "body", parameters: [ { type: "text", text: "Maya" }, { type: "text", text: "A-1042" }, ], }, { type: "button", sub_type: "url", index: "0", parameters: [{ type: "text", text: "A-1042" }], }, ], }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "template", "template": { "name": "order_shipped", "language": {"code": "en_US"}, "components": [ { "type": "header", "parameters": [{"type": "image", "image": {"link": "https://example.com/parcel.jpg"}}], }, { "type": "body", "parameters": [ {"type": "text", "text": "Maya"}, {"type": "text", "text": "A-1042"}, ], }, { "type": "button", "sub_type": "url", "index": "0", "parameters": [{"type": "text", "text": "A-1042"}], }, ], }, }) ``` A template with no placeholders needs only `name` and `language`: ```json { "to": "15551234567", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } } ``` For a quick reply button that should send your server a known value, use a `payload` parameter: ```json { "type": "button", "sub_type": "quick_reply", "index": 0, "parameters": [{ "type": "payload", "payload": "CONFIRM_A-1042" }] } ``` A template Avox knows is on another of your WhatsApp accounts is refused before anything is sent, with [`template_other_account`](https://docs.theavoxai.com/api/errors#template_other_account) (see [Templates and your WhatsApp accounts](#templates-and-your-whatsapp-accounts)). WhatsApp's template errors come back as their own codes: [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) (wrong name or language), [`template_unavailable`](https://docs.theavoxai.com/api/errors#template_unavailable) (paused or disabled), and [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) (parameters don't fit). See [Template approval](https://docs.theavoxai.com/templates/approval) and [Template categories](https://docs.theavoxai.com/whatsapp/template-categories). #### Templates and your WhatsApp accounts Meta keeps templates on a WhatsApp Business Account, not on a number. Numbers on the same account share its templates; a number on another account has its own. A template you send with a key must be approved on the WhatsApp account of the key's number. See [Accounts and numbers](https://docs.theavoxai.com/whatsapp/accounts-and-numbers). Avox checks this before anything is sent. A template on your **Templates** page that's on another of your accounts is refused with [`template_other_account`](https://docs.theavoxai.com/api/errors#template_other_account) (HTTP 422, `details[0].code` `AVX-4853`). A template Avox doesn't know the account of goes on to WhatsApp, which looks it up on the key's number's account only: one made in WhatsApp Manager and not on that account, or an older template whose account was never matched while your numbers are on several accounts, comes back as [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found). To fix it, either: - make the template on this number's account too: in the template wizard, pick this number under **WhatsApp number** ("Templates are kept per WhatsApp account at Meta. Numbers on the same account share them."), or - copy your templates there in one go: open the number on the **Connections** page and, under **Meta access**, click **Copy my templates to this WhatsApp account**. Each copy is a new template named after the original with the last 4 digits of the number added (`order_update` becomes `order_update_4321`), it counts toward your plan's templates, and Meta reviews it before it can be sent, or - send with a key for a number on the template's account. A copy has its own name, so send it by that name once Meta approves it. Inside Avox (automations, broadcasts and smart links) the same rule is checked before anything is sent, as [AVX-4853](https://docs.theavoxai.com/error-codes/avx-4853). If you create templates with the [builder API](https://docs.theavoxai.com/avox-api/templates) and your numbers are on different WhatsApp accounts, name the number with `connectionId`; without it the request is refused with [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload), naming `connectionId`. Flows work the same way: send a Flow made on the key's number's WhatsApp account. Limited-time offer, carousel and multi-product templates also need a plan that includes them. Sent by name on a plan without them, they're refused with [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) and `details[0].code` `rich_templates`. ### Media messages `image`, `video`, `audio`, `document` and `sticker` all point at the file one of two ways - give **exactly one**: - `link` - a public `https://` URL, under 2048 characters. WhatsApp downloads the file from there, so it must be reachable without signing in. - `id` - a WhatsApp media id that already exists for this number (letters, numbers, `-` and `_`, up to 128 characters). Sending both, or neither, returns [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) with "Give exactly one of id or link". If WhatsApp can't download a `link`, the send is refused with [`meta_rejected`](https://docs.theavoxai.com/api/errors#meta_rejected). | Type | Extra fields | | --- | --- | | `image` | `caption` up to 1024 characters | | `video` | `caption` up to 1024 characters | | `document` | `caption` up to 1024 characters, `filename` up to 240 characters | | `audio` | None | | `sticker` | None | WhatsApp also sets its own rules for file types and sizes per media type, and checks them when it downloads the file. #### Image ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "image", "image": { "link": "https://example.com/receipts/A-1042.png", "caption": "Your receipt for order A-1042" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "image", image: { link: "https://example.com/receipts/A-1042.png", caption: "Your receipt for order A-1042", }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "image", "image": { "link": "https://example.com/receipts/A-1042.png", "caption": "Your receipt for order A-1042", }, }) ``` #### Video ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "video", "video": { "link": "https://example.com/videos/setup-guide.mp4", "caption": "A 60-second setup guide" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "video", video: { link: "https://example.com/videos/setup-guide.mp4", caption: "A 60-second setup guide" }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "video", "video": {"link": "https://example.com/videos/setup-guide.mp4", "caption": "A 60-second setup guide"}, }) ``` #### Audio ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "audio", "audio": { "link": "https://example.com/audio/welcome.mp3" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "audio", audio: { link: "https://example.com/audio/welcome.mp3" }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "audio", "audio": {"link": "https://example.com/audio/welcome.mp3"}, }) ``` #### Document ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "document", "document": { "link": "https://example.com/invoices/INV-2041.pdf", "filename": "INV-2041.pdf", "caption": "Your invoice for September" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "document", document: { link: "https://example.com/invoices/INV-2041.pdf", filename: "INV-2041.pdf", caption: "Your invoice for September", }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "document", "document": { "link": "https://example.com/invoices/INV-2041.pdf", "filename": "INV-2041.pdf", "caption": "Your invoice for September", }, }) ``` #### Sticker WhatsApp stickers are WebP images. ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "sticker", "sticker": { "link": "https://example.com/stickers/thanks.webp" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "sticker", sticker: { link: "https://example.com/stickers/thanks.webp" }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "sticker", "sticker": {"link": "https://example.com/stickers/thanks.webp"}, }) ``` ### Location | Field | Rules | | --- | --- | | `location.latitude` | Required number, -90 to 90. | | `location.longitude` | Required number, -180 to 180. | | `location.name` | Optional, up to 1000 characters. | | `location.address` | Optional, up to 1000 characters. | ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "location", "location": { "latitude": 51.5072, "longitude": -0.1276, "name": "Acme Store - Central", "address": "1 Example Street, London" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "location", location: { latitude: 51.5072, longitude: -0.1276, name: "Acme Store - Central", address: "1 Example Street, London", }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "location", "location": { "latitude": 51.5072, "longitude": -0.1276, "name": "Acme Store - Central", "address": "1 Example Street, London", }, }) ``` ### Contacts `contacts` is an array of 1 to 20 contact cards. Each card needs `name.formatted_name` (1 to 1000 characters). Every other field WhatsApp's contact format supports (`phones`, `emails`, `org`, `urls`, `addresses`, the rest of `name`) is passed through. ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "contacts", "contacts": [ { "name": { "formatted_name": "Acme Support", "first_name": "Acme" }, "phones": [{ "phone": "+15550001111", "type": "WORK" }], "emails": [{ "email": "help@example.com", "type": "WORK" }] } ] }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "contacts", contacts: [ { name: { formatted_name: "Acme Support", first_name: "Acme" }, phones: [{ phone: "+15550001111", type: "WORK" }], emails: [{ email: "help@example.com", type: "WORK" }], }, ], }); ``` ```python from send import send send({ "to": "15551234567", "type": "contacts", "contacts": [ { "name": {"formatted_name": "Acme Support", "first_name": "Acme"}, "phones": [{"phone": "+15550001111", "type": "WORK"}], "emails": [{"email": "help@example.com", "type": "WORK"}], } ], }) ``` ### Interactive Interactive messages carry buttons, lists, link buttons or a Flow. Avox checks the shared parts; WhatsApp checks the rest (such as how many buttons or rows each kind allows) and refuses anything outside its rules with [`meta_rejected`](https://docs.theavoxai.com/api/errors#meta_rejected). | Field | Rules | | --- | --- | | `interactive.type` | Required. Lowercase letters and underscores, like `button`, `list`, `cta_url` or `flow`. | | `interactive.header` | Optional. Needs a `type` (like `text`, `image`, `video`, `document`). | | `interactive.body.text` | Up to 1024 characters. | | `interactive.footer.text` | Up to 60 characters. | | `interactive.action` | An object in WhatsApp's format for that kind - passed through as sent. | #### Reply buttons When the customer taps a button, its `id` comes back in the reply. With message forwarding on, your server gets it as `data.interactive.id` in a `message.received` event. See [Interactive replies](https://docs.theavoxai.com/avox-api/webhooks#whats-sent). ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "interactive", "interactive": { "type": "button", "body": { "text": "Is Friday at 3pm still good for delivery?" }, "footer": { "text": "Acme Deliveries" }, "action": { "buttons": [ { "type": "reply", "reply": { "id": "slot_keep", "title": "Yes, Friday" } }, { "type": "reply", "reply": { "id": "slot_change", "title": "Pick another day" } } ] } } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "interactive", interactive: { type: "button", body: { text: "Is Friday at 3pm still good for delivery?" }, footer: { text: "Acme Deliveries" }, action: { buttons: [ { type: "reply", reply: { id: "slot_keep", title: "Yes, Friday" } }, { type: "reply", reply: { id: "slot_change", title: "Pick another day" } }, ], }, }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "interactive", "interactive": { "type": "button", "body": {"text": "Is Friday at 3pm still good for delivery?"}, "footer": {"text": "Acme Deliveries"}, "action": { "buttons": [ {"type": "reply", "reply": {"id": "slot_keep", "title": "Yes, Friday"}}, {"type": "reply", "reply": {"id": "slot_change", "title": "Pick another day"}}, ] }, }, }) ``` #### List ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "interactive", "interactive": { "type": "list", "header": { "type": "text", "text": "Book a visit" }, "body": { "text": "Choose a time that suits you." }, "action": { "button": "See times", "sections": [ { "title": "Tomorrow", "rows": [ { "id": "t_0900", "title": "9:00", "description": "Morning" }, { "id": "t_1400", "title": "14:00", "description": "Afternoon" } ] } ] } } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "interactive", interactive: { type: "list", header: { type: "text", text: "Book a visit" }, body: { text: "Choose a time that suits you." }, action: { button: "See times", sections: [ { title: "Tomorrow", rows: [ { id: "t_0900", title: "9:00", description: "Morning" }, { id: "t_1400", title: "14:00", description: "Afternoon" }, ], }, ], }, }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "interactive", "interactive": { "type": "list", "header": {"type": "text", "text": "Book a visit"}, "body": {"text": "Choose a time that suits you."}, "action": { "button": "See times", "sections": [ { "title": "Tomorrow", "rows": [ {"id": "t_0900", "title": "9:00", "description": "Morning"}, {"id": "t_1400", "title": "14:00", "description": "Afternoon"}, ], } ], }, }, }) ``` #### Link button ```json { "to": "15551234567", "type": "interactive", "interactive": { "type": "cta_url", "body": { "text": "Your September statement is ready." }, "action": { "name": "cta_url", "parameters": { "display_text": "View statement", "url": "https://example.com/statements/2026-09" } } } } ``` #### Flow Opens a published WhatsApp Flow inside the chat. Get the Flow's id from the [Flows](https://docs.theavoxai.com/flows) page. ```json { "to": "15551234567", "type": "interactive", "interactive": { "type": "flow", "body": { "text": "Tell us how your visit went - it takes a minute." }, "action": { "name": "flow", "parameters": { "flow_message_version": "3", "flow_id": "1234567890", "flow_cta": "Start survey", "flow_token": "survey-A-1042", "flow_action": "navigate", "flow_action_payload": { "screen": "WELCOME" } } } } } ``` See [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows) for how Flows work on Meta's side. #### Products from your catalogue Three interactive types send products from the catalogue linked to the key's number. Set the catalogue up first on the [Shop](https://docs.theavoxai.com/shop) page. Like every interactive message, they need an open 24-hour window. | `interactive.type` | Sends | Fields | | --- | --- | --- | | `product` | One product | Required: `action.catalog_id` and `action.product_retailer_id` (up to 100 characters). Optional: `body.text` (up to 1024 characters) and `footer.text` (up to 60). | | `product_list` | Up to 30 products in sections | Required: a text `header` (`type` `"text"`, `text` up to 60 characters), `body.text` (up to 1024), `action.catalog_id` and `action.sections`. Each of the 1 to 10 sections has a `title` (up to 24 characters) and `product_items`, each with a `product_retailer_id`. Up to 30 products in all. Optional: `footer.text`. | | `catalog_message` | A button that opens the whole catalogue | Required: `body.text` (up to 1024 characters). Optional: `footer.text` and `action.parameters.thumbnail_product_retailer_id`, the product whose picture shows. | `catalog_id` is the catalogue id shown under the catalogue's name on the **Shop** page. A product's `product_retailer_id` is its **Content ID** on **Shop > Products**. ```json { "to": "15551234567", "type": "interactive", "interactive": { "type": "product_list", "header": { "type": "text", "text": "Our bestsellers" }, "body": { "text": "Three picks we think you'll like." }, "action": { "catalog_id": "1234567890", "sections": [ { "title": "Kurtas", "product_items": [ { "product_retailer_id": "SKU-1042" }, { "product_retailer_id": "SKU-1043" }, { "product_retailer_id": "SKU-1044" } ] } ] } } } ``` One product, and the whole catalogue: ```json { "to": "15551234567", "type": "interactive", "interactive": { "type": "product", "body": { "text": "The one you asked about." }, "action": { "catalog_id": "1234567890", "product_retailer_id": "SKU-1042" } } } ``` ```json { "to": "15551234567", "type": "interactive", "interactive": { "type": "catalog_message", "body": { "text": "Browse everything we sell, right here in WhatsApp." }, "action": { "name": "catalog_message", "parameters": { "thumbnail_product_retailer_id": "SKU-1042" } } } } ``` What's checked: - **The catalogue must be the one linked to the key's number.** Another `catalog_id` is refused with [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload), `path` `interactive.action.catalog_id` ("Use the catalogue linked to this key's WhatsApp number"). Until Avox has read the number's catalogue, WhatsApp itself refuses a catalogue that isn't connected to the number's WhatsApp account. Numbers on the same WhatsApp account share one catalogue. - **The products must be in that catalogue.** WhatsApp refuses a product it can't find there, and you get [`meta_rejected`](https://docs.theavoxai.com/api/errors#meta_rejected) with WhatsApp's own code in `meta_code`. - **The number's shop must be within your plan.** When you have more shops than your plan allows, only the numbers you connected first send product messages. The others are refused with [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) and `details[0].code` `shops`. A number counts as a shop while its WhatsApp account has a catalogue linked: to free a place, disconnect the catalogue in WhatsApp Manager on an account you don't sell from and press **Refresh** on Shop, remove a number you don't use, or change your plan. See [Shop plan limits](https://docs.theavoxai.com/shop#plan-limits). ### Reaction | Field | Rules | | --- | --- | | `reaction.message_id` | Required, 1 to 256 characters - the id of the message you're reacting to. | | `reaction.emoji` | Up to 16 characters. Send an empty string to remove your reaction. | ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "15551234567", "type": "reaction", "reaction": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdC", "emoji": "👍" } }' ``` ```js import { send } from "./send.js"; await send({ to: "15551234567", type: "reaction", reaction: { message_id: "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdC", emoji: "\u{1F44D}" }, }); ``` ```python from send import send send({ "to": "15551234567", "type": "reaction", "reaction": {"message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdC", "emoji": "\U0001F44D"}, }) ``` ### When a body is refused Avox checks the body in this order and stops at the first problem: 1. `to` must be a valid number - otherwise [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient). 2. `type` must be present - otherwise [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) with `path` `type`. 3. `type` must be one of the eleven types - otherwise [`unsupported_message_type`](https://docs.theavoxai.com/api/errors#unsupported_message_type). 4. Every field must fit the rules above - otherwise [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload). `invalid_payload` lists up to 10 problems in `details`. Each has a `path` (the field, with dots between levels) and a `message`. Your submitted values are never echoed back: ```json { "ok": false, "error": { "code": "invalid_payload", "message": "The request body isn't valid. The details list says which fields to fix.", "docs_url": "https://docs.theavoxai.com/api/errors#invalid_payload", "request_id": "req_0c7d1e4b9a2f63815e7d0a42", "details": [ { "path": "text.body", "message": "Text messages must be at most 4096 characters" } ] } } ``` ### Errors about the sending number These errors come from the key's number, its WhatsApp account or its catalogue. Each code is explained in full on [API errors](https://docs.theavoxai.com/api/errors). | Code | Status | When | What to do | | --- | --- | --- | --- | | [`connection_not_found`](https://docs.theavoxai.com/api/errors#connection_not_found) | `404` | The key's number was removed. | Create a key for one of your current numbers. | | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | `409` | The key's number is paused. | Resume it on [Connections](https://docs.theavoxai.com/connections). | | [`connection_inactive`](https://docs.theavoxai.com/api/errors#connection_inactive) | `409` | The key's number isn't connected right now. | Check it on [Connections](https://docs.theavoxai.com/connections). | | [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready) | `409` | The key's number needs to be reconnected. | Reconnect it from [Connections](https://docs.theavoxai.com/connections). | | [`switchboard_paused`](https://docs.theavoxai.com/api/errors#switchboard_paused) | `409` | The key's Switchboard is paused. | An Admin resumes it in **Settings > Switchboard**. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | `422` | The person hasn't messaged the key's number in the last 24 hours. A message to another of your numbers doesn't count. | Send a template, or send from the number they wrote to. | | [`recipient_not_allowed`](https://docs.theavoxai.com/api/errors#recipient_not_allowed) | `403` | The person is marked private on the key's number. | Don't send to them from this number. | | [`recipient_blocked`](https://docs.theavoxai.com/api/errors#recipient_blocked) | `409` | You blocked the person on the key's number. | Unblock them in the dashboard first. | | [`address_not_available`](https://docs.theavoxai.com/api/errors#address_not_available) | `422` | An address request from a key whose number isn't Indian, or to a customer who isn't. | Ask for the address another way. | | [`template_other_account`](https://docs.theavoxai.com/api/errors#template_other_account) | `422` | The template is on another of your WhatsApp accounts, not the key's number's. | Copy it to this number's account, or use a key for a number on the template's account. See [Templates and your WhatsApp accounts](#templates-and-your-whatsapp-accounts). | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | `422` | A wrong name or language, or a template Avox doesn't know the account of that isn't on the key's number's WhatsApp account. | See [Templates and your WhatsApp accounts](#templates-and-your-whatsapp-accounts). | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | `400` | With `path` `interactive.action.catalog_id`: a product message names another catalogue. | Use the catalogue linked to the key's number. | | [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) | `403` | With `details[0].code` `shops`: the key's number's shop is past your plan's shops. With `rich_templates`: an offer, carousel or multi-product template on a plan without them. | See [Shop plan limits](https://docs.theavoxai.com/shop#plan-limits) and [Plans](https://docs.theavoxai.com/plans). | A [test key](https://docs.theavoxai.com/avox-api/testing#1-test-mode) doesn't check the 24-hour window, private numbers, blocks or address requests, and never reaches WhatsApp, so WhatsApp's own answers (like `template_not_found`) come only from the [special test numbers](https://docs.theavoxai.com/avox-api/testing#special-test-numbers). The checks on the key's number, the Switchboard, the catalogue, the plan and a template's WhatsApp account run for test keys too. --- ## Idempotency URL: https://docs.theavoxai.com/avox-api/idempotency Section: Avox API Networks fail. A request can time out after WhatsApp has already accepted the message, and a plain retry would send it a second time. The `Idempotency-Key` header stops that: retry with the same key and the same body, and Avox returns the first result instead of sending again. ### How to use it Generate a new value for each message you intend to send - a UUID is ideal, or an id from your own system such as `order-A-1042-shipped`. `Idempotency-Key: 6f1d2c1e-8a4b-4c7e-9a51-3b0f2d9e7c10` Save the key next to the message in your queue or database, so every retry of that message reuses it. If a request times out or fails with a retryable error, send it again unchanged. ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-A-1042-shipped" \ -d '{"to":"15551234567","type":"template","template":{"name":"order_shipped","language":{"code":"en_US"}}}' ``` ```js // The key comes from your own job record, so a retried job reuses it. async function sendShippedNotice(order) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": `order-${order.id}-shipped`, }, body: JSON.stringify({ to: order.phone, type: "template", template: { name: "order_shipped", language: { code: "en_US" } }, }), }); const replayed = res.headers.get("Idempotent-Replayed") === "true"; return { status: res.status, replayed, body: await res.json() }; } ``` ```python import os import requests def send_shipped_notice(order): res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={ "Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": f"order-{order['id']}-shipped", }, json={ "to": order["phone"], "type": "template", "template": {"name": "order_shipped", "language": {"code": "en_US"}}, }, timeout=30, ) replayed = res.headers.get("Idempotent-Replayed") == "true" return res.status_code, replayed, res.json() ``` The header is optional. Without it, every request is treated as new. It's strongly recommended for anything sent from a queue, a scheduled job, a webhook handler, or any code that retries on its own. ### The rules | Rule | Detail | | --- | --- | | Header name | `Idempotency-Key` | | Format | 1 to 255 visible ASCII characters, no spaces. Anything else returns [`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key). | | Scope | Per API key. The same value used with two different keys counts as two different keys, so separate keys (and separate customers) can never collide. A rotated key's replacement is a different key too. (The builder API is different: there a key and its rotations share their keys - see [Builder API creates and updates](#builder-api-creates-and-updates).) | | Window | A finished result is kept for 24 hours. After that the same value counts as new. | | "Same body" | Compared after Avox reads the message. Key order, spacing, and the format of `to` (`+1 555-123-4567` vs `15551234567`) don't matter; fields Avox drops don't count. | ### What you get back | Situation | Response | | --- | --- | | First time Avox sees the key | Processed normally. | | Same key, same body, first request finished | The first request's status and body, unchanged, with the header `Idempotent-Replayed: true`. Nothing is sent again. | | Same key, same body, first request still running | `409` [`idempotency_in_progress`](https://docs.theavoxai.com/api/errors#idempotency_in_progress) with a short `Retry-After`. Wait, then retry with the same key. | | Same key, different body | `409` [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict). Nothing is sent. | A replayed body still holds the **first** request's `request_id` and `message_id`. The `X-Request-Id` header on the replay is new, so you can tell the two calls apart in your logs. In the dashboard, every replay is listed as its own request: - On the **API logs** page, a replayed success shows **replayed** next to its status, and its **Request details** say "Replayed from an earlier request with the same Idempotency-Key - nothing was sent again." - In a key's **Recent requests** in **Settings > API Keys**, it shows as **Replayed**. - A replayed error shows its original error code in both places. Test keys follow exactly the same rules, so you can check your retry logic in [test mode](https://docs.theavoxai.com/avox-api/testing#1-test-mode) before going live. ### Which results are kept Not every outcome is stored against the key. This decides what a retry does. | First outcome | Stored? | What a retry with the same key does | | --- | --- | --- | | Sent (`200`) | Yes | Returns the same success. No second message. | | Refused by WhatsApp (`422`, or `429` [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited)) | Yes | Returns the same error. To send a corrected message, use a **new** key. | | [`meta_unavailable`](https://docs.theavoxai.com/api/errors#meta_unavailable) (`502`) | No - the key is freed | Runs as a new request and **will send**. See the warning below. | | [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready) | No - the key is freed | Runs as a new request once the number is reconnected. | | Refused before the idempotency check (bad key, limits, invalid body, and so on) | No | Runs as a new request, so you can fix the problem and retry with the same key. | | [`internal_error`](https://docs.theavoxai.com/api/errors#internal_error) (`500`) | No | May return `idempotency_in_progress` for a couple of minutes, then runs as new. | `meta_unavailable` means WhatsApp didn't answer in time, so nobody knows whether the message went out. Avox frees the key so you decide what to do. If a duplicate would matter (a payment reminder, a one-time code), check [Logs](https://docs.theavoxai.com/logs) for a status update on the message, or ask the customer, before sending again. ### Builder API creates and updates The [builder API](https://docs.theavoxai.com/avox-api/builder) uses the same header for every create: tables, rows, row deletes, CSV imports, Flows, templates and automations. Other calls ignore it. A UUID per new item works well. | Rule | Detail | | --- | --- | | Format | 1 to 255 visible characters, no spaces ([`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key) otherwise). | | Scope | Per key family: a key and every key it was rotated into share them, so a retry with the rotated key still finds the first answer. | | Window | Kept for 24 hours. | | "Same request" | The same method, address, query and body. | | Same key, same request, finished | The first answer, unchanged, with `Idempotent-Replayed: true`. Nothing is made twice. | | Same key, different request | `409` [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict). Nothing is done. | | Same key while the first is still running | `409` [`idempotency_in_progress`](https://docs.theavoxai.com/api/errors#idempotency_in_progress) with `Retry-After: 2`. Wait and retry with the same key. A request that never finished frees its key after 2 minutes. | Which answers are kept: a success and a definite refusal (a `4xx` such as invalid input or a plan limit) are kept, so the same retry gets the same answer. A `5xx`, a `429` (including [`builder_quota_exceeded`](https://docs.theavoxai.com/api/errors#builder_quota_exceeded)) and anything refused before the check (the key, its permissions, a test key changing something) are not, so a retry with the same key runs again. **Updates use versions instead.** Every table, Flow, template, automation and row answer carries an `ETag` header (and an `etag` field). Send it back as `If-Match` when you change the item. If anyone changed it since you read it, the change is refused with `412` [`version_conflict`](https://docs.theavoxai.com/api/errors#version_conflict) and nothing is written: read it again and retry. Row changes can send each row's `updatedAt` instead (`rows[].updatedAt`); if any of them changed, the whole request is refused. See [Builder API](https://docs.theavoxai.com/avox-api/builder#versions-etag-and-if-match), [API for AI assistants](https://docs.theavoxai.com/avox-api/ai-assistants) and the [reference](https://docs.theavoxai.com/avox-api/reference). ### Common mistakes - **One fixed key for everything.** The second message gets `idempotency_conflict`. Make a new key per message. - **A new key on every retry.** Then the header does nothing. Generate the key once, when the message is created, and reuse it. - **Changing the body on retry.** Adding a timestamp or a random value to the body makes it a different message, which conflicts. Keep retries byte-for-byte the same message. - **Reusing a key after fixing a WhatsApp refusal.** The refusal is stored for 24 hours. Use a new key for the corrected message. - **Switching API keys mid-retry.** For sends, idempotency keys belong to one API key. After a [rotation](https://docs.theavoxai.com/avox-api/authentication#rotating-a-key), a retry sent with the new API key runs as a new request, so let pending retries finish on the old key first. (Builder API creates are shared across a rotation.) - **Retrying a builder update without reading again.** A `version_conflict` means the item changed. Read it, then retry with its new `ETag`. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits) for which errors to retry and how long to wait. --- ## Rate limits URL: https://docs.theavoxai.com/avox-api/rate-limits Section: Avox API The Avox API protects every account - and your WhatsApp number's standing with Meta - by limiting how fast messages can be sent. When you go over a limit you get a `429` response with a `Retry-After` header that tells you exactly how many seconds to wait. ### The limits | Limit | What it counts | Error when you hit it | | --- | --- | --- | | Per key | Requests made with one API key, over a short rolling window. | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | | Per account | Requests made with all of a Switchboard's keys together. | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | | Per address | Requests from one IP address, plus a tighter limit on repeated wrong keys from one address. | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | | Key per-minute rule | Set on some keys by Avox support, for example at your request. | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | | Key daily allowance | Set on some keys by Avox support. Counts requests per UTC day and resets at midnight UTC. | [`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded) | | WhatsApp's own limits | How fast Meta lets this number send, and how often you can message one person. | [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) | The limits are generous for normal transactional traffic. They matter most for bulk sends - a loop that fires thousands of requests at once will hit them. Spread large sends out over time instead. Every request counts towards these limits, including ones that fail validation, so fix failing requests rather than retrying them in a tight loop. Your plan doesn't cap API sends - API messages don't use automation credits. WhatsApp's own messaging limits still apply to every message your number starts. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). Calls to the [builder API](https://docs.theavoxai.com/avox-api/builder) do have a daily cap per plan: see [Daily builder limits](#daily-builder-limits). ### Daily builder limits The [builder API](https://docs.theavoxai.com/avox-api/builder) (`/api/v1`: tables, rows, Flows, templates, automations, `/me` and `/catalog`) has a daily allowance on your plan, for the whole Switchboard (every key together), counted per UTC day. Reads (lists, gets, checks) and writes (creates, changes, deletes) are counted apart: | Plan | Reads a day | Writes a day | | --- | --- | --- | | Starter | 2,000 | 200 | | Growth | 10,000 | 1,000 | | Business | 50,000 | 5,000 | - **Every builder answer says where you are**, in two headers for that kind of call: `Avox-Daily-Limit` (today's allowance) and `Avox-Daily-Remaining` (what's left). `GET /api/v1/me` shows both kinds with what's used. - **Over the allowance**, a call answers `429` [`builder_quota_exceeded`](https://docs.theavoxai.com/api/errors#builder_quota_exceeded) with a `Retry-After` that counts down to midnight UTC, and `details` saying how many were used, for example "200 of 200 write calls used today (UTC)". Nothing is done. Move to a bigger plan on [Billing](https://docs.theavoxai.com/billing) for more. - **Sending messages doesn't count**, and builder calls don't use your send limits. - **Test keys count too**: their reads and checks use the same daily allowance. - **Short bursts** are braked separately, per key (reads and writes apart), per Switchboard, and more tightly for calls that reach WhatsApp (like submitting a template or publishing a Flow): [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) with a `Retry-After` of a minute or less. - **Your plan's other limits** (tables, rows per table, Flows, templates, automations) apply exactly as in the dashboard: a call that would go over is refused whole with [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached). Each key's builder use over the last 30 days, and today's use against these caps, is in its **Usage** panel in **Settings > API Keys** (see [Key usage](https://docs.theavoxai.com/connections/api-keys#key-usage)). ### Test keys [Test keys](https://docs.theavoxai.com/avox-api/testing#1-test-mode) (`avx_test_...`) are counted separately from live keys, so a test suite never uses up your live allowance, and live traffic never slows your tests: | Limit | What it counts | Error when you hit it | | --- | --- | --- | | Per test key | Requests made with one test key, over a short rolling window. | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | | All of a Switchboard's test keys together | Requests made with every test key in the Switchboard, over a short rolling window. | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | | Daily test allowance | Requests made with every test key in the Switchboard per UTC day. Resets at midnight UTC. | [`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded) | The test limits are set for a normal test suite. A loop that runs away will hit them, which keeps a bug from flooding your API logs. - Test requests don't count toward any live key's daily allowance or your plan's usage. - The per-address limits and any per-minute or daily rule Avox support set on that key still apply. - WhatsApp's own limits never apply - a test send never reaches WhatsApp. To practise handling them, send to the [special test number](https://docs.theavoxai.com/avox-api/testing#special-test-numbers) `+15550000005`, which returns `meta_rate_limited` with a `Retry-After` header. ### Reading a 429 ``` HTTP/1.1 429 Too Many Requests Retry-After: 23 X-Request-Id: req_7a1e0c94d2b35f8e61c0a9d4 Content-Type: application/json ``` ```json { "ok": false, "error": { "code": "rate_limited", "message": "Too many requests. Wait the number of seconds in the Retry-After header, then try again.", "docs_url": "https://docs.theavoxai.com/api/errors#rate_limited", "request_id": "req_7a1e0c94d2b35f8e61c0a9d4" } } ``` `Retry-After` is always a whole number of seconds, at least `1`. For [`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded) it counts down to midnight UTC. ### Which errors to retry | Retry? | Codes | How | | --- | --- | --- | | Yes, after `Retry-After` | `rate_limited`, `idempotency_in_progress` | Wait the header's seconds, then retry with the same `Idempotency-Key`. | | Yes, after `Retry-After`, with a new key | `meta_rate_limited` | WhatsApp refused this attempt and the refusal is kept against its `Idempotency-Key`, so retry with a new one. Nothing was sent. | | Yes, after a pause | `internal_error`, network errors and timeouts | Exponential backoff (below), same `Idempotency-Key`. | | Carefully | `meta_unavailable` | The message may already have been sent. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). | | Next day | `quota_exceeded` | Wait for `Retry-After` (midnight UTC), or ask [Support](https://docs.theavoxai.com/support) about a higher allowance. | | Next day | `builder_quota_exceeded` | Wait for `Retry-After` (midnight UTC), or move to a bigger plan. Watch `Avox-Daily-Remaining` to slow down before you get there. | | Yes, after reading again | `version_conflict` (`412`, builder API) | Someone changed it since you read it. Read it again, then retry with the new `ETag`. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency#builder-api-creates-and-updates). | | No - fix first | Everything else (`400`, `401`, `402`, `403`, `404`, `409` conflicts, `413`, `422`) | The same request will fail the same way. Read the code on [API errors](https://docs.theavoxai.com/api/errors). | ### A safe retry loop Use exponential backoff with jitter: wait longer after each failure, add a little randomness so many workers don't retry in lockstep, honour `Retry-After` whenever it's present, and give up after a few attempts. ```bash ### curl retries 429 and 5xx responses itself, honouring Retry-After. ### That includes 502 meta_unavailable, so use this only where a rare duplicate is acceptable. curl -X POST https://api.theavoxai.com/api/messages/send \ --retry 5 --retry-max-time 120 \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 9b4c3c4e-2f0a-4d4e-8f6b-0f1d6a1c2e33" \ -d '{"to":"15551234567","type":"text","text":{"body":"Your code is ready."}}' ``` ```js import { randomUUID } from "node:crypto"; const RETRYABLE = new Set(["rate_limited", "meta_rate_limited", "idempotency_in_progress", "internal_error"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); export async function sendWithRetry(message, { attempts = 5 } = {}) { let idempotencyKey = randomUUID(); // one key for every attempt of this message for (let attempt = 1; attempt <= attempts; attempt++) { let res; try { res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": idempotencyKey, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }); } catch (networkError) { if (attempt === attempts) throw networkError; await sleep(backoff(attempt)); continue; } const data = await res.json(); if (data.ok) return data; if (!RETRYABLE.has(data.error.code) || attempt === attempts) { throw new Error(`${data.error.code} (${data.error.request_id}): ${data.error.message}`); } // WhatsApp's refusal is stored against the key, so this one needs a fresh key. if (data.error.code === "meta_rate_limited") idempotencyKey = randomUUID(); const retryAfter = Number(res.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoff(attempt)); } } function backoff(attempt) { const base = Math.min(30_000, 1_000 * 2 ** (attempt - 1)); // 1s, 2s, 4s ... up to 30s return base / 2 + Math.random() * (base / 2); } ``` ```python import os import random import time import uuid import requests RETRYABLE = {"rate_limited", "meta_rate_limited", "idempotency_in_progress", "internal_error"} def backoff(attempt): base = min(30.0, 2 ** (attempt - 1)) # 1s, 2s, 4s ... up to 30s return base / 2 + random.random() * base / 2 def send_with_retry(message, attempts=5): idempotency_key = str(uuid.uuid4()) # one key for every attempt of this message for attempt in range(1, attempts + 1): try: res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={ "Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": idempotency_key, }, json=message, timeout=30, ) except requests.RequestException: if attempt == attempts: raise time.sleep(backoff(attempt)) continue data = res.json() if data["ok"]: return data error = data["error"] if error["code"] not in RETRYABLE or attempt == attempts: raise RuntimeError(f"{error['code']} ({error['request_id']}): {error['message']}") # WhatsApp's refusal is stored against the key, so this one needs a fresh key. if error["code"] == "meta_rate_limited": idempotency_key = str(uuid.uuid4()) retry_after = int(res.headers.get("Retry-After", "0") or 0) time.sleep(retry_after if retry_after > 0 else backoff(attempt)) ``` `meta_unavailable` is left out of the retryable list on purpose - decide case by case, because the first attempt may already have reached the customer. ### Sending in bulk - **Queue, don't burst.** Put messages on a queue and let a small, fixed number of workers send from it. - **Share the limit sensibly.** All of a Switchboard's keys share one account limit, so one busy integration can slow another. Give heavy jobs their own pacing. - **Watch WhatsApp's side too.** Marketing templates to many new people count against your number's messaging limit, and a falling quality rating can lower it. Check [Health](https://docs.theavoxai.com/health) before and during a large send. - **Use the warnings.** **Settings > API Keys** shows **Hit its per-minute limit** or **Hit its daily limit** on a key that reached one of its own rules. ### See which requests were limited Every limited request is on the **API logs** page in the dashboard, builder API calls included (a call over the daily builder allowance shows `builder_quota_exceeded` in its row). Pick `rate_limited`, `quota_exceeded` or `meta_rate_limited` in the error code filter (**Any error code**) and, if you like, one key or one date range, to see when and how often it happened. **Export CSV** downloads the same list. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). The per-address limits are checked before Avox looks up the key, so a request refused by one of them isn't tied to your account and doesn't appear there. Your own logs of the `429` and its `X-Request-Id` are the record for those. --- ## Webhooks URL: https://docs.theavoxai.com/avox-api/webhooks Section: Avox API The Avox API answers each send right away with a `message_id`. What happens after that - the customer replying, the message being delivered or read - reaches you in two ways: - **Message forwarding** POSTs each new incoming customer message to your own server, signed by Avox. See [Receive messages](#receive-messages) below. - **Inside Avox**, every event Meta sends for your number is on [Logs](https://docs.theavoxai.com/logs), and conversations are in the [Inbox](https://docs.theavoxai.com/inbox). ### Where to see them | What | Where | | --- | --- | | New messages from customers, as they arrive | Your own endpoint, with [message forwarding](https://docs.theavoxai.com/connections/webhook-override) on - and the [Inbox](https://docs.theavoxai.com/inbox) | | Every event Meta sent, with its full payload - including the `sent`, `delivered`, `read` and `failed` statuses of messages you sent with the API | [Logs](https://docs.theavoxai.com/logs) - open an event to see its JSON | | The people who wrote to you | [Contacts](https://docs.theavoxai.com/contacts) | | Each API request's own result | The **Sent** tab of the **API logs** page, and the key's **Recent requests** in **Settings > API Keys** | | Each message forwarded to your endpoint, across all your numbers | The **Received** tab of the **API logs** page - see [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs) | Message forwarding only sends **incoming customer messages**. Delivery statuses, calls, messages your team sends, chat history imports and template or account events are not forwarded - read statuses on [Logs](https://docs.theavoxai.com/logs). ### Receive messages Turn on **Message forwarding** on the connection's page (an Admin does this - see [Message forwarding](https://docs.theavoxai.com/connections/webhook-override)). From then on, Avox sends one `POST` to your **Endpoint URL** for each new message a customer sends to that number. #### What's sent One event type, `message.received`. The body is JSON: ```json { "id": "evt_5f0c9a7e1b2d4c6e8f00a1b2c3d4e5f6", "type": "message.received", "api_version": "2026-10-01", "created_at": "2026-10-10T10:00:02.000Z", "connection_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d", "data": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdGRDA2QzQ1MTk1NkU2NDhCRgA=", "from": "+15551234567", "contact_name": "Maria Lopez", "timestamp": "2026-10-10T10:00:00.000Z", "type": "text", "text": { "body": "Hi! Is my order on the way?" } } } ``` | Field | Meaning | | --- | --- | | `id` | The event id, `evt_` + 32 characters. The same for every retry and resend of this message - use it to skip repeats. Also in the `Avox-Event-Id` header. | | `type` | Always `message.received`. | | `api_version` | `2026-10-01`. A breaking change to this payload would come with a new version. | | `created_at` | When Avox created the event (ISO 8601, UTC). | | `connection_id` | The Avox connection (WhatsApp number) the message was sent to. | | `test` | Only on test events, and then always `true`. | | `data.message_id` | WhatsApp's message id (`wamid...`). Pass it as `context.message_id` to reply to this message. | | `data.from` | The customer's number in E.164 format, with a leading `+`. | | `data.contact_name` | The customer's WhatsApp profile name, or `null`. | | `data.timestamp` | When the customer sent it (ISO 8601, UTC). | | `data.type` | One of `text`, `image`, `audio`, `video`, `document`, `sticker`, `location`, `contacts`, `interactive`, `button`, `reaction`. | | `data.context` | Only when the customer replied to (quoted) a message: `{ "message_id": "wamid..." }`. | The rest of `data` depends on the type. Nothing else is ever included - no access tokens, no Meta account ids, no other customers' details, and not Meta's raw payload. Media comes as Meta's media id and type only, not the file. **Text** ```json "type": "text", "text": { "body": "Hi! Is my order on the way?" } ``` **Image, video, audio, sticker and document** ```json "type": "image", "media": { "id": "1203949581720283", "mime_type": "image/jpeg", "caption": "My receipt" } ``` ```json "type": "document", "media": { "id": "820493119374620", "mime_type": "application/pdf", "caption": "Invoice", "filename": "invoice-1042.pdf" } ``` `caption` is only there when the customer added one; `filename` only on documents. `audio`, `video` and `sticker` have the same `media` shape. The `id` is Meta's media id - to download the file, use Meta's media endpoint with your own access, or ignore it. **Location** ```json "type": "location", "location": { "latitude": 19.0760, "longitude": 72.8777, "name": "Head office", "address": "1 Marine Drive, Mumbai" } ``` `name` and `address` are only there when the customer shared a named place. **Contacts** ```json "type": "contacts", "contacts": [{ "name": "Sam Lee", "phones": ["+1 555 0100"] }] ``` Contact cards the customer shared: the name and phone numbers only. **Interactive replies** A tap on a reply button or a list row from an [interactive message](https://docs.theavoxai.com/avox-api/messages#interactive): ```json "type": "interactive", "context": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5" }, "interactive": { "type": "button_reply", "id": "slot_keep", "title": "Yes, Friday" } ``` ```json "type": "interactive", "interactive": { "type": "list_reply", "id": "size_m", "title": "Medium", "description": "Fits 38-40" } ``` `id` is the id you chose when you sent the buttons or list. Flow submissions aren't forwarded - see them on [Flows](https://docs.theavoxai.com/flows). **Template quick reply buttons** ```json "type": "button", "button": { "text": "Stop promotions", "payload": "STOP" } ``` **Reactions** ```json "type": "reaction", "reaction": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5", "emoji": "👍" } ``` `emoji` is `null` when the customer removed their reaction. Other kinds of WhatsApp message (system notices, unsupported or unknown types) aren't forwarded. #### Headers | Header | Value | | --- | --- | | `Avox-Signature` | `t=1760090402,v1=5257a869e7ec...` - the time Avox signed it, and one or two signatures | | `Avox-Event-Id` | The event `id` | | `Avox-Event-Type` | `message.received` | | `User-Agent` | `Avox-Webhooks/1.0` | | `Content-Type` | `application/json` | #### Check the signature Each `v1` value is a hex HMAC-SHA256 of `.` - the `t` value, a full stop, then the request body exactly as received - keyed with your signing secret. Use the **whole** secret as the key, including `whsec_`, as plain text; don't decode it. To check a request: 1. Read the **raw** body before any JSON parsing. Re-serialising parsed JSON changes the bytes and the signature won't match. 2. Split `Avox-Signature` on commas. Take `t` and every `v1`. 3. Refuse the request if `t` is more than **5 minutes** from your clock. This stops replays. 4. Compute the HMAC and compare it with each `v1` using a **constant-time** comparison. Accept if any matches. ```js // server.js - npm install express import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const SECRET = process.env.AVOX_WEBHOOK_SECRET; // whsec_... const TOLERANCE_SECONDS = 5 * 60; export function verifyAvoxSignature(rawBody, header, secret = SECRET) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); if (key === "v1") signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => { const given = Buffer.from(sig, "hex"); return given.length === expected.length && timingSafeEqual(given, expected); }); } const app = express(); // express.raw keeps the exact bytes - don't use express.json() on this route. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!verifyAvoxSignature(req.body, req.get("Avox-Signature"))) return res.sendStatus(401); const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer first... setImmediate(() => handleEvent(event).catch(console.error)); // ...then do the work }); async function handleEvent(event) { if (await alreadyHandled(event.id)) return; // dedupe on Avox-Event-Id if (event.test) return console.log("Avox test event received"); const { from, contact_name, type } = event.data; console.log(`New ${type} from ${contact_name ?? from}`); } app.listen(3000); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; function verifyAvoxSignature(rawBody: string, header: string | null, secret: string): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); if (key === "v1") signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => { const given = Buffer.from(sig, "hex"); return given.length === expected.length && timingSafeEqual(given, expected); }); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET ?? "")) { return new Response("invalid signature", { status: 401 }); } const event = JSON.parse(rawBody); after(() => handleEvent(event)); // runs after the response is sent return new Response(null, { status: 200 }); } async function handleEvent(event: { id: string; test?: boolean; data: { from: string; type: string } }) { // dedupe on event.id, then your own logic } ``` ```python ### main.py - pip install fastapi uvicorn import hashlib, hmac, json, os, time from fastapi import BackgroundTasks, FastAPI, Header, Request, Response SECRET = os.environ["AVOX_WEBHOOK_SECRET"].encode() # the whole whsec_... string TOLERANCE_SECONDS = 5 * 60 app = FastAPI() def verify_avox_signature(raw: bytes, header: str | None) -> bool: if not header: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1": signatures.append(value) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(SECRET, f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks, avox_signature: str | None = Header(default=None)): raw = await request.body() # raw bytes, before any parsing if not verify_avox_signature(raw, avox_signature): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the response return Response(status_code=200) def handle_event(event: dict) -> None: # dedupe on event["id"], then your own logic print("New", event["data"]["type"], "from", event["data"]["from"]) ``` ```python ### app.py - pip install flask import hashlib, hmac, json, os, time from concurrent.futures import ThreadPoolExecutor from flask import Flask, request SECRET = os.environ["AVOX_WEBHOOK_SECRET"].encode() # the whole whsec_... string TOLERANCE_SECONDS = 5 * 60 app = Flask(__name__) pool = ThreadPoolExecutor(max_workers=4) def verify_avox_signature(raw: bytes, header: str | None) -> bool: if not header: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1": signatures.append(value) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(SECRET, f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) @app.post("/avox/messages") def receive(): raw = request.get_data() # raw bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("Avox-Signature")): return "", 401 pool.submit(handle_event, json.loads(raw)) # do the work after answering return "", 200 def handle_event(event: dict) -> None: # dedupe on event["id"], then your own logic print("New", event["data"]["type"], "from", event["data"]["from"]) ``` #### Answer fast, work later Answer with any `2xx` status within **10 seconds**, before doing slow work like database writes or calling other services. Avox doesn't read the response body, and a redirect (`3xx`) counts as a failure - point the Endpoint URL at the final address. If your own processing fails after you've answered, it's yours to retry; Avox already counts the delivery as done. #### Skip repeats The same message can reach you more than once - a retry after a slow answer, or a **Resend** from the delivery log. The event `id` (and the `Avox-Event-Id` header) stays the same, so store the ids you've handled and ignore any you've seen before. `data.message_id` works too. #### Retries A delivery fails when your endpoint doesn't answer `2xx` within 10 seconds - an error status, a redirect, a timeout, a refused connection or an invalid TLS certificate. Avox then retries: | Attempt | When | | --- | --- | | 1 | A few seconds after the message arrives | | 2 | About 1 minute later | | 3 | About 5 minutes later | | 4 | About 30 minutes later | | 5 | About 2 hours later | | 6 | About 6 hours later | | 7 | About 12 hours later - the last try | Each wait varies by up to 10% so retries don't arrive in lockstep. After the seventh attempt (about 21 hours after the first) the delivery is marked **Failed**. Messages can arrive out of order when an earlier one is being retried - sort by `data.timestamp` if order matters. Avox sends at most 2 requests at a time to one connection's endpoint, so a slow endpoint gets messages one or two at a time rather than all at once. #### Test events **Send test event** on the connection's page sends a sample right away and shows the result: ```json { "id": "evt_9c1f0e2d3b4a59687766554433221100", "type": "message.received", "api_version": "2026-10-01", "created_at": "2026-10-10T10:05:00.000Z", "connection_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d", "test": true, "data": { "message_id": "wamid.TEST_5B1E9C0A7D3F2E4A6C8B0D1F", "from": "+15550001234", "contact_name": "Avox test", "timestamp": "2026-10-10T10:05:00.000Z", "type": "text", "text": { "body": "This is a test event from Avox. Your endpoint is receiving forwarded messages." } } } ``` It's signed exactly like a real delivery, so it tests your signature check too. Check for `"test": true` and don't act on it as a real customer message. A test is sent once - it isn't retried and never counts toward auto-pause. You can send one whether forwarding is on or off, once there's an Endpoint URL and a signing secret. #### Rotate the secret **Rotate secret** creates a new signing secret and shows it once. For the next **24 hours** every request carries two `v1` signatures - one with the new secret, one with the old: ``` Avox-Signature: t=1760090402,v1=,v1= ``` Code that accepts any matching `v1` (like the examples above) keeps working with either secret, so: 1. Rotate the secret and copy the new one. 2. Deploy it to your server. 3. Send a test event to confirm. After 24 hours only the new secret signs. If a secret leaks, rotate it straight away. #### The delivery log and Resend **Recent deliveries** on the connection's page lists every forwarded message, newest first, with its status (**Queued**, **Sending**, **Retrying**, **Delivered**, **Failed**), HTTP code, number of attempts and time. **Payload** shows exactly what was sent. **Resend** (Admins, with forwarding on) queues it again with a fresh set of retries and the same event id. Deliveries are kept for 30 days, or your **Webhook Logs** retention on [Compliance](https://docs.theavoxai.com/compliance) if that's shorter. The **Received** tab of the **API logs** page shows the same deliveries for every number in the Switchboard at once. Filter by connection, date or status (**Delivered**, **Failed or retrying**, **Queued or sending**), search by message id (`wamid...`) or event id (`evt_...`), and click a row for its details - event id, attempts, response code and last error. An Admin can **Resend to your endpoint** from there too. The message text itself isn't shown there; read it in your [Inbox](https://docs.theavoxai.com/inbox). Turning forwarding off stops anything still queued: those deliveries are marked **Failed** with "Forwarding was turned off", and you can resend them after turning it back on. #### Auto-pause If **5 deliveries in a row** end up **Failed** - each after all its retries - Avox pauses forwarding for that connection so it stops sending to an endpoint that isn't working: - anything still queued is marked **Failed**, - your Admins get one email, - the section shows a **Paused** notice ([AVX-3104](https://docs.theavoxai.com/error-codes/avx-3104)). Messages keep arriving in your Inbox the whole time. To recover, fix the endpoint, click **Send test event** until it shows **Delivered**, turn forwarding back on, and **Resend** anything you need from the log. Any successful delivery resets the count. #### Troubleshooting | What you see | Likely cause | Fix | | --- | --- | --- | | "Your endpoint answered 401" (or 403) | The signature check failed. | Verify over the raw body, use the whole `whsec_...` secret as the key, and check you have the current secret. After a rotation, deploy the new one. | | Signature fails only in production | A proxy or framework parses and re-serialises the JSON before your code. | Read the raw body on this route (`express.raw`, `request.text()`, `request.body()`, `get_data()`). | | "Your endpoint answered 301" (or 302, 307, 308) | Redirects aren't followed. | Use the final `https://` address, including any trailing slash your server expects. | | "Your endpoint didn't answer within 10 seconds" | Slow work before answering, or a cold start. | Answer `200` first and process afterwards. | | "Your endpoint's TLS certificate isn't valid" | Expired, self-signed or wrong-host certificate. | Use a certificate from a public authority that matches the host. | | "That host isn't reachable from the internet" | The URL points at a private, local or reserved address. | Use a public host. For local testing, use a tunnel (see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server#receive-messages)). | | "The connection was refused" / "That host doesn't resolve" | The server is down, or the domain has no DNS record. | Check the server is running and the domain resolves. | | Stale timestamp errors in your logs | Your server's clock is off. | Sync the clock (NTP). The tolerance is 5 minutes. | | The same message handled twice | A retry or a resend. | Dedupe on `Avox-Event-Id`. | | Nothing arrives | Forwarding is off or paused, or the message type isn't forwarded. | Check the switch and the **Paused** notice; statuses, echoes and Flow answers are never forwarded. | ### Matching a status to a send Delivery statuses aren't forwarded; they're on [Logs](https://docs.theavoxai.com/logs). Every status event carries the message's id - the same `message_id` the API returned. If you set `biz_opaque_callback_data` when sending, WhatsApp includes it on the status too, which makes a message easy to find in Logs by your own reference. ```json { "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5", "status": "delivered", "timestamp": "1760090400", "recipient_id": "15551234567", "biz_opaque_callback_data": "order-A-1042" } ``` ### The event envelope in Logs On [Logs](https://docs.theavoxai.com/logs) you see Meta's own format. Message statuses and customer messages both arrive in a change whose `field` is `messages`: ```json { "object": "whatsapp_business_account", "entry": [ { "id": "102290129340398", "changes": [ { "field": "messages", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550001111", "phone_number_id": "106540352242922" }, "statuses": [ ... ], "messages": [ ... ] } } ] } ] } ``` `entry[].id` is your WhatsApp Business Account id and `metadata.phone_number_id` is your number's id - both are on the connection's page under **Meta identifiers** (**WABA ID** and **Phone Number ID**). ### Delivery statuses | `status` | Meaning | | --- | --- | | `sent` | WhatsApp sent the message. | | `delivered` | It reached the customer's phone. | | `read` | The customer opened it (when their read receipts are on). | | `failed` | It couldn't be delivered. `errors` says why, with Meta's code - see [Meta error codes](https://docs.theavoxai.com/meta-error-codes). | A failed status looks like this: ```json { "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5", "status": "failed", "timestamp": "1760090460", "recipient_id": "15551234567", "errors": [ { "code": 131026, "title": "Message undeliverable", "message": "Message undeliverable", "error_data": { "details": "Message Undeliverable." } } ] } ``` Some problems are found by WhatsApp only after it accepts a message - for example a text to someone whose 24-hour window has closed - so they show up as a `failed` status rather than as an API error. Statuses can arrive out of order (a `read` before its `delivered`). Pricing and other fields Meta adds can change over time. ### Customer replies Replies appear in the [Inbox](https://docs.theavoxai.com/inbox), and - with forwarding on - at your endpoint as `message.received` events (see [What's sent](#whats-sent)). In Logs, a button tap looks like this in Meta's format: ```json { "from": "15551234567", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQ5RDJF", "timestamp": "1760090580", "type": "interactive", "context": { "from": "15550001111", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5" }, "interactive": { "type": "button_reply", "button_reply": { "id": "slot_keep", "title": "Yes, Friday" } } } ``` A reply opens a new 24-hour window, so you can answer it with any message type - from the Inbox or with the API. To quote the customer's message, send its id as `context.message_id`. See [Message types](https://docs.theavoxai.com/avox-api/messages#replying-to-a-message). ### Automations on replies To answer common replies automatically - a keyword, a button tap, a first message - use [Automation](https://docs.theavoxai.com/automation). It runs on every inbound message for the number, whether or not forwarding is on. ### Other events Meta also reports template decisions, quality changes, Flow status changes and account alerts. Avox uses them to keep [Templates](https://docs.theavoxai.com/templates), [Flows](https://docs.theavoxai.com/flows) and [Health](https://docs.theavoxai.com/health) current, and emails Admins about the important ones. They aren't forwarded. See [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks). --- ## Testing URL: https://docs.theavoxai.com/avox-api/testing Section: Avox API Test in four layers: build against a **test key** that never sends anything, confirm your live key with the dashboard's dry run, send real messages to your own phone, then make your code handle every error it can meet. None of this needs a separate environment - test keys work against your own connected number. ### 1. Test mode A test key (`avx_test_...`) goes through exactly the same checks as a live key - the key, its number, your plan, rate limits, the request body and [idempotency](https://docs.theavoxai.com/avox-api/idempotency) - and then, instead of sending to WhatsApp, answers with a pretend result. Nothing reaches WhatsApp, nobody gets a message, and nothing is charged. An Admin (or a member with **Manage API keys**) creates one in **Settings > API Keys** (or on the connection's page) by choosing **Test key**. See [Live and test keys](https://docs.theavoxai.com/connections/api-keys#live-and-test-keys). #### The response A test send answers like a live one, plus `"test": true` in the body and an `Avox-Test-Mode: true` header on the response. The `message_id` starts with `wamid.TEST`, so it can never be mistaken for a real one: ```http HTTP/1.1 200 OK Content-Type: application/json X-Request-Id: req_3f9c2a7b1d4e5f60718293a4 Avox-Test-Mode: true { "ok": true, "request_id": "req_3f9c2a7b1d4e5f60718293a4", "message_id": "wamid.TEST8F3A1C0B9D2E4F5A6B7C8D9E0F1A2B3C", "test": true, "result": { "messaging_product": "whatsapp", "messages": [{ "id": "wamid.TEST8F3A1C0B9D2E4F5A6B7C8D9E0F1A2B3C", "message_status": "accepted" }] } } ``` Errors from a test key have the usual [error shape](https://docs.theavoxai.com/api/errors) with `"test": true` added next to `"ok": false`, and the same `Avox-Test-Mode: true` header. Every check still applies: a malformed body returns `invalid_payload`, a paused number returns `connection_paused`, and so on. Test sends don't produce delivery statuses or replies, and they never appear in your [Inbox](https://docs.theavoxai.com/inbox) or [Logs](https://docs.theavoxai.com/logs). #### Special test numbers Send to one of these numbers with a test key to get a specific error on purpose. Any other valid number succeeds. | Send to | Expect | Simulates | | --- | --- | --- | | `+15550000001` | `400` [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | A number that isn't valid | | `+15550000002` | `422` [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | More than 24 hours since the person last messaged you | | `+15550000003` | `422` [`meta_rejected`](https://docs.theavoxai.com/api/errors#meta_rejected) | WhatsApp refusing the message | | `+15550000004` | `422` [`recipient_unreachable`](https://docs.theavoxai.com/api/errors#recipient_unreachable) | A number that can't receive WhatsApp messages | | `+15550000005` | `429` [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) with a `Retry-After` header | WhatsApp limiting how fast you send | | `+15550000006` | `422` [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | A template that doesn't exist in that language | | `+15550000007` | `502` [`meta_unavailable`](https://docs.theavoxai.com/api/errors#meta_unavailable) | WhatsApp not answering in time | Simulated errors include `meta_code` where WhatsApp would send one (for example `131047` for `+15550000002`). With an `Idempotency-Key`, a retry gets the stored result back, except after `meta_unavailable`, which frees the key so you can retry - the same as live. ```bash ### Expect 422 outside_messaging_window, "test": true - nothing is sent. curl -i -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{"to":"+15550000002","type":"text","text":{"body":"test"}}' ``` ```js import assert from "node:assert/strict"; const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_TEST_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ to: "+15550000002", type: "text", text: { body: "test" } }), }); const data = await res.json(); assert.equal(res.status, 422); assert.equal(data.error.code, "outside_messaging_window"); assert.equal(data.test, true); assert.equal(res.headers.get("Avox-Test-Mode"), "true"); ``` ```python import os import requests res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_TEST_KEY']}"}, json={"to": "+15550000002", "type": "text", "text": {"body": "test"}}, timeout=30, ) assert res.status_code == 422 assert res.json()["error"]["code"] == "outside_messaging_window" assert res.json()["test"] is True assert res.headers.get("Avox-Test-Mode") == "true" ``` #### Limits and logs Test keys have their own, separate [rate limits](https://docs.theavoxai.com/avox-api/rate-limits#test-keys) and a daily allowance per Switchboard, so a test suite never uses up your live allowance, and test requests don't count toward a live key's daily allowance. Every test request appears on the [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs) page with a **Test** badge - choose **Test only** in the mode filter to see just those, or search for a `wamid.TEST...` message id. Keep test and live keys in separate settings (for example `AVOX_TEST_KEY` and `AVOX_API_KEY`), and check the `Avox-Test-Mode` header in your code if it matters which one answered. ### 2. The dashboard dry run Every active key in **Settings > API Keys** has a **Test** button. Admins can use it, and so can any member an Admin has given the **Manage API keys** permission (see [Permissions](https://docs.theavoxai.com/switchboard/members#permissions)). - It checks that the key is active, that its number is connected, and that the number is ready to send. - It **doesn't** send a WhatsApp message and doesn't cost anything with Meta. - It works the same for live and test keys. On a test key, the result adds "Test key: sends are simulated, nothing reaches WhatsApp." - It's logged as **Test** in the key's **Recent requests**, separately from real sends. On the **API logs** page it shows the endpoint `Dashboard test`, and its **Request details** say **Source: Test button in the dashboard**. The result appears under the key: | Result | What to do | | --- | --- | | "Working - routes to" and the connection's name | The key is ready. Check it's the number you expect. | | "This key has been revoked - create a new one to test." | Create a new key. See [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked). | | "This key has expired - use the key that replaced it, or create a new one." | The key was rotated and its grace period ended. See [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired). | | "This key's connection no longer exists." | Create a key for one of your current numbers. See [`connection_not_found`](https://docs.theavoxai.com/api/errors#connection_not_found). | | "This key's connection is paused - resume it to send." | Resume the number on [Connections](https://docs.theavoxai.com/connections). See [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused). | | "This key's connection isn't active right now." | Check the number on [Connections](https://docs.theavoxai.com/connections) and [Health](https://docs.theavoxai.com/health). See [`connection_inactive`](https://docs.theavoxai.com/api/errors#connection_inactive). | | "This connection needs to be reconnected before it can send." | Reconnect the number. See [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready). | The dry run checks the key and its number from inside the dashboard. It doesn't check your server's copy of the key, your server's IP address, or your request body - that's what test mode and the next step are for. ### 3. Send to your own phone With a **live** key, use a personal WhatsApp number you control as the recipient - not the connected number itself (WhatsApp refuses a message to the number sending it, with [`recipient_unreachable`](https://docs.theavoxai.com/api/errors#recipient_unreachable)). From your personal phone, send any message to the connected number. Now you can receive non-template messages from it for 24 hours. Run the [quickstart](https://docs.theavoxai.com/avox-api) example with your personal number as `to`. Expect `200` and a `message_id`. Pick an approved template on [Templates](https://docs.theavoxai.com/templates) and send it with its exact name and language. This is the message type that works even with no open window. Media, interactive buttons and lists, locations - see [Message types](https://docs.theavoxai.com/avox-api/messages). Tap the buttons on your phone to produce real replies. Open [Logs](https://docs.theavoxai.com/logs): each message produces `sent`, `delivered` and `read` events carrying its `message_id`. Your phone's replies appear in the [Inbox](https://docs.theavoxai.com/inbox). See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). Open **API logs** in the dashboard: each send shows its key with a **Live** badge, its status code, and your number with most digits hidden. Search by the `message_id` to find it. ### 4. Exercise the error paths These requests are safe with either kind of key: each one is refused before anything is delivered. Some problems are only found by WhatsApp after it accepts a message - for example, a text to someone whose 24-hour window has closed. Those can come back as a `200` now and a `failed` status on [Logs](https://docs.theavoxai.com/logs) shortly after, so check there too when testing live. With a test key, use the [special test numbers](#special-test-numbers) to get those errors straight away. | Try this | Expect | | --- | --- | | No `Authorization` header | `401` [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key) | | `Authorization: Bearer avx_live_wrong` | `401` [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | | Body that isn't JSON | `400` [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | | `"to": "0123"` | `400` [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | | `"type": "poll"` | `400` [`unsupported_message_type`](https://docs.theavoxai.com/api/errors#unsupported_message_type) | | Text over 4096 characters | `400` [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) with `details` | | An image with both `id` and `link` | `400` [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | | `Idempotency-Key: has space` | `400` [`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key) | | Same `Idempotency-Key`, different body | `409` [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | | A template name that doesn't exist (live key) | `422` [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | ```bash ### Expect 400 invalid_recipient - nothing is sent. curl -i -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to":"0123","type":"text","text":{"body":"test"}}' ``` ```js import assert from "node:assert/strict"; const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ to: "0123", type: "text", text: { body: "test" } }), }); const data = await res.json(); assert.equal(res.status, 400); assert.equal(data.error.code, "invalid_recipient"); assert.ok(res.headers.get("X-Request-Id")); ``` ```python import os import requests res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}"}, json={"to": "0123", "type": "text", "text": {"body": "test"}}, timeout=30, ) assert res.status_code == 400 assert res.json()["error"]["code"] == "invalid_recipient" assert res.headers.get("X-Request-Id") ``` Each of these still counts towards your [rate limits](https://docs.theavoxai.com/avox-api/rate-limits) and shows on the API logs page, so run them at a normal pace. Wrong keys, especially, are limited per address. ### Testing in your own CI - **Integration tests:** use a **test key** for your CI system. It runs every check a live send does, sends nothing, and the [special test numbers](#special-test-numbers) cover each error path. - **Unit tests:** don't call the API. Stub the HTTP call and feed your code real response bodies from these docs - a success, a `429` with `Retry-After`, a `422`, a `502`. - **Live smoke tests:** if you need one, use a dedicated live key and send only to numbers you own. Revoke the key when the test system is retired. - **Event fixtures:** if your code parses WhatsApp event payloads, copy a few real ones from [Logs](https://docs.theavoxai.com/logs) and use them as test fixtures. When everything here passes, work through the [Go-live checklist](https://docs.theavoxai.com/avox-api/go-live) - including switching your production server from the test key to a live key. --- ## Go-live checklist URL: https://docs.theavoxai.com/avox-api/go-live Section: Avox API Work through this list before your integration sends real customer messages. Each item links to the page with the detail. ### Your number and account - **The number shows Connected.** On [Connections](https://docs.theavoxai.com/connections), the number's status is **Connected**, and on [Health](https://docs.theavoxai.com/health), **Check health now** reports "Can send messages" with no issues. - **Your plan is active and includes API access.** Without an active plan, every send fails with [`subscription_inactive`](https://docs.theavoxai.com/api/errors#subscription_inactive); on a plan without API access, with [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan). See [Billing](https://docs.theavoxai.com/billing) and [Plans](https://docs.theavoxai.com/plans). - **The display name is approved** and is the name you want customers to see. See [Display names](https://docs.theavoxai.com/whatsapp/display-names). - **Templates are approved** for every message your system starts - order updates, reminders, codes - in every language you'll send. See [Templates](https://docs.theavoxai.com/templates) and [Template approval](https://docs.theavoxai.com/templates/approval). - **You have the customer's opt-in** to receive WhatsApp messages from you, as WhatsApp's policies require. - **Critical alerts reach someone.** On [Compliance](https://docs.theavoxai.com/compliance), keep **WhatsApp account alerts** on, so your team is emailed when Meta sends an account alert or a template is rejected, paused or disabled. ### Your keys - **A dedicated live key per system**, created by an Admin in **Settings > API Keys** with **Live key** chosen. See [Authentication](https://docs.theavoxai.com/avox-api/authentication). - **Production uses the live key.** A test key (`avx_test_...`) answers `200` but never sends. Check your production responses don't carry `Avox-Test-Mode: true`. See [Testing](https://docs.theavoxai.com/avox-api/testing#1-test-mode). - **Stored as a server secret** - environment variable or secrets manager, never in a browser, an app, or a repository. - **Test passes** on the key: "Working - routes to" the right number. See [Testing](https://docs.theavoxai.com/avox-api/testing). - **Old and test keys are revoked** once nothing uses them. Keep a test key only if your CI still uses it. - **A rotation plan** your team has written down: **Rotate**, pick a grace period, deploy the new key, then check on the **API logs** that the old key has gone quiet. See [Rotating a key](https://docs.theavoxai.com/avox-api/authentication#rotating-a-key). - **IP restriction (optional).** If your servers have fixed addresses, ask [Support](https://docs.theavoxai.com/support) to limit the key to them. ### Your sending code - **Branches on `error.code`**, not on the message text or the status alone. See [API errors](https://docs.theavoxai.com/api/errors). - **Sends an `Idempotency-Key`** - one per message, reused on every retry of that message. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). - **Retries only what's retryable**, honouring `Retry-After` and backing off with jitter. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - **Handles `meta_unavailable` deliberately** - the message may already be out. - **Logs `X-Request-Id`** (or `error.request_id`) for every failed call, so [Support](https://docs.theavoxai.com/support) can find it. - **Stores `message_id`** for every success, so statuses and replies can be matched to it. - **Sends templates to start conversations** and other types only inside the 24-hour window. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). - **Uses full international numbers** in `to`, with the country code. - **Paces bulk sends** through a queue instead of firing them all at once. - **Has a timeout** on each HTTP call, so a slow network can't hang a worker. ### Statuses and replies - **Someone checks delivery.** [Logs](https://docs.theavoxai.com/logs) shows the `sent`, `delivered`, `read` and `failed` statuses of your API messages. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). - **`biz_opaque_callback_data` is set** on important sends, so a status is easy to tie to your own record. - **Replies have an owner.** Customer replies arrive in the [Inbox](https://docs.theavoxai.com/inbox) - decide who on your team answers them, and set up [Automation](https://docs.theavoxai.com/automation) for common questions. - **Failed statuses are reviewed**, including codes WhatsApp reports after accepting a message. See [Meta error codes](https://docs.theavoxai.com/meta-error-codes). - **If your server receives messages**, message forwarding points at your production Endpoint URL, your server checks the `Avox-Signature` header with the current signing secret, and **Send test event** shows **Delivered**. See [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### WhatsApp's own limits - **You know your messaging limit.** New numbers start with a limit on how many people they can start conversations with each day. It shows as **Messaging tier** on [Health](https://docs.theavoxai.com/health) once Meta reports it. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - **You ramp up gradually** rather than sending your whole list on day one. - **Someone watches quality.** A drop in quality can lower your limit and pause templates. [Health](https://docs.theavoxai.com/health) shows **Quality history** and the delivery rate. ### On launch day Send to a small group first and watch the results for an hour. Open **API logs**, pick your live key and choose **Error** in the status filter to spot unexpected error codes. Each code links to its fix on [API errors](https://docs.theavoxai.com/api/errors). On [Health](https://docs.theavoxai.com/health), check the delivery rate holds steady. In **Settings > API Keys**, check no key shows a warning such as **Requests are failing** or **Hit its per-minute limit**. Increase volume step by step, keeping an eye on **Quality history**. --- ## Builder API URL: https://docs.theavoxai.com/avox-api/builder Section: Avox API The **builder API** lets your own code, or an AI assistant you trust, do what you do in the dashboard's Tables, Flows, Templates and Automation pages: create a table and fill it, write a template and send it to WhatsApp for review, make and publish a Flow, build an automation and switch it on. It uses the same Avox API keys as [sending messages](https://docs.theavoxai.com/avox-api), with permissions you choose per key. Using an AI assistant? Give it your key and the page [API for AI assistants](https://docs.theavoxai.com/avox-api/ai-assistants): it tells the assistant exactly how to work. ### Set it up In **Settings > API keys**, click **Create a key**, pick the number, name the key, and under **What this key may do** set each area to **Off**, **Read** or **Write**. You can only give a key what you may do yourself. Confirm with the code we email you, then copy the key: it's shown once. Every key belongs to a WhatsApp number, so the API needs one connected: if the number is removed, its keys stop with [`connection_not_found`](https://docs.theavoxai.com/api/errors#connection_not_found). If Avox switched a part off for your account (Tables, for example), its calls answer [`feature_disabled`](https://docs.theavoxai.com/api/errors#feature_disabled). Call `GET /api/v1/me`. It shows the key's Switchboard, permissions and every limit with what's used. Create a table, add rows, and carry on with templates, Flows and automations. Each area has its own page: [Tables and rows](https://docs.theavoxai.com/avox-api/tables), [Flows](https://docs.theavoxai.com/avox-api/flows), [Templates](https://docs.theavoxai.com/avox-api/templates), [Automations](https://docs.theavoxai.com/avox-api/automations). ```bash curl https://api.theavoxai.com/api/v1/me \ -H "Authorization: Bearer $AVOX_API_KEY" curl -X POST https://api.theavoxai.com/api/v1/tables \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 3c1d6c4e-2f7a-4f0b-9e3a-1b2c3d4e5f60" \ -d '{ "name": "Price list", "columns": [ { "key": "item", "name": "Item", "type": "text", "required": true, "unique": true }, { "key": "price", "name": "Price", "type": "currency", "required": true, "options": { "currency": "INR" } } ] }' ``` ```js const API = "https://api.theavoxai.com/api/v1"; const headers = { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json" }; const me = await (await fetch(`${API}/me`, { headers })).json(); console.log(me.data.key.scopes, me.data.limits.tables); const res = await fetch(`${API}/tables`, { method: "POST", headers: { ...headers, "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ name: "Price list", columns: [ { key: "item", name: "Item", type: "text", required: true, unique: true }, { key: "price", name: "Price", type: "currency", required: true, options: { currency: "INR" } }, ], }), }); const { ok, data, error } = await res.json(); if (!ok) throw new Error(`${error.code}: ${error.message}`); console.log(data.table.id, data.table.etag); ``` ### Permissions (scopes) Each key holds a list of scopes. Keys made before scopes existed hold `send` only, so nothing an existing key could do changes. | Scope | Lets the key | | --- | --- | | `send` | Send WhatsApp messages with `POST /api/messages/send` ([Avox API](https://docs.theavoxai.com/avox-api)). | | `tables:read` / `tables:write` | See tables and their columns / create, rename, archive, restore and delete tables, and add, change or delete columns. | | `rows:read` / `rows:write` | Read, filter and search rows / add, change and delete rows, and import CSV. | | `flows:read` / `flows:write` | See Flows, their JSON, live data settings, request logs and answers / create, change drafts, publish, deprecate and change live data settings. | | `templates:read` / `templates:write` | See templates and their review status / create, edit and delete templates. | | `automations:read` / `automations:write` | See automations, their run log and credits / create, change, switch on and off and delete automations. | A write scope includes reading the same area. `GET /api/v1/me` and `GET /api/v1/catalog` work with any key. A key acts with the permissions of the person who last set its scopes. If that person leaves the Switchboard or loses a permission (for example **Create and edit tables**), the key's calls in that area answer `scope_owner_no_access` until an Admin sets its permissions again. Deleting needs the matching delete permission too (**Delete templates**, **Delete Flows**, **Delete automations**). Write permissions let anything holding the key change your Switchboard. Give them only to code or an assistant you trust, keep the key out of browsers and shared files, and revoke it when you're done. ### Requests and answers - **Base address:** `https://api.theavoxai.com/api/v1`. Send `Authorization: Bearer ` on every request, and JSON bodies with `Content-Type: application/json`. - **Field names** in bodies and answers use camelCase, the same names the dashboard uses (`flowJson`, `triggerType`, `updatedAt`). - **Success:** `{ "ok": true, "request_id": "req_...", "data": { ... } }`, plus `next_cursor` on lists and `warnings` (things to know, nothing failed) when there are some. - **Errors:** `{ "ok": false, "error": { "code", "message", "docs_url", "request_id", "details" } }`. `details` names each field to fix (`path`) with a `message`, and sometimes a short `code`. Every code is on [API errors](https://docs.theavoxai.com/api/errors). - **Ids:** tables can also be addressed by their API name (`slug`), columns by their key. Ids from another Switchboard never match: they answer `not_found`. ### Paging Lists take `limit` and `cursor`. Pass the `next_cursor` of one page as `cursor` to get the next; `next_cursor` is `null` on the last page. A cursor belongs to its list and filters: changing the filters with an old cursor answers `invalid_cursor`. ### Versions: ETag and If-Match Every table, Flow, template and automation answer carries an `ETag` header (and an `etag` field). To change something safely, send it back as `If-Match`. If anyone changed the item since you read it, the change is refused with `412 version_conflict` and nothing is written. Read it again and retry. Rows use their `updatedAt`: send it with each row you change (`rows[].updatedAt`), and the whole request is refused if any of those rows changed. ### Retries: Idempotency-Key Every create (tables, rows, row deletes, CSV imports, Flows, templates, automations) accepts an `Idempotency-Key` header: 1 to 255 visible characters, a UUID per new item works well. Retrying with the same key and the same body returns the first answer (with `Idempotent-Replayed: true`) and makes nothing twice. The same key with a different body answers `idempotency_conflict`. Keys last 24 hours and belong to the key and its rotations. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). ### Limits - **Your plan's daily builder calls**, reads and writes counted apart, for the whole Switchboard (UTC day). `GET /api/v1/me` shows them; every answer has `Avox-Daily-Limit` and `Avox-Daily-Remaining` headers. Over the limit: `builder_quota_exceeded` with `Retry-After` until midnight UTC. Sending messages doesn't count. - **Everything your plan already limits** applies exactly as in the dashboard: tables, rows per table, Flows, templates, automations (and how many can be on at once), and live data requests a month. A request that would go over is refused whole with `plan_limit_reached`. - **Short bursts** are braked per key and per Switchboard: `rate_limited` with `Retry-After`. - **Bodies** are capped per endpoint (up to 1,000 rows, or an 8 MB CSV): `payload_too_large`. See [Plans](https://docs.theavoxai.com/plans) for what each plan includes. ### Test keys A test key (`avx_test_...`) reads and checks for real (`/me`, `/catalog`, lists, `validate`, a CSV your code, then switch to a live key. ### Things that stay in the dashboard Connecting numbers, billing, team members, API keys and their permissions, uploading a sample file for a template's media header, a Flow's own-server signing secret, and connecting apps. ### Related --- ## For AI assistants URL: https://docs.theavoxai.com/avox-api/ai-assistants Section: Avox API This page is written for an AI assistant (ChatGPT, Claude, Gemini, an agent in your own code) that has been given an Avox API key and asked to build something: a booking table, a template, a WhatsApp Flow, an automation. If you are a person, give your assistant this page's address together with the key, and ask it to read the page first. Everything below is an instruction to the assistant. The full list of endpoints is on [Builder API reference](https://docs.theavoxai.com/avox-api/reference), the machine-readable version is [/openapi.json](https://docs.theavoxai.com/openapi.json), and every error code is on [API errors](https://docs.theavoxai.com/api/errors). ### Instructions for the assistant Follow these rules in order. They keep the person's Switchboard safe and make every call succeed the first time. Read this page, then [Builder API quick start](https://docs.theavoxai.com/avox-api/builder) and the reference page for the area you will build in: [Tables and rows](https://docs.theavoxai.com/avox-api/tables), [Flows](https://docs.theavoxai.com/avox-api/flows), [Templates](https://docs.theavoxai.com/avox-api/templates) or [Automations](https://docs.theavoxai.com/avox-api/automations). The machine-readable schema of every request body is at [/openapi.json](https://docs.theavoxai.com/openapi.json). Never guess a field name: use the ones the docs and the schema show. Send `Authorization: Bearer ` on every request to `https://api.theavoxai.com/api/v1/...`. The key starts with `avx_live_` or `avx_test_`. Never ask the person for a password, a dashboard sign-in, a Meta or WhatsApp token, or any other secret: the key is all you need. Never print the key back, write it into files you share, or put it in a URL. It tells you the key's Switchboard, its WhatsApp number, its **scopes** (what it may do), and every limit with what's already used: tables, rows per table, Flows, templates, automations, live requests this month, and today's builder calls (reads and writes). Plan your work so it fits. If a scope you need is missing, stop and tell the person which one (for example `tables:write`): an Admin adds it in **Settings > API keys > Permissions**. It lists the premade tables, Flows, templates and automations with their ids, what each needs, and the allowed column types, trigger types and step types. Starting from a premade is faster and safer than building from scratch: prefer one when it fits what the person asked for. Later pieces point at earlier ones by id, so make them in this order: 1. **Tables** first (`POST /api/v1/tables`, then rows). A Flow or automation that uses a table needs its id and its column ids. 2. **Templates** next (`POST /api/v1/templates`). WhatsApp reviews every new template; it is `PENDING` until WhatsApp decides. An automation can only be switched on with **approved** templates, so check `GET /api/v1/templates/{id}` until `status` is `APPROVED` (reviews can take from minutes to a day; don't poll faster than once a minute). 3. **Flows** next (`POST /api/v1/flows` makes a draft). Validate it, fix what the validation reports, then publish it. 4. **Automations** last (`POST /api/v1/automations`). They are created as drafts; switch one on with `POST /api/v1/automations/{id}/activate` only when the person wants it live. For a Flow, call `POST /api/v1/flows/{id}/validate` (or `POST /api/v1/flows/validate` with JSON before you create it) and fix every item in `validation.lint.errors`, `validation.lint.live` (severity `error`) and `validation.validationErrors` before `POST /api/v1/flows/{id}/publish`. A published Flow can't change. For an automation, read the `problems` list each save returns and fix them before you activate it. Make a new random value (a UUID) for each new thing you create and send it as the `Idempotency-Key` header. If a request times out or you aren't sure it worked, retry with the **same** key and the **same** body: you get the first result back and nothing is made twice. A different body with the same key is refused (`idempotency_conflict`). Every item comes with an `etag`. When you change it, send `If-Match: `. If someone changed it in the meantime you get `412 version_conflict` and nothing is written: read it again, apply your change to the new version, and retry. For rows, send each row's `updatedAt` instead. Every call counts against the plan's daily builder calls (reads and writes apart; see `limits.apiCallsToday` in `/me`, and the `Avox-Daily-Remaining` header on every answer). Prefer one bulk request (up to 1,000 rows) over many single ones. On `429`, wait the number of seconds in `Retry-After` before retrying. Never loop on an error. Errors look like `{ "ok": false, "error": { "code", "message", "docs_url", "request_id", "details" } }`. `details` lists each problem with a `path` (the field, like `rows[3].price` or `actions[1].actionConfig.templateId`) and a `message`. Fix exactly those fields and retry. The `docs_url` explains the code and what to do. Retry unchanged only for `rate_limited`, `idempotency_in_progress`, `meta_unreachable` and `internal_error`. Ask the person before you delete a table, column, row, Flow, template or automation, before you publish a Flow, and before you switch an automation on. Never send `force: true` or `confirm: true` without telling the person what will happen (the error that asks for it lists what would break or which values would be emptied). ### What you can't do with a key Some things stay in the dashboard on purpose. Tell the person to do these there when they come up: - Connecting a WhatsApp number, billing, plans and team members. - Creating, rotating or revoking API keys, and changing a key's permissions. - Uploading a sample image, video or document for a template header. - Making the signing secret for a Flow's own server (pass-through live data). - Connecting apps (payments, calendars, meetings, CRM) that automations use. A **test key** (`avx_test_...`) can read everything its scopes allow and run every check (`/me`, `/catalog`, lists, `validate`, a CSV import `dry_run`), but every change is refused with `test_key_read_only`. Use one to plan and check your work; use a live key to make it. ### A complete session, step by step This is what a good session looks like for "set up booking reminders for my salon". ```bash # 1. Who am I, what may I do, what's left on the plan? curl https://api.theavoxai.com/api/v1/me -H "Authorization: Bearer $AVOX_API_KEY" # 2. What can I start from? curl https://api.theavoxai.com/api/v1/catalog -H "Authorization: Bearer $AVOX_API_KEY" # 3. The Appointments table, from its premade. curl -X POST https://api.theavoxai.com/api/v1/tables \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6f1e8a1c-4b6e-4a55-9a43-2a1c3e7d9b10" \ -d '{"premadeId":"appointments"}' # 4. The reminder template, from the Avox library (WhatsApp reviews it). curl -X POST https://api.theavoxai.com/api/v1/templates \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 0d3b2f9e-8f61-4c0b-a0a7-5d7f1e2c4b88" \ -d '{"libraryId":"booking_reminder","language":"en_US"}' # 5. Once the template is APPROVED: the premade automation, as a draft. curl -X POST https://api.theavoxai.com/api/v1/automations \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 9a7c5e3b-1d2f-4e6a-8b9c-0f1e2d3c4b5a" \ -d '{"premadeId":"booking_reminder_day","timeZone":"Asia/Kolkata"}' # 6. After the person says yes: switch it on. curl -X POST https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID/activate \ -H "Authorization: Bearer $AVOX_API_KEY" ``` If step 5 answers `automation_not_ready`, its `details` say exactly what's missing (a table made from a premade table, an approved template, a connected app) and how to make it. ### Related --- ## Builder reference URL: https://docs.theavoxai.com/avox-api/reference Section: Avox API Every endpoint of the builder API, the scope it needs, and where its full description with examples lives. Start with [Builder API quick start](https://docs.theavoxai.com/avox-api/builder) for keys, permissions, paging, versions, retries and limits. An AI assistant should read [API for AI assistants](https://docs.theavoxai.com/avox-api/ai-assistants) first. The same list, with the schema of every request body, is the OpenAPI 3.1 file at [/openapi.json](https://docs.theavoxai.com/openapi.json). It's generated from the checks the API itself runs, so it always matches what the API accepts. All paths start with `https://api.theavoxai.com`. "Write" endpoints are refused for test keys. The examples on these pages use this small JavaScript helper: ```js const avox = (path, init = {}) => fetch(`https://api.theavoxai.com/api/v1${path}`, { ...init, headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", ...init.headers }, }).then((res) => res.json()); ``` ### Account | Endpoint | Scope | What it does | | --- | --- | --- | | `GET /api/v1/me` | Any key | The key, its Switchboard and number, its scopes, and every limit with what's used. [Details](#get-apiv1me) | | `GET /api/v1/catalog` | Any key | Premade tables, Flows, templates and automations with their ids, and the allowed types. [Details](#get-apiv1catalog) | #### GET /api/v1/me ```bash curl https://api.theavoxai.com/api/v1/me -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/me"); ``` ```json { "ok": true, "request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9", "data": { "key": { "id": "8d2f...", "name": "Booking assistant", "prefix": "avx_live_Qm3", "mode": "live", "scopes": ["send", "tables:read", "tables:write", "rows:read", "rows:write"], "scopesSummary": "Send, Tables (write), Table rows (write)", "createdAt": "2026-10-23T08:00:00Z", "expiresAt": null }, "switchboard": { "id": "b1c2...", "name": "Riverside Salon", "paused": false }, "whatsappNumber": { "id": "c3d4...", "name": "Front desk", "number": "+91 98••••3210", "status": "connected" }, "plan": { "name": "Your plan" }, "limits": { "apiCallsToday": { "reads": { "used": 12, "limit": 1234 }, "writes": { "used": 3, "limit": 123 }, "resetsAt": "2026-10-24T00:00:00.000Z" }, "tables": { "used": 2, "limit": 9 }, "rowsPerTable": { "limit": 9999 }, "columnsPerTable": { "limit": 50 }, "rowsPerRequest": { "limit": 1000 }, "flows": { "used": 1, "limit": 9 }, "templates": { "used": 4, "limit": 9 }, "automations": { "used": 2, "limit": 9, "active": 1, "activeLimit": 9 }, "liveRequestsThisMonth": { "used": 140, "limit": 9999 } }, "docs": { "forAiAssistants": "https://docs.theavoxai.com/avox-api/ai-assistants", "openapi": "https://docs.theavoxai.com/openapi.json" } } } ``` The numbers above are made up: yours come from your plan (see [Plans](https://docs.theavoxai.com/plans)). #### GET /api/v1/catalog ```bash curl https://api.theavoxai.com/api/v1/catalog -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/catalog"); const appointments = data.tables.find((t) => t.id === "appointments"); ``` ```json { "ok": true, "request_id": "req_...", "data": { "tables": [{ "id": "appointments", "name": "Appointments", "kind": "calendar", "columns": [{ "key": "customer", "name": "Customer", "type": "text", "required": true, "unique": false }], "sampleRows": 3 }], "flows": [{ "id": "appointment_booking", "title": "Appointment booking", "category": "APPOINTMENT_BOOKING", "live": true, "tables": [{ "ref": "slots", "premadeTableId": "time-slots", "purpose": "The free times customers pick from" }, { "ref": "bookings", "premadeTableId": "appointments", "purpose": "Where each booking is saved" }] }], "templates": [{ "id": "booking_reminder", "title": "Booking reminder (day before)", "kind": "custom", "templateKind": "custom", "category": "UTILITY", "languages": ["en_US", "hi"], "defaultLanguage": "en_US", "mediaHeader": null, "body": "Hi {{1}}, this is a reminder of your {{2}} booking on {{3}} at {{4}}. ...", "requires": [] }], "automations": [{ "id": "booking_reminder_day", "name": "Reminder a day before each booking", "triggerType": "table_date", "needs": { "tables": ["appointments"], "apps": [], "approvedTemplate": true, "publishedFlow": false, "calling": false }, "suggestedTemplate": "booking_reminder", "creditsPerRunAtMost": 2, "requires": [] }], "types": { "columnTypes": ["text", "long_text", "number", "currency", "..."], "flowCategories": ["SIGN_UP", "..."], "triggerTypes": ["keyword", "..."], "actionTypes": ["send_text", "..."] }, "scopes": { "all": ["send", "tables:read", "..."] } } } ``` `requires` lists the plan features an item needs: `payments` (a premade with an Ask for payment step) or `rich_templates` (a multi-product template). A template your plan doesn't include is refused when you create it; a premade still saves, but its payment steps don't run until your plan includes payments. `templateKind` is the WhatsApp template type it's made as: `custom`, `otp`, `catalogue` or `mpm` (multi-product). ### Tables and rows Full descriptions and examples: [Tables and rows](https://docs.theavoxai.com/avox-api/tables). | Endpoint | Scope | What it does | | --- | --- | --- | | `GET /api/v1/tables` | `tables:read` | List tables, with the plan's table limits | | `POST /api/v1/tables` | `tables:write` | Create a table from your columns or a premade | | `GET /api/v1/tables/{tableId}` | `tables:read` | One table with its columns | | `PATCH /api/v1/tables/{tableId}` | `tables:write` | Rename, describe, change API name or settings | | `DELETE /api/v1/tables/{tableId}` | `tables:write` | Delete a table and its rows | | `POST /api/v1/tables/{tableId}/archive` | `tables:write` | Archive (read-only, kept) | | `POST /api/v1/tables/{tableId}/restore` | `tables:write` | Restore an archived table | | `POST /api/v1/tables/{tableId}/columns` | `tables:write` | Add a column | | `PATCH /api/v1/tables/{tableId}/columns/{columnId}` | `tables:write` | Change a column (type changes convert values) | | `DELETE /api/v1/tables/{tableId}/columns/{columnId}` | `tables:write` | Delete a column | | `GET /api/v1/tables/{tableId}/rows` | `rows:read` | List rows with filters, sort and search | | `POST /api/v1/tables/{tableId}/rows` | `rows:write` | Add up to 1,000 rows, all or nothing | | `PATCH /api/v1/tables/{tableId}/rows` | `rows:write` | Change up to 1,000 rows, all or nothing | | `POST /api/v1/tables/{tableId}/rows/delete` | `rows:write` | Delete up to 1,000 rows, all or nothing | | `POST /api/v1/tables/{tableId}/rows/import` | `rows:write` | Import CSV text (dry run, then commit) | | `GET /api/v1/tables/{tableId}/rows/{rowId}` | `rows:read` | One row | | `PATCH /api/v1/tables/{tableId}/rows/{rowId}` | `rows:write` | Change one row | | `DELETE /api/v1/tables/{tableId}/rows/{rowId}` | `rows:write` | Delete one row | ### Flows Full descriptions and examples: [Flows](https://docs.theavoxai.com/avox-api/flows). | Endpoint | Scope | What it does | | --- | --- | --- | | `GET /api/v1/flows` | `flows:read` | List Flows | | `POST /api/v1/flows` | `flows:write` | Create a draft Flow (premade or your JSON) | | `POST /api/v1/flows/validate` | `flows:read` | Validate Flow JSON without saving | | `GET /api/v1/flows/{flowId}` | `flows:read` | The Flow, its JSON, live data settings and checks | | `PATCH /api/v1/flows/{flowId}` | `flows:write` | Change a draft | | `DELETE /api/v1/flows/{flowId}` | `flows:write` and **Delete Flows** | Delete a draft | | `POST /api/v1/flows/{flowId}/validate` | `flows:read` | Validate the saved Flow | | `POST /api/v1/flows/{flowId}/publish` | `flows:write` | Publish a draft | | `POST /api/v1/flows/{flowId}/deprecate` | `flows:write` and **Delete Flows** | Retire a published Flow | | `GET /api/v1/flows/{flowId}/live` | `flows:read` | Live data settings | | `PUT /api/v1/flows/{flowId}/live` | `flows:write` | Save table links | | `POST /api/v1/flows/{flowId}/live/mode` | `flows:write` | Switch the live data source, or make a new version | | `GET /api/v1/flows/{flowId}/logs` | `flows:read` | Live request log | | `GET /api/v1/flows/{flowId}/sends` | `flows:read` | Every send and how far it got | | `GET /api/v1/flows/{flowId}/responses` | `flows:read` | The answers people sent | ### Templates Full descriptions and examples: [Templates](https://docs.theavoxai.com/avox-api/templates). | Endpoint | Scope | What it does | | --- | --- | --- | | `GET /api/v1/templates` | `templates:read` | List templates with their status | | `POST /api/v1/templates` | `templates:write` | Create a template and send it for review | | `GET /api/v1/templates/library` | `templates:read` | WhatsApp's own template library | | `GET /api/v1/templates/{templateId}` | `templates:read` | One template and whether it can be edited now | | `PATCH /api/v1/templates/{templateId}` | `templates:write` | Edit text and category (reviewed again) | | `DELETE /api/v1/templates/{templateId}` | `templates:write` and **Delete templates** | Delete this language of a template | ### Automations Full descriptions and examples: [Automations](https://docs.theavoxai.com/avox-api/automations). | Endpoint | Scope | What it does | | --- | --- | --- | | `GET /api/v1/automations` | `automations:read` | List automations | | `POST /api/v1/automations` | `automations:write` | Create a draft from a trigger and steps, or a premade | | `GET /api/v1/automations/{automationId}` | `automations:read` | The trigger, steps and problems | | `PATCH /api/v1/automations/{automationId}` | `automations:write` | Change name, trigger and steps | | `DELETE /api/v1/automations/{automationId}` | `automations:write` and **Delete automations** | Delete for good | | `POST /api/v1/automations/{automationId}/activate` | `automations:write` | Switch on | | `POST /api/v1/automations/{automationId}/deactivate` | `automations:write` | Switch off | | `GET /api/v1/automations/{automationId}/runs` | `automations:read` | Run log | | `GET /api/v1/automations/{automationId}/runs/{runId}` | `automations:read` | One run, step by step | | `GET /api/v1/automations/{automationId}/credits` | `automations:read` | Credit use | ### Related --- ## Tables and rows API URL: https://docs.theavoxai.com/avox-api/tables Section: Avox API Create and change [Tables](https://docs.theavoxai.com/tables) and their rows from your own code or an AI assistant. Every change is checked exactly as in the dashboard: column types, required and unique columns, your plan's tables and rows per table. Needs `tables:read` / `tables:write` for tables and columns, and `rows:read` / `rows:write` for rows. Basics (keys, paging, versions, retries, limits): [Builder API quick start](https://docs.theavoxai.com/avox-api/builder). The JavaScript examples use the `avox()` helper from [Builder API reference](https://docs.theavoxai.com/avox-api/reference). ### Tables A table's fields: `id`, `name`, `slug` (its API name, usable instead of the id in every path), `description`, `icon`, `color`, `kind` (`list`, `calendar`, `catalog`, `lookup`, `custom`), `status` (`active` or `archived`), `premadeId`, `rowCount`, `columnCount`, `usedByCount`, `createdAt`, `updatedAt`, `archivedAt`, `etag`, and with a single table, `settings` and `columns`. A column's fields: `id`, `key` (its API name), `name`, `type` (see [Column types](https://docs.theavoxai.com/tables/column-types); `GET /api/v1/catalog` lists them), `required`, `unique`, `defaultValue`, `options` (choices, currency, decimals, formula expression...), `description`, `position`, `hidden`. #### GET /api/v1/tables Active and archived tables, newest change first, with `limits` (`maxTables`, `usedTables`, `maxRowsPerTable`). Query: `status` (`active` or `archived`), `limit` (1 to 100, default 50), `cursor`. ```bash curl "https://api.theavoxai.com/api/v1/tables?status=active" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data, next_cursor } = await avox("/tables?status=active"); ``` #### POST /api/v1/tables Creates a table, in one of two ways. Counts against your plan's tables; send an `Idempotency-Key`. **From a premade table** (ids in `GET /api/v1/catalog`): `premadeId`, and optionally `name`, `description`, `withSamples` (add the premade's sample rows) and `currency` (3 letters, for money columns). **From your own columns:** `name`, `columns` (1 to 50, each with a `key`, `name` and `type`, and optionally `required`, `unique`, `defaultValue`, `options`, `description`, `hidden`), and optionally `description`, `icon`, `color`, `kind`, `currency`. Keys are small letters, numbers and `_`, starting with a letter; names and keys must be different from each other. A choice column's options each need an `id` (`o` and 6 to 12 small letters or numbers, unique in the column), a `label` and a `color` (`gray`, `brand`, `coral`, `sky`, `violet`, `emerald`, `amber`, `rose`). ```bash curl -X POST https://api.theavoxai.com/api/v1/tables \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 5b0f0c8e-9d7a-4f43-8a1e-6c2b3d4e5f70" \ -d '{ "name": "Orders", "kind": "list", "columns": [ { "key": "order_no", "name": "Order number", "type": "text", "required": true, "unique": true }, { "key": "customer", "name": "Customer", "type": "phone" }, { "key": "status", "name": "Status", "type": "select", "options": { "choices": [ { "id": "oplaced01", "label": "Placed", "color": "gray" }, { "id": "oshipped1", "label": "Shipped", "color": "sky" }, { "id": "odeliver1", "label": "Delivered", "color": "emerald" } ] } }, { "key": "total", "name": "Total", "type": "currency", "options": { "currency": "INR" } } ] }' ``` ```js const { ok, data, error } = await avox("/tables", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ premadeId: "appointments", withSamples: false }), }); ``` Answers `201` with `{ table, samplesAdded }` and the table's `ETag`. Errors you may see: `plan_limit_reached` (all your plan's tables are in use), `invalid_payload` (a column's key, name or type; `details` points at it, like `columns[2].key`), `name_taken`. #### GET /api/v1/tables/\{tableId\} One table with its columns. `tableId` is the id or the API name. ```bash curl https://api.theavoxai.com/api/v1/tables/orders -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/tables/orders"); const statusColumn = data.table.columns.find((c) => c.key === "status"); ``` ```json { "ok": true, "request_id": "req_...", "data": { "table": { "id": "0b6c...", "name": "Orders", "slug": "orders", "kind": "list", "status": "active", "rowCount": 0, "etag": "\"Zx3m...\"", "columns": [{ "id": "5e1a...", "key": "order_no", "name": "Order number", "type": "text", "required": true, "unique": true, "defaultValue": null, "options": {}, "position": 0, "hidden": false }] } } } ``` #### PATCH /api/v1/tables/\{tableId\} Changes `name`, `description`, `icon`, `color`, `kind`, `slug` (the API name: small letters, numbers and `_`) and `settings`. Archived tables can be renamed. Send `If-Match` with the table's ETag to be sure nobody changed it since you read it. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/tables/orders \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H 'If-Match: "Zx3m..."' \ -d '{ "name": "Online orders", "description": "Orders from the website" }' ``` ```js await avox(`/tables/${table.id}`, { method: "PATCH", headers: { "If-Match": table.etag }, body: JSON.stringify({ name: "Online orders" }) }); ``` #### DELETE /api/v1/tables/\{tableId\} Deletes the table, its rows and its "Used by" links. While Flows, automations or templates use it, the answer is `in_use` with the list in `details`; add `?force=true` to delete anyway (they stop finding it). Ask the person first. ```bash curl -X DELETE https://api.theavoxai.com/api/v1/tables/orders -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox("/tables/orders", { method: "DELETE" }); ``` #### POST /api/v1/tables/\{tableId\}/archive Archives a table: it can still be read (Flows keep working), but not changed, and it still counts against your plan. When it's in use the answer is `in_use`; send `{ "force": true }` to archive anyway (those uses are marked as needing attention). ```bash curl -X POST https://api.theavoxai.com/api/v1/tables/orders/archive -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox("/tables/orders/archive", { method: "POST", body: JSON.stringify({ force: false }) }); ``` #### POST /api/v1/tables/\{tableId\}/restore Makes an archived table active again (and clears the "needs attention" mark its archiving set). ```bash curl -X POST https://api.theavoxai.com/api/v1/tables/orders/restore -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox("/tables/orders/restore", { method: "POST" }); ``` ### Columns #### POST /api/v1/tables/\{tableId\}/columns Adds a column: `column` (`name`, `type`, and optionally `key`, `required`, `unique`, `defaultValue`, `options`, `description`, `hidden`), and optionally `afterColumn` or `beforeColumn` (an id or key; else it goes last). Up to 50 columns per table. ```bash curl -X POST https://api.theavoxai.com/api/v1/tables/orders/columns \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "column": { "key": "delivered_on", "name": "Delivered on", "type": "date" }, "afterColumn": "status" }' ``` ```js await avox("/tables/orders/columns", { method: "POST", body: JSON.stringify({ column: { name: "Notes", type: "long_text" } }) }); ``` #### PATCH /api/v1/tables/\{tableId\}/columns/\{columnId\} Changes a column (`columnId` is its id or key): `name`, `key`, `type`, `options`, `required`, `unique`, `defaultValue`, `description`, `hidden`, and `timeZone` (for converting dates and times). Changing the type converts every value. When some values won't fit the new type, or Flows, automations or templates use the column, the answer is `confirmation_needed` with how many values would be emptied and what uses it; send the same change with `"confirm": true` to go ahead. Making a column unique is refused (`rows_invalid`, with examples) while values repeat. Removing a choice from `options.choices` clears it from the cells that had it. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/tables/orders/columns/total \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "required": true }' ``` ```js await avox("/tables/orders/columns/customer", { method: "PATCH", body: JSON.stringify({ type: "text", confirm: true }) }); ``` The answer may carry `warnings`: rows with no value in a column just made required (`empty_required`), or a column that couldn't stay unique after a type change (`unique_dropped`). #### DELETE /api/v1/tables/\{tableId\}/columns/\{columnId\} Deletes a column and its cells. When Flows, automations, templates or formula columns use it, the answer is `in_use`; add `?force=true` to delete anyway (they're marked as needing attention). A table keeps at least one column. ```bash curl -X DELETE "https://api.theavoxai.com/api/v1/tables/orders/columns/notes?force=true" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox("/tables/orders/columns/notes", { method: "DELETE" }); ``` ### Rows A row's fields: `id`, `seq` (its number), `values` (by column key: select columns as their labels, multiple choice as a list of labels, auto numbers as shown), `source` (where it was made: `dashboard`, `api`, `flow`, `automation`, `import`...), `createdAt`, `updatedAt`, `etag`. Writing: send values by column key. Values are checked by each column's type exactly as typed in the dashboard (a date as `2026-11-02`, a phone with its country code, a choice by its label). Formula and auto number columns are filled in by Avox. Required columns need a value on every new row, and unique columns refuse a value another row has. Every write request is **all or nothing**: one bad row, or going over your plan's rows per table, and nothing is saved. #### GET /api/v1/tables/\{tableId\}/rows Query: `filters` (a JSON array of `{ "column", "op", "value" }`; `column` is a key, name or id; ops per type on [Column types](https://docs.theavoxai.com/tables/column-types): `is`, `is_not`, `contains`, `not_contains`, `starts_with`, `is_empty`, `not_empty`, `gt`, `gte`, `lt`, `lte`, `has_any`, `has_all`, `is_true`, `is_false`), `sort` (`key:asc` or `key:desc`, up to 3, comma separated; `_created`, `_updated` and `_seq` work too), `q` (search), `limit` (1 to 500, default 100), `cursor`. Answers `{ rows, total }`. ```bash curl -G https://api.theavoxai.com/api/v1/tables/orders/rows \ -H "Authorization: Bearer $AVOX_API_KEY" \ --data-urlencode 'filters=[{"column":"status","op":"is","value":"Shipped"}]' \ --data-urlencode 'sort=total:desc' \ --data-urlencode 'limit=50' ``` ```js const filters = encodeURIComponent(JSON.stringify([{ column: "status", op: "is", value: "Shipped" }])); let cursor = null; do { const page = await avox(`/tables/orders/rows?filters=${filters}&limit=100${cursor ? `&cursor=${cursor}` : ""}`); for (const row of page.data.rows) console.log(row.values.order_no); cursor = page.next_cursor; } while (cursor); ``` #### POST /api/v1/tables/\{tableId\}/rows Adds up to 1,000 rows: `{ "rows": [ { : value } ], "timeZone"?: "Asia/Kolkata" }`. Send an `Idempotency-Key` so a retry never adds them twice. Answers `201` with `{ rows, insertedIds }`. ```bash curl -X POST https://api.theavoxai.com/api/v1/tables/orders/rows \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 1f4e7b2a-8c3d-4e5f-9a0b-1c2d3e4f5a6b" \ -d '{ "rows": [ { "order_no": "A-1001", "customer": "+919876543210", "status": "Placed", "total": 1499 }, { "order_no": "A-1002", "customer": "+919812345678", "status": "Shipped", "total": 650 } ] }' ``` ```js const { ok, data, error } = await avox("/tables/orders/rows", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ rows: [{ order_no: "A-1003", status: "Placed", total: 320 }] }), }); if (!ok && error.code === "rows_invalid") console.log(error.details); // [{ path: "rows[0].total", message: "...", code: "..." }] ``` A refused request names each problem: `rows_invalid` with `details` like `{ "path": "rows[1].order_no", "code": "unique", "message": "Another row already has this value" }`, or `plan_limit_reached` when the rows don't fit in the table on your plan. #### PATCH /api/v1/tables/\{tableId\}/rows Changes up to 1,000 rows: `{ "rows": [ { "id", "values": { : value }, "updatedAt"? } ] }`. Only the values you send change. With `updatedAt` (the row's as you read it), the whole request is refused with `version_conflict` if any of those rows changed since; read them again and retry. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/tables/orders/rows \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "rows": [ { "id": "7a1b...", "values": { "status": "Delivered" }, "updatedAt": "2026-10-23T08:15:30.123456+00:00" } ] }' ``` ```js await avox("/tables/orders/rows", { method: "PATCH", body: JSON.stringify({ rows: [{ id: row.id, values: { status: "Delivered" }, updatedAt: row.updatedAt }] }) }); ``` #### POST /api/v1/tables/\{tableId\}/rows/delete Deletes up to 1,000 rows: `{ "rows": [ { "id", "updatedAt"? } ] }`, all or nothing. Deleted rows can be brought back from the dashboard for 30 days. ```bash curl -X POST https://api.theavoxai.com/api/v1/tables/orders/rows/delete \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "rows": [ { "id": "7a1b..." } ] }' ``` ```js await avox("/tables/orders/rows/delete", { method: "POST", body: JSON.stringify({ rows: ids.map((id) => ({ id })) }) }); ``` #### GET /api/v1/tables/\{tableId\}/rows/\{rowId\} One row, with its `ETag`. ```bash curl https://api.theavoxai.com/api/v1/tables/orders/rows/7a1b... -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/tables/orders/rows/${rowId}`); ``` #### PATCH /api/v1/tables/\{tableId\}/rows/\{rowId\} Changes one row: `{ "values": { : value } }`. With `If-Match` (the row's ETag) it's refused when the row changed since. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/tables/orders/rows/7a1b... \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "values": { "status": "Shipped" } }' ``` ```js await avox(`/tables/orders/rows/${row.id}`, { method: "PATCH", headers: { "If-Match": row.etag }, body: JSON.stringify({ values: { status: "Shipped" } }) }); ``` #### DELETE /api/v1/tables/\{tableId\}/rows/\{rowId\} Deletes one row (`If-Match` optional). ```bash curl -X DELETE https://api.theavoxai.com/api/v1/tables/orders/rows/7a1b... -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox(`/tables/orders/rows/${rowId}`, { method: "DELETE" }); ``` ### Import a CSV #### POST /api/v1/tables/\{tableId\}/rows/import Imports CSV text (comma, semicolon or tab separated; up to 10,000 rows and 8 MB): - `csv`: the text. - `mode`: `dry_run` (default: reports what would happen, writes nothing) or `commit`. - `header`: the first line is the headings (default `true`). - `columns`: file heading to column key, `"skip"`, or `{ "new": { "name", "type" } }`. Headings you don't map are matched to column keys and names; the rest are skipped (listed in `warnings`). - `matchColumn`: a unique column key; rows whose value already exists are updated instead of added. - `addChoices`, `skipInvalid`, `timeZone`. Run a dry run first, read `report` (`rows`, `inserts`, `updates`, `skipped`, `problems`, `issues` with the file row and column of each problem, `room` left in the table), fix what it says, then commit. A commit is checked again first and refused (`import_invalid`) when rows have problems, unless `skipInvalid` is `true`. Test keys may run dry runs. ```bash curl -X POST https://api.theavoxai.com/api/v1/tables/orders/rows/import \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "mode": "dry_run", "matchColumn": "order_no", "csv": "Order number,Status,Total\nA-1001,Delivered,1499\nA-1004,Placed,899" }' ``` ```js const csv = await fs.promises.readFile("orders.csv", "utf8"); const dry = await avox("/tables/orders/rows/import", { method: "POST", body: JSON.stringify({ csv, mode: "dry_run" }) }); if (dry.data.report.problems === 0) { await avox("/tables/orders/rows/import", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ csv, mode: "commit" }) }); } ``` ### Errors you might see | Code | What to do | | --- | --- | | [`rows_invalid`](https://docs.theavoxai.com/api/errors#rows_invalid) | Fix each `details[].path` (row and column) and send the request again. | | [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) | Archive or delete what you don't need, or move to a bigger plan. | | [`not_active`](https://docs.theavoxai.com/api/errors#not_active) | The table is archived: restore it first. | | [`in_use`](https://docs.theavoxai.com/api/errors#in_use) | Tell the person what uses it; send `force` only if they agree. | | [`confirmation_needed`](https://docs.theavoxai.com/api/errors#confirmation_needed) | Tell the person what would be emptied; send `confirm: true` only if they agree. | | [`version_conflict`](https://docs.theavoxai.com/api/errors#version_conflict) | Read the item again and retry with its new ETag or `updatedAt`. | | [`import_invalid`](https://docs.theavoxai.com/api/errors#import_invalid) | Fix the file rows the report lists, or send `skipInvalid: true`. | ### Related --- ## Flows API URL: https://docs.theavoxai.com/avox-api/flows Section: Avox API Make [WhatsApp Flows](https://docs.theavoxai.com/flows) from your own code or an AI assistant: start from a premade Flow or your own Flow JSON, check it, change it while it's a draft, then publish it. Live Flows read and write your [Tables](https://docs.theavoxai.com/tables) through [Avox's endpoint](https://docs.theavoxai.com/flows/live-endpoint), set up exactly as the dashboard does it. Needs `flows:read` / `flows:write` (deleting and deprecating also need **Delete Flows** for the person who set the key's permissions). Basics: [Builder API quick start](https://docs.theavoxai.com/avox-api/builder). The JavaScript examples use the `avox()` helper from [Builder API reference](https://docs.theavoxai.com/avox-api/reference). ### How a Flow is made `POST /api/v1/flows` makes the Flow at WhatsApp as a draft and uploads its JSON. It counts against your plan's Flows. WhatsApp's findings on the JSON come back as `validationErrors`. `POST /api/v1/flows/{flowId}/validate` runs Avox's checks and WhatsApp's validator. Fix everything it lists with `PATCH /api/v1/flows/{flowId}` (a new `flowJson`, `live` settings, name or categories), and validate again. `POST /api/v1/flows/{flowId}/publish`. After that the Flow can't change; a change means a new Flow (or `new_version` for live data, below). A Flow's fields: `id`, `metaFlowId`, `name`, `category`, `status` (`draft`, `published`, `deprecated`, `error`), `liveMode` (`off`, `avox`, `passthrough`, `direct`), `liveInit` (its first screen loads data: send it with `flow_action: "data_exchange"`), `premadeId`, `createdAt`, `updatedAt`, `publishedAt`, `etag`. #### GET /api/v1/flows Query: `status`, `limit` (1 to 100), `cursor`. ```bash curl "https://api.theavoxai.com/api/v1/flows?status=published" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/flows?status=draft"); ``` #### POST /api/v1/flows Creates a draft Flow, in one of two ways. Send an `Idempotency-Key`. **From a premade Flow** (ids in `GET /api/v1/catalog`): `kind: "template"`, `templateId`. A live premade needs its tables: name them in `presetTables` (the premade's table `ref` to your table's id or API name), or leave it out and Avox uses your newest active table made from the premade table each one needs. With none, the answer is `flow_live_setup_needed` and `details` says which table to create (`POST /api/v1/tables` with that `premadeId`). `timeZone` sets the time zone of its date and time values. **From your own JSON:** `kind: "custom"`, `name`, `categories` (WhatsApp's: `SIGN_UP`, `SIGN_IN`, `APPOINTMENT_BOOKING`, `LEAD_GENERATION`, `SHOPPING`, `CONTACT_US`, `CUSTOMER_SUPPORT`, `SURVEY`, `OTHER`), `flowJson`, and optionally `live` (live data settings, below) or `endpointUri` (your own https server). See [Write a Flow with any AI](https://docs.theavoxai.com/flows/write-with-ai) for the JSON. ```bash curl -X POST https://api.theavoxai.com/api/v1/flows \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 2a9d6c1e-7f3b-4c8a-b5e4-0d1c2b3a4f5e" \ -d '{ "kind": "template", "templateId": "appointment_booking", "presetTables": { "slots": "time_slots", "bookings": "appointments" }, "timeZone": "Asia/Kolkata" }' ``` ```js const flowJson = JSON.parse(await fs.promises.readFile("feedback-flow.json", "utf8")); const { ok, data, error } = await avox("/flows", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ kind: "custom", name: "Visit feedback", categories: ["SURVEY"], flowJson }), }); if (ok && data.validationErrors.length) console.log("Fix before publishing:", data.validationErrors); ``` Answers `201` with `{ flow, validationErrors, liveInit }`. `validationErrors` items have a `message`, WhatsApp's `error` name, `line` and `column` in the JSON, and `pointers`. #### POST /api/v1/flows/validate Checks Flow JSON you send without saving anything: `{ "flowJson", "live"?, "endpointUri"? }`. Answers `{ validation: { valid, validationErrors, lint: { errors, warnings, live } } }`: `lint.errors` are Avox's shape checks (every screen needs an id, a Form and a Footer that does something), `lint.warnings` are answers that never reach Avox and passwords sent back into the chat, `lint.live` the live data checks, `validationErrors` WhatsApp's findings. Test keys may use it. ```bash curl -X POST https://api.theavoxai.com/api/v1/flows/validate \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d @flow.json ``` ```js const { data } = await avox("/flows/validate", { method: "POST", body: JSON.stringify({ flowJson }) }); if (!data.validation.valid) console.log(data.validation); ``` (`flow.json` here holds `{ "flowJson": { ... } }`.) #### GET /api/v1/flows/\{flowId\} The Flow with its `flowJson`, its `live` settings (`mode`, `config`, `screens` with their inputs and data, `issues` for links that need attention, `checks`), Avox's `lint` and WhatsApp's own `meta` status and validation errors. ```bash curl https://api.theavoxai.com/api/v1/flows/FLOW_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/flows/${flowId}`); ``` #### PATCH /api/v1/flows/\{flowId\} Changes a draft (status `draft`, or `error` after a failed publish in the dashboard): `name`, `categories`, `flowJson` (uploaded to WhatsApp again; its findings come back as `validationErrors`) and `live` (the table links; same data source). A published Flow answers `flow_not_draft`. Send `If-Match` with the Flow's ETag. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/flows/FLOW_ID \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H 'If-Match: "Qa8..."' \ -d '{ "name": "Visit feedback (short)" }' ``` ```js await avox(`/flows/${flow.id}`, { method: "PATCH", headers: { "If-Match": flow.etag }, body: JSON.stringify({ flowJson: fixedJson }) }); ``` #### POST /api/v1/flows/\{flowId\}/validate Runs the same checks as `POST /api/v1/flows/validate` on the Flow as saved (with its live parts). Nothing changes. ```bash curl -X POST https://api.theavoxai.com/api/v1/flows/FLOW_ID/validate -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/flows/${flowId}/validate`, { method: "POST" }); ``` #### POST /api/v1/flows/\{flowId\}/publish Publishes a draft. Avox checks first: the JSON's shape, the live data settings against your tables, and for live Flows on Avox's endpoint, that the endpoint is reachable (`flow_endpoint_not_public` otherwise). WhatsApp then checks again (it calls a live Flow's endpoint first); its findings come back as `meta_refused` with `details`. ```bash curl -X POST https://api.theavoxai.com/api/v1/flows/FLOW_ID/publish -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { ok, error } = await avox(`/flows/${flowId}/publish`, { method: "POST" }); ``` #### POST /api/v1/flows/\{flowId\}/deprecate Retires a published Flow (it stops opening). Needs **Delete Flows**. ```bash curl -X POST https://api.theavoxai.com/api/v1/flows/FLOW_ID/deprecate -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox(`/flows/${flowId}/deprecate`, { method: "POST" }); ``` #### DELETE /api/v1/flows/\{flowId\} Deletes a draft at WhatsApp and in Avox (a published Flow answers `flow_not_draft`: deprecate it instead). Needs **Delete Flows**. ```bash curl -X DELETE https://api.theavoxai.com/api/v1/flows/FLOW_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox(`/flows/${flowId}`, { method: "DELETE" }); ``` ### Live data A live Flow's settings (`live`): `{ "version": 1, "mode": "avox", "timeZone": "Asia/Kolkata", "screens": [ { "screenId", "open": [steps], "submit": [steps], "next"? } ] }`. Each step reads or writes one table (list rows, look up a row, check one exists, add or update a row, add to or take from a number, book a slot, calculate). Table and column ids come from `GET /api/v1/tables/{tableId}`. The step shapes and what each does are on [Live Flows and the Avox endpoint](https://docs.theavoxai.com/flows/live-endpoint); the schema is in [/openapi.json](https://docs.theavoxai.com/openapi.json). Starting from a live premade Flow is the easiest way to get them right. #### GET /api/v1/flows/\{flowId\}/live The live data settings, the screens of the JSON (their inputs and data), links needing attention (a column deleted, a table archived), and the checks. ```bash curl https://api.theavoxai.com/api/v1/flows/FLOW_ID/live -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/flows/${flowId}/live`); ``` #### PUT /api/v1/flows/\{flowId\}/live Saves changed table links: `{ "config": { ... } }` with the same `mode`. They take effect at once, also on a published Flow; a change its screens can't take (new data a published JSON doesn't declare) answers `flow_needs_new_version`. ```bash curl -X PUT https://api.theavoxai.com/api/v1/flows/FLOW_ID/live \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d @live-config.json ``` ```js await avox(`/flows/${flowId}/live`, { method: "PUT", body: JSON.stringify({ config }) }); ``` #### POST /api/v1/flows/\{flowId\}/live/mode Changes where the live data comes from: `mode` (`avox`, `passthrough` with `passthroughUrl`, or `direct` with `directUrl`) and `action`: `"switch"` (drafts) or `"new_version"` (publishes a new Flow with the new source and your `config`, counted against your plan; the old one keeps working until you deprecate it). Pass-through needs its signing secret, made in the dashboard first. ```bash curl -X POST https://api.theavoxai.com/api/v1/flows/FLOW_ID/live/mode \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": "switch", "mode": "avox" }' ``` ```js await avox(`/flows/${flowId}/live/mode`, { method: "POST", body: JSON.stringify({ action: "new_version", mode: "avox", config }) }); ``` ### Logs and answers These take `limit` (10, 25, 50 or 100) and `cursor`, plus `from` and `to` (times with their offset, like `2026-10-01T00:00:00+05:30`, at most 366 days apart). #### GET /api/v1/flows/\{flowId\}/logs Every live data request WhatsApp sent for the Flow: screen, what happened, how long it took, each step's outcome and the AVX code when something went wrong, plus `stats` (per day, timings, errors by code, this month's live requests against your plan). Also `outcome` (`all` or `errors`) and `days` (7, 30 or 90). ```bash curl "https://api.theavoxai.com/api/v1/flows/FLOW_ID/logs?outcome=errors&limit=25" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/flows/${flowId}/logs?outcome=errors`); ``` #### GET /api/v1/flows/\{flowId\}/sends Every send of the Flow (by automations or the API) and how far it got: sent, delivered, read, completed, failed. Also `status`. ```bash curl "https://api.theavoxai.com/api/v1/flows/FLOW_ID/sends?limit=50" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/flows/${flowId}/sends`); ``` #### GET /api/v1/flows/\{flowId\}/responses The answers people sent, newest first, under the questions' labels (`columns`). ```bash curl "https://api.theavoxai.com/api/v1/flows/FLOW_ID/responses?limit=100" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js let cursor = null; do { const page = await avox(`/flows/${flowId}/responses?limit=100${cursor ? `&cursor=${cursor}` : ""}`); page.data.responses.forEach((r) => console.log(r)); cursor = page.next_cursor; } while (cursor); ``` ### Errors you might see | Code | What to do | | --- | --- | | [`flow_invalid`](https://docs.theavoxai.com/api/errors#flow_invalid) | Fix each item in `details` (the JSON or the live settings) and try again. | | [`meta_refused`](https://docs.theavoxai.com/api/errors#meta_refused) | WhatsApp's findings are in `details`; fix the JSON and try again. | | [`flow_not_draft`](https://docs.theavoxai.com/api/errors#flow_not_draft) | Published Flows can't change: create a new Flow. | | [`flow_live_setup_needed`](https://docs.theavoxai.com/api/errors#flow_live_setup_needed) | Create the table `details` names, or do the dashboard step it names. | | [`flow_endpoint_not_public`](https://docs.theavoxai.com/api/errors#flow_endpoint_not_public) | Contact Avox support. | | [`whatsapp_not_connected`](https://docs.theavoxai.com/api/errors#whatsapp_not_connected) | Connect or reconnect a number in the dashboard. | | [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) | Delete or deprecate a Flow, or move to a bigger plan. | ### Related --- ## Templates API URL: https://docs.theavoxai.com/avox-api/templates Section: Avox API Write [message templates](https://docs.theavoxai.com/templates) from your own code or an AI assistant and send them to WhatsApp for review, exactly as the dashboard does: the same checks, the same name and language rules, the same plan limit. Needs `templates:read` / `templates:write` (deleting also needs **Delete templates** for the person who set the key's permissions). Basics: [Builder API quick start](https://docs.theavoxai.com/avox-api/builder). To send a template, use [`POST /api/messages/send`](https://docs.theavoxai.com/avox-api/messages#template) with the `send` scope. The JavaScript examples use the `avox()` helper from [Builder API reference](https://docs.theavoxai.com/avox-api/reference). ### Review status Every new or edited template goes to WhatsApp for review. `status` is `PENDING` until WhatsApp decides, then `APPROVED` or `REJECTED` (with `rejectedReason`); WhatsApp can later set `PAUSED` or `DISABLED`. Only approved templates can be sent or used by an automation that's switched on. Reviews usually take minutes and can take up to a day: check `GET /api/v1/templates/{templateId}` no more than once a minute. A template's fields: `id`, `metaTemplateId`, `name`, `language`, `category` (`MARKETING`, `UTILITY`, `AUTHENTICATION`), `status`, `rejectedReason`, `qualityScore`, `components` (WhatsApp's header, body, footer and buttons), `source`, `libraryId`, `lastEditedAt`, `syncedAt`, `etag`. #### GET /api/v1/templates Query: `status` (`APPROVED`, `PENDING`, `REJECTED`, `PAUSED`, `DISABLED`...), `language`, `limit` (1 to 100), `cursor`. ```bash curl "https://api.theavoxai.com/api/v1/templates?status=APPROVED" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/templates?status=APPROVED"); ``` #### POST /api/v1/templates Creates a template and sends it for review. Counts against your plan's templates; send an `Idempotency-Key`. Three ways: **An Avox library template** (ids in `GET /api/v1/catalog`, written and checked by Avox in several languages): `libraryId`, and optionally `name` (default: the library id), `language` (one of its `languages`). A template whose header is an image, video or document needs a sample file uploaded in the dashboard's template wizard. A template with a sample link answers with a `sample_link` warning: replace the link with yours (edit it, or write your own). **Your own content:** `kind: "custom"`, `name` (small letters, numbers and `_`), `language` (like `en_US`), `category` (`MARKETING` or `UTILITY`), `bodyText` (up to 1,024 characters, variables `{{1}}`, `{{2}}`... in order), `sampleValues` (one realistic example per variable: WhatsApp needs them), and optionally `headerFormat` (`NONE` or `TEXT`) with `headerText` and `headerSampleValue`, `footerText` (up to 60 characters), `buttons` (`QUICK_REPLY` with `text`, `URL` with `text` and `url`, `PHONE_NUMBER` with `text` and `phone_number`). `kind: "otp"` makes an Authentication template (WhatsApp writes its text). **A WhatsApp library template** (from `GET /api/v1/templates/library`): `libraryTemplateName`, `name`, `language`, and its `bodyInputs` / `buttonInputs`. ```bash curl -X POST https://api.theavoxai.com/api/v1/templates \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 7c2e9b4a-1d6f-4a3e-8b5c-9e0f1a2b3c4d" \ -d '{ "kind": "custom", "name": "order_shipped", "language": "en_US", "category": "UTILITY", "bodyText": "Hi {{1}}, your order {{2}} is on its way. It should reach you by {{3}}.", "sampleValues": ["Aditi", "A-1001", "Friday"], "footerText": "Reply STOP to stop updates", "buttons": [{ "type": "QUICK_REPLY", "text": "Track my order" }] }' ``` ```js const { ok, data, error } = await avox("/templates", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ libraryId: "booking_reminder", language: "en_US" }), }); if (!ok && error.code === "name_taken") console.log(error.details[0].message); // includes a free name to use ``` Answers `201` with `{ template }` (status `PENDING`; `category` is WhatsApp's answer, so a `UTILITY` template WhatsApp filed as `MARKETING` shows it straight away). A name already used in that language answers `name_taken` with a free name in `details`; WhatsApp refusing the content answers `meta_refused` with WhatsApp's reason when it gave one. Avox checks WhatsApp's review rules first and answers `invalid_payload` with a `details` entry for each: a `{` or `}` that isn't part of a variable, an example value with curly brackets, tabs, line breaks or 4 spaces in a row, a text header with emoji or `*` `_` `~`, a `messageSendTtlSeconds` outside the category's range (Authentication 30 to 900, Utility 30 to 43,200, Marketing 43,200 to 2,592,000 seconds), and wording that sends a sign-in or verification code in a `UTILITY` or `MARKETING` template (WhatsApp rejects those with no review; send `"codeWordingConfirmed": true` only when the message doesn't send one). The same body and footer wording as another template on the account answers `invalid_payload` with code `duplicate_content` and the matching template's id. More than 100 new templates on one WhatsApp account in an hour answers `meta_rate_limited` (code `meta_hourly_limit`) with `Retry-After`. Variables written with spaces, like `{{ 1 }}`, are sent as `{{1}}`. #### GET /api/v1/templates/\{templateId\} The template, and `editing`: whether it can be edited now (`editable`, the `reason` when not, `categoryLocked`, `nextAllowedAt` when an approved template used its edits). ```bash curl https://api.theavoxai.com/api/v1/templates/TEMPLATE_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js let template; do { await new Promise((r) => setTimeout(r, 60_000)); template = (await avox(`/templates/${templateId}`)).data.template; } while (template.status === "PENDING"); ``` #### PATCH /api/v1/templates/\{templateId\} Edits the text and category: `category`, `bodyText`, and optionally `headerText`, `headerSampleValue`, `footerText`, `sampleValues`. Name, language, buttons and a media header stay as they are. WhatsApp reviews it again (`PENDING`). WhatsApp's rules: approved templates can be edited once every 24 hours and 10 times in 30 days, and keep their category; rejected and paused ones any time; pending ones not at all (`template_not_editable`, or `template_edit_limit` with `Retry-After`). An edit that changes nothing is refused. The content goes through the same checks as a new template (`codeWordingConfirmed` too), and only the example values the new text uses are sent. Send `If-Match` with the template's ETag. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/templates/TEMPLATE_ID \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "category": "UTILITY", "bodyText": "Hi {{1}}, order {{2}} has shipped and should arrive by {{3}}.", "sampleValues": ["Aditi", "A-1001", "Friday"] }' ``` ```js await avox(`/templates/${t.id}`, { method: "PATCH", headers: { "If-Match": t.etag }, body: JSON.stringify({ category: t.category, bodyText: newText, sampleValues }) }); ``` #### DELETE /api/v1/templates/\{templateId\} Deletes this language of the template, at WhatsApp and in Avox. Needs **Delete templates**. Refused with `409 template_in_use` while a Broadcast that hasn't finished, a smart link that can still be opened or an automation that is on uses it; `details` lists each one. Drafts and paused automations don't block: they just lose the template. ```bash curl -X DELETE https://api.theavoxai.com/api/v1/templates/TEMPLATE_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox(`/templates/${templateId}`, { method: "DELETE" }); ``` #### GET /api/v1/templates/library WhatsApp's own library of pre-written Utility templates, which are usually approved quickly. Query: `search`, `topic`, `usecase`, `industry`, `language`, `limit` (1 to 50), `cursor`. ```bash curl "https://api.theavoxai.com/api/v1/templates/library?search=delivery&language=en_US" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/templates/library?search=payment"); ``` ### Errors you might see | Code | What to do | | --- | --- | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | Fix the fields `details` names (a missing sample value is the usual one). | | [`name_taken`](https://docs.theavoxai.com/api/errors#name_taken) | Use the free name in `details`, or another name. | | [`meta_refused`](https://docs.theavoxai.com/api/errors#meta_refused) | Read WhatsApp's reason and change the content. | | [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) | WhatsApp's 100 new templates per account per hour: wait until `Retry-After`. | | [`template_not_editable`](https://docs.theavoxai.com/api/errors#template_not_editable) | Wait for the review, or create a new template. | | [`template_edit_limit`](https://docs.theavoxai.com/api/errors#template_edit_limit) | Wait until `Retry-After`. | | [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) | Delete a template you don't use, or move to a bigger plan. | ### Related --- ## Automations API URL: https://docs.theavoxai.com/avox-api/automations Section: Avox API Build [automations](https://docs.theavoxai.com/automation) from your own code or an AI assistant. Every save is checked exactly as in the dashboard's builder: each step's settings, the `{{...}}` values each message uses, and the tables, columns, templates, Flows and apps the automation points at. Needs `automations:read` / `automations:write` (deleting also needs **Delete automations** for the person who set the key's permissions). Basics: [Builder API quick start](https://docs.theavoxai.com/avox-api/builder). The JavaScript examples use the `avox()` helper from [Builder API reference](https://docs.theavoxai.com/avox-api/reference). ### How an automation is made An automation is a **trigger** (`triggerType` and its `triggerConfig`) and a list of **steps** (`actions`, each `{ "actionType", "actionConfig" }`, run in order). Every new automation is a **draft**: it runs only after `POST /api/v1/automations/{automationId}/activate`, which needs at least one step, no problems, an unpaused Switchboard, approved templates, published Flows, and room in your plan's automations that are on. The trigger types, step types and their settings are the ones the builder shows; the full list is in `GET /api/v1/catalog` (`types.triggerTypes`, `types.actionTypes`) and the schemas are in [/openapi.json](https://docs.theavoxai.com/openapi.json). See [Automation](https://docs.theavoxai.com/automation) and [Automations with tables and Flows](https://docs.theavoxai.com/automation/tables) for what each does. The fastest and safest start is a premade. Table and column ids in a step's settings are the ids from `GET /api/v1/tables/{tableId}` (not the keys). Messages use values like `{{contact.first_name}}`, `{{row.price}}` (a table trigger's row) or `{{order.status|unknown}}` (an earlier Find a row step named `order`, with a fallback). #### The Send a message step `send_message` sends any kind of message in Avox's message model, the same one the Inbox and the send API use. Its settings are `{ "content": { "kind": ..., ... } }`: | `kind` | What it sends | Main fields | | --- | --- | --- | | `text` | A message, with an optional link preview | `body` (4096), `previewUrl` | | `buttons` | Up to 3 reply buttons | `body` (1024), `buttons[]` (`id`, `title` up to 20, different labels), optional `header` and `footer` (60) | | `list` | A list of up to 10 options | `body` (4096), `button` (20), `sections[]` (1 to 10, `title` up to 24, needed once there are two), `rows[]` (10 in all, `title` 24, `description` 72) | | `cta_url` | One button that opens a web page | `body` (1024), `label` (20), `url` (https) | | `location` | A map pin | `latitude` (-90 to 90), `longitude` (-180 to 180), `name`, `address` | | `location_request` | A Send location button | `body` (1024) | | `contacts` | Contact cards | `cards[]` (1 to 10, `name`, `phones`, `emails`, `org`) | | `image`, `video`, `audio`, `document`, `sticker` | A file | `media: { "link": "https://..." }`, `caption` (1024) | | `flow` | One of your published Flows | `flowId` (the Flow's Avox id), `cta` (20), `body` | | `address_request` | A delivery address form (India only) | `body` (1024), optional `values` to fill in | - Texts and links may hold values like `{{contact.first_name}}`. With the values filled in, the message is checked against every WhatsApp limit again; a message that breaks one isn't sent (AVX-4530 in the run log). - Files are sent by `https` link only. A header (`buttons`, `cta_url`) is `{ "type": "text", "text": ... }` or `{ "type": "image" | "video" | "document", "media": { "link": ... } }`. - `template`, `reaction` and `call_permission_request` aren't allowed here: use the Send a template and Request a call steps. - Address requests reach only Indian customers from an Indian business number (AVX-4531 otherwise). - Credits per send: 2 for `buttons` and `list`, 3 for `flow`, 1 for any other kind. Like every message except a template, it's sent only inside the 24-hour window. ```json { "actionType": "send_message", "actionConfig": { "content": { "kind": "buttons", "body": "Hi {{contact.first_name|there}}, is this about a new order?", "buttons": [{ "id": "new", "title": "New order" }, { "id": "old", "title": "Earlier order" }] } } } ``` An automation's fields: `id`, `name`, `status` (`draft`, `active`, `paused`), `triggerType`, `triggerConfig`, `premadeId`, `stepCount`, `createdAt`, `updatedAt`, `etag`, and with a single automation, `actions` and `canvas`. #### GET /api/v1/automations Query: `status`, `limit` (1 to 100), `cursor`. ```bash curl "https://api.theavoxai.com/api/v1/automations?status=active" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox("/automations"); ``` #### POST /api/v1/automations Creates a draft automation, all or nothing (it's made only when its steps can be saved). Counts against your plan's automations; send an `Idempotency-Key`. **From a premade** (ids in `GET /api/v1/catalog`): `premadeId`, and optionally `name`, `timeZone` (for date and table triggers) and `utcOffsetMinutes` (for Business hours). The premade is fitted to your Switchboard exactly as the dashboard does it: your table made from the premade table it needs, your connected app, your approved template made from the Avox template it was written for. When something's missing, the answer is `automation_not_ready` and `details` lists each missing table (with the `premadeId` to create it from), app or approved template, and nothing is made. **From a trigger and steps:** `name`, `triggerType`, `triggerConfig`, and optionally `actions`. ```bash curl -X POST https://api.theavoxai.com/api/v1/automations \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 4e8d2c6a-0b1f-4d7e-9c3a-5f6e7d8c9b0a" \ -d '{ "name": "Opening hours reply", "triggerType": "keyword", "triggerConfig": { "keywords": ["hours", "timing", "open"] }, "actions": [ { "actionType": "send_text", "actionConfig": { "body": "Hi {{contact.first_name|there}}! We are open 10 am to 8 pm, Monday to Saturday." } } ] }' ``` ```js const { ok, data, error } = await avox("/automations", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ premadeId: "booking_reminder_day", timeZone: "Asia/Kolkata" }), }); if (!ok && error.code === "automation_not_ready") { for (const d of error.details) console.log(d.path, d.message); // what to create first } ``` Answers `201` with `{ automation, problems }`. `problems` (also in `warnings`) are things that must be fixed before it can be switched on, each with the step (`actions[2]` or `trigger`) and an AVX code, like a table that was archived or a template variable with no value. #### GET /api/v1/automations/\{automationId\} The automation with its trigger and steps, and its current `problems`. ```bash curl https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/automations/${automationId}`); ``` #### PATCH /api/v1/automations/\{automationId\} Changes `name`, `triggerType` (always with its `triggerConfig`), `triggerConfig`, `actions` (the whole list: steps you leave out are removed) and `canvas`. Changing the steps ends runs that are waiting for a reply. Switch it on or off with the endpoints below, not here. Send `If-Match` with the automation's ETag. ```bash curl -X PATCH https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H 'If-Match: "Lp2..."' \ -d '{ "name": "Opening hours reply (weekdays)" }' ``` ```js const { data: current } = await avox(`/automations/${id}`); const actions = [...current.automation.actions, { actionType: "send_text", actionConfig: { body: "Anything else?" } }]; await avox(`/automations/${id}`, { method: "PATCH", headers: { "If-Match": current.automation.etag }, body: JSON.stringify({ actions }) }); ``` #### POST /api/v1/automations/\{automationId\}/activate Switches it on. Refused with `automation_not_ready` (problems, no steps, a template that isn't approved, a Flow that isn't published; `details` names the step), `switchboard_paused`, or `plan_limit_reached` (all the automations your plan allows are on). AI steps need the Switchboard's Avox AI agreement, given by a person in the dashboard (Settings > Avox AI; an API key can't agree for anyone). Without it, switching on an automation with AI steps, or saving AI steps into one that is on, answers `automation_not_ready` with code `AVX-3295` on that step. Automations without AI steps never need it, and the dashboard's Automation setup doesn't hold back the API. See [Setup and the Avox AI agreement](https://docs.theavoxai.com/automation#setup-and-the-avox-ai-agreement). ```bash curl -X POST https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID/activate -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { ok, error } = await avox(`/automations/${id}/activate`, { method: "POST" }); ``` #### POST /api/v1/automations/\{automationId\}/deactivate Switches it off (status `paused`); runs waiting for a reply end. ```bash curl -X POST https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID/deactivate -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox(`/automations/${id}/deactivate`, { method: "POST" }); ``` #### DELETE /api/v1/automations/\{automationId\} Deletes it for good, with its "Used by" links on tables and templates. Needs **Delete automations**. ```bash curl -X DELETE https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js await avox(`/automations/${id}`, { method: "DELETE" }); ``` ### Run log and credits #### GET /api/v1/automations/\{automationId\}/runs Every run, newest first: the contact, what started it, when, how it ended and why, credits and steps, plus counts per outcome. Query: `from`, `to` (times with their offset, at most 366 days apart), `outcome`, `trigger`, `limit` (10, 25, 50 or 100), `cursor`. ```bash curl "https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID/runs?limit=25" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/automations/${id}/runs?limit=50`); ``` #### GET /api/v1/automations/\{automationId\}/runs/\{runId\} One run step by step: each step, its values, the messages it sent with their status, the rows it read or wrote, and why it stopped (with the AVX code). ```bash curl https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID/runs/RUN_ID -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/automations/${id}/runs/${runId}`); ``` #### GET /api/v1/automations/\{automationId\}/credits Credits used this period and all time, per run, per step that costs credits, per day (in `tz`, an IANA time zone, default UTC), its share of the Switchboard's credits, and next month at the current pace. ```bash curl "https://api.theavoxai.com/api/v1/automations/AUTOMATION_ID/credits?tz=Asia/Kolkata" -H "Authorization: Bearer $AVOX_API_KEY" ``` ```js const { data } = await avox(`/automations/${id}/credits?tz=UTC`); ``` ### Errors you might see | Code | What to do | | --- | --- | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | Fix the step or trigger setting `details` names, like `actions[1].actionConfig.body`. | | [`automation_invalid`](https://docs.theavoxai.com/api/errors#automation_invalid) | A `{{...}}` value doesn't exist at that step: fix the name or add a fallback. | | [`automation_not_ready`](https://docs.theavoxai.com/api/errors#automation_not_ready) | Make what `details` lists (a table, an approved template, a published Flow, a connected app), then try again. Code `AVX-3295` on a step: someone who manages automations agrees in Settings > Avox AI first. | | [`switchboard_paused`](https://docs.theavoxai.com/api/errors#switchboard_paused) | An Admin resumes the Switchboard first. | | [`plan_limit_reached`](https://docs.theavoxai.com/api/errors#plan_limit_reached) | Delete or switch off an automation, or move to a bigger plan. | ### Related --- ## API errors URL: https://docs.theavoxai.com/api/errors Section: Avox API When a request to the [Avox API](https://docs.theavoxai.com/avox-api) or the [builder API](https://docs.theavoxai.com/avox-api/builder) doesn't go through, the response always has the same shape, so your code can handle every failure the same way: ```json { "ok": false, "error": { "code": "invalid_recipient", "message": "The \"to\" number isn't valid. Use the full international number with country code, digits only, like 15551234567.", "docs_url": "https://docs.theavoxai.com/api/errors#invalid_recipient", "request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9", "details": [ { "path": "to", "message": "Use the full international number, digits only, like 15551234567" } ] } } ``` | Field | What it's for | | --- | --- | | `code` | A stable identifier. Codes are never renamed or removed, so it's safe to branch on. | | `message` | Written for a person - fine to log or show your team. The wording may improve over time. | | `docs_url` | Links straight to that code's entry on this page. | | `request_id` | Also sent as the `X-Request-Id` header on every response. Include it when you contact [Support](https://docs.theavoxai.com/support). | | `details` | Only on some errors: `{ "path", "message" }` pairs saying which field to fix (up to 10 for sends, 50 for the builder API), with a short `code` when there is one (like `unique` or `AVX-3589`). | | `meta_code` | Only when WhatsApp refused the message: WhatsApp's own numeric code. See [Meta error codes](https://docs.theavoxai.com/meta-error-codes). | | `solution`, `service`, `part`, `status_url`, `retry_after_seconds` | Only when Avox paused the API or sending for a short while (`api_paused`, `sending_paused`): what to do, what is paused and where to watch. See [api_paused](#api_paused). | | `test` | Only on responses to a [test key](https://docs.theavoxai.com/avox-api/testing#1-test-mode) (`avx_test_...`): `true`, next to `ok`. The response also has the `Avox-Test-Mode: true` header. Test keys run every Avox check for real, and the [special test numbers](https://docs.theavoxai.com/avox-api/testing#special-test-numbers) return WhatsApp's refusals on purpose. | Error responses also carry `Retry-After` (whole seconds) when waiting will fix the problem. ### Find a failed request in the dashboard Every request made with one of your keys, successful or not, is on the **API logs** page in the dashboard (Admins and Managers can open it): 1. Open **API logs** and stay on the **Sent** tab. 2. Paste the `request_id` (`req_...`) into the search box, or pick a code in the error code filter (**Any error code**) to see every request that failed the same way. Narrow it down by key, mode (**Live only** or **Test only**), connection or date. 3. Click the row. **Request details** show the time, HTTP status, error code (linked to this page), key, connection, masked recipient, request id, message id, latency and the calling IP address. 4. **Export CSV** downloads everything matching your filters. A key's latest requests are also under **Recent requests** when you expand it in **Settings > API Keys**. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). Requests that never named a real key - no `Authorization` header, a mistyped key, or a request refused by the per-address limits before the key was checked - can't be tied to your account, so they aren't listed. Log `X-Request-Id` on your side for those. ### Which errors are safe to retry? | Retry? | Codes | | --- | --- | | Yes, after the `Retry-After` delay | `rate_limited`, `idempotency_in_progress`, `builder_unavailable`, `api_paused`, `sending_paused` | | Yes, after the `Retry-After` delay, with a new `Idempotency-Key` | `meta_rate_limited` | | Yes, after a short wait | `internal_error` | | Carefully - it may already be sent | `meta_unavailable` | | After reading the item to see whether the change was made | `meta_unreachable` | | After midnight UTC | `quota_exceeded`, `builder_quota_exceeded` | | After the time in `Retry-After` | `template_edit_limit` | | Only after you fix something | Everything else | When you retry, send the same `Idempotency-Key` header as the first attempt so a message is never sent twice - except after a refusal from WhatsApp, which is kept against that key. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency) and [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). Some problems are found by WhatsApp only after it accepts a message, so they arrive later as a `failed` status on [Logs](https://docs.theavoxai.com/logs) instead of as an error here (see [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks)). The status carries WhatsApp's own code - look it up on [Meta error codes](https://docs.theavoxai.com/meta-error-codes). ### Your API key missing_api_key **HTTP 401.** The request had no API key. - **Common causes:** the `Authorization` header is missing, or your HTTP tool dropped it. Signing in to the dashboard doesn't count - this endpoint only accepts an API key, never a browser session. - **How to fix it:** send `Authorization: Bearer avx_live_...` on every request, with your key read from an environment variable on your server. See [Authentication](https://docs.theavoxai.com/avox-api/authentication). - **Retry:** only after adding the header. invalid_api_key **HTTP 401.** The key you sent isn't a key Avox recognises. - **Common causes:** part of the key was cut off when copying, there's an extra space or quote around it, or the header doesn't start with `Bearer `. - **How to fix it:** copy the key again from where you stored it. If you no longer have it, an Admin creates a new key - a key is only shown once, when it's created. - **Retry:** only with the correct key. Many failed key attempts from the same address in a short time are temporarily refused with `rate_limited`. Fix the key before retrying. key_revoked **HTTP 401.** This key worked once but has been revoked. - **Common causes:** an Admin on your team revoked it, or Avox support revoked it to protect your account. - **How to fix it:** create a new key for the same number and update your server's secret. - **Retry:** only with a new key. key_expired **HTTP 401.** This key had an end date, and it has passed. - **Common causes:** the key was [rotated](https://docs.theavoxai.com/connections/api-keys#rotate-a-key) and the grace period you picked has ended. - **How to fix it:** put the key that replaced it on your server (or create a new key) and update your server's secret. - **Retry:** only with the new key. ip_not_allowed **HTTP 403.** This key only works from certain IP addresses, and the request came from somewhere else. - **Common causes:** your server moved, or its outgoing address changed after a redeploy. - **How to fix it:** call from an allowed address, or contact [Support](https://docs.theavoxai.com/support) to update the list. If you don't recognise the request, revoke the key - it may have leaked. The key also shows **Blocked request from an unknown address** in **Settings > API keys**. - **Retry:** only from an allowed address. ### Your account api_access_disabled **HTTP 403.** API access is switched off for this account. - **How to fix it:** contact [Support](https://docs.theavoxai.com/support) to ask for it to be switched back on. - **Retry:** once support confirms it's on. api_not_in_plan **HTTP 403.** The account's plan doesn't include API access. - **Common causes:** the account moved to a plan without API access, or the plan it's on no longer includes it. Your keys aren't deleted - they stay listed in **Settings > API keys** and stop sending while the plan lacks API access. New keys can't be created or rotated meanwhile. - **How to fix it:** an Admin moves to a plan with API access from **Billing > Change plan** in the dashboard (the plan cards list **API access** on the plans that include it). The same keys work again as soon as the new plan starts (allow up to a minute). See [API access and your plan](https://docs.theavoxai.com/connections/api-keys#api-access-and-your-plan). - **Retry:** once the plan includes API access. account_suspended **HTTP 403.** The account this key belongs to is suspended, so nothing can be sent with it. - **How to fix it:** contact [Support](https://docs.theavoxai.com/support). - **Retry:** once the account is active again. subscription_inactive **HTTP 402.** The account doesn't have an active plan. - **Common causes:** the plan was cancelled or ended, it's paused, or a payment problem stopped it. While a failed payment is still being retried, sending keeps working. - **How to fix it:** renew or resume the plan, or update the payment, on the [Billing](https://docs.theavoxai.com/billing) page. Sending works again as soon as the plan is active. - **Retry:** once the plan is active. ### Your WhatsApp number Every key belongs to exactly one WhatsApp number. These errors are about that number. connection_not_found **HTTP 404.** The number this key was made for has been removed. - **How to fix it:** create a new key for one of your current numbers. See [Connections](https://docs.theavoxai.com/connections). - **Retry:** only with a key for an existing number. connection_paused **HTTP 409.** The number is paused, so it can't send. - **Common causes:** an Admin paused it, it was paused because of a billing problem, or support paused it. - **How to fix it:** resume it from the [Connections](https://docs.theavoxai.com/connections) page. If it was paused for billing, fixing the payment on [Billing](https://docs.theavoxai.com/billing) resumes it; if support paused it, contact [Support](https://docs.theavoxai.com/support). - **Retry:** once the number is resumed. The same key works again straight away. connection_inactive **HTTP 409.** The number isn't connected right now. - **Common causes:** it's still being set up (**Connecting**), it was disconnected, or setup ended in **Error**. - **How to fix it:** check the number's status on the [Connections](https://docs.theavoxai.com/connections) and [Health](https://docs.theavoxai.com/health) pages. - **Retry:** once the number shows **Connected**. connection_not_ready **HTTP 409.** The number needs to be reconnected before it can send. - **Common causes:** WhatsApp's permission for Avox to send for this number expired or was removed on Meta's side. - **How to fix it:** reconnect the number from the [Connections](https://docs.theavoxai.com/connections) page. - **Retry:** after reconnecting. If you sent an `Idempotency-Key`, it's freed, so the retry runs as a new request. number_moving **HTTP 409.** The WhatsApp number this key was made for is moving to another of your Switchboards, so nothing was sent. - **Common causes:** an Admin started **Move to another Switchboard** on the number's page. While it switches over (usually about a minute) nothing is sent from it. - **How to fix it:** wait the number of seconds in the `Retry-After` header, then send the same request again. Send-only keys keep working once the move is done; keys that could change tables, Flows, templates or automations are turned off by the move. switchboard_paused **HTTP 409.** The Switchboard this key belongs to is paused, so nothing can be sent from it. - **Common causes:** an Admin paused the whole Switchboard in **Settings > Switchboard**, or the account was paused from **Settings > Delete account**. Pausing stops every number, automation and forwarded message in it, and keeps all the data. - **How to fix it:** an Admin resumes it in **Settings > Switchboard** (or with **Resume my account** on **Settings > Delete account**, for an account pause). Resuming a single number on [Connections](https://docs.theavoxai.com/connections) isn't enough while the Switchboard is paused. - **Retry:** once the Switchboard is resumed. The same key works again straight away. template_other_account **HTTP 422.** The template you named is on a different WhatsApp account of your Switchboard from the number this key sends from. WhatsApp keeps templates per WhatsApp account, so this number can't send it. Avox checks this before anything is sent. `details[0].code` is [AVX-4853](https://docs.theavoxai.com/error-codes/avx-4853). - **Common causes:** your numbers are on more than one WhatsApp account and the template was made for another one, or this number moved to another WhatsApp account. - **How to fix it:** open the number on the [Connections](https://docs.theavoxai.com/connections) page and, under **Meta access**, click **Copy my templates to this WhatsApp account**. Each copy gets the number's last 4 digits added to its name (`order_update` becomes `order_update_4321`) and is reviewed by Meta; send it by that name once it's approved. Or send with a key for a number on the template's account. - **Retry:** with the copy's name once it's approved, or with another key. ### Limits rate_limited **HTTP 429.** Too many requests in a short time. - **Common causes:** a loop sending without a pause, many workers sharing one key, a key's own per-minute rule, or repeated attempts with a wrong key from one address. - **How to fix it:** wait the number of seconds in the `Retry-After` header, then retry. For bulk sends, spread messages out instead of sending them all at once. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - **Retry:** yes, after `Retry-After`. quota_exceeded **HTTP 429.** This key has used up its daily allowance. - **How to fix it:** it resets at midnight UTC - `Retry-After` says how many seconds that is. If you regularly need more, contact [Support](https://docs.theavoxai.com/support). The key also shows **Hit its daily limit** in **Settings > API keys**. - **Retry:** after midnight UTC. ### The request itself payload_too_large **HTTP 413.** The request body is over the endpoint's limit: 64 KB for a message, and the size given on each [builder API](https://docs.theavoxai.com/avox-api/reference) page (for example up to 1,000 rows, or an 8 MB CSV). - **How to fix it:** send media by `link` or `id` rather than embedding it, and send one message per request. For rows, split the work into requests of up to 1,000 rows. - **Retry:** only with a smaller body. invalid_payload **HTTP 400.** The body isn't valid JSON, isn't a JSON object, or a field is missing, the wrong type, or too long. - **Common causes:** a body that isn't JSON (send it with `Content-Type: application/json`), a missing `type`, a text message over 4096 characters, a caption or a button or list message's text over 1024, a media message with both `id` and `link` (or neither), or a template parameter over 1024 characters. - **How to fix it:** read `details` - each entry names the field (`path`) and what's wrong with it. Every limit is on [Message types](https://docs.theavoxai.com/avox-api/messages). - **Retry:** only after fixing the body. invalid_recipient **HTTP 400.** The `to` number isn't a valid phone number. - **Common causes:** a missing country code, a leading `0`, letters, or a local-format number. - **How to fix it:** send the full international number, like `15551234567` or `+44 7700 900123`. Spaces, dashes, dots, brackets and a leading `+` are fine; they're removed before sending. - **Retry:** only with a corrected number. unsupported_message_type **HTTP 400.** The `type` field isn't one the API sends. - **How to fix it:** use one of `text`, `template`, `image`, `video`, `audio`, `document`, `sticker`, `location`, `contacts`, `interactive` or `reaction`. See [Message types](https://docs.theavoxai.com/avox-api/messages). - **Retry:** only with a supported type. invalid_idempotency_key **HTTP 400.** The `Idempotency-Key` header isn't usable. - **How to fix it:** use 1 to 255 visible characters with no spaces - a UUID per message works well. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). - **Retry:** with a valid key. idempotency_conflict **HTTP 409.** This `Idempotency-Key` was already used in the last 24 hours with this API key for a different message, or (builder API) a different request. - **Common causes:** reusing one fixed value for every message, changing the body between retries, or retrying a corrected message after WhatsApp refused the first version. - **How to fix it:** make a new value for each new message or item you create, and reuse it only when retrying that exact request. - **Retry:** with a new `Idempotency-Key`. idempotency_in_progress **HTTP 409.** A request with this `Idempotency-Key` is still being processed. - **How to fix it:** wait the `Retry-After` delay, then retry with the same key - once the first request finishes you'll get its result. - **Retry:** yes, after `Retry-After`, with the same key. ### Refused by WhatsApp These mean the request passed every Avox check and was handed to WhatsApp, which refused it. `meta_code` carries WhatsApp's own code when there is one. With an `Idempotency-Key`, these results are kept for 24 hours, so a retry with the same key returns the same error. template_not_found **HTTP 422.** WhatsApp has no approved template with that name in that language. - **Common causes:** a typo in the name, a template that's still in review, or the right name with a language it wasn't approved in (`en` and `en_US` are different). - **How to fix it:** check the exact name and language on the [Templates](https://docs.theavoxai.com/templates) page. - **Retry:** only with a corrected name or language. template_unavailable **HTTP 422.** The template exists but WhatsApp has paused or disabled it, usually because of negative feedback from recipients. - **How to fix it:** check its status on the [Templates](https://docs.theavoxai.com/templates) page, and edit or replace it. See [Template approval](https://docs.theavoxai.com/templates/approval). - **Retry:** once the template is active again, or with another template. template_params_invalid **HTTP 422.** The values you sent don't fit the template. - **Common causes:** too many or too few parameters, a parameter in the wrong format (for example, text where the template expects a currency), or a value too long once filled in. - **How to fix it:** compare your `components` with the template's placeholders, in order. See [Message types](https://docs.theavoxai.com/avox-api/messages#template). - **Retry:** only with corrected parameters. outside_messaging_window **HTTP 422.** It's been more than 24 hours since this person last messaged you, so WhatsApp only allows a template. - **How to fix it:** send an approved `template` message. Once they reply, you can send other types again for 24 hours. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). - **Retry:** as a template. recipient_not_allowed **HTTP 403.** This number is marked private in Avox (on the number this key sends from), so Avox won't send to it. - **How to fix it:** an Admin can unmark the number in the dashboard, on the WhatsApp number's **Private numbers** section. Until then, don't send to it from the API. - **Retry:** no. recipient_blocked **HTTP 409.** You blocked this person on the WhatsApp number this key sends from, so Avox won't send to them (WhatsApp would refuse it too). - **How to fix it:** someone allowed to block people can unblock them in the dashboard: from the chat's menu, or the number's **Blocked people** list. Sends work again straight away. - **Retry:** no, not until they are unblocked. address_not_available **HTTP 422.** Address requests (`address_message`, or `content.kind: "address_request"`) are a WhatsApp feature for India only: the business number and the customer must both be Indian (+91). - **How to fix it:** ask for the address in a text message, a list or a Flow instead. - **Retry:** no. recipient_unreachable **HTTP 422.** WhatsApp couldn't deliver to this number. - **Common causes:** the number doesn't use WhatsApp, it's your own sending number, the person's WhatsApp account changed (when the connection's **Identity-Key Check** is on), or WhatsApp is limiting how many marketing messages they receive. - **How to fix it:** check the number with the person. Don't retry the same message in a loop. - **Retry:** no. meta_rate_limited **HTTP 429.** WhatsApp is limiting how fast this number can send, or how often you can message one person. - **How to fix it:** slow down and retry after the `Retry-After` delay. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - **Retry:** yes, after `Retry-After`. Because this result is kept against an `Idempotency-Key`, retry with a new key. meta_rejected **HTTP 422.** WhatsApp refused the message for another reason. - **Common causes:** content that breaks WhatsApp's rules, a media link WhatsApp can't download, or a field WhatsApp doesn't accept for this message type (for example, too many buttons). - **How to fix it:** look up `meta_code` on [Meta error codes](https://docs.theavoxai.com/meta-error-codes). WhatsApp's own wording isn't passed through, so `meta_code` is the detail to go on. - **Retry:** only after fixing the message. meta_unavailable **HTTP 502.** WhatsApp didn't answer in time, so it's unclear whether the message went out. - **How to fix it:** wait a minute. The `Idempotency-Key` is freed, so a retry - even with the same key - sends the message again. If a duplicate would matter, check [Logs](https://docs.theavoxai.com/logs) for a status on the message, or check with the person, first. - **Retry:** carefully, as above. ### Builder API These come from the [builder API](https://docs.theavoxai.com/avox-api/builder) (`/api/v1`: tables, rows, Flows, templates, automations). The errors above (your key, your account, limits, the request itself) apply to it too. scope_missing **HTTP 403.** The key doesn't have the permission this request needs. `details` names it (like `tables:write`). Sending messages needs `send`. - **Common causes:** the key was made for sending only (every key made before permissions existed), or for reading only. - **How to fix it:** an Admin opens **Settings > API keys**, clicks **Permissions** on the key and gives it what it needs. See [Permissions](https://docs.theavoxai.com/avox-api/builder#permissions-scopes). - **Retry:** once the key has the permission. scope_owner_no_access **HTTP 403.** The key acts with the permissions of the person who last set its permissions, and that person can't do this in the Switchboard any more. `details` says which permission is missing. - **Common causes:** they left the Switchboard, or an Admin took a permission away from them (like **Create and edit tables**). Deleting also needs the delete permission (**Delete templates**, **Delete Flows**, **Delete automations**). - **How to fix it:** someone who has the permission sets the key's permissions again in **Settings > API keys > Permissions**. - **Retry:** after that. feature_disabled **HTTP 403.** This part of Avox is switched off for the account that set the key's permissions. For example Tables (every `tables` and `rows` call), or only creating tables, Flows, templates or automations. `error.details` names the switch. - **How to fix it:** contact [Support](https://docs.theavoxai.com/support). - **Retry:** once it's switched back on. test_key_read_only **HTTP 403.** Test keys (`avx_test_...`) read and check, but never change anything. - **How to fix it:** use a live key with write permissions for changes. Checks (`validate`, a CSV - **Retry:** with a live key. builder_unavailable **HTTP 503.** This part of the API isn't switched on yet. Sending messages works as before. - **How to fix it:** wait and try later. If it lasts, contact [Support](https://docs.theavoxai.com/support). - **Retry:** yes, after `Retry-After`. builder_quota_exceeded **HTTP 429.** The Switchboard has used today's builder API calls of this kind on its plan (reads and writes are counted apart, for every key together). `details` says how many of how many. - **How to fix it:** wait until midnight UTC (`Retry-After`), use bulk requests (up to 1,000 rows in one call), or move to a bigger plan on [Billing](https://docs.theavoxai.com/billing). `GET /api/v1/me` and the `Avox-Daily-Remaining` header show what's left. - **Retry:** after midnight UTC. plan_limit_reached **HTTP 403.** The request needs more than your plan allows. `details` says which, with a short `code`. On the builder API, the change would go over one of your plan's limits: tables, rows per table, columns per table, Flows, templates, automations, or automations switched on at once. Nothing was saved (a bulk request is all or nothing). On `POST /api/messages/send` it means: - **`shops`:** a product message (`product`, `product_list` or `catalog_message`) from a number whose shop is over your plan's shops. The numbers that got their shop first keep sending, up to the limit; the others can't send product messages. `details[0].path` is `interactive`. - **`rich_templates`:** a limited-time offer, carousel or multi-product template on a plan that doesn't include them. Templates you made earlier stay, but they can't be sent until the plan includes them. `details[0].path` is `template.name`. - **How to fix it:** archive or delete what you don't need, or add fewer rows. For `shops`, disconnect the catalogue in WhatsApp Manager on a number you don't sell from (then press **Refresh** on its Shop page), or remove that number from Avox. Or move to a bigger plan. See [Plans](https://docs.theavoxai.com/plans). - **Retry:** after making room. invalid_query **HTTP 400.** A query parameter isn't valid: an unknown parameter, a `limit` out of range, a `filters` value that isn't a JSON array, a sort on a column that doesn't exist. - **How to fix it:** read `details` and fix those parameters. - **Retry:** with corrected parameters. invalid_cursor **HTTP 400.** The `cursor` doesn't belong to this list and these filters. - **How to fix it:** start again without a cursor, then pass each answer's `next_cursor` with the same filters and `limit`. - **Retry:** from the first page. not_found **HTTP 404.** Nothing with that id exists in this key's Switchboard: a table (by id or API name), column (by id or key), row, Flow, template, automation or run. - **Common causes:** a typo, an item that was deleted, or an id from another Switchboard (those never match). - **How to fix it:** list the items again (`GET /api/v1/tables`...) and use an id from there. - **Retry:** with a correct id. version_conflict **HTTP 412.** The item changed since you read it, so your change wasn't made. For rows, `details` names each row that changed and its new `updatedAt`. - **How to fix it:** read it again, apply your change to the new version, and send it with the new `ETag` (or `updatedAt`). - **Retry:** with the new version. name_taken **HTTP 409.** The name is already used: a table's API name, a column's name or key in its table, or a template's name in that language. For templates, `details` includes a free name. - **How to fix it:** pick another name. - **Retry:** with the new name. in_use **HTTP 409.** Flows, automations, templates or formula columns use what you're deleting or archiving. `details` lists them. - **How to fix it:** change those first, or send `force: true` (a table archive) or `?force=true` (a delete) to go ahead: they're marked as needing attention and stop finding it. - **Retry:** with `force`, after deciding it's what you want. template_in_use **HTTP 409.** You tried to delete a template that something still needs: a Broadcast that hasn't finished (scheduled, sending or paused), a smart link that can still be opened (live, scheduled or paused) or an automation that is on. `details` lists each one with its kind (`code`), name, state and id. Nothing was deleted, at WhatsApp or in Avox. - **How to fix it:** pick another template in each place listed, or stop it (finish or stop the Broadcast, end or delete the link, turn the automation off). Drafts and finished items never block. - **Retry:** once the list is empty. There is no `force` for this one. confirmation_needed **HTTP 409.** Changing a column's type would empty some values, or Flows, automations or templates use the column. `details` says how many values and what uses it. - **How to fix it:** send the same change with `"confirm": true` to go ahead, or keep the type. - **Retry:** with `confirm`, after deciding it's what you want. not_active **HTTP 409.** The table is archived: it can be read, but its rows and columns can't change. - **How to fix it:** `POST /api/v1/tables/{tableId}/restore`, then try again. - **Retry:** after restoring. rows_invalid **HTTP 422.** Some values don't fit their columns, so nothing was saved. Each entry in `details` names the row and column (`rows[3].price`) and why: `required` (a required column is empty), `unique` (another row has this value), `unknown_column`, or the type's own reason (not a number, not a date, not one of the choices...). Making a column unique while values repeat lists the repeated values here too. - **How to fix it:** correct those values and send the whole request again. - **Retry:** with corrected values. import_invalid **HTTP 422.** The CSV can't be imported as it is: no rows, too many rows, a column mapped to one that doesn't exist, or rows with problems (each listed with its file row and column). - **How to fix it:** fix the file or the `columns` mapping, run a `dry_run` again, or send `skipInvalid: true` to import only the good rows. - **Retry:** after fixing. whatsapp_not_connected **HTTP 409.** Making a Flow or a template needs a connected WhatsApp number with a working connection, and this Switchboard has none right now. - **How to fix it:** connect or reconnect a number on [Connections](https://docs.theavoxai.com/connections). - **Retry:** once it shows **Connected**. flow_not_draft **HTTP 409.** Only a draft Flow can change, be published again, switch its live data source or be deleted. Deprecating needs a published Flow. - **How to fix it:** create a new Flow (or, for live data, use `new_version`); deprecate the old one when the new one is live. - **Retry:** on a draft. flow_invalid **HTTP 422.** Avox found problems that stop the Flow working: its JSON's shape, or its live data settings against your tables (a table or column that doesn't exist, a screen that doesn't declare the data a step sends). `details` lists each one. - **How to fix it:** fix each item, validate again, then retry. - **Retry:** after fixing. flow_endpoint_not_public **HTTP 409.** A live Flow on Avox's endpoint needs that endpoint to be reachable by WhatsApp, and right now it isn't. - **How to fix it:** contact [Support](https://docs.theavoxai.com/support). Plain Flows (no live data) work meanwhile. - **Retry:** once support confirms. flow_needs_new_version **HTTP 409.** These table links need the Flow's screens to declare new data, and a published Flow's JSON can't change. - **How to fix it:** `POST /api/v1/flows/{flowId}/live/mode` with `"action": "new_version"` and the new `config`: a new Flow is published with them. - **Retry:** as a new version. flow_live_setup_needed **HTTP 409.** Live data needs one more thing first. `details` says which: a table made from a premade table (create it with `POST /api/v1/tables`), the signing secret for your own server, or switching the number back to Avox's key (both in the dashboard, on the Flow's live data panel). - **How to fix it:** do what `details` says. - **Retry:** after that. template_not_editable **HTTP 409.** The template can't be edited now. `details` says why: it's still in review (`pending`), its status doesn't allow edits (`not_editable`), an approved template's category can't change (`category_locked`), nothing changed (`no_changes`), or its kind can't be edited this way (`unsupported_type`, `predates`). - **How to fix it:** wait for the review, keep the category, or create a new template. - **Retry:** once it can be edited. template_edit_limit **HTTP 429.** WhatsApp allows an approved template to be edited once every 24 hours and 10 times in 30 days. - **How to fix it:** wait the `Retry-After` seconds, or create a new template. - **Retry:** after `Retry-After`. automation_invalid **HTTP 422.** A step uses a `{{...}}` value that doesn't exist at that point (for example a step name used before its step, or a row value without a table trigger). `details` names the step and field. - **How to fix it:** fix the name, or add a fallback like `{{order.status|unknown}}`. - **Retry:** after fixing. automation_not_ready **HTTP 409.** The automation can't be switched on (or a premade can't be made) yet. `details` lists each reason with its step and code: no steps, a table, column, app or Flow it uses that's missing or broken (AVX codes like `AVX-3589`), a template that isn't approved, a Flow that isn't published, or what a premade needs. - **How to fix it:** make or fix each item, then try again. Look the AVX codes up on [Error codes](https://docs.theavoxai.com/error-codes). - **Retry:** after fixing. meta_refused **HTTP 422.** WhatsApp refused the template or Flow. `details` carries WhatsApp's reason and, for a Flow, its findings in the JSON (line, column and where). - **How to fix it:** change what WhatsApp points at and try again. - **Retry:** after changing it. meta_unreachable **HTTP 502.** WhatsApp didn't answer in time, so it's unclear whether the change was made. - **How to fix it:** wait a minute, read the item (or the list) to see whether it was made, then try again. With the same `Idempotency-Key` the retry runs again. - **Retry:** carefully, as above. ### Our side api_paused **HTTP 503.** Avox has paused the API, or the part of it your request uses, for everyone for a short while. The API has three parts that can be paused one by one: sending messages, the builder API and message forwarding to your webhook address. Nothing was sent, read or changed. - **How to fix it:** nothing to fix on your side. Wait the `Retry-After` delay and try again. The [status page](https://docs.theavoxai.com/status-page) says when it's back. - **Retry:** yes, after `Retry-After`, with the same `Idempotency-Key`. - **Message forwarding:** when forwarding is paused, nothing is lost. Messages wait and are delivered to your webhook address once it's back. Paused answers carry a few extra fields in `error`, next to the usual ones: ```json { "ok": false, "error": { "code": "api_paused", "message": "Sending messages through the Avox API is paused for a short while, so this message wasn't sent and nothing was charged. Wait the number of seconds in the Retry-After header, then send it again. The Avox status page shows when it's back.", "docs_url": "https://docs.theavoxai.com/api/errors#api_paused", "request_id": "req_4f1c9a0b7e2d36a8c5b1f0e9", "solution": "Wait the number of seconds in the Retry-After header, then send it again.", "service": "api", "part": "send", "status_url": "https://status.theavoxai.com/", "retry_after_seconds": 300 } } ``` | Field | What it's for | | --- | --- | | `solution` | What to do now, in one sentence. | | `service` | `api` for `api_paused`, `whatsapp` for `sending_paused`. | | `part` | The part that is paused: `send` (sending messages) or `builder` (the builder API). `null` when it isn't one part. | | `status_url` | The Avox status page, which says when it's back. | | `retry_after_seconds` | The same wait as the `Retry-After` header. | sending_paused **HTTP 503.** Avox has paused sending WhatsApp messages for everyone for a short while. Nothing was sent and nothing was charged. It carries the same extra fields as `api_paused`, with `service` set to `whatsapp`. - **How to fix it:** nothing to fix on your side. Wait the `Retry-After` delay and send it again. The [status page](https://docs.theavoxai.com/status-page) says when it's back. - **Retry:** yes, after `Retry-After`, with the same `Idempotency-Key`. internal_error **HTTP 500.** Something went wrong at Avox. Nothing was sent. - **How to fix it:** retry after a short wait. If a retry with the same `Idempotency-Key` returns `idempotency_in_progress`, wait the `Retry-After` delay and try again. If it keeps happening, contact [Support](https://docs.theavoxai.com/support) with the `request_id`. - **Retry:** yes, after a short wait. --- ## Meta concepts URL: https://docs.theavoxai.com/meta-platform Section: WhatsApp and Meta WhatsApp's business platform is run by Meta, and it comes with its own vocabulary. This page explains each term in plain words and shows where you see it in Avox. You'll mostly meet these during [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup) and when you open your number in Meta's own WhatsApp Manager. ### How the pieces fit together ``` Business Portfolio (your business on Meta - Business ID) └── WhatsApp Business Account (WABA - WABA ID) ├── Phone number (Phone Number ID, display name, quality, messaging limit) ├── Phone number ... └── Message templates (shared by every number in the WABA) ``` In Avox, one connected phone number is one **connection**. Every connection's page has a **Meta identifiers** card with the three ids that place it in this tree: | Avox label | What it identifies | | --- | --- | | **WABA ID** | The WhatsApp Business Account the number belongs to. | | **Phone Number ID** | The number itself on Meta's platform - a long id, not the phone number. | | **Business ID** | The Business Portfolio that owns the WABA. | The same page has **Open in Meta**, which opens the number in Meta's WhatsApp Manager. ### Business Portfolio Meta's container for a business and its assets - WhatsApp Business Accounts, ad accounts, Pages - and the people who manage them. It used to be called Business Manager, and you may still see that name. Each portfolio has a numeric **Business ID**. During Embedded Signup, Meta asks you to **select the business portfolio** that should own the WhatsApp Business Account. Use an existing portfolio if you have one. Meta often restricts what a brand-new portfolio, created inside the signup popup, can do at first. ### WhatsApp Business Account (WABA) The account that holds your WhatsApp numbers on Meta's platform. Message templates, the account's payment method and its review status live here. A portfolio can own several WABAs, and a WABA can hold several numbers. - **Templates belong to the WABA**, so every number in the same WABA can use the same approved templates. See [Templates](https://docs.theavoxai.com/templates). - During coexistence signup, Meta creates the WABA for you and takes its name from your WhatsApp Business app profile. - Meta can send alerts about the account (for example, a policy notice). Avox emails these to the Switchboard's Owner when **WhatsApp account alerts** is on in [Compliance](https://docs.theavoxai.com/compliance). See [Accounts and numbers](https://docs.theavoxai.com/whatsapp/accounts-and-numbers) for more. ### Phone number A real phone number registered on WhatsApp's business platform. It has: - a **display phone number** - what customers see, like `+1 555-000-1111`, - a **Phone Number ID** - Meta's internal id for it, used in API calls and webhooks, - a **display name** - the business name customers see. See [Display names](https://docs.theavoxai.com/whatsapp/display-names), - a **quality rating** and a **messaging limit**. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). A number can be connected in two ways: alongside the WhatsApp Business app (**Existing number (Coexistence)** in Avox) or as a number used only through the platform (**New number (Bot only)**). See [Coexistence](https://docs.theavoxai.com/coexistence-explained). ### Business verification Meta's own check that your business is real, run from your Business Portfolio's settings. It's separate from anything Avox does, and Meta alone decides the outcome. Verification matters because Meta uses it when deciding how far a number can grow its messaging limit, and what your business profile can show. When you click **Check health now** on [Health](https://docs.theavoxai.com/health), Meta's answer can include a **Business verification** line, showing whether Meta reports an issue there. ### Two-step verification PIN A six-digit PIN that protects the phone number's registration on WhatsApp. Meta asks for it when the number is registered or moved. It's separate from [your Avox account's two-factor authentication](https://docs.theavoxai.com/security/two-factor). Keep the PIN with your other business credentials. ### The Meta app and permissions Avox connects to WhatsApp through its own Meta app. In the last screen of Embedded Signup, **Review what you share with Avox**, Meta lists the Business Portfolio and WhatsApp Business Account you're sharing. Confirming gives Avox permission to work with that account on your behalf: register the connection, receive the account's events, send messages, manage templates and Flows, and read the number's health. - You can see and remove the access in your Business Portfolio's settings on Meta. - Avox keeps Meta's access for your number encrypted, and never shows it in the dashboard or sends it to your browser. - If the access is removed or expires, the connection needs reconnecting, and API sends fail with [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready). When Meta gave the access an end date, Admins get an email before it's reached (with **WhatsApp account alerts** on in [Compliance](https://docs.theavoxai.com/compliance)). ### Cloud API Meta's hosted API for sending and receiving WhatsApp messages. Avox uses it for everything it does with your number. The [Avox API](https://docs.theavoxai.com/avox-api) sits in front of it, so your own server can send through your number with an Avox key instead of a Meta token. ### Webhooks Meta's way of telling a business that something happened: a message arrived, a message was delivered or read, a template was approved, the number's quality changed. Avox receives these to keep your dashboard current, and lists every one with its payload on [Logs](https://docs.theavoxai.com/logs). See [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks). ### Templates and the 24-hour window WhatsApp lets a business message a person freely for 24 hours after that person last wrote. Outside that window, the business must use a **message template** that Meta has approved. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window), [Template categories](https://docs.theavoxai.com/whatsapp/template-categories) and [Templates](https://docs.theavoxai.com/templates). ### Payment method on Meta Meta charges for some WhatsApp messages, billed to the WhatsApp Business Account. You don't need a Meta payment method to finish Embedded Signup - add one later in WhatsApp Manager. Avox shows an estimate of these charges on Overview and Billing. See [Pricing](https://docs.theavoxai.com/whatsapp-platform). ### Meta error codes Meta has its own numbered error codes, separate from Avox's. When WhatsApp refuses something, the [Avox API](https://docs.theavoxai.com/avox-api) passes Meta's number on as `meta_code` next to a stable Avox code. See [Meta error codes](https://docs.theavoxai.com/meta-error-codes). --- ## Embedded Signup URL: https://docs.theavoxai.com/whatsapp/embedded-signup Section: WhatsApp and Meta **Embedded Signup** is Meta's own sign-up window. It opens from Avox, runs on Meta's site, and connects your WhatsApp number to Avox in one sitting. You sign in with your Facebook account, choose the business and the number, and approve what Avox can do. Avox never sees your Facebook password. You reach it from the fourth and last step of the connection wizard, **Connect with Meta** (the card is titled **Review & connect with Meta**), by clicking **Continue to Meta Embedded Signup**. The three steps before it - **Number type**, **Webhook setup** and **Test endpoint** - are covered on [Setup](https://docs.theavoxai.com/connections/setup) and [Getting started](https://docs.theavoxai.com/getting-started). ### Before you start - **An active plan with a free number slot.** See [Plans](https://docs.theavoxai.com/plans). When every slot your plan allows is in use, [Connections](https://docs.theavoxai.com/connections) says so with [AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009), and **Connect another number** waits until a slot is free. Pausing a connection frees its slot. Avox checks the plan again before the new connection is saved. - **Admin access on Meta.** You need to be an admin of the Business Portfolio and the WhatsApp Business Account you're connecting. - **Pop-ups allowed** for the Avox dashboard in your browser. - **The dashboard open at its normal `https://` address.** Meta only opens its window on a secure page. - **For coexistence:** the phone with your WhatsApp Business app nearby, signed in. - **For a new number:** a number that can receive Meta's verification code by SMS or voice call. Any member of the Switchboard, Admin or Manager, can run the wizard. Changing a connection afterwards (renaming it, message forwarding, API keys, calling, pausing or deleting it) is for Admins - see [Members and roles](https://docs.theavoxai.com/switchboard/members). Your details from **Webhook setup** are saved as you go. If you leave before Meta's window finishes, Connections shows a **Setup in progress** card - click **Resume setup** to pick up at **Test endpoint** with nothing to retype. ### What happens, step by step The wizard's **What to expect during setup** panel shows each of these screens with a picture, on two tabs - **Desktop** for the popup and **Mobile** for the phone - and a status chip (**Waiting**, **Connecting**, **Error**, **Connected**) that follows the real popup. #### On your computer Meta shows an overview of what connecting to Avox enables. Click **Continue**. Open the dropdown. If your WhatsApp Business app number is listed with a "Registered" badge, select it. Otherwise choose "Enter a new phone number" and type it - "new" is Meta's wording and means new to the platform, not to you. For an app number, Meta detects it and switches to the coexistence path itself. Seeing your app's business profile means you're on the coexistence path. If Meta asks for an SMS or voice code instead, stop and go back - that path moves the number away from the app. Choose the portfolio that should own the WhatsApp Business Account. Use an existing one when you can - Meta often restricts brand-new portfolios created inside the popup. Open WhatsApp Business on your phone and scan the code. Meta also sends the same link to the number as a WhatsApp message. Leave the popup open - **Next** unlocks once you finish on your phone. Meta creates a WhatsApp Business Account for the number. Its name comes from your app profile. Pick your time zone and click **Next**. Check the business portfolio and WhatsApp Business Account listed are the right ones, then click **Confirm**. These permissions let Avox register the connection and receive your number's messages. Keep the popup open. Only click **Retry** if Meta shows an error. Meta confirms the account is connected to Avox. A Meta payment method isn't needed to finish - add one later in WhatsApp Manager. On the **New number (Bot only)** path, Meta verifies the number by code instead of showing an app profile, and there's no QR or phone step. #### On your phone (coexistence only) A verified message from Facebook Business shows a "Connect to the Business Platform" card. Tap **Connect**. Meta explains how the app keeps working alongside the platform, how chat history sharing works, and how your one-to-one chats are handled. Share all chats, or start new threads with current customers. This is a one-time choice, so pick the one you want to keep. Avox shows as the connected Business Platform. You can manage this later in the app's settings. Then go back to the popup on your computer - **Next** unlocks there on its own. ### What Avox does when you click Finish Avox checks with Meta that the number really belongs to the WhatsApp Business Account you just approved, and which Business Portfolio owns that account. Avox makes sure a number slot is still free on your plan. The number is saved with the **Connection Name**, **Webhook URL** and **Verify Token** you entered in **Webhook setup**, and shows as **Connecting**. Meta's access for the number is stored encrypted and never shown. Avox asks Meta to send this account's webhook events. When that succeeds, the connection becomes **Connected**. The Switchboard's Admins get a "number connected" email. You're taken back to **Connections**, and the connection's page shows its **Meta identifiers** - **WABA ID**, **Phone Number ID** and **Business ID**. See [Accounts and numbers](https://docs.theavoxai.com/whatsapp/accounts-and-numbers). Once the number is connected, you can set a `wa.me/` link for it, turn on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override), create [API keys](https://docs.theavoxai.com/connections/api-keys) and switch on [Calling](https://docs.theavoxai.com/connections/calling), all from the connection's page. Continuing to Meta Embedded Signup confirms you're authorised to connect this WhatsApp Business Account and that you agree to Avox's Terms of Service and acknowledge the Privacy Policy, as the wizard says next to the button. ### If it doesn't finish When the popup doesn't complete, the wizard shows **The connection didn't go through** with the reason, the Avox code [AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002), and - when Meta reported one - "Meta error" with Meta's own number. A **Try this** list made for that reason follows, then **Retry connection** and **View troubleshooting docs**. | What the wizard says | What to do | | --- | --- | | "You closed the Meta signup window before the connection finished." | Click **Retry connection** and keep the popup open until it closes on its own. On coexistence, make sure you tapped **Connect** on your phone too. | | Meta's own message, word for word (an error inside the popup) | Read it carefully. If it mentions a phone number or a code, that number couldn't be verified - try again with a real, reachable number. Look up the "Meta error" number in Meta's WhatsApp Embedded Signup error reference. | | "Meta's popup never responded - most likely it hit an error of its own and didn't hand back control." | Look for a leftover popup or tab from the attempt, close it, and retry. | | "Meta blocks its signup popup from opening on a plain http:// page." | Open the dashboard at its normal `https://` address and retry. | | "Meta confirmed the signup, but Avox couldn't finish setting up the connection on our end." | Check a number slot is free on your plan (see [AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009)), that you picked a number inside the WhatsApp Business Account you approved, then retry. If it repeats, contact [Support](https://docs.theavoxai.com/support) with the error code shown. | The general **Try this** tips: - Don't close the Meta popup until it redirects you back on its own. - Make sure pop-ups aren't blocked for this site in your browser. - Confirm you're an admin on the WhatsApp Business Account you're connecting. - If your phone showed a coexistence prompt, make sure you tapped **Connect** there too. A popup that doesn't finish doesn't create a connection, so it's safe to close it and retry. If a connection shows **Error**, setup didn't finish on Meta's side - connect the number again. A connection that stays in **Connecting** for a day triggers a reminder email when **Setup reminders** is on in [Compliance](https://docs.theavoxai.com/compliance). ### Related - [Meta concepts](https://docs.theavoxai.com/meta-platform) - the terms the popup uses. - [Coexistence](https://docs.theavoxai.com/coexistence-explained) - the app-plus-platform path in detail. - [Connect WhatsApp walkthrough](https://docs.theavoxai.com/walkthrough/connect-whatsapp) - a click-through version of the wizard. - [Meta error codes](https://docs.theavoxai.com/meta-error-codes) --- ## Coexistence URL: https://docs.theavoxai.com/coexistence-explained Section: WhatsApp and Meta **Coexistence** is Meta's feature that lets one WhatsApp number work in two places at once: in the **WhatsApp Business app** on your team's phone, and on the **Cloud API** that platforms like Avox use. Your team keeps chatting from the app exactly as before, and Avox adds a shared inbox, automation, templates and the [Avox API](https://docs.theavoxai.com/avox-api) on the same number. ### Why it matters A number registered only on the Cloud API runs without the WhatsApp Business app. Coexistence gives you both: the familiar app for day-to-day conversations, and the platform for everything that scales - automated replies, templates, Flows, analytics and API sends. ### The two ways to connect a number in Avox The first step of the connection wizard, **Number type**, offers both: | Option | Use it when | What signup looks like | | --- | --- | --- | | **Existing number (Coexistence)** | The number is already active in the WhatsApp Business app and your team wants to keep using the app. | Meta recognises the app number and shows its business profile. Halfway through, you confirm on your phone in the WhatsApp Business app, then finish in the popup. | | **New number (Bot only)** | The number isn't used in the WhatsApp Business app and will be dedicated to Avox and your API. | Meta verifies the number itself. There's no phone-side step. | See [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup) for every screen of the popup, and [Setup](https://docs.theavoxai.com/connections/setup) for the whole wizard. On the coexistence path, Meta should show your WhatsApp Business app profile. If it asks for an SMS or voice code instead, stop and go back: that path moves the number off the app rather than sharing it. ### The phone-side step During coexistence signup, Meta asks you to scan a QR code with WhatsApp Business on your phone (it also sends the same link to the number as a WhatsApp message). On the phone you then: A message from Facebook Business shows a "Connect to the Business Platform" card. It covers how the app keeps working and how chats are shared. Share your existing chats, or start fresh with new threads. This is a one-time choice, so pick the one you want to keep. Avox appears as the connected Business Platform. You can manage this later in the app's settings. ### What happens once you're connected - **Chat history (if you chose to share it).** Meta sends your existing conversations to Avox once, in batches, so the [Inbox](https://docs.theavoxai.com/inbox) starts with context. Each past message lands at the time it was really sent, and imported history never triggers automations. - **Contact names.** Contacts saved in the WhatsApp Business app are added to your [Contacts](https://docs.theavoxai.com/contacts) with their names, and a name you change in the app is updated in Avox. Removing a contact from the phone keeps it, and its history, in Avox. - **Both sides see the same conversation.** A reply your team sends from the phone app also shows in the Avox inbox, and messages sent through the platform appear in the app. The exact list of what syncs, and when, is on [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). ### Keep the app active Meta expects the WhatsApp Business app on the primary phone to be opened regularly, and can disconnect Coexistence for a number whose app goes unused. Keep the app signed in on a phone your team uses day to day. Avox helps you notice a problem early: - [Health](https://docs.theavoxai.com/health) shows each number's heartbeat - **Operational**, **Degraded** or **Down** - based on how recently Meta sent an event for it, and **Check health now** asks Meta directly whether the number can send. - With **WhatsApp account alerts** on in [Compliance](https://docs.theavoxai.com/compliance), the Switchboard's Owner is emailed when Meta sends an alert about the account. - Each connection on Health also shows **Last active** - how long ago Meta last sent an event for it. ### Coexistence and the Avox API Everything on the [Avox API](https://docs.theavoxai.com/avox-api) works the same on a coexistence number. Messages your server sends through the API go out from the same number your team uses in the app, and customer replies reach both the app and the Avox [Inbox](https://docs.theavoxai.com/inbox). With [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) on, each new customer message also reaches your own server, signed by Avox. ### Related - [Meta concepts](https://docs.theavoxai.com/meta-platform) - Business Portfolio, WABA and verification. - [Accounts and numbers](https://docs.theavoxai.com/whatsapp/accounts-and-numbers) - the account and number behind a connection. - [Getting started](https://docs.theavoxai.com/getting-started) - connect your first number. --- ## Accounts and numbers URL: https://docs.theavoxai.com/whatsapp/accounts-and-numbers Section: WhatsApp and Meta Every number you connect to Avox sits inside a structure Meta owns: a **phone number**, inside a **WhatsApp Business Account (WABA)**, inside a **Business Portfolio**. This page explains each level, which numbers you can connect, and where to find each one in Avox. ### The three levels | Level | What it is | What lives here | Avox label | | --- | --- | --- | --- | | Business Portfolio | Your business on Meta. | WABAs, Pages and ad accounts, the people who manage them, and business verification. | **Business ID** | | WhatsApp Business Account | Your WhatsApp presence. | One or more numbers, their message templates, and the payment method Meta bills. | **WABA ID** | | Phone number | The number customers message. | Its display name, quality rating and messaging limit. | **Phone Number ID** | All three ids are on each connection's page in the **Meta identifiers** card, next to your **Plan**. **Open in Meta** on the same page opens the number in Meta's WhatsApp Manager, where Meta's own settings for it live. Copy these ids from the **Meta identifiers** card when you work in Meta's tools or contact [Support](https://docs.theavoxai.com/support). The Phone Number ID is the quickest way to point at one exact number. ### Connections and numbers In Avox, one connected number is one **connection**. - Each connection has its own name in Avox (the **Connection Name** you set in the wizard, which an Admin can rename later with the pencil next to it). This is only for you and your team - customers see the [display name](https://docs.theavoxai.com/whatsapp/display-names). - Each connection has its own [Message forwarding](https://docs.theavoxai.com/connections/webhook-override), its own [API keys](https://docs.theavoxai.com/connections/api-keys), a **Calling** switch, an **Identity-Key Check** switch and an optional **WhatsApp username** (`wa.me/`). Admins change these, and so can Managers an Admin has given the **Manage connections** or **Manage API keys** permission. See [Connections](https://docs.theavoxai.com/connections#who-can-do-what). - How many numbers you can connect depends on your plan - see [Plans](https://docs.theavoxai.com/plans). The limit is one pool across every Switchboard you own, only **Connected** numbers count, and pausing a connection frees its slot. #### Connection statuses | Status | Meaning | | --- | --- | | **Connected** | The number is live. Messages, statuses and calls flow through Avox. | | **Connecting** | Signup finished on Meta's side and Avox is completing setup. This normally takes seconds. | | **Error** | Setup didn't complete, or Meta reported a problem. Connect the number again. | | **Disconnected** | The number is no longer linked. Connect it again with the [setup wizard](https://docs.theavoxai.com/connections/setup). | | **Paused** | Paused by an Admin or by Avox support. Paused numbers don't send, and API keys for them return [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused). Pausing is an Avox setting - the number stays registered with WhatsApp. | | **Paused - billing issue** | Paused because the Switchboard's subscription was canceled. It resumes by itself once billing is sorted on [Billing](https://docs.theavoxai.com/billing). | See [Connections](https://docs.theavoxai.com/connections) for pausing, resuming, renaming and deleting. Deleting a connection is confirmed with a one-time code emailed to the Switchboard's Owner, and the connection is kept for 6 days before it's removed for good. ### The phone number #### Display number and Phone Number ID A number has two identities. The **display phone number** is the real number customers see and message, like `+1 555-000-1111`. The **Phone Number ID** is Meta's long internal id for it. Meta's webhook events and APIs use the Phone Number ID - you'll see it in every event's payload on [Logs](https://docs.theavoxai.com/logs). With the [Avox API](https://docs.theavoxai.com/avox-api) you never need either - your API key already knows its number. #### Which numbers can be connected The first step of the [setup wizard](https://docs.theavoxai.com/connections/setup), **Number type**, asks which kind of number you're connecting. It decides which Meta signup path you get. | | Existing number (Coexistence) | New number (Bot only) | | --- | --- | --- | | **The number today** | Already active in the WhatsApp Business app. | Not used in the WhatsApp Business app. | | **After connecting** | Stays in the app and is shared with Avox - your team keeps using the app. | Dedicated to Avox - the Inbox, automations and the API. | | **How Meta checks it's yours** | Through the WhatsApp Business app. | A verification code by SMS or voice call, so it must be able to receive one. | | **Display name** | Comes from your app profile. | You give one during signup, and Meta reviews it. | | **Learn more** | [Coexistence](https://docs.theavoxai.com/coexistence-explained), [Coexistence sync](https://docs.theavoxai.com/connections/coexistence) | [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup) | #### Number verification During signup, Meta checks you control the number - through the WhatsApp Business app on the coexistence path, or with a code on the new-number path. A number on the platform is also protected by a six-digit **two-step verification PIN**, which Meta asks for if the number is registered again. See [Meta concepts](https://docs.theavoxai.com/meta-platform). Keep the two-step verification PIN somewhere safe, with the people who manage your Meta business. You'll need it if the number is ever registered again. #### Health of a number [Health](https://docs.theavoxai.com/health) shows, for each connection: - **Heartbeat** - from how recently Meta sent an event for the number: **Operational** within the last 5 minutes, **Degraded** within 30 minutes, **Down** after that. A quiet number can show **Down** simply because nobody has messaged it lately. **Last active** shows the time itself. - **Check health now** - asks Meta directly whether the number can send, with a line each for the **WhatsApp Business Account**, **Phone number**, **Business verification** and **App configuration** when Meta reports on them. **View raw response** shows Meta's answer unchanged. - **Quality history** - quality events and messaging tier changes from Meta. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### The WhatsApp Business Account - **Templates belong to the WABA**, so every number in it can use the same approved templates. - **Meta bills the WABA** for the WhatsApp messages it charges for. Each number's **Meta payment status** is on [Billing](https://docs.theavoxai.com/billing#meta-charges-and-payment-problems). See [Pricing](https://docs.theavoxai.com/whatsapp-platform). - **Meta reviews the WABA** against its policies and can restrict it. Account alerts are emailed to the Switchboard's Owner when **WhatsApp account alerts** is on in [Compliance](https://docs.theavoxai.com/compliance). The same setting covers an email to Admins if Meta's access for a number is about to expire. - On the coexistence path, Meta creates a WABA for the number during signup and names it after your WhatsApp Business app profile. ### The Business Portfolio - You pick the portfolio during [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup). Use an existing one when you have it. - **Business verification** is done at this level, in Meta's settings. It's Meta's check that your business is real, and Meta uses it when deciding how far your messaging limits can grow. - The people who can manage your WhatsApp numbers on Meta are managed here too. Your Avox team is managed separately, in your [Switchboard](https://docs.theavoxai.com/switchboard). ### Example: one business, two numbers ``` Business Portfolio: Acme Retail (Business ID 1234567890) └── WhatsApp Business Account: Acme Retail (WABA ID 102290129340398) ├── +1 555-000-1111 "Acme Support" (Phone Number ID 106540352242922) │ Avox connection "Support - US", Existing number (Coexistence) └── +1 555-000-2222 "Acme Orders" (Phone Number ID 107655863001244) Avox connection "Order updates", New number (Bot only), API key for your store ``` Each connection has its own API keys, so your store's server sends order updates only from `+1 555-000-2222`, while the support team keeps chatting from the app on `+1 555-000-1111`. Both numbers share the WABA's approved templates. ### Common questions Yes. Each number becomes its own connection in Avox, with its own name, API keys and settings, up to the number of connections your [plan](https://docs.theavoxai.com/plans) allows. No. Pausing is an Avox setting: Avox stops sending from the number and it stops counting toward your plan, while the number stays registered with WhatsApp. On the connection's page in Avox, in the **Meta identifiers** card. The Overview page's **Account details** card shows them too. No. Your Avox team is the members of your [Switchboard](https://docs.theavoxai.com/switchboard). The people who can manage your numbers in Meta's tools are managed in your Business Portfolio. ### Related --- ## Display names URL: https://docs.theavoxai.com/whatsapp/display-names Section: WhatsApp and Meta A **display name** is the business name WhatsApp shows customers for your number - on your business profile and in their chats. Meta reviews every display name before it's used, and it belongs to the phone number, not to Avox. ### Three names, three jobs It's easy to mix these up, so here's each one: | Name | Who sees it | Where it's set | | --- | --- | --- | | **Display name** | Your customers, on WhatsApp | Meta - in the WhatsApp Business app (coexistence) or WhatsApp Manager | | **Connection name** | Only your team, in Avox | Avox - **Connection Name** in the wizard, or an Admin renames the connection later | | **Username** | WhatsApp users who search for it, and anyone with your `wa.me/` link | Avox - **Set a WhatsApp username** on the connection's card or page (Admins) | #### An example | Name | Example | | --- | --- | | Display name | Acme Bakery | | Connection name | Support - Mumbai store | | Username | `@acmebakery`, with the link `wa.me/acmebakery` | A customer chatting with you sees **Acme Bakery**. Your team sees **Support - Mumbai store** across the dashboard and in emails about the connection. WhatsApp users can search for you as `@acmebakery`, or open your chat from the link. ### Where the display name comes from Which path you pick on the first step of the [setup wizard](https://docs.theavoxai.com/connections/setup), **Number type**, decides where the display name comes from: - **Existing number (Coexistence):** the display name comes from your WhatsApp Business app profile. During [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup), Meta shows the profile for you to confirm and names the new WhatsApp Business Account after it. - **New number (Bot only):** you give a display name during signup, and Meta reviews it. ### How Meta reviews a display name Meta checks a display name against its own display name guidelines. In plain words, Meta looks for a name that: - clearly relates to your business - its brand or the business name on your website and documents, - is written consistently, without unnecessary capitals or symbols, - doesn't impersonate another business or use a generic word on its own. **Names that fit the guidelines** - Acme Bakery - Acme Bakery Support - Riverside Dental Clinic **Names Meta tends to decline** - ACME BAKERY!!! (extra capitals and symbols) - Bakery (a generic word on its own) - A well-known brand you don't own Meta's guidelines are the authority and can change - check them in Meta's WhatsApp Business help before choosing a name. A name that hasn't been approved yet, or was declined, can hold the number back from sending (Meta reports this with its own error codes; see [Meta error codes](https://docs.theavoxai.com/meta-error-codes)). Business verification and a strong, consistent brand name tend to go together - the name on your verified business portfolio makes a clear match for your display name. See [Meta concepts](https://docs.theavoxai.com/meta-platform). ### Changing the display name On the connection's page in Avox, click **Open in Meta**. It opens the number in WhatsApp Manager. Change it from the phone number's profile settings in WhatsApp Manager. On a coexistence number, you can also change the business name in the WhatsApp Business app. The new name goes through the same review. Until it's approved, customers keep seeing the current one. Changing the display name doesn't affect your Avox connection: the connection name, API keys, message forwarding settings and history all stay the same. Renaming the connection in Avox (the pencil next to its name) only changes your team's label. To change what customers see, change the display name in Meta as above. ### Usernames A username lets customers find your business by a name such as `@acme_support`, and gives your number a short link, `wa.me/`, so customers can open a chat without typing your phone number. An Admin sets it on the connection's card, or under **WhatsApp username** on its page: click **Set a WhatsApp username**, type a name or pick one of **Suggested by Meta for this number**, and save. Once it's set, the row shows `@` and your username - click it to change it. A username is 3 to 35 characters: letters, numbers, periods and underscores, with at least one letter. It can't start or end with a period or have two in a row, can't start with `www`, and can't end like a web address (`.com` and so on). Avox lowercases what you type and shows a checklist as you go. Meta has the final say: it shows as **Live** once approved, or **Reserved** where usernames aren't live in that region yet. If Meta doesn't accept a name, you'll see "Meta didn't accept that username. It may be taken, protected, or not available for this number yet." ([AVX-3018](https://docs.theavoxai.com/error-codes/avx-3018)) - try another, or one of Meta's suggestions. The full steps are on [Your WhatsApp username](https://docs.theavoxai.com/connections#your-whatsapp-username). Pick a username that matches your display name, so customers who search for you recognise the business they find. ### Common questions The connection name is only for your team in Avox. Customers see the display name, which you change in Meta - see [Changing the display name](#changing-the-display-name). No. The connection, its API keys, forwarding and history all stay as they are. Several numbers can belong to the same business, so related names such as "Acme Bakery" and "Acme Bakery Orders" are common. Meta reviews each number's name on its own. Admins, and Managers an Admin has given the **Manage connections** permission. See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). ### Related --- ## Messaging window URL: https://docs.theavoxai.com/whatsapp/messaging-window Section: WhatsApp and Meta WhatsApp separates messages a customer asked for from messages a business starts on its own. The line between them is the **customer service window**: a 24-hour period that opens each time a customer messages you. This is Meta's rule for every business on the WhatsApp Business Platform, and Avox follows it everywhere you can send from - the Inbox, automations, Calls and the Avox API. Inside 24 hours of the customer's latest message, send anything. After that, send an approved [template](https://docs.theavoxai.com/templates). When they reply, you have another 24 hours. ### The rule | Situation | What you can send | | --- | --- | | The customer messaged you in the last 24 hours | Anything - text, images, buttons, lists, Flows, call permission requests, and templates. | | The customer last messaged you more than 24 hours ago | Only an approved [template](https://docs.theavoxai.com/templates). | | The customer has never messaged you | Only an approved template. | - The 24 hours count from the customer's **latest** message. Every new message from them starts a fresh 24 hours. - Your own replies don't extend the window - only the customer's messages do. - When a template brings the customer back and they answer, a new window opens. - The window belongs to **one business number**. A customer who wrote to one of your connected numbers has opened a window on that number only, not on your other numbers. #### What opens the window, and what doesn't | Event | Opens or restarts the window? | | --- | --- | | The customer sends you a message (text, media, a button tap, a list choice) | Yes | | The customer replies to a template you sent | Yes | | Your team replies in the [Inbox](https://docs.theavoxai.com/inbox) | No | | An [automation](https://docs.theavoxai.com/automation) replies | No | | Your team replies from the WhatsApp Business app on a [Coexistence](https://docs.theavoxai.com/coexistence-explained) number | No | | You send a template | No - only the customer's answer does | #### The window and Meta's pricing The window also shapes what Meta charges. As of October 2026, Meta gives each business phone number 1,000 free delivered **service messages** (your free-form replies inside the window) a month, and charges from the 1,001st. **Utility** templates sent while a window is open are charged too, from 1 October 2026. Marketing and authentication templates are charged per message by [category](https://docs.theavoxai.com/whatsapp/template-categories). Rates and rules are Meta's and can change, so check [Meta's pricing page](https://developers.facebook.com/docs/whatsapp/pricing) for the current terms, and see [Pricing](https://docs.theavoxai.com/whatsapp-platform) for how this shows in Avox. ### How Avox shows it #### In the Inbox Avox works out the window from the time of the contact's latest incoming message to the number you're replying from. - **The chat header** shows the time left, for example **Reply window: 5h 12m left**. It turns amber when less than two hours remain, and reads **Reply window closed** once the 24 hours are up. Hover it to see "You can reply freely for 24 hours after their last message". - **Window open** - the composer reads "Write a message…" and you can reply. - **Window closed** - a note above the composer reads "It's been over 24 hours since this contact last messaged you - send a template to reopen the conversation." The composer is disabled and reads "Composer disabled - 24-hour window closed". See [AVX-3059](https://docs.theavoxai.com/error-codes/avx-3059). Avox checks the window again on the server when you press send, so a message never goes out in a window that closed while the conversation was open. In the window's final minute, Avox already treats it as closed, so a reply can't reach WhatsApp just after the window ends. #### In automations Automations reply to messages as they arrive, so their replies go out inside the window. - **Send a template** ("One of your Meta-approved templates - works even outside the 24h window") is the one message action that still sends after the window has closed. - Every other message action - text, media, buttons, lists, Flows, locations, contact cards, link buttons and **Request a call** - is skipped when the window has closed, and the automation carries on with its next step. - **Wait for reply** and **Delay** steps end a little early when the window would otherwise close first, so the next message can still be sent. - The **No-reply follow-up** trigger only follows up while the window is still open. See [Actions](https://docs.theavoxai.com/automation/actions) and [Triggers](https://docs.theavoxai.com/automation/triggers). #### On Calls A call permission request - from **Request calling permission** on [Calls](https://docs.theavoxai.com/calls), **Request a call** in the Inbox header, or an automation's **Request a call** step - is a regular message, so it uses the same window. Outside it, Avox shows "It's been over 24 hours since this contact last messaged you - send a template to reopen the conversation." For those customers, send an approved template of the **Calling permission request** type instead. See [Calling on WhatsApp](https://docs.theavoxai.com/whatsapp/calling). #### In the Avox API The [Avox API](https://docs.theavoxai.com/avox-api) sends whatever you ask it to. Outside the window, Meta refuses free-form messages and the API returns the error code `outside_messaging_window` ("It's been more than 24 hours since this person last messaged you. Send an approved template instead.") - see [API errors](https://docs.theavoxai.com/api/errors#outside_messaging_window). Send a `template` message instead (see [Message types](https://docs.theavoxai.com/avox-api/messages)). In Meta's own terms this is error `131047`, "Re-engagement message" - see [Meta error codes](https://docs.theavoxai.com/meta-error-codes). Meta can also accept a message and report shortly afterwards that it failed with `131047`. You'll see it as a `failed` status on [Logs](https://docs.theavoxai.com/logs) - open the event to see Meta's full payload. You can try this path without a real customer: with a **test key**, sending to `+15550000002` returns `outside_messaging_window`. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Reopening a conversation Create a template that suits the reason you're getting in touch - for example a Utility template for an order update. See [Create](https://docs.theavoxai.com/templates/create), or start from Meta's pre-verified templates in the [Library](https://docs.theavoxai.com/templates/library). Send it from an automation's **Send a template** action, through the [Avox API](https://docs.theavoxai.com/avox-api), or from a tool connected to it such as [n8n](https://docs.theavoxai.com/integrations/n8n), [Make](https://docs.theavoxai.com/integrations/make) or [Zapier](https://docs.theavoxai.com/integrations/zapier). The premade **Re-engagement with a template** automation does this for contacts another automation tags `re_engage`. When the customer replies, a new 24-hour window opens and the Inbox composer is available again. ### Working well with the window Watch the countdown in the Inbox header. An amber timer means less than two hours are left. A **No-reply follow-up** automation answers customers your team hasn't reached, inside the window. Have an approved Utility template for each common reason to get back in touch. End a template with a question or quick reply button, so the customer's answer opens a new window. ### Common questions The window counts 24 hours from the exact time of their latest message, not from the start of the day. If they wrote at 10:00 yesterday, the window closed at 10:00 today. The chat header shows **Reply window closed** once that happens. No. Only the customer's messages restart the window. A long back-and-forth stays open because the customer keeps writing, not because you do. Not with a free-form message. The window belongs to the number the customer wrote to, so reply from that number, or send a template from this one. The Inbox composer sends text replies. Templates go out through an automation's **Send a template** action or the [Avox API](https://docs.theavoxai.com/avox-api). Yes. It's Meta's rule for every business on the WhatsApp Business Platform, so it's the same on every Avox plan. ### Related --- ## Template categories URL: https://docs.theavoxai.com/whatsapp/template-categories Section: WhatsApp and Meta Every WhatsApp [template](https://docs.theavoxai.com/templates) belongs to one of three categories that Meta defines. The category tells Meta what the message is for, and it decides how Meta charges for it (see [Pricing](https://docs.theavoxai.com/whatsapp-platform)). ### The three categories | Category | For | Template types in Avox | | --- | --- | --- | | **Marketing** | Promotions, offers, product news, newsletters, and re-engagement. | Custom message, Catalogue | | **Utility** | Order updates, receipts, alerts, account notices, and reminders tied to something the customer did. | Custom message, Calling permission request, templates from Meta's library | | **Authentication** | One-time passcodes for login or verification. | One-time passcode | #### Marketing Use Marketing for anything promotional. A Marketing custom message can use every header, body, footer, and button option. A **Catalogue** template shares your product catalogue with a fixed **View catalog** button. #### Utility Use Utility for updates about something the customer already did or asked for - an order, a booking, an account change. Utility is also where you'll find: - **Calling permission request** - asks a customer's permission before a WhatsApp voice call. - **Meta's template library** - ready-written Utility templates Meta has already verified, which start working with no review wait. See [Library](https://docs.theavoxai.com/templates/library). #### Authentication Authentication templates send a one-time passcode. Meta writes the message itself; you choose how the code is delivered (zero-tap, one-tap, or copy code) and whether to add a security recommendation and an expiry time. See [One-time passcode](https://docs.theavoxai.com/templates/create#one-time-passcode). ### How Meta applies categories You choose a category when you create a template, and Meta reviews it along with the content. Meta can assign a different category from the one you chose when the content fits another category better. Avox always shows the category Meta reports: - When you submit, Avox records the category Meta returns, which can differ from the one you picked. - **Refresh from Meta** on the Templates page brings in Meta's current category for every template, along with its status. - The **Category** column on the Templates page and the **Category** row on each template's page show that category. To change a Custom message template's category yourself, use **Edit template** - the edit goes back to Meta for review. See [Editing a template](https://docs.theavoxai.com/templates/approval#editing-a-template). ### Choosing the right category - Promoting something, or reaching out without a specific customer action behind it? Use **Marketing**. - Confirming or updating something the customer did? Use **Utility**. - Sending a login or verification code? Use **Authentication**. What happens after you submit is covered on [Approval](https://docs.theavoxai.com/templates/approval). --- ## Pricing URL: https://docs.theavoxai.com/whatsapp-platform Section: WhatsApp and Meta Two different bills apply when you use WhatsApp through Avox: **Meta** charges your own WhatsApp Business Account for some messages, at Meta's own published rates. You pay Meta directly, with the payment method on your WhatsApp Business Account. **Avox** charges a flat platform fee for your plan - the dashboard, automation, Flows, templates, support, and the Avox API on plans that include API access. See [Plans](https://docs.theavoxai.com/plans) and [Billing](https://docs.theavoxai.com/billing). Avox adds no markup to Meta's charges and never collects them. ### How Meta charges for messages Meta charges per message delivered, for template messages. What a template costs depends on its [category](https://docs.theavoxai.com/whatsapp/template-categories) and on the country of the person you message. Free-form replies inside the customer service window (service messages) are free up to a monthly allowance per number, then charged. | Message | Typical use | Meta charge | | --- | --- | --- | | **Marketing** template | Promotions, offers, newsletters, re-engagement. | Charged per delivered message. | | **Utility** template | Order updates, receipts, reminders tied to something the customer did. | Charged per delivered message. Before 1 October 2026, free when sent while a customer service window was open; charged since. | | **Authentication** template | One-time passcodes and sign-in codes. | Charged per delivered message. | | **Service** message | Your free-form replies while the 24-hour window is open - text, images, buttons, lists, Flows. | As of October 2026: the first 1,000 delivered per business number each month are free, then charged. | Messages sent while a **free entry point** window is open - for example after someone taps an ad that opens a WhatsApp chat with you - are free too. Meta says that window can stay open for up to 7 days. Meta sets these rates and rules and can change them. Its current rates are in Meta's own [WhatsApp Business Platform pricing documentation](https://developers.facebook.com/docs/whatsapp/pricing). #### Replies inside the messaging window When a customer messages you, a [24-hour messaging window](https://docs.theavoxai.com/whatsapp/messaging-window) opens. Inside it you can reply with any kind of message - text, images, buttons, lists, Flows. These service messages count against Meta's free monthly allowance for the number (1,000 as of October 2026); after that Meta charges for them. This covers your everyday [Inbox](https://docs.theavoxai.com/inbox) conversations and most [automated replies](https://docs.theavoxai.com/automation). Meta's real figures show on Billing once Avox has read them. #### Template messages Starting a conversation, or messaging someone after the window has closed, needs an approved [template](https://docs.theavoxai.com/templates). Each one is charged at its category's rate for the recipient's country. Meta bills your own WhatsApp Business Account directly for its message charges. Avox's own subscription is separate, and its invoices are in your invoice history on [Billing](https://docs.theavoxai.com/billing/invoices). ### What Avox shows you Avox shows what Meta is charging, so you aren't surprised by Meta's bill: - **Overview** - the **Est. Meta cost** tile, for the most recent month, in its currency. - **Billing** - the **Meta charges** chart, day by day and by category, for the last 7, 30 or 90 days. It shows Meta's own reported figures once Avox has read them (labelled **Synced with Meta**), and an estimate until then (labelled **Live estimate**). Above it: the **Total**, the change **Vs previous period**, the cost **Per billable message**, and **Free messages**. - **Reconciliation** - under the chart, each day and category with the billable messages Avox saw and the number Meta reports, marked **Matched**, **Off by** a number, or **Waiting for Meta**. **CSV** downloads it. - **Meta payment status** - for each number, whether Meta can take payment, with **Check again** and **View Meta invoices**. See [Meta charges and payment problems](https://docs.theavoxai.com/billing#meta-charges-and-payment-problems) for every detail. Neither figure is an invoice, and Avox never charges you for them. Your real bill comes from Meta, to your own WhatsApp Business Account, separately from anything Avox charges for the platform. Meta's invoices are in **Billing & payments** in Meta Business Suite - **View Meta invoices** takes you there. ### Keeping Meta costs down Free-form replies within 24 hours of the customer's message fall under Meta's free monthly allowance for the number. Answer quickly in the [Inbox](https://docs.theavoxai.com/inbox). A genuine order update is Utility, not Marketing. See [Template categories](https://docs.theavoxai.com/whatsapp/template-categories). Meta prices Utility and Marketing separately, so label a template with the category that really fits it, and check Meta's rate card for the difference. Send promotions only to the customers they suit, using [tags and categories](https://docs.theavoxai.com/contacts#tags-and-categories). ### What Avox supports on the platform - **Coexistence** - Avox runs alongside the WhatsApp Business App on the same number. See [Coexistence](https://docs.theavoxai.com/coexistence-explained). - **Templates** - build, submit, and track Meta-approved templates. See [Templates](https://docs.theavoxai.com/templates). - **Flows** - forms that open inside WhatsApp. See [Flows](https://docs.theavoxai.com/flows). - **Calling** - WhatsApp voice calling, including asking a customer's permission to call. See [Calls](https://docs.theavoxai.com/calls). - **Usernames** - a memorable `wa.me` username link for a connected number, in place of its phone number. See [Connections](https://docs.theavoxai.com/connections). - **Identity-Key Check** - Meta holds back a send when the WhatsApp account behind a customer's number has changed. See [Meta error codes](https://docs.theavoxai.com/meta-error-codes). - **The Avox API** - send any WhatsApp message type from your own server with an Avox key, and see every request in **API logs**. See [Avox API](https://docs.theavoxai.com/avox-api). For the full list, see [WhatsApp products](https://docs.theavoxai.com/products) and [All features](https://docs.theavoxai.com/features). ### Plans Each plan sets how many connections, templates, Flows, and automations a Switchboard can have, how many Switchboards you can create, and how many [automation credits](https://docs.theavoxai.com/automation/credits) you get. Analytics is included on the Growth and Business plans. The live numbers for every plan are on [Plans](https://docs.theavoxai.com/plans), and you manage your own plan from [Billing](https://docs.theavoxai.com/billing). See plans Manage billing ### Common questions No. Your plan covers Avox. Meta charges your WhatsApp Business Account separately for the messages it charges for, and you pay Meta directly. No. [Automation credits](https://docs.theavoxai.com/automation/credits) are Avox's own allowance for messages your automations send. Meta's charges for any template messages are billed by Meta, as above. The **Live estimate** uses Meta's published rates in US dollars until Meta's own figures for the day arrive, usually within a day or two. Messages sent to the same number from another tool also show in Meta's figures. **Reconciliation** shows any difference, day by day. Meta can stop sending from the account until it's fixed. Avox shows the problem on Billing and Overview and emails every Admin once. See [Payment problems](https://docs.theavoxai.com/billing#payment-problems). ### Related --- ## Quality and limits URL: https://docs.theavoxai.com/whatsapp/quality-and-limits Section: WhatsApp and Meta Meta watches how customers react to every business number and uses that to decide two things: the number's **quality rating**, and its **messaging limit** - how many people it can start conversations with in a day. Both are Meta's, and Avox shows you what Meta reports on the [Health](https://docs.theavoxai.com/health) page. How customers receive your messages: High, Medium or Low. How many people you can start conversations with in 24 hours. How fast a number can send, and how often to one person. ### Quality rating The quality rating reflects how customers have received your recent messages. Meta weighs signals such as people blocking or reporting your number, and the reasons they give. | Rating | Meaning | | --- | --- | | High (green) | Customers are receiving your messages well. | | Medium (yellow) | Some negative feedback. Worth reviewing what you send and to whom. | | Low (red) | A lot of negative feedback. Meta may lower your messaging limit if it continues. | You can see the current rating in Meta's WhatsApp Manager - click **Open in Meta** on the connection's page in Avox. Changes Meta reports also land in **Quality history** on [Health](https://docs.theavoxai.com/health) (see [below](#quality-history)). #### What keeps quality high - Message people who opted in to hear from you, about what they expect to hear about. - Keep marketing relevant and not too frequent. - Make it easy to stop - for example, a quick reply button to opt out. - Use the right [template category](https://docs.theavoxai.com/whatsapp/template-categories) for each message. - Answer replies. A conversation that goes both ways reads very differently from one-way blasts. #### What hurts it | Habit | Why it hurts | Do this instead | | --- | --- | --- | | Messaging bought or old lists | People who don't know you block and report. | Message only people who opted in, recently. | | Sending the same promotion to everyone | Irrelevant messages get reported as spam. | Use [tags and categories](https://docs.theavoxai.com/contacts#tags-and-categories) to send to the people it suits. | | Marketing dressed up as Utility | Meta reviews categories, and customers notice. | Pick the honest [category](https://docs.theavoxai.com/whatsapp/template-categories). | | No way to opt out | Blocking becomes the only way to stop you. | Offer a "Stop" quick reply, and respect it. | | Unanswered replies | Customers who get no answer stop engaging. | Reply in the [Inbox](https://docs.theavoxai.com/inbox), or with a [No-reply follow-up](https://docs.theavoxai.com/automation/triggers#no-reply-follow-up) automation. | #### Template quality Templates have their own quality too. A template that collects negative feedback can be paused or disabled by Meta, and sends with it then fail with [`template_unavailable`](https://docs.theavoxai.com/api/errors#template_unavailable). With **WhatsApp account alerts** on in [Compliance](https://docs.theavoxai.com/compliance), every Admin hears by email about templates Meta rejects, pauses, disables or flags. See [Template approval](https://docs.theavoxai.com/templates/approval) and [Insights](https://docs.theavoxai.com/templates/insights). ### Messaging limits and tiers The messaging limit caps how many **different people** you can start conversations with (using templates) in a rolling 24 hours. Replying to people who wrote to you first, inside the [24-hour window](https://docs.theavoxai.com/whatsapp/messaging-window), doesn't count against it. | Message | Counts toward the limit? | | --- | --- | | A template to someone who hasn't written to you in the last 24 hours | Yes - once per person in the rolling 24 hours | | A free-form reply inside the 24-hour window | No | | A second template to the same person in the same 24 hours | No - each person counts once | Meta names each step of the limit as a **tier**, such as `TIER_1K` or `TIER_10K` - the number in the name is how many people. New numbers start on a lower tier. Meta raises the tier on its own when you keep good quality and send close to your current limit, and can lower it if quality drops. Depending on how Meta applies limits to your account, one limit can be shared by every number in your Business Portfolio. Business verification and a good track record are what let you grow. See [Meta concepts](https://docs.theavoxai.com/meta-platform) and [Accounts and numbers](https://docs.theavoxai.com/whatsapp/accounts-and-numbers). Meta sets and changes these values, and the details can change over time. Treat the tier Meta reports for your number as the source of truth. #### Throughput Separately from the daily limit, Meta caps how many messages per second a number can send, and how often you can message the same person in a short time. Going over these returns [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) from the [Avox API](https://docs.theavoxai.com/avox-api). See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). #### Other limits you might meet | Meta code | What happened | What to do | | --- | --- | --- | | `130429` | The number is sending faster than Meta allows. | Spread messages out over time. | | `131048` | Too many recipients blocked or reported the number. | Pause bulk sends and review who you message. | | `131056` | Too many messages to the same person in a short time. | Wait before messaging them again. | | `131049` | Meta limits how many marketing messages one person receives. | Don't retry right away. | | `131050` | The person stopped marketing messages. | Send them only non-marketing messages. | The full list is on [Meta error codes](https://docs.theavoxai.com/meta-error-codes). ### What Avox shows on Health #### Quality history When Meta sends a quality update for a number, Avox records it under **Quality history** on [Health](https://docs.theavoxai.com/health), with the date and time and: - **Messaging tier** - the number's current limit as Meta reports it, such as `TIER_10K`. - **Quality event** - what changed, such as `FLAGGED` (quality has dropped and the limit is at risk), `UNFLAGGED` (quality recovered), `UPGRADE` or `DOWNGRADE` (the tier moved). When a number was recently flagged, the Health page's insights show "Meta flagged this number's quality recently - see Quality history below." Until Meta sends an update, the card says "No quality updates from Meta yet." Every update also appears on [Logs](https://docs.theavoxai.com/logs) as a `phone_number_quality_update` event. #### Check health now **Check health now** on each connection asks Meta directly whether the number can send: ```json { "can_send_message": "AVAILABLE", "entities": [ { "entity_type": "PHONE_NUMBER", "id": "106540352242922", "can_send_message": "AVAILABLE" }, { "entity_type": "WHATSAPP_BUSINESS_ACCOUNT", "id": "102290129340398", "can_send_message": "AVAILABLE" }, { "entity_type": "BUSINESS", "id": "1234567890", "can_send_message": "AVAILABLE" } ] } ``` Avox turns this into plain lines - **Can send messages** ("This connection can send messages right now." when all is well), then one line each for **Phone number**, **WhatsApp Business Account**, **Business verification** and **App configuration** as Meta reports them ("No issues reported." when there's nothing to fix). Any issue shows Meta's description and suggested fix. **View raw response** opens Meta's answer unchanged, as above. A repeat click within a minute shows the same result again. | Meta's answer | What it means | | --- | --- | | `AVAILABLE` | The number can send messages. | | `LIMITED` | The number can send, with restrictions Meta describes in the issue lines. | | `BLOCKED` | The number can't send until the issue Meta describes is fixed. | For anything other than `AVAILABLE`, Avox shows "Meta reports this connection's ability to send as:" followed by Meta's answer. #### Delivery rate The **Delivery health right now** gauge shows the most recent day's delivery rate, and the chart next to it shows the trend over the period you pick (**7d**, **30d** or **90d**). A sudden drop is often the first sign of a quality problem - the insights panel points out a drop of 10 points or more over the window. ### When quality drops Check **Quality history** and the delivery rate on [Health](https://docs.theavoxai.com/health), and the template statuses on [Templates](https://docs.theavoxai.com/templates). Hold back bulk marketing until you know the cause. You can turn an automation off from [Automation](https://docs.theavoxai.com/automation) at any time. Make sure every recipient opted in and expects your messages. Clear, relevant, with an easy way to stop. Increase volume step by step while quality recovers. With **WhatsApp account alerts** on in [Compliance](https://docs.theavoxai.com/compliance), account-level alerts from Meta are emailed to the Switchboard's Owner, and every Admin hears about templates Meta rejects, pauses, disables or flags. ### Common questions **Quality history** on [Health](https://docs.theavoxai.com/health) shows the **Messaging tier** from Meta's latest quality update. Meta's WhatsApp Manager (**Open in Meta** on the connection's page) always shows the current values. No. The limit counts people you start conversations with using templates. Replies inside the 24-hour window don't count. No. Meta only sends an update when something changes, so a number with steady quality can show "No quality updates from Meta yet." for a long time. Meta sets the limit. Good quality, steady volume close to your current limit, and business verification are what lead Meta to raise it. ### Related --- ## Flows on WhatsApp URL: https://docs.theavoxai.com/whatsapp/flows Section: WhatsApp and Meta **WhatsApp Flows** are Meta's in-chat forms. A customer taps a button in a message, a form opens inside WhatsApp, they fill it in screen by screen, and their answers come back to you. This page explains how Flows work on Meta's side. For building and managing them in Avox, see [Flows](https://docs.theavoxai.com/flows). ### Flow JSON Every Flow is described by one JSON document, the **Flow JSON**. Its main parts: | Field | What it holds | | --- | --- | | `version` | The Flow JSON version. Avox's blank Flow starts at `"6.0"`. | | `screens` | The list of screens, in any order. Each has a unique `id`. | | `data_api_version` | `"3.0"` for Flows that ask an endpoint for live data. Avox adds it with **Add live parts**. | | `routing_model` | For live Flows: which screen can lead to which. Avox writes it from your screens and table links. | Since data API 3.0 the endpoint's address is a setting of the Flow at Meta (`endpoint_uri`), not part of its JSON: Avox sets it when it publishes and removes an old `data_endpoint_uri` from the JSON. This is the blank Flow Avox's editor starts with when you build from scratch: ```json { "version": "6.0", "screens": [ { "id": "MAIN", "title": "New Flow", "terminal": true, "success": true, "data": {}, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "Form", "name": "form", "children": [ { "type": "TextInput", "name": "full_name", "label": "Full name", "input-type": "text", "required": true }, { "type": "Footer", "label": "Submit", "on-click-action": { "name": "complete", "payload": {} } } ] } ] } } ] } ``` ### Screens and components A **screen** is one page of the form. It has an `id`, a `title` shown at the top, and a `layout` holding its **components**: - **Text** - headings and body text, such as `TextHeading` and `TextBody`. - **Inputs** - fields the customer fills in, such as `TextInput` and `Dropdown`. Each has a `name` that labels its answer, and can be `required`. - **Form** - groups the inputs on a screen. - **Footer** - the button at the bottom of the screen. Its `on-click-action` decides what the button does. A screen marked `terminal: true` is a last screen - the Flow can finish there. ### Actions A component's `on-click-action` tells WhatsApp what to do when the customer taps it. Avox's **Actions** panel lists every action your Flow uses and explains it: | Action | What it does | | --- | --- | | `complete` | Submits the form and closes the Flow, returning the collected data to WhatsApp. | | `navigate` | Moves to another screen in this Flow without submitting anything. | | `data_exchange` | Sends this screen's data to your endpoint and waits for its response before continuing. | | `update_data` | Updates this screen's own data without leaving it. | | `open_url` | Opens an external URL in the customer's browser. | ### Categories Each Flow belongs to one or more of Meta's categories: Sign up, Log in, Appointment booking, Lead generation, Shopping, Contact us, Customer support, Survey, and Other. ### Static Flows and live Flows - **Static Flows** contain everything in the Flow JSON. They work as soon as they're published. - **Live Flows** use `data_exchange` to ask an endpoint for data while the customer fills them in: free appointment slots, seats, a price, a coupon check. In Avox the endpoint is Avox's own by default, answering from your [Tables](https://docs.theavoxai.com/tables), or your own server under Advanced. See [Live Flows and the Avox endpoint](https://docs.theavoxai.com/flows/live-endpoint). For a live Flow, Meta encrypts every request to the endpoint: The WhatsApp number's RSA public key is registered with Meta. With the Avox endpoint (or pass-through) Avox makes the pair on its own server and registers it for you. With your own server directly, the pair is made in your browser and the private key stays with you. Meta encrypts the request with a fresh AES key, and encrypts that AES key with your public key. The endpoint decrypts the AES key with the private key, decrypts the request, and encrypts its response with the same AES key and an inverted IV. It checks Meta's `X-Hub-Signature-256` too. Meta sends `action: "ping"` requests to check your endpoint. Your server answers with `{"data": {"status": "active"}}`, encrypted. If the endpoint can't decrypt a request, it answers with HTTP status `421`, which tells Meta to fetch the public key again. Avox's endpoint does all of this for you; for your own server, the wizard's snippet does it. See [Live data](https://docs.theavoxai.com/flows#live-data). A Flow whose first screen needs live data is sent with `flow_action: "data_exchange"`, so Meta asks the endpoint for that screen (`INIT`) before it opens. ### Sending a Flow A published Flow is sent as an interactive **Flow message**: some text and a button (the **call to action**) that opens the Flow. In Avox, the automation action **Use Flows** sends one, with the button label you choose. See [Actions](https://docs.theavoxai.com/automation/actions#use-flows). When the customer finishes, WhatsApp sends their answers back as a reply. Avox stores each completed response, and the count for the last 30 days appears on [Overview](https://docs.theavoxai.com/overview). ### The status lifecycle | Meta status | Meaning | Shown in Avox as | | --- | --- | --- | | `DRAFT` | Created but not published. It can be edited and deleted. | Draft on Meta | | `PUBLISHED` | Live. It can be sent, and it can no longer be deleted. | Published | | `DEPRECATED` | Retired for good. It can't be sent again, and this can't be undone. | Deprecated | | `THROTTLED` | Meta has temporarily limited how often it can be sent. | Throttled | | `BLOCKED` | Meta has stopped it from being sent. | Blocked | - **Publishing** is one-way. Once published, a Flow is retired by **deprecating** it. - **Throttled** and **Blocked** are Meta's decisions about a Flow's health. Meta tells Avox when they happen, Avox updates the status, and it emails the Switchboard's Admins. - In Avox, **Create & publish** creates the Flow on Meta, uploads its JSON, and publishes it in one step. Meta's validator checks the JSON during upload; if it finds problems, the Flow isn't published. --- ## Calling on WhatsApp URL: https://docs.theavoxai.com/whatsapp/calling Section: WhatsApp and Meta The WhatsApp Business Calling API lets customers call a business's WhatsApp number from the WhatsApp app, the same way they call friends. This page explains how calling works on WhatsApp's side, and where each part shows up in Avox. To turn it on, see [Calling](https://docs.theavoxai.com/connections/calling); for your call history, see [Calls](https://docs.theavoxai.com/calls). One switch per connection, for Admins. Call history with search and filters. Send permission requests through the Avox API. ### Calling is a per-number setting Calling is switched on or off for each phone number, in the number's call settings on Meta's side. When an Admin flips the **Calling** switch on a connection's page in Avox, Avox updates that setting with Meta for you - you don't need to change anything in WhatsApp Manager yourself. The switch only stays on once Meta confirms the change. Meta decides which numbers are eligible to use calling. With calling on for a number: - Customers can call it from their WhatsApp chat with you. - Avox logs every call event Meta reports on [Calls](https://docs.theavoxai.com/calls) and in **Recent calls** on [Health](https://docs.theavoxai.com/health). - A number that calls you for the first time becomes a [contact](https://docs.theavoxai.com/contacts). - You can ask customers for permission to call them. ### Two kinds of call | Kind | Who starts it | What's needed | Shown in Avox as | | --- | --- | --- | --- | | **Customer-initiated** | The customer calls your business from their WhatsApp chat with you. | Calling turned on for your number. | **Inbound** | | **Business-initiated** | Your business calls the customer. | Calling turned on, **and** the customer's permission first. | **Outbound** | ### Asking a customer for permission WhatsApp protects customers from unwanted calls: before a business calls someone, the customer must agree. A business asks with a **call permission request** - a special interactive message in the customer's chat. The customer then chooses whether to allow calls from your business, right in the chat. By default the request reads: > We'd like to call you about your recent conversation - is that okay? #### Every way to send one in Avox | Where | How | Window | | --- | --- | --- | | [Calls](https://docs.theavoxai.com/calls) | The **Request calling permission** card: pick the customer under **Choose a contact**, then click **Send request**. You see "Permission request sent." | Needs the 24-hour window | | [Inbox](https://docs.theavoxai.com/inbox) | **Request a call** in the conversation header. It changes to **Request sent** once it's gone. | Needs the 24-hour window | | [Automation](https://docs.theavoxai.com/automation/actions#request-a-call) | A **Request a call** step, with your own optional message (up to 1024 characters) in place of the default text. The premade **Callback request** automation uses it. | Needs the 24-hour window | | [Templates](https://docs.theavoxai.com/templates) | A template of the **Calling permission request** type, in the Utility or Marketing category, with your own header, body and footer. Send it from an automation or the Avox API once it's approved. | Works outside the window | | [Avox API](https://docs.theavoxai.com/integrations/whatsapp-calling#build-your-own-server-for-whatsapp-calling) | An `interactive` message of type `call_permission_request`. | Needs the 24-hour window | Sending a request needs calling turned on for the number ("Enable calling on this connection first." otherwise). In the dashboard, anyone who can **Reply in the Inbox** and **See calls** can send one - by default, every Admin and Manager. See [Permissions](https://docs.theavoxai.com/switchboard/members#permissions). #### The window and permission requests A permission request is a regular WhatsApp message, so it follows the [24-hour customer service window](https://docs.theavoxai.com/whatsapp/messaging-window): send it while the customer has messaged you within the last 24 hours. Outside the window, Avox shows "It's been over 24 hours since this contact last messaged you - send a template to reopen the conversation." For that customer, send an approved template of the **Calling permission request** type, or any approved [template](https://docs.theavoxai.com/whatsapp/template-categories) - once they reply, the window is open again. Get a **Calling permission request** template approved before you need it. It's the one way to ask for permission from customers who haven't written in the last 24 hours. ### What customers see - **Your business name and profile**, as on any WhatsApp chat with you. See [Display names](https://docs.theavoxai.com/whatsapp/display-names). - **A way to call you** from the chat, once calling is on for your number. - **Your permission request**, as an interactive message they can answer in the chat. Calls happen over the customer's internet connection inside WhatsApp, not as a regular phone call. ### Call events As a call progresses, Meta sends call events to the number's webhook under the `calls` field. Avox receives them and logs each one on [Calls](https://docs.theavoxai.com/calls): | Event | Shown in Avox as | Meaning | | --- | --- | --- | | `connect` | **Connected** | The call was set up. | | `terminate` | **Ended** | The call finished. Includes the call's duration when it was answered. | When WhatsApp reports a missed call, it shows as **Missed** in your log. Each call also shows its **Direction**: **Inbound** when the customer called you, **Outbound** when your business called them. For the full event format, with an example, see [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks#calls). Every call event is also listed on [Logs](https://docs.theavoxai.com/logs) under the event type `calls`. #### Finding a call The call log on [Calls](https://docs.theavoxai.com/calls) shows **Contact**, **Direction**, **Status**, **Duration** and **When** for each call. Narrow it down with: - **Search** - "Name, last digits or call ID". - **Direction** - **Inbound** or **Outbound**. - **Outcome** - **Connected**, **Ended** or **Missed**. - **Duration**, **Category** and **Tags**, and a **From** / **To** date range. **Clear filters** resets them. To see one customer's calls, click **Calls** at the top of their Inbox conversation, or on their row in [Contacts](https://docs.theavoxai.com/contacts). Clicking a call opens the contact's profile, whose **Calls** tab lists their call history. ### Good practice - **Ask at the right moment.** Send the permission request while the customer is already talking to you, so they know why you want to call. - **Explain first.** A short message before the request ("Can we call you to sort this out?") helps customers say yes. - **Respect a no.** If a customer doesn't allow calls, keep helping them in the chat. - **Space out requests.** Avox asks you to wait a moment if you send requests too quickly ("You're sending too quickly - wait a moment and try again."). - **Keep your quality high.** Unwanted calls and messages lead to blocks and reports, which affect your number's [quality rating](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### Common questions Once **Calling** is on for your number, customers call you from their WhatsApp chat with you, the way they'd call anyone. The **Send request** button on Calls and **Request a call** in the Inbox use the default wording. For your own words, use an automation's **Request a call** step or a **Calling permission request** template. Check three things: calling is on for the number ("Enable calling on this connection first."), the customer has written in the last 24 hours, and you have the **Reply in the Inbox** and **See calls** permissions. For a customer outside the window, send a **Calling permission request** template. The [Calls](https://docs.theavoxai.com/calls) page follows your Switchboard's most recently connected number. Turn calling on for that number to use the page. ### Related pages --- ## Meta webhooks URL: https://docs.theavoxai.com/whatsapp/webhooks Section: WhatsApp and Meta Meta tells Avox about everything that happens on your WhatsApp number by sending **webhook events**: a customer's message, a delivery receipt, a template decision, a call. This page lists every event type Avox handles, what Avox does with it, and an example of what Meta sends. Meta sends these events to Avox, not to your server. Avox checks Meta's signature on every delivery, stores the events, answers Meta straight away, then processes them in the order they arrived for your Switchboard. If Meta delivers the same event twice, it's stored once. You can see every event your account received in [Logs](https://docs.theavoxai.com/logs). To get customers' incoming messages on your own server, turn on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override): Avox sends each new customer message there, signed, with retries, in Avox's own forwarding format (described on that page). What reached your server is listed on the **Received** tab of **API logs**. ### The envelope Every event arrives as a `POST` with this outer shape. `entry[].id` is your WhatsApp Business Account (WABA) ID, and `changes[].field` names the event type: ```json { "object": "whatsapp_business_account", "entry": [ { "id": "102290129340398", "changes": [ { "field": "messages", "value": { "...": "the event itself - see each type below" } } ] } ] } ``` One delivery can carry several entries and changes. In [Logs](https://docs.theavoxai.com/logs), Avox shows each change as its own event, with its payload as `waba_id`, `field`, and `value`. Examples on this page are trimmed to the fields that matter; Meta may include more. IDs and numbers are made up. ### Event types at a glance | Field | What it's about | What Avox does | | --- | --- | --- | | `messages` | Customer messages, delivery statuses, Flow responses | Fills the [Inbox](https://docs.theavoxai.com/inbox), creates contacts, updates statuses, runs [automations](https://docs.theavoxai.com/automation), saves [Flow](https://docs.theavoxai.com/flows) responses | | `message_template_status_update` | Meta's decision on a template | Updates the template's status; emails Admins about problems | | `phone_number_quality_update` | Quality rating and messaging limit | Adds a row to Quality history on [Health](https://docs.theavoxai.com/health) | | `calls` | WhatsApp call events | Logs the call on [Calls](https://docs.theavoxai.com/calls) | | `history` | Coexistence chat history import | Adds past messages to the Inbox | | `smb_app_state_sync` | Coexistence contact sync | Creates contacts and updates their names | | `smb_message_echoes` | Messages sent from the WhatsApp Business app | Adds them to the customer's conversation | | `account_alerts` | Alerts about your account | Emails the Owner | | `account_update` | Restrictions, policy problems, bans, a deleted or moved number | Shows it on the number's page, tells Admins once per change, stops broadcasts while sending is blocked | | `account_review_update` | Meta's review decision on your WhatsApp Business Account | Shows it on the number's page, tells Admins when it changes, holds broadcasts until it's approved | | `user_preferences` | A customer stopped or resumed your marketing messages in WhatsApp | Records it on the contact, adds or removes the Unsubscribed tag, skips them in marketing | | `automatic_events` | A lead or purchase Meta found in a chat from your click-to-WhatsApp ad | Records it on the contact and in [Analytics](https://docs.theavoxai.com/analytics), can start [automations](https://docs.theavoxai.com/automation/triggers) | | `flows` | WhatsApp Flow status changes | Updates the Flow's status; emails Admins about problems | Every event in this table also refreshes the connection's **Last active** heartbeat on [Health](https://docs.theavoxai.com/health). Other fields Meta may send are kept in [Logs](https://docs.theavoxai.com/logs) as they arrived and marked done: Avox never retries them, and they never hold up other events. ### Meta webhook fields Avox uses When you connect a number, Avox subscribes its Meta app to your WhatsApp Business Account. If you manage webhooks yourself in Meta's App Dashboard, make sure these fields are ticked: | Field | Needed? | What you miss without it | | --- | --- | --- | | `messages` | Yes | Customer messages, delivery updates and Flow answers | | `message_template_status_update` | Yes | Template decisions (templates stay "Pending") | | `phone_number_quality_update` | Yes | Quality rating and messaging limit | | `account_update` | Yes | Restrictions and bans on the number's page, so broadcasts may fail instead of waiting | | `account_review_update` | Yes | Meta's review decision on the number's page | | `user_preferences` | Yes | People who stop marketing in WhatsApp are only found after a broadcast fails for them | | `automatic_events` | Only if you run click-to-WhatsApp ads | Meta-detected leads and purchases | | `message_template_quality_update`, `template_category_update`, `message_template_components_update` | Nice to have | Parts of each template's history | | `phone_number_name_update`, `account_alerts`, `flows`, `calls` | Nice to have | Display name decisions, alerts, Flow status changes and the call log | | `history`, `smb_app_state_sync`, `smb_message_echoes` | Yes, for numbers also on the WhatsApp Business app | Chat history, app contacts and messages sent from the phone | Each number's page shows when each field last sent something, so you can tell a field that isn't ticked from one that just hasn't had anything to say yet. ### Marketing opt-outs Anyone can stop (or start again) marketing messages from your business inside WhatsApp. Meta then sends `user_preferences`: ```json { "field": "user_preferences", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "user_preferences": [ { "wa_id": "16505551234", "detail": "User requested to stop marketing messages", "category": "marketing_messages", "value": "stop", "timestamp": 1731705721 } ] } } ``` Avox records the change on the contact (with its time and the source **In WhatsApp**), creates the contact if it's new, and by default adds the [Unsubscribed tag](https://docs.theavoxai.com/contacts/unsubscribe) on `stop`. A `resume` takes the tag off again, unless someone on your team added it. Broadcasts and marketing templates skip anyone who stopped; utility and authentication messages still go out. A late or repeated event never undoes a newer one. See [Stop and unsubscribe](https://docs.theavoxai.com/contacts/unsubscribe#stopped-in-whatsapp). ### Leads and purchases from ads If you run click-to-WhatsApp ads and switched on **Automatically identify order, lead and other events** for your WhatsApp account in Meta Business Suite (Settings, Accounts, WhatsApp accounts, Summary), Meta reads new chats that started from an ad and sends `automatic_events` when it finds a lead or a purchase: ```json { "field": "automatic_events", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "automatic_events": [ { "id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUFERjg0NDEzNDdFODU4MkUxNgA=", "event_name": "Purchase", "timestamp": 1749069131, "ctwa_clid": "Afd8xAmpLe", "custom_data": { "currency": "USD", "value": 25000 } } ] } } ``` `event_name` is `LeadSubmitted` or `Purchase`. Avox stores each event once, joins it to the ad the chat came from, shows it on the contact and in the **From your ads** card on [Analytics](https://docs.theavoxai.com/analytics), and can start the **Meta found a lead** and **Meta found a purchase** [automations](https://docs.theavoxai.com/automation/triggers). Meta sends the value multiplied by 1000 (so `25000` is 25.00); Avox shows the real amount. Avox never sends these events back to Meta, so nothing is counted twice. Meta doesn't offer this in the EU, the UK, Japan or South Korea. You can hide these events in Avox from **Settings, WB events**. ### Messages The `messages` field carries three different things: new customer messages, status updates for messages you sent, and submitted Flow forms. #### A new customer message ```json { "field": "messages", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "contacts": [ { "profile": { "name": "Maria Lopez" }, "wa_id": "15551234567" } ], "messages": [ { "from": "15551234567", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdGRDA2QzQ1MTk1NkU2NDhCRgA=", "timestamp": "1760090400", "type": "text", "text": { "body": "Hi! Is my order on the way?" } } ] } } ``` What Avox does: - Creates a [contact](https://docs.theavoxai.com/contacts) for the number if it's new. - Sends it to your server, when [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) is on for the connection. - Adds the message to the customer's conversation in the [Inbox](https://docs.theavoxai.com/inbox), at the time Meta says it was sent - once, even if Meta sends it again. - Runs any matching [automation](https://docs.theavoxai.com/automation) (keyword replies, first-message greetings, and so on). A message Avox has already stored never runs automations a second time. Text messages show their text. A button or list reply, or a tap on a template's quick reply button, shows the chosen option's text. Other types (`image`, `audio`, `video`, `document`, `location`, `sticker`, `contacts`, and so on) show as a short label such as `[image]`. A reply to one of your buttons looks like this: ```json { "from": "15551234567", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQ0RkE3MTI0QjY4MjU4NTlGMUIA", "timestamp": "1760090460", "type": "interactive", "interactive": { "type": "button_reply", "button_reply": { "id": "track_order", "title": "Track my order" } } } ``` #### A delivery status When a message you sent changes status, Meta sends a `statuses` entry. Its `id` matches the message you sent: ```json { "field": "messages", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "statuses": [ { "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI5QTNDQTVCM0Q0Q0Q2RTY3RTcA", "status": "delivered", "timestamp": "1760090520", "recipient_id": "15551234567" } ] } } ``` `status` moves through `sent`, `delivered`, and `read`, or becomes `failed` (with an `errors` list - see [Meta error codes](https://docs.theavoxai.com/meta-error-codes)). Avox updates the message, and the new status shows in the Inbox and on the delivery charts on [Overview](https://docs.theavoxai.com/overview), [Analytics](https://docs.theavoxai.com/analytics), and [Health](https://docs.theavoxai.com/health). #### A submitted Flow When a customer completes a [WhatsApp Flow](https://docs.theavoxai.com/whatsapp/flows), the answers arrive as an `nfm_reply`. `response_json` is a JSON string of the form's fields: ```json { "from": "15551234567", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQ2QkU5RkQ0RTkyMzU5RDdDNTQA", "timestamp": "1760090600", "type": "interactive", "interactive": { "type": "nfm_reply", "nfm_reply": { "name": "flow", "body": "Sent", "response_json": "{\"flow_token\":\"booking-123\",\"date\":\"2026-10-14\",\"time\":\"10:30\"}" } } } ``` Avox saves it as a Flow response, linked to the contact. It counts toward **Responses (30d)** on [Overview](https://docs.theavoxai.com/overview). To work with a Flow's answers live on your own server, give the Flow a data endpoint - see [WhatsApp Flows](https://docs.theavoxai.com/integrations/whatsapp-flows). ### Template status updates Sent when Meta approves, rejects, pauses, disables, or flags one of your templates: ```json { "field": "message_template_status_update", "value": { "event": "REJECTED", "message_template_id": 1180934417063922, "message_template_name": "order_update", "message_template_language": "en_US", "reason": "INVALID_FORMAT" } } ``` Avox updates the template's status on [Templates](https://docs.theavoxai.com/templates), including the rejection reason. For `REJECTED`, `PAUSED`, `DISABLED`, and `FLAGGED`, every Admin also gets one email per change while **WhatsApp account alerts** is on in [Compliance](https://docs.theavoxai.com/compliance). See [Approval](https://docs.theavoxai.com/templates/approval). ### Quality updates Sent when your number's quality rating or messaging limit changes: ```json { "field": "phone_number_quality_update", "value": { "display_phone_number": "15550783881", "event": "FLAGGED", "current_limit": "TIER_1K" } } ``` Avox adds a row to **Quality history** on [Health](https://docs.theavoxai.com/health): `event` as the **Quality event** and `current_limit` as the **Messaging tier**. A `FLAGGED` event also raises an insight on Health. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### Calls Sent as a WhatsApp call progresses, when [Calling](https://docs.theavoxai.com/connections/calling) is on for your number. A call being set up: ```json { "field": "calls", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "calls": [ { "id": "wacid.HBgLMTU1NTEyMzQ1NjcVAgARGBI2RDhGNEQ4QjM1QjQ5ODQ3QjgA", "from": "15551234567", "to": "15550783881", "event": "connect", "timestamp": "1760090700", "direction": "USER_INITIATED" } ] } } ``` And when it ends, with the duration in seconds: ```json { "id": "wacid.HBgLMTU1NTEyMzQ1NjcVAgARGBI2RDhGNEQ4QjM1QjQ5ODQ3QjgA", "from": "15551234567", "to": "15550783881", "event": "terminate", "timestamp": "1760090834", "direction": "USER_INITIATED", "status": "COMPLETED", "duration": 134 } ``` Avox logs each event on [Calls](https://docs.theavoxai.com/calls) - `connect` as **Connected**, `terminate` as **Ended** with its duration - and creates a contact for a new caller. `direction` decides whether the call is shown as **Inbound** (`USER_INITIATED`) or **Outbound** (`BUSINESS_INITIATED`). See [Calling on WhatsApp](https://docs.theavoxai.com/whatsapp/calling). ### Chat history import With a [Coexistence](https://docs.theavoxai.com/connections/coexistence) connection, if you chose to share your chat history during signup, Meta sends it in batches shortly after you connect: ```json { "field": "history", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "history": [ { "metadata": { "phase": 0, "chunk_order": 1, "progress": 40 }, "threads": [ { "id": "15551234567", "messages": [ { "from": "15551234567", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQ3MjBFQkY3QjJENTU4NUQ2QzQA", "timestamp": "1757412000", "type": "text", "text": { "body": "Do you deliver on Sundays?" } } ] } ] } ] } } ``` Avox adds the past messages to each customer's conversation in the [Inbox](https://docs.theavoxai.com/inbox), once each, at the time they were really sent. Both sides of each chat come in: the customer's messages and the replies your team sent from the app. Imported history is past activity, so automations stay quiet for it. ### Contact sync With a Coexistence connection, Meta syncs the WhatsApp Business app's contacts: ```json { "field": "smb_app_state_sync", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "state_sync": [ { "type": "contact", "action": "add", "contact": { "full_name": "Maria Lopez", "first_name": "Maria", "phone_number": "15551234567" }, "metadata": { "timestamp": "1760090900" } } ] } } ``` For an `add` (Meta also sends `add` when a contact is edited), Avox creates the contact if it's new and uses the contact's full name as its name in [Contacts](https://docs.theavoxai.com/contacts). A `remove` only means the contact left the phone's address book, so Avox keeps the contact and its history. ### Messages sent from the phone app With a Coexistence connection, when your team sends a message from the WhatsApp Business app, Meta sends a copy so Avox can show it: ```json { "field": "smb_message_echoes", "value": { "messaging_product": "whatsapp", "metadata": { "display_phone_number": "15550783881", "phone_number_id": "106540352242922" }, "message_echoes": [ { "from": "15550783881", "to": "15551234567", "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBJBRjNCMjE5RDlFNkU0QzE4NzMA", "timestamp": "1760091000", "type": "text", "text": { "body": "Yes - it arrives tomorrow morning." } } ] } } ``` Avox adds the message to the customer's conversation in the [Inbox](https://docs.theavoxai.com/inbox), so the whole team sees replies sent from the phone. ### Account review Meta reviews every WhatsApp Business Account. When it decides, it sends `account_review_update`: ```json { "field": "account_review_update", "value": { "decision": "REJECTED" } } ``` `decision` is `APPROVED`, `PENDING`, `DEFERRED` (Meta needs more time or information) or `REJECTED`. Avox shows it on each of that account's numbers and tells the Switchboard's Admins (bell and email) when it changes. While it's anything but approved, broadcasts can't start ([AVX-3977](https://docs.theavoxai.com/error-codes/avx-3977)). When it's rejected, open WhatsApp Manager to see why, fix it and ask Meta for a review. ### Account alerts and updates Meta sends `account_alerts` and `account_update` when something about your WhatsApp Business Account needs attention or has changed - for example a restriction or a policy issue: ```json { "field": "account_update", "value": { "phone_number": "15550783881", "event": "ACCOUNT_VIOLATION", "violation_info": { "violation_type": "SCAM" } } } ``` For `account_alerts`, Avox emails the Switchboard's Owner (its first Admin) a summary with a link to [Connections](https://docs.theavoxai.com/connections), at most once a week for the same alert. For `account_update`, Avox keeps the number's standing up to date and explains it in plain words on the number's page: - **Restricted** (`ACCOUNT_RESTRICTION`): what can't be done and until when. While starting conversations is restricted, broadcasts can't start and running ones pause ([AVX-3978](https://docs.theavoxai.com/error-codes/avx-3978)). - **Policy problem** (`ACCOUNT_VIOLATION`): the kind of problem Meta found. - **Disabled, due to be disabled, or reinstated** (`DISABLED_UPDATE`): a disabled account sends nothing; a planned one shows the date. - **Deleted** (`ACCOUNT_DELETED`): the number is marked disconnected and nothing is sent. - **Moved off the platform** (`ACCOUNT_OFFBOARDED`, after a phone change or re-registration) and **reconnected** (`ACCOUNT_RECONNECTED`). - **Avox removed** (`PARTNER_REMOVED` on a number also on the WhatsApp Business app). Each change is told to the Switchboard's Admins once, in the bell and by email. These emails follow **WhatsApp account alerts** on [Compliance](https://docs.theavoxai.com/compliance). Other `account_update` events (partner apps, pricing tiers, the business's country) are kept in the number's history only. ### Flow status changes Sent when one of your published [Flows](https://docs.theavoxai.com/flows) changes status: ```json { "field": "flows", "value": { "event": "FLOW_STATUS_CHANGE", "message": "Flow Webhook Status changed", "flow_id": "1032761984725371", "old_status": "PUBLISHED", "new_status": "THROTTLED" } } ``` Avox updates the Flow's status on [Flows](https://docs.theavoxai.com/flows), including when it recovers to `PUBLISHED`. For `BLOCKED`, `THROTTLED`, and `DEPRECATED`, every Admin also gets an email (unless **WhatsApp account alerts** is off). Other `flows` events, such as endpoint performance alerts, are kept in [Logs](https://docs.theavoxai.com/logs). See [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows). ### Good practice for your own webhook receiver Avox follows these rules for Meta's events, and they work just as well for the messages [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) sends to your server: - Answer every `POST` with a `2xx` straight away, then do the slow work. - Expect the same message more than once and skip repeats using its id (Meta's `wamid`, or the event id on a forwarded message). - Check the request really came from the sender - Meta signs its events, and Avox signs forwarded messages with your signing secret. - Ignore fields and event types you don't use - new ones get added over time. --- ## Meta error codes URL: https://docs.theavoxai.com/meta-error-codes Section: WhatsApp and Meta These are **Meta's own** error numbers, returned by WhatsApp's Cloud API. They're separate from Avox's own [AVX-XXXX error codes](https://docs.theavoxai.com/error-codes) (shown in the dashboard) and from the [Avox API error codes](https://docs.theavoxai.com/api/errors) (like `template_not_found`) your server branches on. ### Where you'll see them | Where | What it looks like | | --- | --- | | An [Avox API](https://docs.theavoxai.com/avox-api) response | `error.meta_code` next to the Avox `error.code`, when WhatsApp refused the send. The same Avox code is on the request's row on the **Sent** tab of **API logs** (see [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs)), linked to its explanation. | | The [Logs](https://docs.theavoxai.com/logs) page | `statuses[].errors[].code` in a `failed` status (problems WhatsApp found after accepting a message), or inside an alert event. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). | | The connection wizard | "Meta error" and a number, when Meta's signup popup reports an error. See [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup). | | [Health](https://docs.theavoxai.com/health) | **Check health now** lists issues Meta reports for the number, account, business or app, in Meta's words. | This page covers the codes you're most likely to meet. Meta's [developer documentation](https://developers.facebook.com/docs/whatsapp) is the complete, always-current reference - check there for any code not listed here. ### How Meta codes map to Avox API codes When WhatsApp refuses a send made through the Avox API, Avox turns Meta's code into one stable Avox code, so your code only has to handle a short list. Avox checks Meta's code first, then the HTTP status Meta answered with: | Meta code | Avox API code | | --- | --- | | `132001` | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | | `132015`, `132016` | [`template_unavailable`](https://docs.theavoxai.com/api/errors#template_unavailable) | | `132000`, `132005`, `132007`, `132012` | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | | `131047` | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | | `131021`, `131026`, `131030`, `131049`, `133010`, `137000` | [`recipient_unreachable`](https://docs.theavoxai.com/api/errors#recipient_unreachable) | | `4`, `80007`, `130429`, `131048`, `131056` | [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) | | `10`, `190`, `200`, `131005`, `133000` | [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready) | | No answer, or a server error from Meta | [`meta_unavailable`](https://docs.theavoxai.com/api/errors#meta_unavailable) | | Any other `429` from Meta | [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) | | Anything else | [`meta_rejected`](https://docs.theavoxai.com/api/errors#meta_rejected) | ### Meta's error shape Every Meta Graph API error, WhatsApp included, uses the same envelope: ```json { "error": { "message": "(#131047) Re-engagement message", "type": "OAuthException", "code": 131047, "error_data": { "messaging_product": "whatsapp", "details": "Message failed to send because more than 24 hours have passed since the customer last replied to this number." }, "fbtrace_id": "AbCdEf123456" } } ``` `code` is the number to look up below. The Avox API passes only that number on, as `meta_code` - Meta's wording stays out of your responses. An Avox API error looks like this: ```json { "ok": false, "error": { "code": "outside_messaging_window", "message": "It's been more than 24 hours since this person last messaged you. Send an approved template instead.", "docs_url": "https://docs.theavoxai.com/api/errors#outside_messaging_window", "request_id": "req_4f1c2a9b8e7d6c5b4a3f2e1d", "meta_code": 131047 } } ``` ### Access and permissions | Code | Meaning | What to do | | --- | --- | --- | | `190` | Access token expired or invalid | Reconnect the number from [Connections](https://docs.theavoxai.com/connections). | | `10`, `200` | Permission denied | Avox's permission for this number was removed or changed on Meta's side. Reconnect the number. | | `131005` | Access denied | Same as above - reconnect the number. | | `131031` | Account has been locked | Meta restricted the WhatsApp Business Account. Check WhatsApp Manager (**Open in Meta** on the connection's page). | | `368` | Temporarily blocked for policy violations | Review the policy notice in WhatsApp Manager. | ### Rate and volume limits | Code | Meaning | What to do | | --- | --- | --- | | `4` | Too many API calls | Slow down and retry later. | | `80007` | WhatsApp Business Account rate limit reached | Slow down across every number on the account. | | `130429` | Throughput limit reached | The number is sending faster than Meta allows. Spread messages out. | | `131048` | Spam rate limit hit | Too many recipients blocked or reported the number. Review who you message and what you send. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). | | `131056` | Pair rate limit hit | Too many messages to the same person in a short time. Wait before messaging them again. | ### Recipient and delivery | Code | Meaning | What to do | | --- | --- | --- | | `131021` | Recipient can't be the sender | Send to a different number than the connected one. | | `131026` | Message undeliverable | The number may not use WhatsApp, or can't receive this message right now. | | `131030` | Recipient not in the allowed list | Only applies to Meta's test setups, which can message a short list of numbers. Add the number there, or use your real business. | | `131047` | Re-engagement message | More than 24 hours since the person last messaged you - send a template. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). | | `131049` | Not delivered to keep the ecosystem healthy | Meta limits how many marketing messages one person receives. Don't retry right away. | | `131050` | The person stopped marketing messages | Respect the choice - send them only non-marketing messages. | | `133010` | Phone number not registered | The sending number isn't registered with the Cloud API. Check it on [Health](https://docs.theavoxai.com/health). | | `137000` | Identity key mismatch | The person's WhatsApp account changed (a recycled phone number or an account migration). Meta blocks the send when **Identity-Key Check** is on for the connection. Confirm the number with them. | ### Message content | Code | Meaning | What to do | | --- | --- | --- | | `100` | Invalid parameter | A field doesn't match what WhatsApp expects. Compare it with [Message types](https://docs.theavoxai.com/avox-api/messages). | | `131008` | Required parameter is missing | Add the missing field. | | `131009` | Parameter value is not valid | Fix the value - for example, too many buttons or a title that's too long. | | `131051` | Unsupported message type | Use a type WhatsApp supports for this case. | | `131052` | Media download error | WhatsApp couldn't download your `link`. Make sure it's public HTTPS and the file type is allowed. | | `131053` | Media upload error | The file couldn't be processed. Check its type and size. | ### Templates | Code | Meaning | What to do | | --- | --- | --- | | `132000` | Parameter count mismatch | Send exactly as many parameters as the template has placeholders. | | `132001` | Template doesn't exist | Check the name and language on [Templates](https://docs.theavoxai.com/templates). | | `132005` | Text too long once filled in | Shorten the parameter values. | | `132007` | Format character policy violated | Remove characters the template's policy doesn't allow, such as new lines in a parameter. | | `132012` | Parameter format mismatch | Send each parameter in the format its placeholder expects. | | `132015` | Template is paused | Usually from low quality. See [Template approval](https://docs.theavoxai.com/templates/approval). | | `132016` | Template is disabled | Create a new template. | ### Account, number and payment | Code | Meaning | What to do | | --- | --- | --- | | `131000` | Something went wrong | Usually temporary on Meta's side. Retry later. | | `131042` | Business eligibility or payment issue | Check the payment method for the WhatsApp Business Account in WhatsApp Manager. | | `130497` | Country restriction | The account can't message people in the recipient's country. | | `133000` | Incomplete deregistration | The number's registration with Meta needs finishing. Reconnect it. | | `133016` | Too many registration attempts | Wait before trying to register the number again. | ### Errors during Embedded Signup If Meta's signup popup reports an error, the connection wizard shows **The connection didn't go through**, Meta's own message word for word, [AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002), and "Meta error" with its number. Look that number up in Meta's WhatsApp Embedded Signup error reference. The wizard's **Try this** list covers the usual fixes, and you can click **Retry connection**. See [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup) for what each step of the popup does. ### Errors in the dashboard When Avox can't finish something with Meta for you in the dashboard - changing a template or Flow, updating a number's settings, checking health - you see an Avox [AVX code](https://docs.theavoxai.com/error-codes) with a plain-English message. With **WhatsApp API problem reports** on in [Compliance](https://docs.theavoxai.com/compliance), the Switchboard's Owner also gets an email when requests Avox makes to Meta for you keep failing - at most one per issue per week. --- ## All integrations URL: https://docs.theavoxai.com/integrations Section: Integrations Avox sits between WhatsApp and the rest of your business. Some integrations are built in and run for you (WhatsApp itself, PayPal, sign-in with Google or Facebook). Others you wire up yourself with the [Avox API](https://docs.theavoxai.com/avox-api), using tools you already have. Every page below covers what the integration does, what you need, how to set it up, how to check it works, common errors and an FAQ. ### WhatsApp and Meta The official Meta platform every Avox connection runs on. ### Your systems Send messages from your own code, and manage the endpoint settings saved on each connection. ### Apps and automation tools Send WhatsApp messages from the tools your team already uses, with their own webhook and HTTP features. ### Payments, sign-in and email Built-in services that run your account. ### Built in or built by you | Kind | Integrations | Who sets it up | | --- | --- | --- | | Built in | WhatsApp Cloud API, Embedded Signup, WhatsApp Business App, Flows, Calling, PayPal, Google sign-in, Facebook sign-in, Email | Avox runs these. You connect or switch them on from the dashboard. | | Built by you | Avox API, Node.js, Laravel, Shopify, Chatwoot, n8n, Make, Zapier | Your developer or your automation tool, using an Avox API key. | ### What every "built by you" integration needs See [Getting started](https://docs.theavoxai.com/getting-started). An Admin creates it in **Settings > API Keys** or on the connection's page. Start with a test key (`avx_test_`), which never sends anything, then switch to a live key (`avx_live_`). See [API keys](https://docs.theavoxai.com/connections/api-keys) and [Authentication](https://docs.theavoxai.com/avox-api/authentication). Customer replies arrive in the [Inbox](https://docs.theavoxai.com/inbox), and delivery statuses on [Logs](https://docs.theavoxai.com/logs). Turn on [Message forwarding](https://docs.theavoxai.com/integrations/webhooks) to also get each new customer message on your own server. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). Every request your keys make, and every message forwarded to your server, is listed in **API logs** in the dashboard - see [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). Not sure where to start? [Avox API](https://docs.theavoxai.com/integrations/avox-api) is the foundation the other "built by you" pages build on. --- ## WhatsApp Cloud API URL: https://docs.theavoxai.com/integrations/whatsapp-cloud-api Section: Integrations The **WhatsApp Cloud API** is Meta's official, Meta-hosted API for business messaging. Every number you connect to Avox runs on it. Avox handles the Meta side for you - the access token, the webhook subscription, the API calls - so you work in the dashboard or with a simple [Avox API](https://docs.theavoxai.com/integrations/avox-api) key instead. ### What it does in Avox | Cloud API capability | Where you use it in Avox | | --- | --- | | Send and receive messages | [Inbox](https://docs.theavoxai.com/inbox), [Automation](https://docs.theavoxai.com/automation), [Avox API](https://docs.theavoxai.com/avox-api) | | Message templates | [Templates](https://docs.theavoxai.com/templates) - create, submit for review, track status, use Meta's template library | | WhatsApp Flows | [Flows](https://docs.theavoxai.com/flows) - see [WhatsApp Flows](https://docs.theavoxai.com/integrations/whatsapp-flows) | | Calling | [Calls](https://docs.theavoxai.com/calls) - see [WhatsApp Calling](https://docs.theavoxai.com/integrations/whatsapp-calling) | | Webhook events | [Logs](https://docs.theavoxai.com/logs) (every event with its payload), [Inbox](https://docs.theavoxai.com/inbox), [Health](https://docs.theavoxai.com/health) | | Number health | **Check health now** on [Health](https://docs.theavoxai.com/health) | | Number settings | The connection's page: **Calling**, **Identity-Key Check**, `wa.me` username | ### Requirements - An Avox account with an active plan that has a free number slot. See [Plans](https://docs.theavoxai.com/plans). - A Facebook account that's an admin of your Meta Business Portfolio (or permission to create one during signup). - A phone number: either one already in the WhatsApp Business app (Coexistence) or a number not used on WhatsApp that can receive a verification code. You don't need a Meta developer account, a Meta app, or to copy any token - Avox's own Meta app and [Embedded Signup](https://docs.theavoxai.com/integrations/embedded-signup) take care of that. ### Setup In the dashboard, go to [Connections](https://docs.theavoxai.com/connections) and click **Connect another number** (with no number yet, click **Connect a WhatsApp number** on the Connections page). Choose **Existing number (Coexistence)** or **New number (Bot only)**. Enter a **Connection Name**, an `https://` **Webhook URL** for your own endpoint and, optionally, a **Verify Token** (**Generate** makes one). See [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). Click **Test endpoint** to check your URL answers. The wizard shows the result and moves on to the last step either way. Click **Continue to Meta Embedded Signup** and follow Meta's window to the end. See [Embedded Signup](https://docs.theavoxai.com/integrations/embedded-signup). When Meta finishes, Avox confirms the number belongs to the account you approved, subscribes to its events, and marks the connection **Connected**. The full walkthrough is on [Setup](https://docs.theavoxai.com/connections/setup). ### Check it's working - The connection shows **Connected** on [Connections](https://docs.theavoxai.com/connections), and its page lists **WABA ID**, **Phone Number ID** and **Business ID** under **Meta identifiers**. - On [Health](https://docs.theavoxai.com/health), the heartbeat shows **Operational** once Meta starts sending events, and **Check health now** shows "Can send messages: This connection can send messages right now." - Send a WhatsApp message to the number from your phone. It appears in the [Inbox](https://docs.theavoxai.com/inbox), and the event is listed on [Logs](https://docs.theavoxai.com/logs). - In **Settings > API Keys**, click **Test** on a key. It checks the key is active and its number is connected and ready to send, without sending a real message. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### Common errors | You see | Fix | | --- | --- | | [AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002) - the connection attempt didn't go through | Read the reason in the wizard and click **Retry connection**. See [Embedded Signup](https://docs.theavoxai.com/integrations/embedded-signup#common-errors). | | [AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009) - every connection your plan allows is used | Upgrade, or pause or remove a number. See [Plans](https://docs.theavoxai.com/plans). | | [AVX-3080](https://docs.theavoxai.com/error-codes/avx-3080) - couldn't check health with Meta | Try again in a minute. If it repeats, reconnect the number. | | Connection shows **Error** | Setup didn't finish on Meta's side. Connect the number again. | | Heartbeat shows **Down** | Meta hasn't sent an event for over 30 minutes. Normal for a quiet number - send a test message. If messages aren't arriving, run **Check health now**. | | API sends fail with [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready) | Avox's access for the number expired or was removed on Meta's side. Reconnect it. | Meta's own error numbers are explained on [Meta error codes](https://docs.theavoxai.com/meta-error-codes). ### Limits - **Numbers per account** - set by your plan. See [Plans](https://docs.theavoxai.com/plans). - **Messaging limits and quality** - set by Meta per number. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - **The 24-hour window** - outside it, only templates go out. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). - **Meta's message pricing** - billed by Meta to your WhatsApp Business Account. See [Pricing](https://docs.theavoxai.com/whatsapp-platform). ### Security - Meta's access token for your number stays inside Avox, encrypted. It's never shown in the dashboard and never sent to your browser or your servers. - Your own servers use an [Avox API key](https://docs.theavoxai.com/avox-api/authentication) that can only send from one number. Admins can rotate a key (the old one keeps working for the time you choose, so you can swap it without downtime) or revoke it at any time. A test key (`avx_test_`) never sends anything, so you can build safely before switching to a live key (`avx_live_`). - Every request made with your keys is listed in **API logs**, with its outcome and request id. - You can remove Avox's access to your WhatsApp Business Account from your Business Portfolio settings on Meta at any time. The connection then needs reconnecting. ### Build your own server for WhatsApp Cloud API Avox holds the Cloud API connection for you, so your server never talks to Meta directly. It sends through the [Avox API](https://docs.theavoxai.com/integrations/avox-api) with an Avox key from an environment variable. The server below gives your own apps one route, `POST /notify`, that sends an approved template through your number. ```bash ### Environment AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # your apps send this in x-internal-token ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own apps call this with the x-internal-token header; the key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data as { ok: true; request_id: string; message_id: string | null; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own apps call this with the x-internal-token header; the key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) def avox_error_response(err: AvoxError): status = 502 if err.status >= 500 else 422 return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=status) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own apps call this with the x-internal-token header; the key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") if not token or not hmac.compare_digest(token, os.environ.get("INTERNAL_TOKEN", "")): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return avox_error_response(err) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). To receive this number's WhatsApp messages on your own server, see [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). ### FAQ No. Avox connects through its own Meta app, and Embedded Signup links your account to it. Avox holds the Meta access token for you. To send from your own code, use the [Avox API](https://docs.theavoxai.com/integrations/avox-api) - it accepts WhatsApp's own message format. Avox keeps its Meta calls on a current Graph API version and updates it as Meta releases new ones. You don't need to track versions yourself. The number stays yours on Meta's platform. Deleting a connection in Avox is confirmed with a one-time code, and the connection is kept for a few days before it's removed for good. See [Connections](https://docs.theavoxai.com/connections). [Logs](https://docs.theavoxai.com/logs) shows every webhook event's payload, and **View raw response** on [Health](https://docs.theavoxai.com/health) shows Meta's health answer unchanged. --- ## Meta Embedded Signup URL: https://docs.theavoxai.com/integrations/embedded-signup Section: Integrations **Embedded Signup** is Meta's own sign-up window for WhatsApp business platforms. Avox opens it so you can connect a number in one sitting: sign in with Facebook, choose your business and number, approve Avox's access, and finish. No tokens to copy, no developer setup. This page is the quick guide. Every screen of Meta's window is described on [Embedded Signup](https://docs.theavoxai.com/whatsapp/embedded-signup). ### Requirements | You need | Why | | --- | --- | | An active Avox plan with a free number slot | Avox checks this on Connections and again before saving the connection. See [Plans](https://docs.theavoxai.com/plans). | | A number that isn't connected to another Avox Switchboard | One WhatsApp number can be connected to only one Switchboard at a time. If it's connected elsewhere, delete it there first; that frees it straight away. A number still registered with another WhatsApp provider, or on another site's WhatsApp account, may also be refused by Meta, so remove it from there first. | | A Facebook account that's an admin of your Business Portfolio and WhatsApp Business Account | Meta only lets admins share an account with a platform. | | Pop-ups allowed for the Avox dashboard, opened at its `https://` address | Meta's window opens as a pop-up, and only on a secure page. | | A public `https://` URL for your own server | The wizard's **Webhook setup** step asks for it. It's where [Message forwarding](https://docs.theavoxai.com/integrations/webhooks) sends new customer messages once you turn it on. | | Your phone with the WhatsApp Business app (Coexistence only) | You confirm the connection on the phone partway through. | | A number that can receive an SMS or voice code (New number only) | Meta verifies the number that way. | ### Setup On [Connections](https://docs.theavoxai.com/connections), click **Connect another number**. With no number connected yet, click **Connect a WhatsApp number** on the Connections page. **Existing number (Coexistence)** or **New number (Bot only)**. This picks Meta's path. Click **Next**. Enter a **Connection Name** and your server's **Webhook URL** (`https://`). A **Verify Token** is optional but recommended - click **Generate** for a random one. Click **Next**. See [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). Click **Test endpoint**. Avox checks something answers at your URL, shows the result, then moves on to the last step either way. Copy your **Webhook URL** and **Verify Token** if your server needs them, then click the button. Meta's window opens, and the **What to expect during setup** panel shows each screen and a live status. Pick your number, confirm the profile (Coexistence), select the business portfolio, scan the QR code with your phone (Coexistence), confirm the WhatsApp Business Account, and review what you share with Avox. Keep the window open until it closes on its own. Avox takes you back to **Connections**. ### Check it's working - The status chip in the wizard turns **Connected**, and you land on [Connections](https://docs.theavoxai.com/connections) with the new number listed as **Connected**. - The connection's page shows **WABA ID**, **Phone Number ID** and **Business ID**. - The Switchboard's Admins get a "number connected" email. ### Common errors The wizard shows **The connection didn't go through** with the reason, [AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002), and "Meta error" with Meta's number when there is one. | Reason shown | Fix | | --- | --- | | "You closed the Meta signup window before the connection finished." | Click **Retry connection** and leave the window open until it closes itself. On Coexistence, also tap **Connect** on your phone. | | Meta's own message | Follow it. If it mentions a phone number or code, use a number that can receive one. Look up the Meta error number in Meta's Embedded Signup error reference. | | "Meta's popup never responded..." | Close any leftover pop-up or tab from the attempt, then retry. | | "Meta blocks its signup popup from opening on a plain http:// page." | Open the dashboard at its normal `https://` address. | | "Meta confirmed the signup, but Avox couldn't finish setting up the connection on our end." | Check your plan has a free number slot and that the number you picked sits inside the WhatsApp Business Account you approved. Then retry. If it repeats, contact [Support](https://docs.theavoxai.com/support) with the code shown. | | "That WhatsApp number is already connected to an Avox account. Disconnect it there first, then connect it again." ([AVX-3119](https://docs.theavoxai.com/error-codes/avx-3119)) | The number is connected to another Switchboard or account. Open **Connections** there, delete the number, then connect it again. If Meta still refuses it, remove the number from any other WhatsApp provider first. | | "That WhatsApp number is already connected to this Switchboard. Open Connections to see it." ([AVX-3120](https://docs.theavoxai.com/error-codes/avx-3120)) | Find the number on [Connections](https://docs.theavoxai.com/connections). If it shows **Error**, delete it there and connect it again. | | "We couldn't save that connection. Try again." ([AVX-3121](https://docs.theavoxai.com/error-codes/avx-3121)) | Nothing was connected. Try again; if it repeats, contact [Support](https://docs.theavoxai.com/support) with the code. | | [AVX-3009](https://docs.theavoxai.com/error-codes/avx-3009) on Connections, with **Connect another number** unavailable | Every number slot on your plan is in use. Pause or delete a number, or move to a bigger plan on [Billing](https://docs.theavoxai.com/billing). See [Plans](https://docs.theavoxai.com/plans). | | The connection shows **Error** on Connections | Setup didn't finish on Meta's side. Connect the number again. | ### Limits - Numbers you can connect: set by your plan. See [Plans](https://docs.theavoxai.com/plans). A paused number frees its slot. - Meta gives a brand-new Business Portfolio fewer options at first - use an existing one when you have it. - The chat history choice on your phone (Coexistence) is one-time, so choose the one you want to keep. ### Security - You sign in on Meta's own site. Avox never sees your Facebook password. - In **Review what you share with Avox**, Meta lists exactly which portfolio and WhatsApp Business Account Avox gets access to. Nothing else is shared. - You can remove Avox's access at any time from your Business Portfolio settings on Meta. - Continuing to Embedded Signup records your agreement to Avox's Terms of Service and your acknowledgement of the Privacy Policy. ### Build your own server for Meta Embedded Signup Your own server isn't involved. Embedded Signup happens entirely between your browser, Meta's window and Avox - Avox stores the connection and subscribes it to Meta's events for you. Once the number is connected, your server can send through it with the [Avox API](https://docs.theavoxai.com/integrations/avox-api). ### FAQ No. Avox's own Meta app is used; you only sign in with a Facebook account that manages your business. No. You can add one later in WhatsApp Manager. Meta bills message charges to the WhatsApp Business Account. Any Admin or Manager in the Switchboard can run the wizard. After that, renaming the connection, changing message forwarding, managing API keys, calling, pausing or deleting it is for Admins. No connection is created unless signup finishes. Your **Webhook setup** details stay saved, so Connections shows a **Setup in progress** card - click **Resume setup** when you're ready. The Business Portfolio and WhatsApp Business Account listed on Meta's **Review what you share with Avox** screen. Avox checks that the number you picked belongs to that account before saving the connection. Yes. If Meta's access for the number ends, API sends fail with [`connection_not_ready`](https://docs.theavoxai.com/api/errors#connection_not_ready). Reconnect the number from [Connections](https://docs.theavoxai.com/connections), going through Meta's window again. Setup didn't finish on Meta's side. Run signup again for that number. If it stays in **Connecting** for a day, you get a reminder email when **Setup reminders** is on in [Compliance](https://docs.theavoxai.com/compliance). --- ## WhatsApp Business App URL: https://docs.theavoxai.com/integrations/whatsapp-business-app Section: Integrations With Meta's **Coexistence**, one WhatsApp number works in the **WhatsApp Business app** on your phone and in Avox at the same time. Your team keeps chatting from the app, and Avox adds the shared inbox, automation, templates, Flows and the [Avox API](https://docs.theavoxai.com/integrations/avox-api) on the same number. For the concept in depth, see [Coexistence](https://docs.theavoxai.com/coexistence-explained). For the sync details, see [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). ### What it does - **Same number, two places.** Customers see one business. Your team can answer from the app or from Avox. - **Chat history import (optional).** If you choose to share chats during signup, your existing conversations come into the Avox [Inbox](https://docs.theavoxai.com/inbox) once. - **Contact names sync.** Names saved in the app are kept in sync with [Contacts](https://docs.theavoxai.com/contacts). - **Replies from the phone show in Avox.** A message your team sends from the app also appears in the Avox inbox. ### Requirements - A number already active in the **WhatsApp Business app** (not the regular WhatsApp app). - The phone with that app, signed in and nearby during signup. - An active Avox plan with a free number slot. See [Plans](https://docs.theavoxai.com/plans). - A Facebook account that's an admin of your Meta Business Portfolio. ### Setup On [Connections](https://docs.theavoxai.com/connections), start the wizard and choose **Existing number (Coexistence)**. Enter a **Connection Name**, your server's **Webhook URL** and, optionally, a **Verify Token**. Click **Test endpoint** - the wizard then moves on to **Connect with Meta**. See [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). In Meta's window, pick your number (it may show a "Registered" badge) or enter it. Meta shows your WhatsApp Business app's business profile. If it asks for an SMS or voice code instead, stop and go back. Open WhatsApp Business and scan the code. Meta also sends the same link to the number in WhatsApp. Read Meta's explanation, then choose whether to share your chat history. This choice is one-time. Confirm the WhatsApp Business Account, review what you share with Avox, and click **Finish**. ### Check it's working - The connection shows **Connected** on [Connections](https://docs.theavoxai.com/connections). - Send a message to the number from another phone: it appears in the app and in the Avox [Inbox](https://docs.theavoxai.com/inbox). - Reply from the app: the reply also appears in the Avox inbox. - If you shared chat history, past conversations appear in the inbox shortly after connecting. ### Common errors | Problem | Fix | | --- | --- | | Meta asks for an SMS or voice code instead of showing your app profile | Go back. That path moves the number off the app. Check you entered the exact number from the WhatsApp Business app. | | **Next** stays locked after the QR step | Finish the steps on your phone, including tapping **Connect**. The window unlocks on its own. | | [AVX-3002](https://docs.theavoxai.com/error-codes/avx-3002) - the connection didn't go through | Follow the reason shown and click **Retry connection**. See [Embedded Signup](https://docs.theavoxai.com/integrations/embedded-signup#common-errors). | | Heartbeat on [Health](https://docs.theavoxai.com/health) shows **Down** for a long time | Open the app on the primary phone, send a test message, and run **Check health now**. | ### Limits - Meta expects the app on the primary phone to be opened regularly. Keep it signed in on a phone your team uses day to day, so Meta keeps Coexistence running for the number. - The chat history sharing choice is made once, during signup. - Number count is set by your plan. See [Plans](https://docs.theavoxai.com/plans). - Meta's messaging limits and quality apply as for any number. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### Security - Your app stays on your phone, protected by your phone's own lock and WhatsApp's settings. - Only the WhatsApp Business Account you approve in Meta's window is shared with Avox. - How long Avox keeps conversation and event records is set by your retention settings on [Compliance](https://docs.theavoxai.com/compliance). ### Build your own server for WhatsApp Business App Your own server isn't involved. Coexistence runs between the WhatsApp Business app on your phone, Meta and Avox. To send through the same number from your own systems, use the [Avox API](https://docs.theavoxai.com/integrations/avox-api). ### FAQ No. They keep messaging the same number and see the same business name. Yes - that's the point of Coexistence. Keep the app signed in on the primary phone and open it regularly. Messages sent through the platform appear in the app's chats as well, so your team sees the whole conversation. That's a change on Meta's side, not in Avox. Connecting a number as **New number (Bot only)** is for numbers not used in the WhatsApp Business app. The [Inbox](https://docs.theavoxai.com/inbox) and [Contacts](https://docs.theavoxai.com/contacts) show the results, and [Logs](https://docs.theavoxai.com/logs) lists the sync events Meta sent. Details are on [Coexistence sync](https://docs.theavoxai.com/connections/coexistence). Yes - each number is its own connection, up to your plan's number limit. See [Plans](https://docs.theavoxai.com/plans). Keep using the app as before, and keep the primary phone signed in. Conversations they answer in the app also show in the Avox inbox, so anyone working in Avox sees the same history. Open [Health](https://docs.theavoxai.com/health): the heartbeat shows **Operational**, **Degraded** or **Down**, and **Check health now** asks Meta whether the number can send. With **WhatsApp account alerts** on in [Compliance](https://docs.theavoxai.com/compliance), the Switchboard's Owner (its first Admin) is emailed when Meta sends an alert about the account, and every Admin is emailed when a template is rejected, paused, disabled or flagged, or a Flow is blocked, throttled or deprecated. --- ## WhatsApp Flows URL: https://docs.theavoxai.com/integrations/whatsapp-flows Section: Integrations **WhatsApp Flows** are forms that open inside a WhatsApp chat - booking, sign-up, lead capture, surveys. Avox builds a Flow, publishes it to Meta in one step, and keeps its status in sync. For Flows that need live data (open time slots, a quote, a login check), you connect a **data endpoint** on your own server, and Avox walks you through setting it up. The full Flows guide is on [Flows](https://docs.theavoxai.com/flows); Meta's side is on [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows). ### Requirements - A connected WhatsApp number. The **Flows** page opens once you have one. - A free Flow slot on your plan. The **Flows used** bar shows how many you have left. See [Plans](https://docs.theavoxai.com/plans). - Admins and Managers can both create, publish and manage Flows. - For a data endpoint: a server you run, reachable over `https://`, that can hold a private key secret. ### Publishing a Flow On [Flows](https://docs.theavoxai.com/flows), click **Create Flow**, or pick a card under **Start from a premade Flow**. Choose a category tile under **Start from scratch** (for example **Appointment booking** or **Survey**), or a premade Flow under **No endpoint needed** or **Needs a live endpoint**. Click **Continue**. Enter a **Flow name** and pick **Categories**. Click **Next**. Edit the Flow JSON in **Flow content Editor (JSON)**. **Run** refreshes the phone preview; **Validate** checks the JSON with Meta. The **Errors** and **Actions** panels explain what's wrong and what each action does. Click **Create & publish**. Avox creates the Flow on Meta, uploads the JSON and publishes it. You'll see "Flow created and published". The wizard saves a draft as you go, so you can leave and come back from **Drafts** (up to 10). ### Connecting a data endpoint A data endpoint answers the Flow's `data_exchange` actions with live data. Meta encrypts every request to it, so it needs a key pair. In the **Content** step, open **Endpoint** and turn on **This Flow needs a live endpoint**. The panel shows "Endpoint is set up" or "Endpoint is not set up", with a five-step checklist: Enter your endpoint's address, like `https://your-server.com/flow-endpoint`. It must be public `https://`. Avox uses your connected number automatically: "Using connected number" and its Phone Number ID. Click **Generate key pair**. The key pair is created right in your browser. Copy the private key with **Copy private key** - "Save this private key now - it won't be shown again". Then click **Register public key with Meta** until you see "Registered with Meta". Shows "Connected." when your number's connection is in place. Click **Run health check**. You'll see "Responded" with the status and time, or the error. This is a plain reachability check. #### Your endpoint code Under **Endpoint snippet**, Avox gives you a working starting point in **Next.js** or **Express** (click **Copy**). It decrypts Meta's request with your private key, answers Meta's health `ping`, and encrypts your response. Put your private key in an environment variable on your server, and add your own logic where the snippet marks it. ```js // The shape of a request your endpoint receives (after decryption) { "version": "3.0", "action": "data_exchange", "screen": "BOOKING", "data": { "date": "2026-10-14" }, "flow_token": "survey-A-1042" } ``` ```js // The shape your endpoint returns (before encryption) { "version": "3.0", "screen": "SLOTS", "data": { "slots": [{ "id": "t_0900", "title": "9:00" }, { "id": "t_1400", "title": "14:00" }] } } ``` The exact request and response rules are Meta's - see [Flows on WhatsApp](https://docs.theavoxai.com/whatsapp/flows). ### Sending a Flow - From [Automation](https://docs.theavoxai.com/automation): the **Use Flows** action opens one of your published Flows, with a button label and intro text. - From your own systems: send an `interactive` message of type `flow` with the [Avox API](https://docs.theavoxai.com/avox-api/messages#flow). ### Check it's working - The Flow shows **Published** in **Your Flows**. Click **Refresh from Meta** to pull Meta's latest status. - Open the Flow from Automation or the API on your own phone and complete it. - For endpoint Flows, the Flow's page shows **Endpoint requests - last 30 days** with your traffic. ### Statuses | Status | Meaning | | --- | --- | | **Published** | Live and ready to send. | | **Draft on Meta** | Exists on Meta but isn't published. Can be deleted with **Delete Flow**. | | **Throttled** | Meta is limiting how often it can be sent, usually because the endpoint is unhealthy. | | **Blocked** | Meta stopped it, usually because the endpoint kept failing health checks. | | **Deprecated** | Retired with **Deprecate Flow**. It can't be sent again. | | **Failed** | Avox couldn't finish creating or publishing it on Meta. | When Meta blocks, throttles or deprecates a Flow, Admins get an email, if **WhatsApp account alerts** is on in [Compliance](https://docs.theavoxai.com/compliance). ### Common errors | Code | Meaning and fix | | --- | --- | | [AVX-3033](https://docs.theavoxai.com/error-codes/avx-3033) | Every Flow your plan allows is used. Deprecated and failed Flows still count. See [Plans](https://docs.theavoxai.com/plans). | | [AVX-3035](https://docs.theavoxai.com/error-codes/avx-3035) | Meta couldn't accept the Flow. Check the **Errors** panel and click **Validate**. | | [AVX-3036](https://docs.theavoxai.com/error-codes/avx-3036) | Meta rejected the JSON. The errors are listed under it. | | [AVX-3039](https://docs.theavoxai.com/error-codes/avx-3039) | Only a Flow still in draft on Meta's side can be deleted. Deprecate a published Flow instead. | | [AVX-3042](https://docs.theavoxai.com/error-codes/avx-3042) | Refreshing from Meta failed. Try again. | | [AVX-3043](https://docs.theavoxai.com/error-codes/avx-3043) | You have 10 saved drafts. Delete one to start another. | | [AVX-3046](https://docs.theavoxai.com/error-codes/avx-3046) | The browser couldn't generate a key pair. Try again in an up-to-date browser. | | [AVX-3047](https://docs.theavoxai.com/error-codes/avx-3047) | Meta couldn't register the public key. Try again. | | [AVX-3048](https://docs.theavoxai.com/error-codes/avx-3048) | The endpoint couldn't be reached. Check it's deployed and public over `https://`. | | [AVX-3050](https://docs.theavoxai.com/error-codes/avx-3050) | Endpoint metrics couldn't be loaded from Meta yet. | ### Limits - Flows per account: set by your plan. See [Plans](https://docs.theavoxai.com/plans). - Up to 10 saved drafts at a time. - To change a published Flow, create a new one with the changes and deprecate the old one. - **Run health check** can be used a few times a minute. ### Security - The private key is generated in your browser and never sent to Avox. Only the public key goes to Meta. Keep the private key in your server's secrets. - Meta encrypts every request to your endpoint with that key pair. - The endpoint must be public `https://`. ### Build your own server for WhatsApp Flows A Flow that's marked **This Flow needs a live endpoint** calls your server on every `data_exchange` step. Your server is the data endpoint: Meta encrypts every request to it, and it must answer in the same encrypted format. These are the requirements Avox's **Endpoint snippet** implements: | Requirement | What your server does | | --- | --- | | Key pair | Uses the private key from **Generate key pair** (step **Sign public key**). Its public key is registered for your number with **Register public key with Meta**. | | Request | Receives JSON with `encrypted_flow_data`, `encrypted_aes_key` and `initial_vector`. | | Unwrap the AES key | Decrypts `encrypted_aes_key` with the private key, RSA-OAEP with SHA-256. | | Decrypt the body | AES-128-GCM with `initial_vector`. The last 16 bytes of `encrypted_flow_data` are the auth tag. | | Answer the health check | When `action` is `ping`, returns `{ "data": { "status": "active" } }`. | | Encrypt the reply | AES-128-GCM with the same AES key and the IV with every bit flipped, auth tag appended, Base64-encoded, sent as plain text. | | Decryption failure | Returns HTTP `421`, which tells Meta to fetch your public key again. | ```bash ### Environment FLOW_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----" ``` ```js // flow-endpoint.js - Node.js 18+ (npm install express). Run: FLOW_PRIVATE_KEY="$(cat private.pem)" node flow-endpoint.js import express from "express"; import crypto from "node:crypto"; // The private key from "Generate key pair" in Avox. Never commit it; load it from a secret. const PRIVATE_KEY_PEM = (process.env.FLOW_PRIVATE_KEY ?? "").replace(/\\n/g, "\n"); function decryptRequest(body) { const { encrypted_flow_data, encrypted_aes_key, initial_vector } = body; // 1. Unwrap the per-request AES key with your RSA private key (RSA-OAEP, SHA-256). const aesKey = crypto.privateDecrypt( { key: PRIVATE_KEY_PEM, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: "sha256" }, Buffer.from(encrypted_aes_key, "base64") ); // 2. Decrypt the body with AES-128-GCM. The last 16 bytes are the auth tag. const data = Buffer.from(encrypted_flow_data, "base64"); const iv = Buffer.from(initial_vector, "base64"); const decipher = crypto.createDecipheriv("aes-128-gcm", aesKey, iv); decipher.setAuthTag(data.subarray(-16)); const plain = Buffer.concat([decipher.update(data.subarray(0, -16)), decipher.final()]); return { request: JSON.parse(plain.toString("utf8")), aesKey, iv }; } function encryptResponse(payload, aesKey, iv) { // 3. Encrypt the reply with the same AES key and the IV with every bit flipped. const flippedIv = Buffer.from(iv.map((byte) => ~byte)); const cipher = crypto.createCipheriv("aes-128-gcm", aesKey, flippedIv); const encrypted = Buffer.concat([cipher.update(JSON.stringify(payload), "utf8"), cipher.final()]); return Buffer.concat([encrypted, cipher.getAuthTag()]).toString("base64"); } // Your business logic: decide the next screen and its data. function handle(request) { if (request.action === "ping") return { data: { status: "active" } }; // Meta's health check if (request.action === "INIT") return { screen: "BOOKING", data: { dates: ["2026-10-14", "2026-10-15"] } }; if (request.action === "data_exchange" && request.screen === "BOOKING") { return { screen: "SLOTS", data: { slots: [{ id: "t_0900", title: "9:00" }, { id: "t_1400", title: "14:00" }] } }; } // Finish the Flow and hand the answers back to the chat. return { screen: "SUCCESS", data: { extension_message_response: { params: { flow_token: request.flow_token } } } }; } const app = express(); app.post("/flow-endpoint", express.json({ limit: "1mb" }), (req, res) => { let decrypted; try { decrypted = decryptRequest(req.body); } catch (error) { console.error("[flow-endpoint] could not decrypt request", error.message); return res.sendStatus(421); // tells Meta to fetch your public key again and retry } try { const { request, aesKey, iv } = decrypted; const reply = { version: request.version, ...handle(request) }; res.type("text/plain").send(encryptResponse(reply, aesKey, iv)); } catch (error) { console.error("[flow-endpoint] handler failed", error); res.sendStatus(500); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Flow endpoint listening")); ``` ```ts // app/api/flow-endpoint/route.ts - Next.js (App Router). Set FLOW_PRIVATE_KEY as a server secret. import crypto from "node:crypto"; export const runtime = "nodejs"; // The private key from "Generate key pair" in Avox. Never commit it; load it from a secret. const PRIVATE_KEY_PEM = (process.env.FLOW_PRIVATE_KEY ?? "").replace(/\\n/g, "\n"); type FlowRequest = { version: string; action: string; screen?: string; data?: Record; flow_token?: string }; function decryptRequest(body: { encrypted_flow_data: string; encrypted_aes_key: string; initial_vector: string }) { // 1. Unwrap the per-request AES key with your RSA private key (RSA-OAEP, SHA-256). const aesKey = crypto.privateDecrypt( { key: PRIVATE_KEY_PEM, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: "sha256" }, Buffer.from(body.encrypted_aes_key, "base64") ); // 2. Decrypt the body with AES-128-GCM. The last 16 bytes are the auth tag. const data = Buffer.from(body.encrypted_flow_data, "base64"); const iv = Buffer.from(body.initial_vector, "base64"); const decipher = crypto.createDecipheriv("aes-128-gcm", aesKey, iv); decipher.setAuthTag(data.subarray(-16)); const plain = Buffer.concat([decipher.update(data.subarray(0, -16)), decipher.final()]); return { request: JSON.parse(plain.toString("utf8")) as FlowRequest, aesKey, iv }; } function encryptResponse(payload: unknown, aesKey: Buffer, iv: Buffer) { // 3. Encrypt the reply with the same AES key and the IV with every bit flipped. const flippedIv = Buffer.from(iv.map((byte) => ~byte)); const cipher = crypto.createCipheriv("aes-128-gcm", aesKey, flippedIv); const encrypted = Buffer.concat([cipher.update(JSON.stringify(payload), "utf8"), cipher.final()]); return Buffer.concat([encrypted, cipher.getAuthTag()]).toString("base64"); } // Your business logic: decide the next screen and its data. function handle(request: FlowRequest) { if (request.action === "ping") return { data: { status: "active" } }; // Meta's health check if (request.action === "INIT") return { screen: "BOOKING", data: { dates: ["2026-10-14", "2026-10-15"] } }; if (request.action === "data_exchange" && request.screen === "BOOKING") { return { screen: "SLOTS", data: { slots: [{ id: "t_0900", title: "9:00" }, { id: "t_1400", title: "14:00" }] } }; } return { screen: "SUCCESS", data: { extension_message_response: { params: { flow_token: request.flow_token } } } }; } export async function POST(request: Request) { let decrypted: ReturnType; try { decrypted = decryptRequest(await request.json()); } catch (error) { console.error("[flow-endpoint] could not decrypt request", (error as Error).message); return new Response(null, { status: 421 }); // tells Meta to fetch your public key again and retry } try { const { request: flowRequest, aesKey, iv } = decrypted; const reply = { version: flowRequest.version, ...handle(flowRequest) }; return new Response(encryptResponse(reply, aesKey, iv), { headers: { "Content-Type": "text/plain" } }); } catch (error) { console.error("[flow-endpoint] handler failed", error); return new Response(null, { status: 500 }); } } ``` ```python ### main.py - pip install fastapi uvicorn cryptography ; run: uvicorn main:app --port 3000 import base64 import json import logging import os from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import padding from cryptography.hazmat.primitives.ciphers.aead import AESGCM from fastapi import FastAPI, Request from fastapi.responses import PlainTextResponse, Response log = logging.getLogger("flow-endpoint") app = FastAPI() ### The private key from "Generate key pair" in Avox. Never commit it; load it from a secret. PRIVATE_KEY = serialization.load_pem_private_key( os.environ["FLOW_PRIVATE_KEY"].replace("\\n", "\n").encode(), password=None ) def decrypt_request(body: dict): # 1. Unwrap the per-request AES key with your RSA private key (RSA-OAEP, SHA-256). aes_key = PRIVATE_KEY.decrypt( base64.b64decode(body["encrypted_aes_key"]), padding.OAEP(mgf=padding.MGF1(algorithm=hashes.SHA256()), algorithm=hashes.SHA256(), label=None), ) # 2. Decrypt the body with AES-128-GCM (the auth tag is the last 16 bytes, which AESGCM expects). iv = base64.b64decode(body["initial_vector"]) plain = AESGCM(aes_key).decrypt(iv, base64.b64decode(body["encrypted_flow_data"]), None) return json.loads(plain), aes_key, iv def encrypt_response(payload: dict, aes_key: bytes, iv: bytes) -> str: # 3. Encrypt the reply with the same AES key and the IV with every bit flipped. flipped_iv = bytes(b ^ 0xFF for b in iv) return base64.b64encode(AESGCM(aes_key).encrypt(flipped_iv, json.dumps(payload).encode(), None)).decode() def handle(req: dict) -> dict: # Your business logic: decide the next screen and its data. if req.get("action") == "ping": return {"data": {"status": "active"}} # Meta's health check if req.get("action") == "INIT": return {"screen": "BOOKING", "data": {"dates": ["2026-10-14", "2026-10-15"]}} if req.get("action") == "data_exchange" and req.get("screen") == "BOOKING": return {"screen": "SLOTS", "data": {"slots": [{"id": "t_0900", "title": "9:00"}, {"id": "t_1400", "title": "14:00"}]}} return {"screen": "SUCCESS", "data": {"extension_message_response": {"params": {"flow_token": req.get("flow_token")}}}} @app.post("/flow-endpoint") async def flow_endpoint(request: Request): try: req, aes_key, iv = decrypt_request(await request.json()) except Exception as error: # wrong key, corrupted data, missing fields log.error("could not decrypt request: %s", error) return Response(status_code=421) # tells Meta to fetch your public key again and retry try: reply = {"version": req.get("version"), **handle(req)} return PlainTextResponse(encrypt_response(reply, aes_key, iv)) except Exception: log.exception("handler failed") return Response(status_code=500) ``` Replace `handle()` with your own screens and data - the screen ids must match your Flow JSON. Deploy it at the public `https://` address you entered in **Set endpoint URI**, then click **Run health check** in the **Endpoint** panel. For sending a Flow from your own systems, use an `interactive` message of type `flow` through the [Avox API](https://docs.theavoxai.com/avox-api/messages#flow). To receive this number's WhatsApp messages on your own server, see [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). ### FAQ No. Flows under **No endpoint needed** - surveys, feedback, purchase interest - work without one. Completed Flows come back as a reply event, which you can open on [Logs](https://docs.theavoxai.com/logs) - the answers are in `interactive.nfm_reply.response_json`. The number of responses shows on the **Flows** card on [Overview](https://docs.theavoxai.com/overview). For endpoint Flows, your endpoint also receives each `data_exchange` step as it happens. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). The public key is registered for your phone number, so one key pair serves all your endpoint Flows on that number. Create a new Flow with the changes, then deprecate the old one from its page. --- ## WhatsApp Calling URL: https://docs.theavoxai.com/integrations/whatsapp-calling Section: Integrations **WhatsApp Business Calling** lets customers call your business number over WhatsApp. With Avox, your team answers those calls in the browser, calls customers who allowed it, and keeps every call with its timeline and notes. You need no extra software: a microphone and a recent browser are enough. More detail: [Calls](https://docs.theavoxai.com/calls) (everything about taking and making calls), [Calling](https://docs.theavoxai.com/connections/calling) (the switch on a number) and [Calling on WhatsApp](https://docs.theavoxai.com/whatsapp/calling) (Meta's side). Call audio is encrypted between your browser and WhatsApp's call servers (DTLS-SRTP), and WhatsApp carries it to the customer's phone. The audio never passes through Avox, and Avox doesn't record calls. ### Requirements - **A number used with Avox only**, with **Connected** status. On a number that also uses the WhatsApp Business app, calls ring in the app on your phone and Avox only logs them. - **A messaging limit of at least 2,000 people a day** on the number (Meta's rule). - **A payment method on your WhatsApp account**, added in WhatsApp Manager. - **A plan with calling.** Answering calls in Avox and calling customers are plan features. See [Plans](https://docs.theavoxai.com/plans). - **Permissions:** **Manage connections** or **Set up calling** to turn calling on, **Answer calls** to be rung, **Make calls** to call customers. See [Calls](https://docs.theavoxai.com/calls#who-can-do-what). - **A microphone and a recent Chrome, Edge, Firefox or Safari.** ### Setup On [Connections](https://docs.theavoxai.com/connections), open the number and turn on **WhatsApp calls** in its **Calling** section. Avox asks Meta to switch calling on. Press **Call settings** to set the call button, call hours, callback requests and voicemail, then **Save to WhatsApp**. In **Settings > Calls**, under **How calls work here**, pick who gets rung and what Decline and Silence do. In **Settings > Personalisation**, make sure **Ring me for calls** and **Ring on this device** are on, and allow the microphone when your browser asks. ### Asking a customer for permission to call WhatsApp only lets a business call a customer who allowed it. Press **Ask to call** in the customer's chat in the [Inbox](https://docs.theavoxai.com/inbox#ask-to-call), on a missed call or on their contact page. Within 24 hours of their last message, the request is a normal message you can change before **Send request**; after that, use an approved template with a call permission request. The customer allows your calls for 7 days or always. See [Calling customers](https://docs.theavoxai.com/calls#calling-customers). ### Check it's working - The number's **WhatsApp calls** switch stays on after a page refresh, and **Settings > Calls > Limits** says the number "Takes calls in Avox". - When a customer calls, the call rings in the call panel in the corner of the dashboard for the people you chose. Answer it and talk. - The call shows on [Calls](https://docs.theavoxai.com/calls) with its status, who answered and for how long, and in the customer's chat in the [Inbox](https://docs.theavoxai.com/inbox). ### Common errors | You see | Fix | | --- | --- | | The switch is greyed out | You need **Manage connections**, the number is paused, or the plan has stopped. See [Calling](https://docs.theavoxai.com/connections/calling#if-the-switch-wont-change). | | "Calling isn't available on a number that also uses the WhatsApp Business app." | Use a number connected to Avox only ([AVX-3930](https://docs.theavoxai.com/error-codes/avx-3930)). | | "Meta turns calling on only once this number can message at least 2,000 people a day." | Wait until the messaging limit grows ([AVX-3931](https://docs.theavoxai.com/error-codes/avx-3931)). | | Calls don't ring for me | Check **Answer calls**, the **Who gets rung** list, and **Ring me for calls** and **Ring on this device** in Personalisation. | | "Allow your microphone to take calls." | Allow the microphone from the lock icon in the address bar ([AVX-5130](https://docs.theavoxai.com/error-codes/avx-5130)). | | Calls fail with "Add a payment method" | Add a payment method in WhatsApp Manager ([AVX-5118](https://docs.theavoxai.com/error-codes/avx-5118)). | | "This customer hasn't allowed your calls." | Ask them first with **Ask to call** ([AVX-5106](https://docs.theavoxai.com/error-codes/avx-5106)). | Every calling message and its code is listed on [Calls](https://docs.theavoxai.com/calls#troubleshooting). ### Limits - **WhatsApp's rules:** 1 call permission request a day and 2 a week to each customer, up to 100 connected calls a day to each customer, and your permission stops after 4 unanswered calls in a row. - **Countries:** numbers in the US, Canada, Egypt, Vietnam and Nigeria can't call customers. Customers can still call them. - **Costs:** calls customers make to you are free. Calls you make are charged by Meta per minute (in 6-second steps) to your WhatsApp account, never by Avox. See [What calls cost](https://docs.theavoxai.com/calls#what-calls-cost). ### Security - Turning calling on needs **Manage connections** or **Set up calling**; calling customers needs **Make calls**. - Avox doesn't record or transcribe calls. It keeps who called, when, how long, who answered and the team's notes. See [Privacy](https://docs.theavoxai.com/calls#privacy). - Calls from private numbers, or from numbers that aren't on a number's list of chats to bring in, are never shown to anyone and nothing about them is kept. ### Build your own server for WhatsApp Calling Turning calling on and viewing call history happen in Avox, so they need no server. What your server can do is ask customers for permission to call from your own systems - for example, when a support ticket needs a call. The [Avox API](https://docs.theavoxai.com/integrations/avox-api) sends WhatsApp's call permission request as an `interactive` message, the same request **Ask to call** sends from a chat. It follows the 24-hour window, so the route below falls back to your approved **Calling permission request** template when WhatsApp reports the window is closed. **Calling** must be on for the connection. ```bash ### Environment AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # your apps send this in x-internal-token CALL_PERMISSION_TEMPLATE=call_permission_request # your approved template's name ``` A closed window can also be reported shortly after sending, as a `failed` status on [Logs](https://docs.theavoxai.com/logs) with Meta code `131047` - check there if a request doesn't reach the customer. ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /call-permission { "to": "15551234567", "reference": "ticket-881" } // Asks a customer for permission to call. Inside the 24-hour window it sends WhatsApp's // call permission request; outside it, your approved "Calling permission request" template. app.post("/call-permission", express.json(), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, reference } = req.body ?? {}; if (!to || !reference) return res.status(400).json({ error: "to and reference are required" }); try { const result = await sendWhatsApp( { to, type: "interactive", interactive: { type: "call_permission_request", body: { text: "We'd like to call you about your recent conversation - is that okay?" }, }, }, `call-permission-${reference}` ); return res.json({ ok: true, message_id: result.message_id }); } catch (err) { if (err.code === "outside_messaging_window" && process.env.CALL_PERMISSION_TEMPLATE) { const result = await sendWhatsApp( { to, type: "template", template: { name: process.env.CALL_PERMISSION_TEMPLATE, language: { code: "en_US" } } }, `call-permission-template-${reference}` ); return res.json({ ok: true, message_id: result.message_id, via: "template" }); } return res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/call-permission/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data as { ok: true; request_id: string; message_id: string | null; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/call-permission { "to": "15551234567", "reference": "ticket-881" } // Inside the 24-hour window: WhatsApp's call permission request. Outside it: your approved template. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const { to, reference } = (await request.json().catch(() => null)) ?? {}; if (!to || !reference) return NextResponse.json({ error: "to and reference are required" }, { status: 400 }); try { const result = await sendWhatsApp( { to, type: "interactive", interactive: { type: "call_permission_request", body: { text: "We'd like to call you about your recent conversation - is that okay?" }, }, }, `call-permission-${reference}` ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; if (e.code === "outside_messaging_window" && process.env.CALL_PERMISSION_TEMPLATE) { const result = await sendWhatsApp( { to, type: "template", template: { name: process.env.CALL_PERMISSION_TEMPLATE, language: { code: "en_US" } } }, `call-permission-template-${reference}` ); return NextResponse.json({ ok: true, message_id: result.message_id, via: "template" }); } return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) def avox_error_response(err: AvoxError): status = 502 if err.status >= 500 else 422 return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=status) ### POST /call-permission {"to": "15551234567", "reference": "ticket-881"} ### Inside the 24-hour window: WhatsApp's call permission request. Outside it: your approved template. @app.post("/call-permission") async def call_permission(request: Request): token = request.headers.get("x-internal-token", "") if not token or not hmac.compare_digest(token, os.environ.get("INTERNAL_TOKEN", "")): return Response(status_code=401) body = await request.json() to, reference = body.get("to"), body.get("reference") if not (to and reference): return JSONResponse({"error": "to and reference are required"}, status_code=400) try: result = await send_whatsapp( { "to": to, "type": "interactive", "interactive": { "type": "call_permission_request", "body": {"text": "We'd like to call you about your recent conversation - is that okay?"}, }, }, idempotency_key=f"call-permission-{reference}", ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: template_name = os.environ.get("CALL_PERMISSION_TEMPLATE") if err.code == "outside_messaging_window" and template_name: result = await send_whatsapp( {"to": to, "type": "template", "template": {"name": template_name, "language": {"code": "en_US"}}}, idempotency_key=f"call-permission-template-{reference}", ) return {"ok": True, "message_id": result.get("message_id"), "via": "template"} return avox_error_response(err) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). To receive this number's WhatsApp messages on your own server, see [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). ### FAQ Once calling is on, customers call your number from WhatsApp the way they'd call anyone: the call icon in your chat, a call button in your messages, a link, their contacts or recent calls. Yes, inside the 24-hour window: **Ask to call** starts with a suggested message you can change before **Send request**. Outside the window, your approved call permission template's words are used. On their contact page, or with **History** in the call panel during a call. The [Calls](https://docs.theavoxai.com/calls) page can also be filtered by name, number or call reference. Yes. The call stays in the call panel in the corner while you move between pages, and you can drag it or minimise it into the header call bar. Closing the tab or signing out ends the call. --- ## Message forwarding URL: https://docs.theavoxai.com/integrations/webhooks Section: Integrations Turn on **Message forwarding** on a connection and Avox sends each new message your customers send to that WhatsApp number to your own HTTPS endpoint, as it arrives, signed so you can check it came from Avox. Use it to feed a CRM, a ticketing tool, your own bot or a data warehouse. Messages still appear in the Avox [Inbox](https://docs.theavoxai.com/inbox) as usual. Only incoming customer messages are forwarded - not delivery statuses, calls, messages your team sends, or template and account events. Those stay on [Logs](https://docs.theavoxai.com/logs). ### Requirements - A connected WhatsApp number. - The **Admin** role in the Switchboard. - An endpoint reachable from the public internet over `https://` on the standard port (443), with a valid TLS certificate. Private and local addresses are refused, and redirects aren't followed. - Your endpoint can read the raw request body (to check the signature) and answer within 10 seconds. ### Setup Add a `POST` route that checks the `Avox-Signature` header and answers `200` straight away. Copy a ready-made one for Express, Next.js, FastAPI or Flask from [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#check-the-signature). On [Connections](https://docs.theavoxai.com/connections), click **Settings** on the number and find **Message forwarding**. Type your endpoint's `https://` address and click **Save URL**. If you entered a **Webhook URL** in the setup wizard, it's already filled in. Flip the switch. Copy the signing secret from **Your signing secret** - it's shown only once - and set it on your server, for example as `AVOX_WEBHOOK_SECRET`. Click **Send test event**. You should see **Delivered - your endpoint answered 200**, and the test in **Recent deliveries**. Every control in the section is described on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### What you receive Each request is a `POST` with a `message.received` event: ```json { "id": "evt_5f0c9a7e1b2d4c6e8f00a1b2c3d4e5f6", "type": "message.received", "api_version": "2026-10-01", "created_at": "2026-10-10T10:00:02.000Z", "connection_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d", "data": { "message_id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdC", "from": "+15551234567", "contact_name": "Maya", "timestamp": "2026-10-10T10:00:00.000Z", "type": "text", "text": { "body": "Hi, is my order on its way?" } } } ``` with the headers `Avox-Signature`, `Avox-Event-Id`, `Avox-Event-Type: message.received` and `User-Agent: Avox-Webhooks/1.0`. Images, documents, locations, button taps and the other types are listed with examples on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#whats-sent). ### A minimal receiver ```js // Node.js 18+, Express - npm install express import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const app = express(); const SECRET = process.env.AVOX_WEBHOOK_SECRET; function verify(raw, header) { let t = null; const signatures = []; for (const part of (header ?? "").split(",")) { const [key, value = ""] = part.trim().split("="); if (key === "t" && /^\d+$/.test(value)) t = Number(value); if (key === "v1") signatures.push(value); } if (t === null || Math.abs(Date.now() / 1000 - t) > 300) return false; // 5 minutes const expected = createHmac("sha256", SECRET).update(`${t}.`).update(raw).digest(); return signatures.some((sig) => { const given = Buffer.from(sig, "hex"); return given.length === expected.length && timingSafeEqual(given, expected); // constant time }); } app.post("/avox/messages", express.raw({ type: "application/json" }), (req, res) => { if (!verify(req.body, req.get("Avox-Signature"))) return res.sendStatus(401); res.sendStatus(200); const event = JSON.parse(req.body.toString("utf8")); // dedupe on event.id, skip event.test, then process event.data }); app.listen(3000); ``` Versions for Next.js, FastAPI and Flask are on [Check the signature](https://docs.theavoxai.com/avox-api/webhooks#check-the-signature). ### Check it's working - **Send test event** shows **Delivered**. - Send a WhatsApp message to the number from your phone. Within a few seconds it reaches your endpoint, shows **Delivered** under **Recent deliveries**, and appears in the [Inbox](https://docs.theavoxai.com/inbox). - Open **Payload** on a delivery to see exactly what was sent. - Open **API logs** in the dashboard and choose the **Received** tab to see every forwarded message for all your numbers, with its delivery status, attempts and your endpoint's response code. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). ### Common errors | You see | Fix | | --- | --- | | "Your endpoint answered 401" after **Send test event** ([AVX-3101](https://docs.theavoxai.com/error-codes/avx-3101)) | Check the signature over the raw body, with the whole `whsec_...` secret as the key. | | "Your endpoint answered 301" or another redirect | Use the final `https://` address - redirects aren't followed. | | "Your endpoint didn't answer within 10 seconds" | Answer `200` first, then do your processing. | | "That host isn't reachable from the internet" | The URL points at a private or local address. Use a public host - for local testing, a tunnel with an `https://` address works. | | "Enter your endpoint URL first" | Save an Endpoint URL before turning forwarding on. | | **Paused** notice ([AVX-3104](https://docs.theavoxai.com/error-codes/avx-3104)) | 5 deliveries in a row failed after all retries. Fix the endpoint, send a test event, turn forwarding back on, and resend what you missed. | More fixes are on [Troubleshooting](https://docs.theavoxai.com/avox-api/webhooks#troubleshooting). ### Security - Always check the signature and the 5-minute timestamp window before trusting a request. - Keep the signing secret in your server's secret store, never in code. It's shown once; nobody at Avox can see it afterwards. - Rotate the secret if it may have leaked - the old one keeps working for 24 hours while you deploy the new one. See [Rotate the secret](https://docs.theavoxai.com/avox-api/webhooks#rotate-the-secret). - Payloads carry only the message itself - no access tokens or account ids. Media is sent as Meta's media id, not the file. - Delivery records are kept for 30 days, or your **Webhook Logs** retention on [Compliance](https://docs.theavoxai.com/compliance) if that's shorter. ### FAQ No. Messages are stored and shown in Avox as always; forwarding sends a copy to your server. No. Only messages your customers send. Statuses are on [Logs](https://docs.theavoxai.com/logs); see [Matching a status to a send](https://docs.theavoxai.com/avox-api/webhooks#matching-a-status-to-a-send). Avox retries each message for about 21 hours. If 5 messages in a row still fail, forwarding pauses and your Admins get an email. Nothing is lost from your Inbox, and you can resend from the delivery log. Yes. An Admin edits the **Endpoint URL** and clicks **Save URL**. New deliveries go to the new address. Nothing new is sent to your endpoint, and anything still waiting to go out is marked **Failed** ("Forwarding was turned off"). Messages keep arriving in your Inbox. After you turn forwarding back on, an Admin can **Resend** any of them from the delivery log. A Manager can see the section, its state and the delivery log. Turning forwarding on or off, changing the URL, rotating the secret, sending a test event and resending need the **Admin** role. --- ## Avox API URL: https://docs.theavoxai.com/integrations/avox-api Section: Integrations The **Avox API** lets any system that can make an HTTPS request - your backend, a store, a CRM, an automation tool - send WhatsApp messages through a number connected to Avox. One endpoint, one key per number, WhatsApp's own message format. This page is the quick guide. The full reference starts at [Avox API](https://docs.theavoxai.com/avox-api). ### What it does - Sends every WhatsApp message type: text, templates, media, locations, contacts, interactive buttons and lists, Flows and reactions. See [Message types](https://docs.theavoxai.com/avox-api/messages). - Returns WhatsApp's `message_id`, so you can match delivery statuses and replies later. - Explains every failure with a stable code. See [API errors](https://docs.theavoxai.com/api/errors). - Offers live keys (`avx_live_...`) that send for real, and test keys (`avx_test_...`) that run every check without sending anything. See [Testing](https://docs.theavoxai.com/avox-api/testing). - Records every request on the **API logs** page in the dashboard, where you can filter, search and export them. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). ### Requirements - A connected WhatsApp number with **Connected** status. - An active plan that includes API access. Each plan either includes it or doesn't; the plan cards on [Plans](https://docs.theavoxai.com/plans) list **API access** on the plans that have it. See [API access and your plan](https://docs.theavoxai.com/connections/api-keys#api-access-and-your-plan). - The **Admin** role (or a Manager with **Manage API keys**) to create, rotate or revoke keys. Managers can read the API logs, and see keys with **See API keys**. - A server-side place to keep the key secret. ### Setup Go to **Settings > API Keys** and click **Create a key**. Pick the **Switchboard** and the **WhatsApp number**, choose **Live key** or **Test key**, name the key, then click **Email me a code** and type the code. The connection's own **Outbound API keys** section has the same form. The dialog **Your new API key** shows the full key one time. Copy it, then click **Done**. Save it as a secret on your server, for example `AVOX_API_KEY`. Call `POST https://api.theavoxai.com/api/messages/send` with `Authorization: Bearer `. Delivery statuses appear on [Logs](https://docs.theavoxai.com/logs) and replies in the [Inbox](https://docs.theavoxai.com/inbox). See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). ```bash curl -X POST https://api.theavoxai.com/api/messages/send \ -H "Authorization: Bearer $AVOX_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 3f0c6a52-1b7e-4b8e-9d0f-6a2c51e4d7b9" \ -d '{"to":"15551234567","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}' ``` ```js const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID(), }, body: JSON.stringify({ to: "15551234567", type: "template", template: { name: "hello_world", language: { code: "en_US" } }, }), }); console.log(res.status, await res.json()); ``` ```python import os import uuid import requests res = requests.post( "https://api.theavoxai.com/api/messages/send", headers={ "Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "to": "15551234567", "type": "template", "template": {"name": "hello_world", "language": {"code": "en_US"}}, }, timeout=30, ) print(res.status_code, res.json()) ``` Use a template that's approved on your account - `hello_world` is only an example name. ### Check it's working - Click **Test** next to the key in **Settings > API Keys**: "Working - routes to" and the connection's name means the key is ready. No message is sent. - A real send returns `200` with `"ok": true` and a `message_id`. A test key's answer also has `"test": true`. - Open **API logs** in the dashboard: the request is on the **Sent** tab with status `200`. Or expand the key in **Settings > API Keys** to see it under **Recent requests** as **Send**. ### Common errors | Error | Fix | | --- | --- | | [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key), [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | Send `Authorization: Bearer ` with the full key. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) | Create a new key and update your server. | | [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | The key was rotated - put its replacement on your server. | | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | Resume the number on [Connections](https://docs.theavoxai.com/connections). | | [`subscription_inactive`](https://docs.theavoxai.com/api/errors#subscription_inactive) | Renew or resume the plan on [Billing](https://docs.theavoxai.com/billing). | | [`api_not_in_plan`](https://docs.theavoxai.com/api/errors#api_not_in_plan) | Your plan doesn't include API access. Move to a plan with it on **Billing > Change plan**; the same keys work again. | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | Read `error.details` for the field to fix. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | Send an approved template. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | Wait `Retry-After` seconds and retry. | | [AVX-3053](https://docs.theavoxai.com/error-codes/avx-3053) - couldn't create that API key | Only an Admin can create keys ("Only an Admin can create API keys"). Try again, or ask an Admin. | | [AVX-3055](https://docs.theavoxai.com/error-codes/avx-3055) - couldn't verify that key | The **Test** request failed to run. Try again in a moment. | ### Limits - Body up to 64 KB; text up to 4096 characters; captions up to 1024. See [Message types](https://docs.theavoxai.com/avox-api/messages). - Per-key and per-account rate limits, with `Retry-After` on every `429`. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - WhatsApp's own messaging limits per number. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### Security - Each key is send-only: it sends from its own number and can't read your contacts, conversations or anything else in your account. See [What a key can do, and what it can't](https://docs.theavoxai.com/connections/api-keys#what-a-key-can-do-and-what-it-cant). - The full key is shown once. Keep it on your server - never in a browser, an app or a repository. - Revoke a key with the bin button (**Revoke this key**); it stops working immediately. To replace a key without downtime, **Rotate** it and pick how long the old one keeps working. See [Rotating a key](https://docs.theavoxai.com/avox-api/authentication#rotating-a-key). - **Settings > API Keys** warns you about unusual use, such as **Used from a new place** or **Far more requests than usual**. ### Build your own server for the Avox API Your server is the only place that should hold the API key. The server below wraps the Avox API in one route, `POST /notify`, that your other apps call with an internal token and a `reference` from your own system. The `reference` becomes the `Idempotency-Key`, so the same notification is never sent twice. ```bash ### Environment AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # your apps send this in x-internal-token ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own apps call this with the x-internal-token header; the key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}`); return data as { ok: true; request_id: string; message_id: string | null; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own apps call this with the x-internal-token header; the key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) def avox_error_response(err: AvoxError): status = 502 if err.status >= 500 else 422 return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=status) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own apps call this with the x-internal-token header; the key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") if not token or not hmac.compare_digest(token, os.environ.get("INTERNAL_TOKEN", "")): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return avox_error_response(err) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). To receive this number's WhatsApp messages on your own server, see [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). ### FAQ API access depends on the plan. The plan cards on [Plans](https://docs.theavoxai.com/plans) and on **Billing > Change plan** list **API access** on the plans that include it. On a plan without it, your keys stay listed but can't send (`api_not_in_plan`), and new keys can't be created or rotated until you move to a plan with API access. See [API access and your plan](https://docs.theavoxai.com/connections/api-keys#api-access-and-your-plan). Each key belongs to one number, so create one key per number and pick the key in your code. See [Authentication](https://docs.theavoxai.com/avox-api/authentication). Send an `Idempotency-Key` header. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). Open [Logs](https://docs.theavoxai.com/logs): each message's `sent`, `delivered`, `read` and `failed` events carry its `message_id`. See [Delivery statuses and replies](https://docs.theavoxai.com/avox-api/webhooks). Yes. Create a **Test key** (`avx_test_...`). It runs every check a live send does, then answers with a pretend result (`"test": true`) and never sends anything. Special test numbers return each WhatsApp error on purpose. The **Test** button on a key is a separate dry run that checks the key and its number from the dashboard. See [Testing](https://docs.theavoxai.com/avox-api/testing). On the **API logs** page in the dashboard. The **Sent** tab lists every request made with your keys: time, key, connection, outcome and error code, masked recipient, request id and latency. It has filters, search by request id or message id, and **Export CSV**. See [API logs](https://docs.theavoxai.com/connections/api-keys#api-logs). **Rotate** it in **Settings > API Keys**. You get a new key straight away and choose when the old one stops: immediately, in 1 hour, in 24 hours or in 7 days. See [Rotating a key](https://docs.theavoxai.com/avox-api/authentication#rotating-a-key). --- ## PayPal URL: https://docs.theavoxai.com/integrations/paypal Section: Integrations Avox plans are paid through **PayPal**. Checkout opens PayPal's own secure window, so your payment details stay with PayPal. Monthly and Yearly plans run as a PayPal subscription; One-time is a single PayPal payment that covers a full year. The full billing guide is on [Billing](https://docs.theavoxai.com/billing), with [Change plan](https://docs.theavoxai.com/billing/change-plan), [Cancel](https://docs.theavoxai.com/billing/cancel), [Invoices](https://docs.theavoxai.com/billing/invoices) and [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts). ### Billing options | Option | How PayPal charges | Renews? | | --- | --- | --- | | **Monthly** | A PayPal subscription, charged every month. | Yes, automatically. | | **Yearly** | A PayPal subscription at a discounted monthly price, billed monthly for a 12-month commitment. | Yes, automatically. | | **One-time** | One PayPal payment that covers the full year, at a discount. | No - it ends after the year. | The current prices and discounts are on the pricing page and [Plans](https://docs.theavoxai.com/plans). Every plan is paid in US dollars: PayPal charges the USD amount shown at checkout, and the line under the PayPal button says "PayPal charges you in US dollars (USD)." Where a price is shown in Indian rupees, it's an estimate at today's exchange rate. ### Requirements - An Avox account, signed in. Checkout keeps your chosen plan if you sign in on the way. - A PayPal account. - The **Admin** role in your Switchboard to buy, change or cancel a plan. - Cookies for "Third-party integrations" allowed when you pay - PayPal's checkout only loads then. ### Paying for a plan On the pricing page, choose **Monthly**, **Yearly** or **One-time**, then click the button on the plan you want. Step 1 of 3: **Your name**, **Business name**, email and **Phone number**. Click **Save & Continue**. Step 2 of 3: your address. Click **Save address & Continue**. Step 3 of 3: check the **Checkout summary**, apply a coupon with **Have a coupon?** if you have one, and tick the box to agree to the Terms of Service, Privacy Policy and Cancellation & Refund Policy. Click the PayPal button. If you haven't allowed third-party integrations in the cookie banner, click **Allow PayPal to load and continue** first. Approve the payment in PayPal's window. The thank-you page shows "Confirming your payment…", then "You're all set". A coupon that covers the whole price skips PayPal: the button becomes **Activate** with your plan at $0. ### Check it's working - The thank-you page says "You're all set" - "Your subscription is active." - [Billing](https://docs.theavoxai.com/billing) shows your plan as **Active**. - For a Monthly or Yearly subscription, the Switchboard's Owner receives the **Payment receipt** email ("Your Avox ... plan is active"). - **Billing > Manage subscription** shows **Paid via** PayPal and the **Next billing date**. ### Receipts and invoices - Each Monthly or Yearly subscription payment emails a receipt to the Switchboard's Owner (its first Admin): "...plan is active" for the first payment, "...plan renewed" for each renewal. - **Manage subscription** lists every payment under **Payment history** (**Date**, **What**, **Amount**, **Status**, **Invoice**) and every invoice under **Invoices**, with references like `INV-000123`. See [Invoices](https://docs.theavoxai.com/billing/invoices). ### Failed payments When a renewal fails, PayPal retries it automatically. Meanwhile: - Your plan shows **Payment due**, and everything keeps working - numbers, automations and the API. - The Owner is emailed "Your last payment for Avox ... didn't go through", and the Billing page shows "Your last payment didn't go through" ([AVX-3003](https://docs.theavoxai.com/error-codes/avx-3003)) with **Fix billing**. - If PayPal suspends billing after repeated failures, the plan is **Paused** and connected numbers pause. Update your payment in PayPal; when PayPal resumes billing, everything switches back on. ### Changing or cancelling - **Change plan:** on [Billing](https://docs.theavoxai.com/billing), click **Change plan**. For subscriptions you approve the new price in PayPal, and it applies from your next billing date. See [Change plan](https://docs.theavoxai.com/billing/change-plan). - **Cancel in Avox:** **Manage subscription > Cancel subscription**. You won't be charged again, and your plan keeps working until the end of the period you've paid for. Cancelling a Yearly plan before its 12 payments are made has an early-cancellation fee, shown in the dialog and paid through PayPal. See [Cancel](https://docs.theavoxai.com/billing/cancel). - **Cancel in PayPal:** you can also cancel the subscription from your PayPal account. Avox picks it up automatically: your plan keeps working until the end of the paid period, and you're notified "Your plan was cancelled". When a plan ends, connected numbers pause until a plan is active again. They resume on their own when you subscribe again ([AVX-3082](https://docs.theavoxai.com/error-codes/avx-3082)). ### Common errors | You see | Fix | | --- | --- | | "Only a Switchboard Admin can manage billing. Ask an Admin to make this change." | Ask an Admin, or have them change your role. See [Members and roles](https://docs.theavoxai.com/switchboard/members). | | "Agree to the terms above to continue" | Tick the terms box - the PayPal button appears after that. | | "This session gave up on you" | The checkout tab was open for 15 minutes. Click **Back to plans** and start again. | | "Your PayPal approval is saved - press "Try again" to finish. You won't be charged twice." | Click **Try again**. | | "Still processing" on the thank-you page | PayPal is still clearing the payment. Nothing to do - the plan switches on when PayPal finishes. Check [Billing](https://docs.theavoxai.com/billing) shortly. | | "Payment didn't go through" on the thank-you page | The charge didn't complete and no subscription was started. Go back and try again. | | "You already have an active plan..." | Use **Change plan** instead of buying again, so you aren't billed twice. | | A coupon message such as "This code expired on..." | See [Coupons and gifts](https://docs.theavoxai.com/billing/coupons-and-gifts). | ### Security - You pay inside PayPal's own window. Avox never sees your card or bank details. - Avox checks every payment and subscription directly with PayPal before switching a plan on, and every update PayPal sends is verified. - Retrying a confirmation never charges you twice. ### Build your own server for PayPal Your own server isn't involved. Checkout, subscriptions, receipts and cancellations all happen between you, PayPal and Avox, and Avox verifies every payment with PayPal itself. ### FAQ Checkout uses PayPal's button. PayPal's own window offers the ways to pay that PayPal supports for your account and country. US dollars - the amount shown at checkout. A price shown in Indian rupees is an estimate at today's exchange rate. If your card or bank account uses another currency, PayPal or your bank converts it at their own rate. In your PayPal account's automatic payments. You can see or cancel it there at any time. The Owner of your billing Switchboard - its first Admin, normally the person who set up the account. Every invoice is also on [Invoices](https://docs.theavoxai.com/billing/invoices) for every member to see. See [Emails](https://docs.theavoxai.com/emails). Yes - every plan has a 15-day money-back guarantee on its first payment, refunded through PayPal. Ask from **Billing > Manage subscription > Request help / refund**. See [Refunds](https://docs.theavoxai.com/billing#refunds). --- ## Google sign-in URL: https://docs.theavoxai.com/integrations/google-sign-in Section: Integrations You can create an Avox account and sign in with your **Google** account instead of a password. Google confirms who you are and Avox never sees your Google password. You can also add Google to an existing account, so you have more than one way in. ### Requirements - A Google account. - A browser that lets theavoxai.com send you to Google's sign-in page and back. ### Signing up or signing in Go to **Sign in** or **Create your account** on theavoxai.com. The button above the email form. It shows "Opening Google sign-in" while it loads. Approve on Google's sign-in page. A first-time sign-in creates your account. Avox takes you to your dashboard (from **Create your account**, to the onboarding questions first) - or back to the page that sent you to sign in, such as checkout. Continuing with Google means you agree to the Terms of Service and Privacy Policy, as the sign-in page says under the buttons. A new account needs a permanent email address: addresses from throw-away (disposable) email services are refused. If many accounts are created from one network within an hour, new sign-ups from it are paused for a while. ### Adding Google to an existing account Profile">Find the **Connected accounts** card. Approve on Google's sign-in page. You come back to **Profile**. The **Google** row shows **Connected**. You'll get an email: "Google sign-in was added to your Avox account". ### Removing Google Click **Disconnect** on the **Google** row. You'll see "Account disconnected" and get the email "Google sign-in was removed from your Avox account". **Disconnect** is available when you have another way to sign in, such as a password or Facebook. If Google is your only one, the button shows "Connect another sign-in method first". See [Profile](https://docs.theavoxai.com/settings/profile). ### Check it's working - **Settings > Profile > Connected accounts** shows **Google: Connected**. - Sign out, then sign back in with the **Google** button. ### Common errors | You see | Fix | | --- | --- | | "Sign-in didn't complete. Please try again." | The Google sign-in was cancelled or interrupted. Try again. | | "That sign-in link has expired or was already used. Please sign in again." | Start the sign-in again from the sign-in page. | | "We couldn't create an account with that email..." | The email on your Google account is on a reserved domain and can't be used for a new Avox account. Sign up with a different Google account, email address or sign-in method. | | [AVX-3095](https://docs.theavoxai.com/error-codes/avx-3095) - couldn't connect that account | Try again from **Connected accounts**. | | [AVX-3096](https://docs.theavoxai.com/error-codes/avx-3096) - couldn't disconnect that account | Try again. Make sure another sign-in method is set up first. | ### Security - **Two-factor authentication still applies.** If you've set up an authenticator, Avox asks for its code after Google sign-in too. See [Two-factor](https://docs.theavoxai.com/security/two-factor). - **New-device alerts.** Signing in from a device you haven't used recently sends a "New sign-in" email. See [Sessions](https://docs.theavoxai.com/security/sessions). - **No password until you set one.** An account that only uses Google has no Avox password. You can add one in [Settings > Profile > Sign-in methods](https://docs.theavoxai.com/settings/profile#setting-a-password) (we email you a code to confirm it's you). Until then, to delete such an account, sign in again first - deleting needs a sign-in from the last 15 minutes. See [Data deletion](https://docs.theavoxai.com/data-deletion). ### Limits - One Google account per **Google** row in **Connected accounts**. To switch to a different Google account, **Disconnect** the current one (with another sign-in method set up), then **Connect** the new one. - Google sign-in signs **you** in. It doesn't change your role in any Switchboard - Admins and Managers keep the same access whichever way they sign in. See [Members and roles](https://docs.theavoxai.com/switchboard/members). ### Build your own server for Google sign-in Your own server isn't involved. Google sign-in happens between your browser, Google and Avox - there's nothing to host or configure on your side. ### FAQ Yes. Connect Google from **Connected accounts** on an account with a password, and either works. Yes. Go to **Settings > Profile > Sign-in methods** and click **Set a password** on the **Email and password** row. Confirm it's you with the 6-digit code we email, then choose a password. After that you can sign in with your email and password or with Google, and you can disconnect Google if you want to. See [Setting a password](https://docs.theavoxai.com/settings/profile#setting-a-password). Use another sign-in method you set up, such as a password or a passkey. If Google was your only method, email hello@theavoxai.com from your account's email address. Yes. If you pick a plan while signed out, you sign in with Google and come back to checkout with your chosen plan. Yes. On the sign-in page, choose **Sign in with a passkey**. See [Passkeys](https://docs.theavoxai.com/security/passkeys). Avox emails you whenever your account is used from a device it hasn't seen recently, whichever sign-in method was used. If it wasn't you, change your sign-in details and review [Sessions](https://docs.theavoxai.com/security/sessions). --- ## Facebook sign-in URL: https://docs.theavoxai.com/integrations/facebook-sign-in Section: Integrations You can create an Avox account and sign in with your **Facebook** account instead of a password. Facebook confirms who you are and Avox never sees your Facebook password. Signing in to Avox with Facebook is separate from connecting a WhatsApp number. Connecting a number also uses your Facebook account, inside Meta's [Embedded Signup](https://docs.theavoxai.com/integrations/embedded-signup) window - you can do either without the other. ### Requirements - A Facebook account. - A browser that lets theavoxai.com send you to Facebook's sign-in page and back. ### Signing up or signing in Go to **Sign in** or **Create your account** on theavoxai.com. The button above the email form. It shows "Opening Facebook sign-in" while it loads. Approve on Facebook's sign-in page. A first-time sign-in creates your account. Avox takes you to your dashboard (from **Create your account**, to the onboarding questions first), or back to the page that sent you to sign in. Continuing with Facebook means you agree to the Terms of Service and Privacy Policy, as the sign-in page says under the buttons. A new account needs a permanent email address: addresses from throw-away (disposable) email services are refused. If many accounts are created from one network within an hour, new sign-ups from it are paused for a while. ### Adding or removing Facebook - **Add:** **Settings > Profile > Connected accounts**, click **Connect** on the **Facebook** row and approve. The row shows **Connected**, and you get the email "Facebook sign-in was added to your Avox account". - **Remove:** click **Disconnect**. You'll see "Account disconnected" and get "Facebook sign-in was removed from your Avox account". **Disconnect** is available when you have another way to sign in, such as a password or Google; otherwise it shows "Connect another sign-in method first". See [Profile](https://docs.theavoxai.com/settings/profile). ### Check it's working - **Connected accounts** shows **Facebook: Connected**. - Sign out, then sign in again with the **Facebook** button. ### Common errors | You see | Fix | | --- | --- | | "Sign-in didn't complete. Please try again." | The Facebook sign-in was cancelled or interrupted. Try again. | | "That sign-in link has expired or was already used. Please sign in again." | Start again from the sign-in page. | | "That account didn't share an email address with us..." | Your Facebook account has no confirmed email address, or email access was unticked when Facebook asked. Add a confirmed email in your Facebook settings and allow email when asked. If you unticked it before, remove Avox under **Apps and websites** in your Facebook settings, then try again so Facebook asks again. Or use another sign-in method. | | "We couldn't create an account with that email..." | The email on your Facebook account is on a reserved domain and can't be used for a new Avox account. Sign up with a different email address or sign-in method. | | [AVX-3095](https://docs.theavoxai.com/error-codes/avx-3095) - couldn't connect that account | Try again from **Connected accounts**. | | [AVX-3096](https://docs.theavoxai.com/error-codes/avx-3096) - couldn't disconnect that account | Try again, with another sign-in method set up first. | ### Removing Avox from Facebook (data deletion requests) If you remove Avox from your Facebook account's apps and ask for your data to be deleted, Facebook sends Avox a deletion request and gives you a **confirmation code**. Avox then acts on it: | Your situation | What Avox does | | --- | --- | | Facebook is your only way to sign in, and no plan is being billed through PayPal | Deletes your Avox account, Switchboards that only you used, and the WhatsApp numbers in Switchboards where you're an Admin. | | You have another way to sign in, or a plan is still being billed through PayPal | Removes Facebook sign-in from your account and disconnects the WhatsApp numbers in Switchboards where you're an Admin. Your account stays, and you sign in the other ways you set up. (To stop a plan that's still billing, cancel it yourself - see [Cancel](https://docs.theavoxai.com/billing/cancel).) | | No Avox account uses that Facebook login | Nothing to delete - the request is marked **No data found**. | You receive the email "Your Facebook data deletion request is complete". Billing records Avox must keep by law are kept, separately from your login. #### Checking a request Open the deletion status page on theavoxai.com (theavoxai.com/data-deletion-status) with your confirmation code - Meta shows it to you, and it's in the email. It shows **We're deleting your data**, **Your data has been deleted** or **No data found**. Requests are always finished within 30 days, usually much sooner. See [Data deletion](https://docs.theavoxai.com/data-deletion). ### Security - **Two-factor authentication still applies** after Facebook sign-in. See [Two-factor](https://docs.theavoxai.com/security/two-factor). - **New-device alerts** are emailed when you sign in from a device you haven't used recently. See [Sessions](https://docs.theavoxai.com/security/sessions). - **No password until you set one** on an account that only uses Facebook. You can add one in [Settings > Profile > Sign-in methods](https://docs.theavoxai.com/settings/profile#setting-a-password). Until then, deleting such an account needs a sign-in from the last 15 minutes. ### Build your own server for Facebook sign-in Your own server isn't involved. Facebook sign-in and Meta's data deletion requests happen between Facebook and Avox - there's nothing to host or configure on your side. ### FAQ No - they're separate. Signing in uses Facebook to open your Avox account. Connecting WhatsApp uses Meta's Embedded Signup to share your WhatsApp Business Account with Avox. Disconnecting in **Connected accounts** only removes that way of signing in. A data deletion request sent from Facebook is different - see the table above. Use another sign-in method you set up, such as a password or a passkey. If Facebook was your only one, email hello@theavoxai.com from your account's email address. Yes. Connect both in **Settings > Profile > Connected accounts**, and either works. Having more than one way in also lets you disconnect one of them later. Avox always finishes within 30 days, usually much sooner. Check progress with your confirmation code on the deletion status page on theavoxai.com. No. If you've set up an authenticator, Avox asks for its code after Facebook sign-in too. See [Two-factor](https://docs.theavoxai.com/security/two-factor). --- ## Email URL: https://docs.theavoxai.com/integrations/email Section: Integrations Avox emails you about your account, your WhatsApp numbers, billing and your team. Emails come from **Avox**, and replying to any of them reaches the Avox support team (hello@theavoxai.com). Most are service emails that always go out; four kinds can be switched off per Switchboard; and the newsletter is a separate opt-in. The full list of every email, with subjects, is on [Emails](https://docs.theavoxai.com/emails). ### What Avox sends | Group | Examples | Can you turn it off? | | --- | --- | --- | | Account access | Sign-up confirmation codes, email change confirmations | No - always sent | | Security | Password or email changed, two-factor on or off, sign-in method added or removed, new sign-in, API key created or revoked, API key alerts | No - always sent | | Billing | Payment receipts, failed payments, plan changed, cancellation confirmed, refunds, plan ending soon, plan ended | No - always sent | | Team and support | Switchboard invites, member joined or removed, support replies | No - always sent | | Connections and usage | Number connected or removed, message forwarding paused, automation credit warnings | No - always sent | | WhatsApp account alerts | Alerts Meta sends about your account, a template rejected, paused or disabled, a Flow blocked or throttled, a Meta access token about to expire | Yes - **WhatsApp account alerts** | | API problem reports | Requests Avox makes to Meta for you keep failing - sending a message, changing a template or Flow, or updating a number's settings | Yes - **WhatsApp API problem reports** | | Setup nudges | No plan a few days after sign-up; a connection stuck mid-setup | Yes - **Setup reminders** | | Announcements | Product updates and announcements, including email copies of dashboard notifications | Yes - **Product news and announcements** | Alerts and reports are limited so they don't repeat: the same critical alert or API problem is emailed at most once a week, and each setup nudge at most once every two weeks. ### Setting your email preferences In the dashboard, go to [Compliance](https://docs.theavoxai.com/compliance) and find **Email Preferences** ("Manage optional organization-wide emails"). Turn each of the four switches on or off. Click **Save Email Preferences**. You'll see "Email preferences saved". - Preferences apply to the whole Switchboard. Only an **Admin** can save them. - All four are on by default. - Required emails are always sent and can't be turned off: sign-in and security notices, billing and payment emails, team invites and changes, support replies, automation credit warnings, and WhatsApp numbers being connected or removed. Turning off **WhatsApp account alerts** means you won't be emailed when Meta flags your account, a template is paused, or a number's access is about to end. ### Newsletter and unsubscribe links The Avox newsletter ("Product updates & newsletter") is separate from your account emails. - **Unsubscribe:** every newsletter email has an unsubscribe link, and supports one-click unsubscribe in email apps. The page **Unsubscribe from Avox updates?** confirms with **Unsubscribe**, and you can **Resubscribe** any time. - **Preferences:** the **Manage preferences** link opens **What we send you**, with one switch for the newsletter. - Unsubscribing from the newsletter leaves receipts, security codes and account notices unaffected - "those aren't marketing". - Announcement emails to your account have **Unsubscribe · Manage preferences** in the footer, which open [Compliance](https://docs.theavoxai.com/compliance). - Every announcement is also published on theavoxai.com/announcements, with an RSS feed, if you'd rather read them there. Product changes are listed in the docs [Changelog](https://docs.theavoxai.com/changelog). ### Check it's working - After saving, reload [Compliance](https://docs.theavoxai.com/compliance) and check the switches kept your choices. - Trigger a harmless always-sent email - for example, connect Google in **Settings > Profile** - and look for "Google sign-in was added to your Avox account". ### Common problems | Problem | Fix | | --- | --- | | "Couldn't save email preferences" | Only an Admin can save them. Ask an Admin, or try again. | | An email never arrives | Check spam and filters, and add Avox's sending address to your contacts. Check the address on [Profile](https://docs.theavoxai.com/settings/profile). | | Alerts go to someone else | Alerts go to the Switchboard's Admins (some only to its Owner, the first Admin), not every member. See [Emails](https://docs.theavoxai.com/emails). | | A code hasn't arrived | Wait a minute and check spam before requesting another. | | Still nothing | Open a ticket in [Support](https://docs.theavoxai.com/support) or email hello@theavoxai.com. | ### Security - Avox never asks for your password by email. Codes are only for the screen you requested them on. - Security emails ("New sign-in", "Your Avox password was changed") always go out, so you hear about changes you didn't make. If you don't recognise one, change your password and review [Sessions](https://docs.theavoxai.com/security/sessions). ### Build your own server for Email Your own server isn't involved. Avox sends every email itself, and your preferences are saved in the dashboard. To keep your team informed from your own systems, use those systems' own email, or send WhatsApp messages through the [Avox API](https://docs.theavoxai.com/integrations/avox-api). ### FAQ They're mandatory service emails, so they always go out to the right person. Personal emails (sign-in, security) go to each person. Alerts and billing go to the Switchboard's Admins - some to every Admin, some only to the Owner (the first Admin). See [Emails](https://docs.theavoxai.com/emails). Yes. Replies go to the Avox support team, so you can ask about any email by replying to it. Avox emails you when your account is used from a device it hasn't seen in the last 30 days. If it wasn't you, change your password and review [Sessions](https://docs.theavoxai.com/security/sessions). Any Admin of the Switchboard. The choices apply to the whole Switchboard, not to one person. Avox alerts are sent by email. To message your team on WhatsApp from your own systems, use the [Avox API](https://docs.theavoxai.com/integrations/avox-api). On [Emails](https://docs.theavoxai.com/emails). --- ## Chatwoot URL: https://docs.theavoxai.com/integrations/chatwoot Section: Integrations Send WhatsApp messages from **Chatwoot** through a number connected to Avox. Chatwoot's own webhooks tell a small relay you run when something happens - a conversation is resolved, an agent replies - and the relay sends the WhatsApp message with the [Avox API](https://docs.theavoxai.com/integrations/avox-api). Customer replies on WhatsApp land in your Avox [Inbox](https://docs.theavoxai.com/inbox), and [message forwarding](https://docs.theavoxai.com/connections/webhook-override) can send them to your relay as well. ### What you'll build ``` Send: Chatwoot event (webhook) → your relay → Avox API → customer's WhatsApp Receive: customer's WhatsApp → Avox (Inbox, Automation) → message forwarding → your relay (optional) ``` Typical uses: a "your ticket is resolved" message on WhatsApp, a follow-up survey after a conversation closes, or sending an agent's Chatwoot reply to the customer's WhatsApp. ### Requirements - A Chatwoot instance (Cloud or self-hosted) where you're an administrator and can add account webhooks. - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one. See [Create the API key](#create-the-api-key). - Approved templates for the messages you start. See [Templates](https://docs.theavoxai.com/templates). - A relay server reachable over `https://` (Node.js 18 or later for the code below, or Python 3.10 or later). - Contacts in Chatwoot with phone numbers in international format. ```bash ### .env AVOX_API_KEY=avx_live_your_key RELAY_SECRET=a-long-random-string ``` Chatwoot's webhook events and payload fields can differ between versions. The code follows Chatwoot's public webhook format - check it against your own instance. The Avox side stays the same. ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** while you build the relay (it never sends anything) or **Live key** to send real messages. Pick the WhatsApp number in the **Choose a connection** list. Click **Create test key** or **Create live key**, then copy the key from **Your new API key** into `AVOX_API_KEY`. It's shown only once. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Keep the key on the relay only. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### The relay ```js // relay.js - Node.js 18+ (npm install express) import express from "express"; import { timingSafeEqual } from "node:crypto"; const app = express(); async function sendTemplate(to, name, params, idempotencyKey) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": idempotencyKey, }, body: JSON.stringify({ to, type: "template", template: { name, language: { code: "en" }, components: [{ type: "body", parameters: params.map((text) => ({ type: "text", text: String(text) })) }], }, }), }); const data = await res.json().catch(() => null); if (!data?.ok) console.error("Avox send failed:", data?.error?.code, data?.error?.request_id); return data; } function secretMatches(given) { const a = Buffer.from(given ?? ""); const b = Buffer.from(process.env.RELAY_SECRET ?? ""); return b.length > 0 && a.length === b.length && timingSafeEqual(a, b); } // Chatwoot account webhook. The secret in the URL keeps strangers out. app.post("/chatwoot/:secret", express.json({ limit: "1mb" }), async (req, res) => { if (!secretMatches(req.params.secret)) return res.sendStatus(401); res.sendStatus(200); const event = req.body; if (event.event === "conversation_status_changed" && event.status === "resolved") { const contact = event.meta?.sender; const phone = (contact?.phone_number ?? "").replace(/\D/g, ""); if (!phone) return; await sendTemplate( phone, "ticket_resolved", [contact.name ?? "there", event.id], `chatwoot-resolved-${event.id}` // one message per resolved conversation ); } }); app.listen(3000); ``` The `ticket_resolved` template here is an example - create your own on [Create](https://docs.theavoxai.com/templates/create), for instance: "Hi `{{1}}`, your request #`{{2}}` is resolved. Reply here if you need anything else." ### Setup On [Create](https://docs.theavoxai.com/templates/create), then wait for approval. See [Create the API key](#create-the-api-key), and store it as `AVOX_API_KEY`. Make `https://relay.example.com/chatwoot/` reachable. In Chatwoot's integrations settings, add a webhook with that URL and subscribe to conversation status changes (and any other events you use). Resolve a test conversation whose contact has your own phone number. Build with a test key first. It runs every check a live key does and answers with a pretend result - `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST` - so nothing reaches a real customer while you test. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working - The relay logs no `Avox send failed` line, and the message arrives on your phone. - In **Settings > API Keys**, open the key's **Recent requests**: the send is listed as **Send** with status `200`. - The **API logs** page (**Sent** tab) has every request with its outcome and request id. - Its delivery statuses are on [Logs](https://docs.theavoxai.com/logs). ### Bring WhatsApp messages back to Chatwoot Customer messages always arrive in the Avox Inbox. To get them into Chatwoot too, turn on message forwarding for the number and point it at your relay: Open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and scroll to **Message forwarding**. You need the **Admin** role to change it. Enter the receiver's address, such as `https://relay.example.com/avox/messages`, in **Endpoint URL** and click **Save URL**. Switch **Message forwarding** on. Copy the signing secret from **Your signing secret** into `AVOX_WEBHOOK_SECRET` - it's shown only once. Click **Send test event**. "Delivered - your endpoint answered 200" means the receiver accepted it. Each new customer message arrives as a signed `message.received` event with the customer's number (`data.from`, with a leading `+`), profile name (`data.contact_name`), type and content. The [Receiver](#receiver) below checks the signature and hands you the event; from there, create the message in Chatwoot through Chatwoot's own API, matching the contact by phone number. The full payload for every message type is on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### Common errors | Symptom | Fix | | --- | --- | | Nothing reaches the relay | Check the Chatwoot webhook URL (including the secret) and the subscribed events. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | `AVOX_API_KEY` is missing, cut off or quoted. Copy it again or create a new key. | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | The contact's phone number lacks a country code. Store numbers in international format in Chatwoot. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Use the exact template name and language from [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Send exactly as many parameters as the template has placeholders. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | The customer hasn't written in 24 hours, so an agent's plain reply can't go out. Send a template. | | Two messages for one conversation | Keep the `Idempotency-Key` based on the Chatwoot conversation or message id. | | Forwarding test shows "Your endpoint answered 401" | The signature check failed. Verify over the raw body with the whole `whsec_...` secret. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - Messages the relay starts must be templates. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). - Avox rate limits apply per key and per account. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). ### Security - Keep the Avox key on the relay only, never in Chatwoot's frontend. - Use a long random secret in the Chatwoot webhook path, and reject anything else. - Verify the `Avox-Signature` on forwarded messages before creating anything in Chatwoot. - Message only contacts who opted in to WhatsApp messages from you. ### Build your own server for Chatwoot This version of the relay sends agents' replies: when an agent posts a public reply in a Chatwoot conversation, Chatwoot's outgoing webhook calls the route, and the route sends the text to the contact's WhatsApp number through the Avox API. The Chatwoot message id becomes the `Idempotency-Key`, so a repeated webhook never sends twice. A plain reply works within 24 hours of the customer's last WhatsApp message; outside it, send a template (as in the relay above). ```bash ### Environment AVOX_API_KEY=avx_live_your_key CHATWOOT_WEBHOOK_SECRET=a-long-random-string # part of the webhook URL you give Chatwoot ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... CHATWOOT_WEBHOOK_SECRET=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // Chatwoot webhook (subscribe it to "Message Created"). The secret in the path keeps strangers out. // When an agent sends a public reply in Chatwoot, this sends it to the contact on WhatsApp. app.post("/chatwoot/:secret", express.json({ limit: "1mb" }), async (req, res) => { if (!safeEqual(req.params.secret, process.env.CHATWOOT_WEBHOOK_SECRET)) return res.sendStatus(401); res.sendStatus(200); // acknowledge first, then send const event = req.body; if (event?.event !== "message_created" || event.message_type !== "outgoing" || event.private) return; const to = String(event.conversation?.meta?.sender?.phone_number ?? "").replace(/\D/g, ""); if (!to || !event.content) return; try { await sendWhatsApp({ to, type: "text", text: { body: event.content } }, `chatwoot-message-${event.id}`); } catch (err) { if (err.code === "outside_messaging_window") { console.warn(`[chatwoot] contact hasn't written in 24h - send a template instead (request_id=${err.requestId})`); } } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/chatwoot/route.ts - Next.js 15+ (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { after, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // Chatwoot webhook URL: https://your-app.example.com/api/chatwoot?secret=... (subscribe to "Message Created"). // When an agent sends a public reply in Chatwoot, this sends it to the contact on WhatsApp. export async function POST(request: NextRequest) { if (!safeEqual(request.nextUrl.searchParams.get("secret"), process.env.CHATWOOT_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = await request.json().catch(() => null); if (event?.event !== "message_created" || event.message_type !== "outgoing" || event.private) { return new Response(null, { status: 200 }); } const to = String(event.conversation?.meta?.sender?.phone_number ?? "").replace(/\D/g, ""); if (!to || !event.content) return new Response(null, { status: 200 }); after(async () => { try { await sendWhatsApp({ to, type: "text", text: { body: event.content } }, `chatwoot-message-${event.id}`); } catch (err) { const e = err as AvoxFailure; if (e.code === "outside_messaging_window") { console.warn(`[chatwoot] contact hasn't written in 24h - send a template instead (request_id=${e.requestId})`); } } }); return new Response(null, { status: 200 }); } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import BackgroundTasks, FastAPI, Request from fastapi.responses import Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) async def send_agent_reply(to: str, body: str, message_id) -> None: try: await send_whatsapp({"to": to, "type": "text", "text": {"body": body}}, idempotency_key=f"chatwoot-message-{message_id}") except AvoxError as err: if err.code == "outside_messaging_window": log.warning("contact hasn't written in 24h - send a template instead (request_id=%s)", err.request_id) ### Chatwoot webhook (subscribe it to "Message Created"). The secret in the path keeps strangers out. ### When an agent sends a public reply in Chatwoot, this sends it to the contact on WhatsApp. @app.post("/chatwoot/{secret}") async def chatwoot(secret: str, request: Request, background: BackgroundTasks): expected = os.environ.get("CHATWOOT_WEBHOOK_SECRET", "") if not expected or not hmac.compare_digest(secret.encode(), expected.encode()): return Response(status_code=401) event = await request.json() if event.get("event") != "message_created" or event.get("message_type") != "outgoing" or event.get("private"): return Response(status_code=200) sender = ((event.get("conversation") or {}).get("meta") or {}).get("sender") or {} to = "".join(ch for ch in str(sender.get("phone_number") or "") if ch.isdigit()) if to and event.get("content"): background.add_task(send_agent_reply, to, event["content"], event["id"]) # acknowledge first, then send return Response(status_code=200) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the Chatwoot route, which answers Chatwoot first and sends afterwards. Run Express with Node.js 18 or later, the Next.js route in an App Router project on Next.js 15 or later (it uses `after`), and FastAPI with Python 3.10 or later. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). #### Receiver Run this next to the relay (or add its route to it) to receive WhatsApp messages from Avox. Put your Chatwoot hand-off in `handleEvent`. ```bash ### Environment of the receiver AVOX_WEBHOOK_SECRET=whsec_your_signing_secret ``` ```js // receiver.js - Node.js 18+ (npm install express). Run: AVOX_WEBHOOK_SECRET=whsec_... node receiver.js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const TOLERANCE_SECONDS = 5 * 60; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. function verifyAvoxSignature(rawBody, header, secret) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } const app = express(); // express.raw keeps the exact bytes the signature covers - don't parse JSON on this route before checking it. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!Buffer.isBuffer(req.body) || !verifyAvoxSignature(req.body, req.get("Avox-Signature"), process.env.AVOX_WEBHOOK_SECRET)) { return res.sendStatus(401); } const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer within 10 seconds, then do the work handleEvent(event).catch((err) => console.error("[avox] handling failed:", err.message)); }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; type AvoxEvent = { id: string; type: "message.received"; test?: true; connection_id: string; data: { message_id: string; from: string; contact_name: string | null; type: string; text?: { body: string } }; }; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). function verifyAvoxSignature(rawBody: string, header: string | null, secret: string | undefined): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Per instance only - keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event: AvoxEvent) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value!); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before any parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = JSON.parse(rawBody) as AvoxEvent; after(() => handleEvent(event).catch((err) => console.error("[avox] handling failed:", err))); // runs after the answer return new Response(null, { status: 200 }); } ``` ```python ### receiver.py - pip install fastapi uvicorn httpx ; run: uvicorn receiver:app --port 3000 import hashlib import hmac import json import logging import os import re import time from collections import OrderedDict import httpx from fastapi import BackgroundTasks, FastAPI, Request, Response log = logging.getLogger("avox") app = FastAPI() TOLERANCE_SECONDS = 5 * 60 HEX64 = re.compile(r"[0-9a-fA-F]{64}") ### Retries and Resend keep the same event id. Per process only - keep handled ids in your database in production. seen: "OrderedDict[str, None]" = OrderedDict() def verify_avox_signature(raw: bytes, header: str | None, secret: str) -> bool: # Avox-Signature: t=,v1=."> (two v1 values right after a rotation). if not header or not secret: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1" and HEX64.fullmatch(value): signatures.append(value.lower()) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) async def handle_event(event: dict) -> None: if event["id"] in seen: return seen[event["id"]] = None if len(seen) > 10_000: seen.popitem(last=False) # Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. forward_to = os.environ.get("FORWARD_TO_URL") if forward_to: try: async with httpx.AsyncClient(timeout=10) as client: res = await client.post(forward_to, json=event) if res.status_code >= 300: log.warning("passing on %s failed: HTTP %s", event["id"], res.status_code) except httpx.HTTPError as err: log.warning("passing on %s failed: %s", event["id"], err) return if event.get("test"): log.info("test event %s received", event["id"]) return data = event["data"] log.info("%s from %s %s", data["type"], data.get("contact_name") or data["from"], (data.get("text") or {}).get("body", "")) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks): raw = await request.body() # the exact bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("avox-signature"), os.environ.get("AVOX_WEBHOOK_SECRET", "")): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the answer return Response(status_code=200) ``` Each receiver checks the `Avox-Signature` header over the raw body before trusting anything, refuses a timestamp more than 5 minutes from your clock, accepts either signature during the 24 hours after you rotate the secret, answers `200` straight away and does the work afterwards, and skips repeats by event id. With `FORWARD_TO_URL` set it passes every verified event on unchanged - including test events, which carry `"test": true` so you can filter them. The full payload for every message type, the retry schedule and auto-pause are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### FAQ To the Avox [Inbox](https://docs.theavoxai.com/inbox), where your team can answer them, and to your relay too if you turn on message forwarding. For automatic answers, use [Automation](https://docs.theavoxai.com/automation). Yes, to a customer who messaged your WhatsApp number in the last 24 hours. See [Message types](https://docs.theavoxai.com/avox-api/messages). Through Chatwoot's webhooks, the Avox API and message forwarding, with the relay on this page in between. You stay in control of which events send which message. --- ## n8n URL: https://docs.theavoxai.com/integrations/n8n Section: Integrations Connect **n8n** to a WhatsApp number on Avox in both directions: - **Send** - any workflow can send a WhatsApp message through the [Avox API](https://docs.theavoxai.com/integrations/avox-api) with an HTTP request node. A schedule, a form, a CRM update or a new row in a sheet becomes a WhatsApp template on your customer's phone. - **Receive** - [message forwarding](https://docs.theavoxai.com/connections/webhook-override) posts each new customer message to a URL you choose, so a workflow can run whenever a customer writes to you. Everything still lands in your Avox [Inbox](https://docs.theavoxai.com/inbox) as usual, and your [Automation](https://docs.theavoxai.com/automation) keeps running. ### What you'll build ``` Send: any n8n trigger → your workflow logic → HTTP request node → Avox API → customer's WhatsApp Receive: customer's WhatsApp → Avox (Inbox, Automation) → message forwarding → n8n webhook node ``` ### Requirements - An n8n Cloud or self-hosted instance where you can activate workflows. To receive messages, it must be reachable from the internet over `https://`. - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one; a **Manager** can see keys and test them. - Approved templates for any message the workflow starts. See [Templates](https://docs.theavoxai.com/templates). ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** while you build the workflow (it never sends anything) or **Live key** to send real messages. Pick the WhatsApp number in the **Choose a connection** list. A key always belongs to one connection. Click **Create test key** or **Create live key**, then copy the key from **Your new API key**. It's shown only once - Avox keeps just a hash of it. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Live keys start with `avx_live_`, test keys with `avx_test_`. Give n8n its own key, so you can rotate or revoke it without touching anything else. See [API keys](https://docs.theavoxai.com/connections/api-keys). Keep the key in n8n's credential store, not in a node field: a header-based credential whose header name is `Authorization` and whose value is `Bearer ` followed by your key. ### Send a WhatsApp message from a workflow In n8n, add a header-based credential: name `Authorization`, value `Bearer ` followed by your key. Any trigger node - a schedule, a form, a CRM or spreadsheet trigger. Configure it as in the table below. Run it once with your own phone number, or with a test key. Point the credential at your live key, then activate the workflow. | Setting | Value | | --- | --- | | Method | `POST` | | URL | `https://api.theavoxai.com/api/messages/send` | | Authentication | Your header-based Avox credential | | Header `Idempotency-Key` | A value unique to the item, such as `appt-{{ $json.id }}`. 1 to 255 visible characters, no spaces. | | Body | JSON, as below | | Errors | Set the node so an error answer doesn't stop the workflow (or use its error output), so you can branch on the result | ```json { "to": "{{ $json.phone }}", "type": "template", "template": { "name": "appointment_reminder", "language": { "code": "en_US" }, "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "{{ $json.name }}" }, { "type": "text", "text": "{{ $json.time }}" } ] } ] } } ``` The phone number needs its country code; a leading `+`, spaces, dashes and brackets are fine. The template name and language must match an approved template exactly, with one parameter per placeholder. After the node, branch on `{{ $json.ok }}`: when it's true, store `{{ $json.message_id }}`; when it's false, branch on `{{ $json.error.code }}`. Every message type is on [Message types](https://docs.theavoxai.com/avox-api/messages). n8n's node names and field labels can change between versions. Treat these as the settings to look for, not an importable export. #### Build with a test key first A test key runs every check a live key does - the key, the connection, your plan, rate limits, the body and the `Idempotency-Key` - and then answers with a pretend result instead of sending. The response carries `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST`. Special test numbers return each error on purpose, so you can build the workflow's error branches too. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working - The HTTP request node's output shows `"ok": true`, a `request_id` and a `message_id`. - With a live key, the message arrives on your phone. - In **Settings > API Keys**, open the key's **Recent requests** (the arrow next to it): the call is listed as **Send** with status `200`. - The **API logs** page (**Sent** tab) has every request with its outcome, recipient (masked), request id and latency. Search it by `request_id` or `message_id`. - Delivery statuses (sent, delivered, read) for the message are on [Logs](https://docs.theavoxai.com/logs). ### Receive customer messages in n8n Turn on message forwarding for the number, and Avox posts every new customer message to your **Endpoint URL** as a signed `message.received` event. Point it at a webhook node in n8n, and each message runs your workflow. Set it to accept `POST` and answer straight away, then copy its production URL. In Avox, open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and scroll to **Message forwarding**. You need the **Admin** role to change it. Paste the URL into **Endpoint URL** and click **Save URL**. Switch **Message forwarding** on. The first time, Avox creates a signing secret and shows it once in **Your signing secret** - copy it and keep it somewhere safe. Click **Send test event**. Avox posts a sample message marked `"test": true`. Skip events where `test` is `true`, then add the nodes you want. The fields you'll use most often: | Field | What it holds | | --- | --- | | `id` | The event id (`evt_...`). The same on every retry and resend - use it to skip repeats. | | `test` | Only on test events, and then `true`. | | `data.from` | The customer's number with a leading `+`. You can use it as `to` when you reply. | | `data.contact_name` | The customer's WhatsApp profile name, or `null`. | | `data.type` | `text`, `image`, `audio`, `video`, `document`, `sticker`, `location`, `contacts`, `interactive`, `button` or `reaction`. | | `data.text.body` | The message text, on text messages. | | `data.message_id` | WhatsApp's message id. Send it as `context.message_id` to quote the customer's message in your reply. | A workflow that answers a forwarded message can send a plain text message - the customer has just written, so the 24-hour window is open. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). #### Check the signature in n8n Every forwarded request carries an `Avox-Signature` header that proves it came from Avox: `t=,v1=`. Each `v1` is a hex HMAC-SHA256 of the `t` value, a full stop, then the raw request body, keyed with your whole signing secret (`whsec_` included). If your n8n setup can compute an HMAC over the raw body, check it there and refuse requests whose `t` is more than 5 minutes from your clock. Otherwise put the small receiver below in front of n8n - it checks the signature and passes the event on. See [Check the signature](https://docs.theavoxai.com/avox-api/webhooks#check-the-signature). A webhook node that doesn't check the signature accepts any request to its URL. Keep the URL private, and check the signature before a workflow changes data or replies automatically. The endpoint must use `https://` on the standard port, be reachable from the internet, answer with a `2xx` status within 10 seconds, and not redirect. If it doesn't, Avox retries for about 21 hours. If 5 deliveries in a row still fail after all their retries, forwarding pauses and your Admins get an email. Every delivery is on the connection's **Recent deliveries** list and on the **API logs** page (**Received** tab), where an Admin can resend it. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### Common errors | Symptom | Fix | | --- | --- | | [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key) | The request had no `Authorization` header. Check the node uses your credential. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | The credential's value must be `Bearer ` followed by the whole key. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) or [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | Create a new key in **Settings > API Keys** and update the credential. | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | An expression produced invalid JSON or an empty value. `error.details` names the field. | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | The phone field has no country code. Format it before the HTTP node. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Use the exact template name and language from [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Send exactly one parameter per placeholder. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | The customer hasn't written in 24 hours. Send a template. | | [`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key) | The expression produced a space or an empty value. Build it from ids only. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same `Idempotency-Key` was used for a different message. Base it on the item's own id. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | Add a wait or use batching, and honour `Retry-After`. | | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | The number is paused. Resume it on [Connections](https://docs.theavoxai.com/connections). | | Duplicate messages on re-runs | Base the `Idempotency-Key` on the item's own id. | | Test event fails with "Your endpoint answered 404" | Use the webhook node's production URL, and activate the workflow. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - Avox rate limits apply per key and per account, and a key can have a daily allowance ([`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded), which resets at midnight UTC). Test keys have their own, separate counters. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - WhatsApp's messaging limit caps how many people your number can start conversations with each day. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). ### Security - Store the API key as an n8n credential. If you self-host, set n8n's own encryption key. - Give n8n its own API key, so you can revoke it without affecting other systems. Avox warns you on the key if it's used from a new place or far more than usual. - Verify the `Avox-Signature` on forwarded messages before acting on them, and rotate the signing secret if it leaks. - n8n's execution history can keep message content. Review its retention settings to match your own policy. ### Build your own server for n8n n8n can call the Avox API directly with the HTTP request node above, so a server is optional. Run a small relay when you want the Avox key out of n8n entirely, one place that adds idempotency and retries for every workflow, or shared rules (allowed templates, logging). Workflows then call the relay's `POST /notify` with your internal token instead of the Avox API. ```bash ### Environment of the relay AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # store this as the n8n credential instead of the Avox key ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... INTERNAL_TOKEN=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own tools call this with the x-internal-token header; the Avox key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") expected = os.environ.get("INTERNAL_TOKEN", "") if not token or not expected or not hmac.compare_digest(token.encode(), expected.encode()): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=502 if err.status >= 500 else 422) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. `meta_unavailable` is deliberately not retried: WhatsApp didn't answer in time, so the message may already be out. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). #### Verify forwarded messages first This receiver checks every forwarded message's signature and then passes the event, unchanged, to your n8n webhook node. Set **Endpoint URL** in Avox to the receiver's `/avox/messages` address, and `FORWARD_TO_URL` to the webhook node's production URL. ```bash ### Environment of the receiver AVOX_WEBHOOK_SECRET=whsec_your_signing_secret FORWARD_TO_URL=https://your-n8n-host/webhook/your-path ``` ```js // receiver.js - Node.js 18+ (npm install express). Run: AVOX_WEBHOOK_SECRET=whsec_... node receiver.js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const TOLERANCE_SECONDS = 5 * 60; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. function verifyAvoxSignature(rawBody, header, secret) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } const app = express(); // express.raw keeps the exact bytes the signature covers - don't parse JSON on this route before checking it. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!Buffer.isBuffer(req.body) || !verifyAvoxSignature(req.body, req.get("Avox-Signature"), process.env.AVOX_WEBHOOK_SECRET)) { return res.sendStatus(401); } const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer within 10 seconds, then do the work handleEvent(event).catch((err) => console.error("[avox] handling failed:", err.message)); }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; type AvoxEvent = { id: string; type: "message.received"; test?: true; connection_id: string; data: { message_id: string; from: string; contact_name: string | null; type: string; text?: { body: string } }; }; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). function verifyAvoxSignature(rawBody: string, header: string | null, secret: string | undefined): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Per instance only - keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event: AvoxEvent) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value!); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before any parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = JSON.parse(rawBody) as AvoxEvent; after(() => handleEvent(event).catch((err) => console.error("[avox] handling failed:", err))); // runs after the answer return new Response(null, { status: 200 }); } ``` ```python ### receiver.py - pip install fastapi uvicorn httpx ; run: uvicorn receiver:app --port 3000 import hashlib import hmac import json import logging import os import re import time from collections import OrderedDict import httpx from fastapi import BackgroundTasks, FastAPI, Request, Response log = logging.getLogger("avox") app = FastAPI() TOLERANCE_SECONDS = 5 * 60 HEX64 = re.compile(r"[0-9a-fA-F]{64}") ### Retries and Resend keep the same event id. Per process only - keep handled ids in your database in production. seen: "OrderedDict[str, None]" = OrderedDict() def verify_avox_signature(raw: bytes, header: str | None, secret: str) -> bool: # Avox-Signature: t=,v1=."> (two v1 values right after a rotation). if not header or not secret: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1" and HEX64.fullmatch(value): signatures.append(value.lower()) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) async def handle_event(event: dict) -> None: if event["id"] in seen: return seen[event["id"]] = None if len(seen) > 10_000: seen.popitem(last=False) # Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. forward_to = os.environ.get("FORWARD_TO_URL") if forward_to: try: async with httpx.AsyncClient(timeout=10) as client: res = await client.post(forward_to, json=event) if res.status_code >= 300: log.warning("passing on %s failed: HTTP %s", event["id"], res.status_code) except httpx.HTTPError as err: log.warning("passing on %s failed: %s", event["id"], err) return if event.get("test"): log.info("test event %s received", event["id"]) return data = event["data"] log.info("%s from %s %s", data["type"], data.get("contact_name") or data["from"], (data.get("text") or {}).get("body", "")) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks): raw = await request.body() # the exact bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("avox-signature"), os.environ.get("AVOX_WEBHOOK_SECRET", "")): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the answer return Response(status_code=200) ``` Each receiver checks the `Avox-Signature` header over the raw body before trusting anything, refuses a timestamp more than 5 minutes from your clock, accepts either signature during the 24 hours after you rotate the secret, answers `200` straight away and does the work afterwards, and skips repeats by event id. With `FORWARD_TO_URL` set it passes every verified event on unchanged - including test events, which carry `"test": true` so you can filter them. The full payload for every message type, the retry schedule and auto-pause are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### FAQ n8n's built-in HTTP request and webhook nodes cover everything: sending through the Avox API and receiving forwarded messages. Replies arrive in the Avox [Inbox](https://docs.theavoxai.com/inbox), where your team can answer them, and [Automation](https://docs.theavoxai.com/automation) can answer common questions for you. To run a workflow on each reply, turn on message forwarding as described above. Yes. Each key belongs to one number, so create a key per number, store each as its own credential, and pick the credential per branch. --- ## Make URL: https://docs.theavoxai.com/integrations/make Section: Integrations Connect **Make** (formerly Integromat) to a WhatsApp number on Avox in both directions: - **Send** - any scenario can send a WhatsApp message through the [Avox API](https://docs.theavoxai.com/integrations/avox-api) with Make's HTTP module. A new order, a form, a calendar event or a new row in a sheet becomes a WhatsApp template on your customer's phone. - **Receive** - [message forwarding](https://docs.theavoxai.com/connections/webhook-override) posts each new customer message to a URL you choose, so a scenario can run whenever a customer writes to you. Everything still lands in your Avox [Inbox](https://docs.theavoxai.com/inbox) as usual, and your [Automation](https://docs.theavoxai.com/automation) keeps running. ### What you'll build ``` Send: any Make trigger → your modules → HTTP request module → Avox API → customer's WhatsApp Receive: customer's WhatsApp → Avox (Inbox, Automation) → message forwarding → scenario's webhook trigger ``` ### Requirements - A Make account where you can turn a scenario on. - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one; a **Manager** can see keys and test them. - Approved templates for any message the scenario starts. See [Templates](https://docs.theavoxai.com/templates). ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** while you build the scenario (it never sends anything) or **Live key** to send real messages. Pick the WhatsApp number in the **Choose a connection** list. A key always belongs to one connection. Click **Create test key** or **Create live key**, then copy the key from **Your new API key**. It's shown only once - Avox keeps just a hash of it. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Live keys start with `avx_live_`, test keys with `avx_test_`. Give Make its own key, so you can rotate or revoke it without touching anything else. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### Send a WhatsApp message from a scenario Any Make trigger module. Optionally use one of Make's JSON tools to build the message, so mapped values are escaped correctly. Use Make's HTTP app to make a request, configured as in the table below. Run the scenario once with your own phone number, or with a test key. Put your live key in the `Authorization` header, then switch the scenario on. | Setting | Value | | --- | --- | | URL | `https://api.theavoxai.com/api/messages/send` | | Method | `POST` | | Header `Authorization` | `Bearer ` followed by your full key, for example `Bearer avx_live_...` | | Header `Idempotency-Key` | A value unique to the triggering record, such as `order-` plus the order id. 1 to 255 visible characters, no spaces. | | Body | Raw, with content type `application/json` (or the JSON you built in the previous module) | | Response | Parse it as JSON, so later modules can read `ok`, `message_id` and `error.code` | ```json { "to": "{{1.phone}}", "type": "template", "template": { "name": "order_shipped", "language": { "code": "en_US" }, "components": [ { "type": "body", "parameters": [{ "type": "text", "text": "{{1.order_number}}" }] } ] } } ``` `{{1.phone}}` and `{{1.order_number}}` stand for the fields you map from your trigger module. The phone number needs its country code; a leading `+`, spaces, dashes and brackets are fine. The template name and language must match an approved template exactly, with one parameter per placeholder. Every message type is on [Message types](https://docs.theavoxai.com/avox-api/messages). Make's module names and labels can change over time. Treat these as the settings to look for, not an importable blueprint. #### Build with a test key first A test key runs every check a live key does - the key, the connection, your plan, rate limits, the body and the `Idempotency-Key` - and then answers with a pretend result instead of sending. The response carries `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST`. Special test numbers return each error on purpose, so you can build the scenario's error routes too. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working - The HTTP module's output shows `"ok": true`, a `request_id` and a `message_id`. - With a live key, the message arrives on your phone. - In **Settings > API Keys**, open the key's **Recent requests** (the arrow next to it): the call is listed as **Send** with status `200`. - The **API logs** page (**Sent** tab) has every request with its outcome, recipient (masked), request id and latency. Search it by `request_id` or `message_id`. - Delivery statuses (sent, delivered, read) for the message are on [Logs](https://docs.theavoxai.com/logs). ### Receive customer messages in Make Turn on message forwarding for the number, and Avox posts every new customer message to your **Endpoint URL** as a signed `message.received` event. Point it at a webhook trigger in Make, and each message runs your scenario. Use Make's custom webhook trigger and copy the URL it gives you. In Avox, open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and scroll to **Message forwarding**. You need the **Admin** role to change it. Paste the URL into **Endpoint URL** and click **Save URL**. Switch **Message forwarding** on. The first time, Avox creates a signing secret and shows it once in **Your signing secret** - copy it and keep it somewhere safe. Click **Send test event**. Avox posts a sample message marked `"test": true`, which Make can use to learn the data structure. Add a filter that skips events where `test` is `true`, then the modules you want. The fields you'll map most often: | Field | What it holds | | --- | --- | | `id` | The event id (`evt_...`). The same on every retry and resend - use it to skip repeats. | | `test` | Only on test events, and then `true`. | | `data.from` | The customer's number with a leading `+`. You can use it as `to` when you reply. | | `data.contact_name` | The customer's WhatsApp profile name, or empty. | | `data.type` | `text`, `image`, `audio`, `video`, `document`, `sticker`, `location`, `contacts`, `interactive`, `button` or `reaction`. | | `data.text.body` | The message text, on text messages. | | `data.message_id` | WhatsApp's message id. Send it as `context.message_id` to quote the customer's message in your reply. | A scenario that answers a forwarded message can send a plain text message - the customer has just written, so the 24-hour window is open. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). Every forwarded request carries an `Avox-Signature` header that proves it came from Avox. A webhook trigger accepts any request to its URL without checking that header, so keep the URL private. If the scenario changes data or replies automatically, put a small receiver in front that checks the signature and passes the event on - see [Verify forwarded messages first](#verify-forwarded-messages-first). The endpoint must use `https://` on the standard port, be reachable from the internet, answer with a `2xx` status within 10 seconds, and not redirect. If it doesn't, Avox retries for about 21 hours. If 5 deliveries in a row still fail after all their retries, forwarding pauses and your Admins get an email. Every delivery is on the connection's **Recent deliveries** list and on the **API logs** page (**Received** tab), where an Admin can resend it. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### Common errors | Symptom | Fix | | --- | --- | | [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key) | The request had no `Authorization` header. Check the header name. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | The value must be `Bearer ` followed by the whole key, with nothing cut off. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) or [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | Create a new key in **Settings > API Keys** and update the header. | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | A mapped value broke the JSON (for example, an unescaped quote), or a field is wrong. `error.details` names the field. Build the body with a JSON module. | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | The phone value has no country code, or isn't a phone number. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Use the exact template name and language from [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Send exactly one parameter per placeholder. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | The customer hasn't written in 24 hours. Send a template. | | [`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key) | The key has a space or is empty. Build it from ids only. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same `Idempotency-Key` was used for a different message. Make it unique per message. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | Add a delay between iterations or lower parallel runs, and wait for the `Retry-After` seconds before retrying. | | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | The number is paused. Resume it on [Connections](https://docs.theavoxai.com/connections). | | "Your endpoint answered 301" after **Send test event** | Redirects aren't followed. Paste the final `https://` URL. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - Avox rate limits apply per key and per account, and a key can have a daily allowance ([`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded), which resets at midnight UTC). Test keys have their own, separate counters. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - WhatsApp's messaging limit caps how many people your number can start conversations with each day. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - Make's own plan limits (operations, data transfer) apply on Make's side. ### Security - Keep the key in a Make connection or keychain rather than a shared blueprint. - Give Make its own API key, so you can revoke it on its own. Avox warns you on the key if it's used from a new place or far more than usual. - Verify the `Avox-Signature` on forwarded messages before acting on them, and rotate the signing secret if it leaks. - Make's execution history can keep message content. Review its data retention to match your policy. ### Build your own server for Make Make can call the Avox API directly, so a server is optional. Run a small relay when you want the Avox key out of Make, consistent retries and idempotency across scenarios, or shared rules. Scenarios then call the relay's `POST /notify` with your internal token and simple fields: `to`, `template`, `params`, `reference`. ```bash ### Environment of the relay AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # put this in the HTTP module's x-internal-token header ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... INTERNAL_TOKEN=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own tools call this with the x-internal-token header; the Avox key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") expected = os.environ.get("INTERNAL_TOKEN", "") if not token or not expected or not hmac.compare_digest(token.encode(), expected.encode()): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=502 if err.status >= 500 else 422) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. `meta_unavailable` is deliberately not retried: WhatsApp didn't answer in time, so the message may already be out. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). #### Verify forwarded messages first This receiver checks every forwarded message's signature and then passes the event, unchanged, to your scenario's webhook trigger. Set **Endpoint URL** in Avox to the receiver's `/avox/messages` address, and `FORWARD_TO_URL` to the scenario's webhook URL. ```bash ### Environment of the receiver AVOX_WEBHOOK_SECRET=whsec_your_signing_secret FORWARD_TO_URL=https://your-make-webhook-url ``` ```js // receiver.js - Node.js 18+ (npm install express). Run: AVOX_WEBHOOK_SECRET=whsec_... node receiver.js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const TOLERANCE_SECONDS = 5 * 60; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. function verifyAvoxSignature(rawBody, header, secret) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } const app = express(); // express.raw keeps the exact bytes the signature covers - don't parse JSON on this route before checking it. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!Buffer.isBuffer(req.body) || !verifyAvoxSignature(req.body, req.get("Avox-Signature"), process.env.AVOX_WEBHOOK_SECRET)) { return res.sendStatus(401); } const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer within 10 seconds, then do the work handleEvent(event).catch((err) => console.error("[avox] handling failed:", err.message)); }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; type AvoxEvent = { id: string; type: "message.received"; test?: true; connection_id: string; data: { message_id: string; from: string; contact_name: string | null; type: string; text?: { body: string } }; }; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). function verifyAvoxSignature(rawBody: string, header: string | null, secret: string | undefined): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Per instance only - keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event: AvoxEvent) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value!); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before any parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = JSON.parse(rawBody) as AvoxEvent; after(() => handleEvent(event).catch((err) => console.error("[avox] handling failed:", err))); // runs after the answer return new Response(null, { status: 200 }); } ``` ```python ### receiver.py - pip install fastapi uvicorn httpx ; run: uvicorn receiver:app --port 3000 import hashlib import hmac import json import logging import os import re import time from collections import OrderedDict import httpx from fastapi import BackgroundTasks, FastAPI, Request, Response log = logging.getLogger("avox") app = FastAPI() TOLERANCE_SECONDS = 5 * 60 HEX64 = re.compile(r"[0-9a-fA-F]{64}") ### Retries and Resend keep the same event id. Per process only - keep handled ids in your database in production. seen: "OrderedDict[str, None]" = OrderedDict() def verify_avox_signature(raw: bytes, header: str | None, secret: str) -> bool: # Avox-Signature: t=,v1=."> (two v1 values right after a rotation). if not header or not secret: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1" and HEX64.fullmatch(value): signatures.append(value.lower()) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) async def handle_event(event: dict) -> None: if event["id"] in seen: return seen[event["id"]] = None if len(seen) > 10_000: seen.popitem(last=False) # Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. forward_to = os.environ.get("FORWARD_TO_URL") if forward_to: try: async with httpx.AsyncClient(timeout=10) as client: res = await client.post(forward_to, json=event) if res.status_code >= 300: log.warning("passing on %s failed: HTTP %s", event["id"], res.status_code) except httpx.HTTPError as err: log.warning("passing on %s failed: %s", event["id"], err) return if event.get("test"): log.info("test event %s received", event["id"]) return data = event["data"] log.info("%s from %s %s", data["type"], data.get("contact_name") or data["from"], (data.get("text") or {}).get("body", "")) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks): raw = await request.body() # the exact bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("avox-signature"), os.environ.get("AVOX_WEBHOOK_SECRET", "")): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the answer return Response(status_code=200) ``` Each receiver checks the `Avox-Signature` header over the raw body before trusting anything, refuses a timestamp more than 5 minutes from your clock, accepts either signature during the 24 hours after you rotate the secret, answers `200` straight away and does the work afterwards, and skips repeats by event id. With `FORWARD_TO_URL` set it passes every verified event on unchanged - including test events, which carry `"test": true` so you can filter them. The full payload for every message type, the retry schedule and auto-pause are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### FAQ Only Make's built-in HTTP and webhook tools. They cover sending through the Avox API and receiving forwarded messages. Replies arrive in the Avox [Inbox](https://docs.theavoxai.com/inbox), where your team can answer them, and [Automation](https://docs.theavoxai.com/automation) can answer common questions for you. To run a scenario on each reply, turn on message forwarding as described above. Yes, to someone who messaged your number in the last 24 hours. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). Each key belongs to one number. Create a key per number and use the key for the number you want to send from. --- ## Zapier URL: https://docs.theavoxai.com/integrations/zapier Section: Integrations Connect **Zapier** to a WhatsApp number on Avox in both directions: - **Send** - any Zap can send a WhatsApp message through the [Avox API](https://docs.theavoxai.com/integrations/avox-api) with Zapier's built-in webhook action. A new order, a form entry or a calendar event becomes a WhatsApp template on your customer's phone. - **Receive** - [message forwarding](https://docs.theavoxai.com/connections/webhook-override) posts each new customer message to a URL you choose, so a Zap can start whenever a customer writes to you. Everything still lands in your Avox [Inbox](https://docs.theavoxai.com/inbox) as usual, and your [Automation](https://docs.theavoxai.com/automation) keeps running. ### What you'll build ``` Send: any app's trigger → Zap → webhook action (custom request) → Avox API → customer's WhatsApp Receive: customer's WhatsApp → Avox (Inbox, Automation) → message forwarding → Zap's webhook trigger ``` ### Requirements - A Zapier plan that includes Zapier's webhook app (its custom request action and its catch-hook trigger). - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one; a **Manager** can see keys and test them. - Approved templates for the messages your Zaps start. See [Templates](https://docs.theavoxai.com/templates). ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** while you build the Zap (it never sends anything) or **Live key** to send real messages. Pick the WhatsApp number in the **Choose a connection** list. A key always belongs to one connection. Click **Create test key** or **Create live key**, then copy the key from **Your new API key**. It's shown only once - Avox keeps just a hash of it. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Live keys start with `avx_live_`, test keys with `avx_test_`. Give Zapier its own key, so you can rotate or revoke it without touching anything else. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### Send a WhatsApp message from a Zap Any app - a new form entry, a new order, a calendar event. Add Zapier's webhook action and choose its custom request option, so you can send a nested JSON body. Use the settings in the table below, and map your fields into the body. Testing the step sends one real request. Use your own phone number, or a test key. Put your live key in the `Authorization` header, then turn the Zap on. | Setting | Value | | --- | --- | | Method | `POST` | | URL | `https://api.theavoxai.com/api/messages/send` | | Header `Authorization` | `Bearer ` followed by your full key, for example `Bearer avx_live_...` | | Header `Content-Type` | `application/json` | | Header `Idempotency-Key` | A value unique to the triggering record, such as `order-` plus the order id. 1 to 255 visible characters, no spaces. | | Body | The JSON below, with your mapped fields | ```json { "to": "{{phone}}", "type": "template", "template": { "name": "appointment_reminder", "language": { "code": "en_US" }, "components": [ { "type": "body", "parameters": [{ "type": "text", "text": "{{customer_name}}" }, { "type": "text", "text": "{{appointment_time}}" }] } ] } } ``` `{{phone}}`, `{{customer_name}}` and `{{appointment_time}}` stand for the fields you map from earlier steps. The phone number needs its country code; a leading `+`, spaces, dashes and brackets are fine (`+1 (555) 123-4567` works). The template name and language must match an approved template exactly, with one parameter per placeholder. Every message type is on [Message types](https://docs.theavoxai.com/avox-api/messages). Mapped values that contain quotes or line breaks can break hand-written JSON. If a step fails with `invalid_payload`, check the mapped values first. #### Build with a test key first A test key runs every check a live key does - the key, the connection, your plan, rate limits, the body and the `Idempotency-Key` - and then answers with a pretend result instead of sending. The response carries `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST`. Special test numbers return each error on purpose, so you can build the Zap's error paths too. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working - The step's result shows `"ok": true`, a `request_id` and a `message_id`. - With a live key, the message arrives on your phone. - In **Settings > API Keys**, open the key's **Recent requests** (the arrow next to it): the call is listed as **Send** with status `200`. - The **API logs** page (**Sent** tab) has every request with its outcome, recipient (masked), request id and latency. Search it by `request_id` or `message_id`. - Delivery statuses (sent, delivered, read) for the message are on [Logs](https://docs.theavoxai.com/logs). ### Receive customer messages in Zapier Turn on message forwarding for the number, and Avox posts every new customer message to your **Endpoint URL** as a signed `message.received` event. Point it at a webhook trigger in Zapier, and each message starts your Zap. Use Zapier's catch-hook trigger and copy the URL it gives you. In Avox, open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and scroll to **Message forwarding**. You need the **Admin** role to change it. Paste the URL into **Endpoint URL** and click **Save URL**. Switch **Message forwarding** on. The first time, Avox creates a signing secret and shows it once in **Your signing secret** - copy it and keep it somewhere safe. Click **Send test event**. Avox posts a sample message marked `"test": true`, and Zapier can use it to map fields. Add a filter that skips events where `test` is `true`, then the steps you want. The fields you'll map most often: | Field | What it holds | | --- | --- | | `id` | The event id (`evt_...`). The same on every retry and resend - use it to skip repeats. | | `test` | Only on test events, and then `true`. | | `data.from` | The customer's number with a leading `+`. You can use it as `to` when you reply. | | `data.contact_name` | The customer's WhatsApp profile name, or empty. | | `data.type` | `text`, `image`, `audio`, `video`, `document`, `sticker`, `location`, `contacts`, `interactive`, `button` or `reaction`. | | `data.text.body` | The message text, on text messages. | | `data.message_id` | WhatsApp's message id. Send it as `context.message_id` to quote the customer's message in your reply. | A Zap that answers a forwarded message can send a plain text message - the customer has just written, so the 24-hour window is open. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). Every forwarded request carries an `Avox-Signature` header that proves it came from Avox. A catch-hook trigger accepts any request to its URL without checking that header, so keep the URL private. If the Zap changes data or replies automatically, put a small receiver in front that checks the signature and passes the event on - see [Verify forwarded messages first](#verify-forwarded-messages-first). The endpoint must use `https://` on the standard port, be reachable from the internet, answer with a `2xx` status within 10 seconds, and not redirect. If it doesn't, Avox retries for about 21 hours. If 5 deliveries in a row still fail after all their retries, forwarding pauses and your Admins get an email. Every delivery is on the connection's **Recent deliveries** list and on the **API logs** page (**Received** tab), where an Admin can resend it. See [Message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### Common errors | Symptom | Fix | | --- | --- | | [`missing_api_key`](https://docs.theavoxai.com/api/errors#missing_api_key) | The request had no `Authorization` header. Check the header name. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | The value must be `Bearer ` followed by the whole key, with nothing cut off. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) or [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | Create a new key in **Settings > API Keys** and update the header. | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | The body isn't valid JSON or a field is wrong - often a mapped value with quotes in it. `error.details` names the field. | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | The mapped phone has no country code, or isn't a phone number. Add a step that builds the full number. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Use the exact template name and language from [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Send exactly one parameter per placeholder. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | The customer hasn't written in 24 hours. Send a template. | | [`invalid_idempotency_key`](https://docs.theavoxai.com/api/errors#invalid_idempotency_key) | The key has a space or is empty. Build it from ids only. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same `Idempotency-Key` was used for a different message. Make it unique per message, not per Zap. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | Too many requests. Wait for the `Retry-After` seconds, then retry. | | [`connection_paused`](https://docs.theavoxai.com/api/errors#connection_paused) | The number is paused. Resume it on [Connections](https://docs.theavoxai.com/connections). | | Duplicate messages | Base the `Idempotency-Key` on the triggering record's id, so a replayed Zap run doesn't send again. | | "Your endpoint answered 301" after **Send test event** | Redirects aren't followed. Paste the final `https://` URL. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - Avox rate limits apply per key and per account, and a key can have a daily allowance ([`quota_exceeded`](https://docs.theavoxai.com/api/errors#quota_exceeded), which resets at midnight UTC). Test keys have their own, separate counters. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - WhatsApp's messaging limit caps how many people your number can start conversations with each day. See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - Zapier's own task limits apply on Zapier's side. ### Security - Keep the API key in the action's header field, and don't share the Zap as a template with the key inside. - Give Zapier its own API key, so you can revoke it on its own. Avox warns you on the key if it's used from a new place or far more than usual. - Verify the `Avox-Signature` on forwarded messages before acting on them, and rotate the signing secret if it leaks. - Zapier's task history can keep message content. Review its retention to match your policy. ### Build your own server for Zapier Zaps can call the Avox API directly, so a server is optional. A small relay helps when you want the Avox key out of Zapier, flat fields instead of nested JSON (the relay builds the WhatsApp body), or the same retries and idempotency for every Zap. Zaps then `POST` to the relay's `/notify` with simple fields: `to`, `template`, `params`, `reference`. ```bash ### Environment of the relay AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # add it as the x-internal-token header in the Zap step ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... INTERNAL_TOKEN=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own tools call this with the x-internal-token header; the Avox key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") expected = os.environ.get("INTERNAL_TOKEN", "") if not token or not expected or not hmac.compare_digest(token.encode(), expected.encode()): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=502 if err.status >= 500 else 422) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. `meta_unavailable` is deliberately not retried: WhatsApp didn't answer in time, so the message may already be out. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). #### Verify forwarded messages first This receiver checks every forwarded message's signature and then passes the event, unchanged, to your Zap's webhook trigger. Set **Endpoint URL** in Avox to the receiver's `/avox/messages` address, and `FORWARD_TO_URL` to the Zap's trigger URL. ```bash ### Environment of the receiver AVOX_WEBHOOK_SECRET=whsec_your_signing_secret FORWARD_TO_URL=https://your-zap-webhook-trigger-url ``` ```js // receiver.js - Node.js 18+ (npm install express). Run: AVOX_WEBHOOK_SECRET=whsec_... node receiver.js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const TOLERANCE_SECONDS = 5 * 60; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. function verifyAvoxSignature(rawBody, header, secret) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } const app = express(); // express.raw keeps the exact bytes the signature covers - don't parse JSON on this route before checking it. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!Buffer.isBuffer(req.body) || !verifyAvoxSignature(req.body, req.get("Avox-Signature"), process.env.AVOX_WEBHOOK_SECRET)) { return res.sendStatus(401); } const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer within 10 seconds, then do the work handleEvent(event).catch((err) => console.error("[avox] handling failed:", err.message)); }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; type AvoxEvent = { id: string; type: "message.received"; test?: true; connection_id: string; data: { message_id: string; from: string; contact_name: string | null; type: string; text?: { body: string } }; }; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). function verifyAvoxSignature(rawBody: string, header: string | null, secret: string | undefined): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Per instance only - keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event: AvoxEvent) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value!); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before any parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = JSON.parse(rawBody) as AvoxEvent; after(() => handleEvent(event).catch((err) => console.error("[avox] handling failed:", err))); // runs after the answer return new Response(null, { status: 200 }); } ``` ```python ### receiver.py - pip install fastapi uvicorn httpx ; run: uvicorn receiver:app --port 3000 import hashlib import hmac import json import logging import os import re import time from collections import OrderedDict import httpx from fastapi import BackgroundTasks, FastAPI, Request, Response log = logging.getLogger("avox") app = FastAPI() TOLERANCE_SECONDS = 5 * 60 HEX64 = re.compile(r"[0-9a-fA-F]{64}") ### Retries and Resend keep the same event id. Per process only - keep handled ids in your database in production. seen: "OrderedDict[str, None]" = OrderedDict() def verify_avox_signature(raw: bytes, header: str | None, secret: str) -> bool: # Avox-Signature: t=,v1=."> (two v1 values right after a rotation). if not header or not secret: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1" and HEX64.fullmatch(value): signatures.append(value.lower()) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) async def handle_event(event: dict) -> None: if event["id"] in seen: return seen[event["id"]] = None if len(seen) > 10_000: seen.popitem(last=False) # Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. forward_to = os.environ.get("FORWARD_TO_URL") if forward_to: try: async with httpx.AsyncClient(timeout=10) as client: res = await client.post(forward_to, json=event) if res.status_code >= 300: log.warning("passing on %s failed: HTTP %s", event["id"], res.status_code) except httpx.HTTPError as err: log.warning("passing on %s failed: %s", event["id"], err) return if event.get("test"): log.info("test event %s received", event["id"]) return data = event["data"] log.info("%s from %s %s", data["type"], data.get("contact_name") or data["from"], (data.get("text") or {}).get("body", "")) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks): raw = await request.body() # the exact bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("avox-signature"), os.environ.get("AVOX_WEBHOOK_SECRET", "")): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the answer return Response(status_code=200) ``` Each receiver checks the `Avox-Signature` header over the raw body before trusting anything, refuses a timestamp more than 5 minutes from your clock, accepts either signature during the 24 hours after you rotate the secret, answers `200` straight away and does the work afterwards, and skips repeats by event id. With `FORWARD_TO_URL` set it passes every verified event on unchanged - including test events, which carry `"test": true` so you can filter them. The full payload for every message type, the retry schedule and auto-pause are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### FAQ No. Zapier's built-in webhook app sends to the Avox API and catches forwarded messages. Replies arrive in the Avox [Inbox](https://docs.theavoxai.com/inbox), where your team can answer them, and [Automation](https://docs.theavoxai.com/automation) can answer common questions for you. To run a Zap on each reply, turn on message forwarding as described above. Any approved template on your account. Check the exact name and language on [Templates](https://docs.theavoxai.com/templates). Each key belongs to one number. Create a key per number and use the key for the number you want to send from. --- ## Node.js URL: https://docs.theavoxai.com/integrations/nodejs Section: Integrations Send and receive WhatsApp messages in any Node.js app through a number connected to Avox, using the built-in `fetch`, the [Avox API](https://docs.theavoxai.com/integrations/avox-api) and [message forwarding](https://docs.theavoxai.com/connections/webhook-override). No SDK to install - the client below is complete and runs as-is. ### What you'll build ``` Send: your Node.js app → Avox API → customer's WhatsApp Receive: customer's WhatsApp → Avox (Inbox, Automation) → message forwarding → your Node.js route ``` - A `sendWhatsApp()` helper with an `Idempotency-Key` and safe retries. - Examples for an order template, a button message and handling a refusal. - A receiver that checks the `Avox-Signature` on forwarded messages. ### Requirements - Node.js 18 or later (built-in `fetch`). - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one. See [Create the API key](#create-the-api-key). - To receive messages: a server reachable from the internet over `https://`. ```bash ### .env AVOX_API_KEY=avx_live_your_key AVOX_WEBHOOK_SECRET=whsec_your_signing_secret # only if you receive forwarded messages ``` ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** for development and CI (it never sends anything) or **Live key** for production. Pick the WhatsApp number in the **Choose a connection** list. Click **Create test key** or **Create live key**, then copy the key from **Your new API key** into `AVOX_API_KEY`. It's shown only once. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Live keys start with `avx_live_`, test keys with `avx_test_`. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### The client ```js // avox.js - Node.js 18+, no dependencies import { randomUUID } from "node:crypto"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } export { sendWhatsApp }; ``` On success it returns `{ ok, request_id, message_id, result }` (plus `test: true` with a test key). On failure it throws an error with `code`, `status`, `requestId` and `details`. It retries only what's safe to retry, with the same `Idempotency-Key`, honouring `Retry-After`; after `meta_rate_limited` it uses a new key, because WhatsApp's refusal is stored against the old one. `meta_unavailable` isn't retried - WhatsApp didn't answer in time, so the message may already be out. The rules are on [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits) and [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). ### Examples ```js import { sendWhatsApp } from "./avox.js"; // 1. A template to start a conversation (an order confirmation). const confirmation = await sendWhatsApp( { to: "15551234567", type: "template", template: { name: "order_confirmation", language: { code: "en" }, components: [{ type: "body", parameters: [{ type: "text", text: "A-1042" }, { type: "text", text: "$42.00" }] }], }, biz_opaque_callback_data: "order-A-1042", }, "order-A-1042-confirmation" // one key per order: a repeat run never sends twice ); console.log("Sent", confirmation.message_id); // 2. Buttons, inside the 24-hour window. A tap comes back as a forwarded // "interactive" message with the button's id, such as "slot_keep". await sendWhatsApp({ to: "15551234567", type: "interactive", interactive: { type: "button", body: { text: "Is Friday at 3pm still good for delivery?" }, action: { buttons: [ { type: "reply", reply: { id: "slot_keep", title: "Yes, Friday" } }, { type: "reply", reply: { id: "slot_change", title: "Pick another day" } }, ], }, }, }); // 3. Handling a refusal. try { await sendWhatsApp({ to: "15551234567", type: "text", text: { body: "Thanks for your order!" } }); } catch (err) { if (err.code === "outside_messaging_window") { // send a template instead } else { console.error(err.message, err.requestId, err.details); } } ``` Every message type is on [Message types](https://docs.theavoxai.com/avox-api/messages). ### Receive customer messages Turn on message forwarding, and Avox posts each new customer message to your server as a signed `message.received` event. Each `v1` value in the `Avox-Signature` header is a hex HMAC-SHA256 of the `t` value, a full stop, then the raw body, keyed with your whole signing secret. Check it on the raw bytes before parsing, refuse a `t` more than 5 minutes from your clock, answer `200` within 10 seconds, and skip events whose `id` you've already handled. ```js // receiver.js - Node.js 18+ (npm install express). Run: AVOX_WEBHOOK_SECRET=whsec_... node receiver.js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const TOLERANCE_SECONDS = 5 * 60; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. function verifyAvoxSignature(rawBody, header, secret) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } const app = express(); // express.raw keeps the exact bytes the signature covers - don't parse JSON on this route before checking it. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!Buffer.isBuffer(req.body) || !verifyAvoxSignature(req.body, req.get("Avox-Signature"), process.env.AVOX_WEBHOOK_SECRET)) { return res.sendStatus(401); } const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer within 10 seconds, then do the work handleEvent(event).catch((err) => console.error("[avox] handling failed:", err.message)); }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; type AvoxEvent = { id: string; type: "message.received"; test?: true; connection_id: string; data: { message_id: string; from: string; contact_name: string | null; type: string; text?: { body: string } }; }; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). function verifyAvoxSignature(rawBody: string, header: string | null, secret: string | undefined): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Per instance only - keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event: AvoxEvent) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value!); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before any parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = JSON.parse(rawBody) as AvoxEvent; after(() => handleEvent(event).catch((err) => console.error("[avox] handling failed:", err))); // runs after the answer return new Response(null, { status: 200 }); } ``` ```python ### receiver.py - pip install fastapi uvicorn httpx ; run: uvicorn receiver:app --port 3000 import hashlib import hmac import json import logging import os import re import time from collections import OrderedDict import httpx from fastapi import BackgroundTasks, FastAPI, Request, Response log = logging.getLogger("avox") app = FastAPI() TOLERANCE_SECONDS = 5 * 60 HEX64 = re.compile(r"[0-9a-fA-F]{64}") ### Retries and Resend keep the same event id. Per process only - keep handled ids in your database in production. seen: "OrderedDict[str, None]" = OrderedDict() def verify_avox_signature(raw: bytes, header: str | None, secret: str) -> bool: # Avox-Signature: t=,v1=."> (two v1 values right after a rotation). if not header or not secret: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1" and HEX64.fullmatch(value): signatures.append(value.lower()) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) async def handle_event(event: dict) -> None: if event["id"] in seen: return seen[event["id"]] = None if len(seen) > 10_000: seen.popitem(last=False) # Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. forward_to = os.environ.get("FORWARD_TO_URL") if forward_to: try: async with httpx.AsyncClient(timeout=10) as client: res = await client.post(forward_to, json=event) if res.status_code >= 300: log.warning("passing on %s failed: HTTP %s", event["id"], res.status_code) except httpx.HTTPError as err: log.warning("passing on %s failed: %s", event["id"], err) return if event.get("test"): log.info("test event %s received", event["id"]) return data = event["data"] log.info("%s from %s %s", data["type"], data.get("contact_name") or data["from"], (data.get("text") or {}).get("body", "")) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks): raw = await request.body() # the exact bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("avox-signature"), os.environ.get("AVOX_WEBHOOK_SECRET", "")): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the answer return Response(status_code=200) ``` Each receiver checks the `Avox-Signature` header over the raw body before trusting anything, refuses a timestamp more than 5 minutes from your clock, accepts either signature during the 24 hours after you rotate the secret, answers `200` straight away and does the work afterwards, and skips repeats by event id. With `FORWARD_TO_URL` set it passes every verified event on unchanged - including test events, which carry `"test": true` so you can filter them. The full payload for every message type, the retry schedule and auto-pause are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). To answer a forwarded message, send a plain text reply to `event.data.from` - the customer has just written, so the 24-hour window is open. Add `context: { message_id: event.data.message_id }` to quote their message. ### Setup See [Create the API key](#create-the-api-key). Copy `avox.js` into your app. Run an example with your personal WhatsApp number as `to`. Open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and in **Message forwarding** enter your receiver's address in **Endpoint URL** and click **Save URL**. Switch forwarding on, copy the secret from **Your signing secret** into `AVOX_WEBHOOK_SECRET`, then click **Send test event**. You need the **Admin** role. Use a test key in development and CI. It runs every check a live key does and answers with a pretend result - `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST` - and special test numbers return each error on purpose, so you can test your error handling. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working - The call returns `ok: true` and a `message_id`. - With a live key, the message arrives on your phone. - In **Settings > API Keys**, open the key's **Recent requests**: the send is listed as **Send** with status `200`. The **API logs** page (**Sent** tab) has the full history - search it by `request_id` or `message_id`. - Delivery statuses for the message are on [Logs](https://docs.theavoxai.com/logs). - Reply from your phone - the reply appears in the Avox [Inbox](https://docs.theavoxai.com/inbox), and with forwarding on, in your receiver's log and on the **API logs** page (**Received** tab). ### Common errors | Symptom | Fix | | --- | --- | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | `AVOX_API_KEY` is missing, cut off or quoted. Copy it again or create a new key. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) or [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | Create a new key in **Settings > API Keys** and update your environment. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | The person hasn't written in 24 hours - send a template. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Use the exact template name and language from [Templates](https://docs.theavoxai.com/templates). | | [`invalid_payload`](https://docs.theavoxai.com/api/errors#invalid_payload) | Read `err.details` - each entry names the field to fix. | | [`payload_too_large`](https://docs.theavoxai.com/api/errors#payload_too_large) | Keep the request body under 64 KB. | | [`rate_limited`](https://docs.theavoxai.com/api/errors#rate_limited) | The client waits `Retry-After` and retries. For bulk sends, queue messages. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same `Idempotency-Key` was used for a different message. Make it unique per message. | | `fetch is not defined` | Upgrade to Node.js 18 or later. | | Forwarding test shows "Your endpoint answered 401" | The signature check failed. Verify over the raw body (`express.raw`, `request.text()`), with the whole `whsec_...` secret. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - Request bodies up to 64 KB, per-key and per-account rate limits. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - WhatsApp's 24-hour window and messaging limits. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). ### Security - Load the key and the signing secret from environment variables or a secrets manager, never from source code. - Run the client on your server only - never in a browser bundle. - Give this app its own API key, so you can revoke it without affecting other systems. - Check the `Avox-Signature` before trusting a forwarded message, and rotate the signing secret if it leaks. ### Build your own server for Node.js The `avox.js` client above drops into any Node.js app. If you'd rather run a small dedicated service that your other apps call, here's a complete one - with the same client built in - as an Express app or a Next.js route handler, plus a FastAPI version for Python teams. It exposes `POST /notify`, which sends an approved template. ```bash ### Environment AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # your apps send this in x-internal-token ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... INTERNAL_TOKEN=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own tools call this with the x-internal-token header; the Avox key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") expected = os.environ.get("INTERNAL_TOKEN", "") if not token or not expected or not hmac.compare_digest(token.encode(), expected.encode()): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=502 if err.status >= 500 else 422) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. `meta_unavailable` is deliberately not retried: WhatsApp didn't answer in time, so the message may already be out. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). ### FAQ No. The API is a single HTTPS endpoint, so plain `fetch` is all you need - the client above is the whole thing. Yes. The code is standard ES modules; add types for the message body as you like. The Next.js versions above are already TypeScript. Set up [Automation](https://docs.theavoxai.com/automation) in Avox - it runs on every inbound message for the number - or receive forwarded messages with the receiver above and reply with `sendWhatsApp()`. Your team can also answer from the [Inbox](https://docs.theavoxai.com/inbox). On [Logs](https://docs.theavoxai.com/logs), as `sent`, `delivered`, `read` or `failed` statuses carrying the `message_id`. See [Matching a status to a send](https://docs.theavoxai.com/avox-api/webhooks#matching-a-status-to-a-send). --- ## Laravel URL: https://docs.theavoxai.com/integrations/laravel Section: Integrations Send and receive WhatsApp messages in a Laravel app through a number connected to Avox, using only Laravel's own `Http` facade, queues and routes with the [Avox API](https://docs.theavoxai.com/integrations/avox-api) and [message forwarding](https://docs.theavoxai.com/connections/webhook-override). ### What you'll build ``` Send: your Laravel app (event / job) → Avox API → customer's WhatsApp Receive: customer's WhatsApp → Avox (Inbox, Automation) → message forwarding → your Laravel route ``` - An `AvoxClient` service. - A queued `SendWhatsAppTemplate` job that's safe to retry. - A route that checks the `Avox-Signature` on forwarded messages and handles each one once. ### Requirements - A Laravel app with a queue worker running. - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one. See [Create the API key](#create-the-api-key). - To receive messages: the app reachable from the internet over `https://`. ```bash ### .env AVOX_API_KEY=avx_live_your_key AVOX_WEBHOOK_SECRET=whsec_your_signing_secret # only if you receive forwarded messages ``` ```php // config/services.php 'avox' => [ 'api_key' => env('AVOX_API_KEY'), 'webhook_secret' => env('AVOX_WEBHOOK_SECRET'), ], ``` ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** for local and staging environments (it never sends anything) or **Live key** for production. Pick the WhatsApp number in the **Choose a connection** list. Click **Create test key** or **Create live key**, then copy the key from **Your new API key** into `AVOX_API_KEY`. It's shown only once. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Give this app its own key, so you can rotate or revoke it on its own. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### The client ```php // app/Services/AvoxClient.php namespace App\Services; use Illuminate\Http\Client\Response; use Illuminate\Support\Facades\Http; use Illuminate\Support\Str; class AvoxClient { public function send(array $message, ?string $idempotencyKey = null): Response { return Http::withToken(config('services.avox.api_key')) ->withHeaders(['Idempotency-Key' => $idempotencyKey ?? (string) Str::uuid()]) ->acceptJson() ->timeout(30) ->post('https://api.theavoxai.com/api/messages/send', $message); } } ``` `Http::withToken()` sets `Authorization: Bearer ...` for you, and `post()` sends the array as JSON. Every response carries an `X-Request-Id` header, and the body's `request_id` matches it - log it. ### A queued job that's safe to retry The idempotency key is built from your own record, so every retry of the job reuses it and a message is never sent twice. Avox keeps the result of each key for 24 hours. ```php // app/Jobs/SendWhatsAppTemplate.php namespace App\Jobs; use App\Services\AvoxClient; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; class SendWhatsAppTemplate implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; public int $tries = 5; public function __construct( public string $to, public string $template, public array $params, public string $idempotencyKey, public string $language = 'en', ) {} public function handle(AvoxClient $avox): void { $template = ['name' => $this->template, 'language' => ['code' => $this->language]]; if ($this->params !== []) { $template['components'] = [[ 'type' => 'body', 'parameters' => array_map(fn ($text) => ['type' => 'text', 'text' => (string) $text], $this->params), ]]; } $response = $avox->send(['to' => $this->to, 'type' => 'template', 'template' => $template], $this->idempotencyKey); if ($response->json('ok')) { logger()->info('WhatsApp sent', [ 'message_id' => $response->json('message_id'), 'request_id' => $response->json('request_id'), 'test' => (bool) $response->json('test'), ]); return; } $code = $response->json('error.code'); // Wait and retry with the same key only what's safe to retry. if (in_array($code, ['rate_limited', 'idempotency_in_progress', 'internal_error'], true)) { $this->release((int) ($response->header('Retry-After') ?: 30)); return; } logger()->error('WhatsApp send failed', [ 'code' => $code, 'request_id' => $response->json('error.request_id'), 'details' => $response->json('error.details'), ]); $this->fail(new \RuntimeException("Avox send failed: {$code}")); } } ``` Dispatch it from anywhere - a controller, an event listener, a scheduled command: ```php SendWhatsAppTemplate::dispatch( to: $order->customer_phone, // full international number, e.g. 15551234567 or +1 555 123 4567 template: 'order_confirmation', params: [$order->number, $order->total], idempotencyKey: "order-{$order->id}-confirmation", ); ``` A connection error or timeout throws, so the queue retries the job with the same key - if the first attempt did reach WhatsApp, the retry gets the stored result instead of sending again. Every message type is on [Message types](https://docs.theavoxai.com/avox-api/messages). ### Receive customer messages Turn on message forwarding, and Avox posts each new customer message to your app as a signed `message.received` event. This route checks the signature over the raw body, answers straight away, skips repeats, and does the work on the queue. ```php // routes/api.php use App\Http\Controllers\AvoxWebhookController; Route::post('/avox/messages', AvoxWebhookController::class); ``` ```php // app/Http/Controllers/AvoxWebhookController.php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; class AvoxWebhookController extends Controller { private const TOLERANCE_SECONDS = 300; public function __invoke(Request $request) { $raw = $request->getContent(); // the exact body, before any parsing $secret = (string) config('services.avox.webhook_secret'); if (! $this->signatureIsValid($raw, (string) $request->header('Avox-Signature'), $secret)) { return response()->noContent(401); } $event = json_decode($raw, true); // Retries and Resend keep the same event id, so each event is handled once. if (Cache::add('avox-event:'.$event['id'], true, now()->addDay())) { dispatch(function () use ($event) { if ($event['test'] ?? false) { logger()->info('Avox test event received', ['id' => $event['id']]); return; } logger()->info('WhatsApp message received', [ 'from' => $event['data']['from'], 'name' => $event['data']['contact_name'], 'type' => $event['data']['type'], 'text' => $event['data']['text']['body'] ?? null, ]); }); } return response()->noContent(200); } // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. private function signatureIsValid(string $raw, string $header, string $secret): bool { if ($header === '' || $secret === '') { return false; } $timestamp = null; $signatures = []; foreach (explode(',', $header) as $part) { [$key, $value] = array_pad(explode('=', trim($part), 2), 2, ''); if ($key === 't' && ctype_digit($value)) { $timestamp = (int) $value; } elseif ($key === 'v1' && preg_match('/^[0-9a-f]{64}$/i', $value)) { $signatures[] = strtolower($value); } } if ($timestamp === null || abs(time() - $timestamp) > self::TOLERANCE_SECONDS) { return false; } $expected = hash_hmac('sha256', $timestamp.'.'.$raw, $secret); foreach ($signatures as $signature) { if (hash_equals($expected, $signature)) { return true; } } return false; } } ``` Routes in `routes/api.php` have no CSRF check, and get the `/api` prefix, so the address is `https://your-app.example.com/api/avox/messages`. On Laravel 11 or later, `php artisan install:api` creates that file if your app doesn't have it yet. The full payload for every message type is on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### Setup See [Create the API key](#create-the-api-key). Create the templates your app sends on [Create](https://docs.theavoxai.com/templates/create) and wait for approval. Copy the two classes above, run `php artisan config:clear`, and start a queue worker. Dispatch the job with your own phone number. Open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and in **Message forwarding** enter your route's address in **Endpoint URL** and click **Save URL**. Switch forwarding on, copy the secret from **Your signing secret** into `AVOX_WEBHOOK_SECRET`, run `php artisan config:clear`, then click **Send test event**. You need the **Admin** role. Use a test key in local and staging environments. It runs every check a live key does and answers with a pretend result - `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST` - so your test suite never messages a real customer. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working - `storage/logs/laravel.log` shows `WhatsApp sent` with a `message_id`. - With a live key, the message arrives on your phone. - In **Settings > API Keys**, open the key's **Recent requests**: the send is listed as **Send** with status `200`. The **API logs** page (**Sent** tab) has the full history - search it by `request_id` or `message_id`. - Delivery statuses for the message are on [Logs](https://docs.theavoxai.com/logs). - After **Send test event**, the log shows `Avox test event received`, and Avox shows "Delivered - your endpoint answered 200". Forwarded messages are listed on the **API logs** page (**Received** tab). ### Common errors | Symptom | Fix | | --- | --- | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | Run `php artisan config:clear` after changing `.env`, and check the key is complete. | | [`key_revoked`](https://docs.theavoxai.com/api/errors#key_revoked) or [`key_expired`](https://docs.theavoxai.com/api/errors#key_expired) | Create a new key in **Settings > API Keys** and update `.env`. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | Use the exact template name and language from [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Pass exactly as many params as the template has placeholders. | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | Store phone numbers with their country code. | | [`outside_messaging_window`](https://docs.theavoxai.com/api/errors#outside_messaging_window) | The customer hasn't written in 24 hours. Send a template. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same key was used with a different body. Keep the job's data unchanged between retries. | | [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) | WhatsApp is limiting how fast the number sends. The refusal is stored against the key, so dispatch a new job with a new `idempotencyKey` later. | | Forwarding test shows "Your endpoint answered 419" | The route is behind the CSRF check. Put it in `routes/api.php`. | | Forwarding test shows "Your endpoint answered 401" | The signature check failed. Check `AVOX_WEBHOOK_SECRET` holds the whole `whsec_...` secret, and run `php artisan config:clear`. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - Request bodies up to 64 KB, and per-key and per-account rate limits with `Retry-After`. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - WhatsApp's 24-hour window and messaging limits. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). ### Security - Keep the key and the signing secret in `.env`, never in committed code, and never send them to the browser. - Give this app its own API key so it can be revoked on its own. - Check the `Avox-Signature` before trusting a forwarded message, and rotate the signing secret if it leaks. ### Build your own server for Laravel The PHP client, queued job and webhook route above are all a Laravel app needs. If your team prefers a separate sending service that Laravel (and your other apps) call over HTTP, here's a complete one in Express, Next.js or FastAPI. Laravel then calls `POST /notify` with `Http::withHeaders(['x-internal-token' => ...])->post(...)`, and the Avox key lives only in the service. ```bash ### Environment of the sending service AVOX_API_KEY=avx_live_your_key INTERNAL_TOKEN=a-long-random-string # Laravel sends this in x-internal-token ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... INTERNAL_TOKEN=... node server.js import express from "express"; import { randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves this server. app.post("/notify", express.json({ limit: "100kb" }), async (req, res) => { if (!safeEqual(req.get("x-internal-token"), process.env.INTERNAL_TOKEN)) return res.sendStatus(401); const { to, template, params = [], language = "en_US", reference } = req.body ?? {}; if (!to || !template || !reference) return res.status(400).json({ error: "to, template and reference are required" }); try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); res.json({ ok: true, message_id: result.message_id }); } catch (err) { res.status(err.status >= 500 ? 502 : 422).json({ ok: false, code: err.code, request_id: err.requestId, details: err.details }); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/notify/route.ts - Next.js (App Router) import { randomUUID, timingSafeEqual } from "node:crypto"; import { NextResponse, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // POST /api/notify { "to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped" } // Your own tools call this with the x-internal-token header; the Avox key never leaves the server. export async function POST(request: NextRequest) { if (!safeEqual(request.headers.get("x-internal-token"), process.env.INTERNAL_TOKEN)) { return NextResponse.json({ error: "unauthorized" }, { status: 401 }); } const body = await request.json().catch(() => null); const { to, template, params = [], language = "en_US", reference } = body ?? {}; if (!to || !template || !reference) { return NextResponse.json({ error: "to, template and reference are required" }, { status: 400 }); } try { const result = await sendWhatsApp( { to, type: "template", template: { name: template, language: { code: language }, ...(params.length ? { components: [{ type: "body", parameters: params.map((t: unknown) => ({ type: "text", text: String(t) })) }] } : {}), }, biz_opaque_callback_data: reference, }, reference // the same reference always means the same message: retries never send twice ); return NextResponse.json({ ok: true, message_id: result.message_id }); } catch (err) { const e = err as AvoxFailure; return NextResponse.json({ ok: false, code: e.code, request_id: e.requestId, details: e.details }, { status: e.status >= 500 ? 502 : 422 }); } } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import hmac import logging import os import random import uuid import httpx from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) ### POST /notify {"to": "15551234567", "template": "order_shipped", "params": ["A-1042"], "reference": "order-A-1042-shipped"} ### Your own tools call this with the x-internal-token header; the Avox key never leaves this server. @app.post("/notify") async def notify(request: Request): token = request.headers.get("x-internal-token", "") expected = os.environ.get("INTERNAL_TOKEN", "") if not token or not expected or not hmac.compare_digest(token.encode(), expected.encode()): return Response(status_code=401) body = await request.json() to, name, reference = body.get("to"), body.get("template"), body.get("reference") if not (to and name and reference): return JSONResponse({"error": "to, template and reference are required"}, status_code=400) template = {"name": name, "language": {"code": body.get("language", "en_US")}} params = body.get("params") or [] if params: template["components"] = [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}] try: # The same reference always means the same message: retries never send twice. result = await send_whatsapp( {"to": to, "type": "template", "template": template, "biz_opaque_callback_data": reference}, idempotency_key=reference, ) return {"ok": True, "message_id": result.get("message_id")} except AvoxError as err: return JSONResponse({"ok": False, "code": err.code, "request_id": err.request_id, "details": err.details}, status_code=502 if err.status >= 500 else 422) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the route. Run Express with Node.js 18 or later, the Next.js route in any App Router project, and FastAPI with Python 3.10 or later. `meta_unavailable` is deliberately not retried: WhatsApp didn't answer in time, so the message may already be out. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). To receive this number's WhatsApp messages on your own server, see [Message forwarding](https://docs.theavoxai.com/integrations/webhooks). ### FAQ No. The API is one HTTPS endpoint, so Laravel's `Http` facade is the whole client - the `AvoxClient` service above is all you need. Use [Automation](https://docs.theavoxai.com/automation) in Avox, which runs on every inbound message, or handle forwarded messages in your own route and answer with the client - the customer has just written, so a plain text reply works. Your team can also answer from the [Inbox](https://docs.theavoxai.com/inbox). Create one key per connected number and choose the key by sending number. See [Authentication](https://docs.theavoxai.com/avox-api/authentication). --- ## Shopify URL: https://docs.theavoxai.com/integrations/shopify Section: Integrations Send a WhatsApp message when something happens in your Shopify store - an order is placed, an order ships - using Shopify's own webhooks, a small server you run, and the [Avox API](https://docs.theavoxai.com/integrations/avox-api). Customer replies land in your Avox [Inbox](https://docs.theavoxai.com/inbox), and [message forwarding](https://docs.theavoxai.com/connections/webhook-override) can send them to your server too. ### What you'll build ``` Send: Shopify (order events) → your server → Avox API → customer's WhatsApp Receive: customer's reply → Avox (Inbox, Automation) → message forwarding → your server (optional) ``` Your server decides "this order event means this template to this customer". Avox handles the WhatsApp side: the connection, the templates and the sending. ### Requirements - A Shopify store where you can add webhooks (in the Shopify admin's notification settings, or through Shopify's Admin API). - A WhatsApp number connected to Avox. See [Getting started](https://docs.theavoxai.com/getting-started). - An Avox API key for that number. Only an **Admin** can create one. See [Create the API key](#create-the-api-key). - Approved WhatsApp templates for each event you message on. Order messages start a conversation, so they must be templates. See [Templates](https://docs.theavoxai.com/templates). - Your customers' opt-in to WhatsApp messages - WhatsApp's policies require it, and having an order isn't the same as opting in. - A server reachable over `https://` (Node.js 18 or later for the code below, or Python 3.10 or later). ```bash ### .env SHOPIFY_WEBHOOK_SECRET=your_shopify_webhook_signing_secret AVOX_API_KEY=avx_live_your_key ``` ### Templates to create first Create these on [Create](https://docs.theavoxai.com/templates/create) and wait for approval. Use the **Utility** category - they're about an order the customer placed. See [Template categories](https://docs.theavoxai.com/whatsapp/template-categories). | Template name | Body | | --- | --- | | `order_confirmation` | Hi! Your order `{{1}}` for `{{2}}` has been confirmed. We'll let you know when it ships. | | `order_shipped` | Good news! Your order `{{1}}` has shipped. Track it here: `{{2}}` | ### Create the API key In the dashboard, go to **Settings > API Keys**. Under **Create a new key**, choose **Test key** while you build (it never sends anything) or **Live key** for your store. Pick the WhatsApp number in the **Choose a connection** list. Click **Create test key** or **Create live key**, then copy the key from **Your new API key** into `AVOX_API_KEY`. It's shown only once. Click **Test** next to the key. "Working - routes to" followed by your connection's name means it's ready. Use a dedicated key for the store, so you can rotate or revoke it on its own. See [API keys](https://docs.theavoxai.com/connections/api-keys). ### Receiving Shopify's webhooks Shopify signs every webhook with an HMAC-SHA256 signature of the raw body in the `X-Shopify-Hmac-Sha256` header. Verify it before trusting the payload, and reply quickly - Shopify expects a fast response and retries otherwise. ```js // server.js import express from "express"; import crypto from "node:crypto"; const app = express(); function verifyShopifySignature(rawBody, signature) { if (!signature) return false; const digest = crypto.createHmac("sha256", process.env.SHOPIFY_WEBHOOK_SECRET).update(rawBody).digest("base64"); const a = Buffer.from(signature); const b = Buffer.from(digest); return a.length === b.length && crypto.timingSafeEqual(a, b); } function toInternational(phone) { const digits = (phone ?? "").replace(/\D/g, ""); return digits.length >= 7 ? digits : null; // Shopify stores numbers with the country code } // express.raw keeps the exact bytes Shopify signed. app.post("/shopify/orders/create", express.raw({ type: "application/json", limit: "2mb" }), (req, res) => { if (!verifyShopifySignature(req.body, req.get("X-Shopify-Hmac-Sha256"))) return res.sendStatus(401); res.sendStatus(200); // acknowledge first const order = JSON.parse(req.body.toString("utf8")); const phone = toInternational(order.customer?.phone ?? order.shipping_address?.phone); if (phone) sendOrderConfirmation(phone, order).catch((err) => console.error(err.message)); }); app.listen(3000); ``` ### Sending the WhatsApp template ```js async function sendOrderConfirmation(phone, order) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", // Shopify can deliver the same webhook more than once - one key per // order means a repeat delivery never sends a second message. "Idempotency-Key": `shopify-order-${order.id}-confirmation`, }, body: JSON.stringify({ to: phone, type: "template", biz_opaque_callback_data: `shopify-order-${order.id}`, template: { name: "order_confirmation", language: { code: "en" }, components: [ { type: "body", parameters: [ { type: "text", text: order.name }, { type: "text", text: `${order.total_price} ${order.currency}` }, ], }, ], }, }), }); const data = await res.json().catch(() => null); if (!data?.ok) { // error.code is stable - see /api/errors. Log request_id for support. throw new Error(`Avox send failed: ${data?.error?.code ?? res.status} (${data?.error?.request_id ?? "-"})`); } return data.message_id; } ``` The `Idempotency-Key` makes Shopify's retries safe: the same order always produces the same key, so a repeated delivery within 24 hours returns the first result (with the header `Idempotent-Replayed: true`) instead of sending again. See [Idempotency](https://docs.theavoxai.com/avox-api/idempotency). `biz_opaque_callback_data` (up to 512 characters) is your own reference: WhatsApp includes it on the message's status events, so you can tie them to the order without a lookup. ### Setup See the table above. See [Create the API key](#create-the-api-key), and store it as `AVOX_API_KEY`. Make `https://your-server.example.com/shopify/orders/create` reachable. In Shopify, add a webhook for order creation pointing at that URL in JSON format, and copy the signing secret into `SHOPIFY_WEBHOOK_SECRET`. Answer customers from the [Inbox](https://docs.theavoxai.com/inbox), set up [Automation](https://docs.theavoxai.com/automation) for common questions such as "where is my order?", or [receive replies on your server](#receive-customer-replies). Build with a test key first. It runs every check a live key does and answers with a pretend result - `"test": true`, the header `Avox-Test-Mode: true`, and a `message_id` starting `wamid.TEST` - so test orders never message a real customer. See [Testing](https://docs.theavoxai.com/avox-api/testing). ### Check it's working Use a phone number that has WhatsApp and has opted in. It logs the Shopify webhook and gets `"ok": true` with a `message_id` from Avox. The confirmation arrives on WhatsApp. In **Settings > API Keys**, open the key's **Recent requests**: the send is listed as **Send** with status `200`. The **API logs** page (**Sent** tab) has the full history - search it by `request_id` or `message_id`. The message's delivery statuses are on [Logs](https://docs.theavoxai.com/logs). Open an event to see its payload, including your `biz_opaque_callback_data`. ### Receive customer replies To handle replies on your own server as well as in the Inbox - for example, a customer tapping a quick reply button on your shipping template - turn on message forwarding for the number: Open [Connections](https://docs.theavoxai.com/connections), click **Settings** on the connection, and scroll to **Message forwarding**. You need the **Admin** role to change it. Enter your receiver's address, such as `https://your-server.example.com/avox/messages`, in **Endpoint URL** and click **Save URL**. Switch **Message forwarding** on. Copy the signing secret from **Your signing secret** into `AVOX_WEBHOOK_SECRET` - it's shown only once. Click **Send test event**. "Delivered - your endpoint answered 200" means your receiver accepted it. Each new customer message arrives as a signed `message.received` event. A tap on a template's quick reply button arrives as `"type": "button"`, with the button's `text` and `payload` under `data.button`. Use the receiver code in [Receiver](#receiver) below and put your own logic in `handleEvent`. The full payload for every message type is on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### Common errors | Symptom | Fix | | --- | --- | | Your server answers Shopify with `401` | `SHOPIFY_WEBHOOK_SECRET` is wrong, or a body parser changed the raw body before verification. | | [`invalid_api_key`](https://docs.theavoxai.com/api/errors#invalid_api_key) | `AVOX_API_KEY` is missing, cut off or quoted. Copy it again or create a new key. | | [`template_not_found`](https://docs.theavoxai.com/api/errors#template_not_found) | The template name or language (`en` vs `en_US`) doesn't match the approved one on [Templates](https://docs.theavoxai.com/templates). | | [`template_unavailable`](https://docs.theavoxai.com/api/errors#template_unavailable) | WhatsApp paused or disabled the template. Check its status on [Templates](https://docs.theavoxai.com/templates). | | [`template_params_invalid`](https://docs.theavoxai.com/api/errors#template_params_invalid) | Send exactly as many parameters as the template has placeholders. | | [`invalid_recipient`](https://docs.theavoxai.com/api/errors#invalid_recipient) | The order's phone number has no country code. Skip it, or collect numbers in international format at checkout. | | [`recipient_unreachable`](https://docs.theavoxai.com/api/errors#recipient_unreachable) | WhatsApp couldn't deliver to the number. Fall back to email or SMS for that order. | | [`idempotency_conflict`](https://docs.theavoxai.com/api/errors#idempotency_conflict) | The same order id was sent with a different body. Keep the body identical on retries. | | [`meta_rate_limited`](https://docs.theavoxai.com/api/errors#meta_rate_limited) | WhatsApp is limiting how fast the number sends. Slow down, and retry after `Retry-After` with a new `Idempotency-Key` - the refusal is stored against the old one. | | Forwarding test shows "Your endpoint answered 401" | The signature check failed. Verify over the raw body with the whole `whsec_...` secret. | Every code, with what to do about it, is on [API errors](https://docs.theavoxai.com/api/errors). ### Limits - WhatsApp's messaging limit caps how many different customers your number can message with templates each day. Big sales days can reach it - check [Health](https://docs.theavoxai.com/health). See [Quality and limits](https://docs.theavoxai.com/whatsapp/quality-and-limits). - Avox rate limits apply per key and per account. See [Rate limits](https://docs.theavoxai.com/avox-api/rate-limits). - Meta charges per template message. See [Pricing](https://docs.theavoxai.com/whatsapp-platform). ### Security - Always verify Shopify's signature, and keep both secrets in environment variables. - Verify the `Avox-Signature` on forwarded messages too, before acting on them. - Message only customers who opted in, and give them an easy way to stop. - Use a dedicated Avox API key for the store so you can revoke it on its own. ### Build your own server for Shopify A complete server for the order-confirmation flow in your choice of framework. It verifies Shopify's `X-Shopify-Hmac-Sha256` signature over the raw request body (Shopify's own requirement), answers Shopify quickly, and sends your approved `order_confirmation` template through the Avox API with one `Idempotency-Key` per order. ```bash ### Environment AVOX_API_KEY=avx_live_your_key SHOPIFY_WEBHOOK_SECRET=your_shopify_webhook_signing_secret ``` ```js // server.js - Node.js 18+ (npm install express). Run: AVOX_API_KEY=... SHOPIFY_WEBHOOK_SECRET=... node server.js import express from "express"; import { createHmac, randomUUID, timingSafeEqual } from "node:crypto"; const app = express(); // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); async function sendWhatsApp(message, idempotencyKey = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data; } const code = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }); } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a, b) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // Shopify "Order creation" webhook. Shopify signs the raw body with your webhook secret // (X-Shopify-Hmac-Sha256, base64) - verify it before trusting anything in the order. app.post("/shopify/orders/create", express.raw({ type: "application/json", limit: "2mb" }), async (req, res) => { const expected = createHmac("sha256", process.env.SHOPIFY_WEBHOOK_SECRET ?? "").update(req.body).digest("base64"); if (!safeEqual(req.get("X-Shopify-Hmac-Sha256"), expected)) return res.sendStatus(401); res.sendStatus(200); // Shopify expects a fast answer - send after acknowledging const order = JSON.parse(req.body.toString("utf8")); const to = String(order.customer?.phone ?? order.shipping_address?.phone ?? "").replace(/\D/g, ""); if (to.length < 7) return; // no usable WhatsApp number on this order try { await sendWhatsApp( { to, type: "template", template: { name: "order_confirmation", // your approved template language: { code: "en" }, components: [ { type: "body", parameters: [{ type: "text", text: order.name }, { type: "text", text: `${order.total_price} ${order.currency}` }] }, ], }, biz_opaque_callback_data: `shopify-order-${order.id}`, }, `shopify-order-${order.id}-confirmation` // Shopify can redeliver: one key per order means one message ); } catch (err) { console.error(`[shopify] order ${order.id}: ${err.code} request_id=${err.requestId}`); } }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/api/shopify/orders-create/route.ts - Next.js 15+ (App Router) import { createHmac, randomUUID, timingSafeEqual } from "node:crypto"; import { after, type NextRequest } from "next/server"; export const runtime = "nodejs"; // Avox client: one Idempotency-Key per message, retries only what's safe to retry. const RETRY_SAME_KEY = new Set(["rate_limited", "idempotency_in_progress", "internal_error", "network_error"]); const RETRY_NEW_KEY = new Set(["meta_rate_limited"]); const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); const backoffMs = (attempt: number) => Math.min(30_000, 1_000 * 2 ** (attempt - 1)) * (0.5 + Math.random() / 2); type AvoxFailure = Error & { code: string; status: number; requestId: string | null; details?: unknown }; async function sendWhatsApp(message: Record, idempotencyKey: string = randomUUID(), maxAttempts = 5) { let key = idempotencyKey; for (let attempt = 1; ; attempt++) { const res = await fetch("https://api.theavoxai.com/api/messages/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.AVOX_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key, }, body: JSON.stringify(message), cache: "no-store", signal: AbortSignal.timeout(30_000), }).catch(() => null); const data = res ? await res.json().catch(() => null) : null; const requestId = res?.headers.get("X-Request-Id") ?? null; if (data?.ok) { console.info(`[avox] sent message_id=${data.message_id} request_id=${requestId}${data.test ? " (test key)" : ""}`); return data as { ok: true; request_id: string; message_id: string | null; test?: true; result: unknown }; } const code: string = data?.error?.code ?? (res ? `http_${res.status}` : "network_error"); console.warn(`[avox] ${code} request_id=${requestId} attempt=${attempt}`); const retryable = RETRY_SAME_KEY.has(code) || RETRY_NEW_KEY.has(code); if (!retryable || attempt >= maxAttempts) { throw Object.assign(new Error(`Avox send failed: ${code}`), { code, status: res?.status ?? 502, requestId: data?.error?.request_id ?? requestId, details: data?.error?.details, }) as AvoxFailure; } if (RETRY_NEW_KEY.has(code)) key = randomUUID(); // WhatsApp's refusal is stored against the old key const retryAfter = Number(res?.headers.get("Retry-After")); await sleep(retryAfter > 0 ? retryAfter * 1000 : backoffMs(attempt)); } } function safeEqual(a: string | null, b: string | undefined) { const x = Buffer.from(a ?? ""); const y = Buffer.from(b ?? ""); return x.length > 0 && x.length === y.length && timingSafeEqual(x, y); } // Shopify "Order creation" webhook -> https://your-app.example.com/api/shopify/orders-create // Shopify signs the raw body with your webhook secret (X-Shopify-Hmac-Sha256, base64) - verify it first. export async function POST(request: NextRequest) { const raw = Buffer.from(await request.arrayBuffer()); const expected = createHmac("sha256", process.env.SHOPIFY_WEBHOOK_SECRET ?? "").update(raw).digest("base64"); if (!safeEqual(request.headers.get("x-shopify-hmac-sha256"), expected)) { return new Response(null, { status: 401 }); } const order = JSON.parse(raw.toString("utf8")); const to = String(order.customer?.phone ?? order.shipping_address?.phone ?? "").replace(/\D/g, ""); if (to.length < 7) return new Response(null, { status: 200 }); // no usable WhatsApp number // Shopify expects a fast answer, so the send runs after the response. after(async () => { try { await sendWhatsApp( { to, type: "template", template: { name: "order_confirmation", // your approved template language: { code: "en" }, components: [ { type: "body", parameters: [{ type: "text", text: order.name }, { type: "text", text: `${order.total_price} ${order.currency}` }] }, ], }, biz_opaque_callback_data: `shopify-order-${order.id}`, }, `shopify-order-${order.id}-confirmation` // Shopify can redeliver: one key per order means one message ); } catch (err) { const e = err as AvoxFailure; console.error(`[shopify] order ${order.id}: ${e.code} request_id=${e.requestId}`); } }); return new Response(null, { status: 200 }); } ``` ```python ### main.py - pip install fastapi uvicorn httpx ; run: uvicorn main:app --port 3000 import asyncio import base64 import hashlib import hmac import json import logging import os import random import uuid import httpx from fastapi import BackgroundTasks, FastAPI, Request from fastapi.responses import Response log = logging.getLogger("avox") app = FastAPI() http = httpx.AsyncClient(timeout=30) ### Avox client: one Idempotency-Key per message, retries only what's safe to retry. RETRY_SAME_KEY = {"rate_limited", "idempotency_in_progress", "internal_error", "network_error"} RETRY_NEW_KEY = {"meta_rate_limited"} class AvoxError(Exception): def __init__(self, code, status, request_id, details=None): super().__init__(f"Avox send failed: {code}") self.code, self.status, self.request_id, self.details = code, status, request_id, details def backoff(attempt): return min(30.0, 2 ** (attempt - 1)) * (0.5 + random.random() / 2) async def send_whatsapp(message: dict, idempotency_key: str | None = None, max_attempts: int = 5) -> dict: key = idempotency_key or str(uuid.uuid4()) attempt = 0 while True: attempt += 1 res, data = None, None try: res = await http.post( "https://api.theavoxai.com/api/messages/send", headers={"Authorization": f"Bearer {os.environ['AVOX_API_KEY']}", "Idempotency-Key": key}, json=message, ) data = res.json() except (httpx.TransportError, ValueError): pass request_id = res.headers.get("X-Request-Id") if res is not None else None if data and data.get("ok"): log.info("sent message_id=%s request_id=%s", data.get("message_id"), request_id) return data error = (data or {}).get("error") or {} code = error.get("code") or (f"http_{res.status_code}" if res is not None else "network_error") log.warning("%s request_id=%s attempt=%s", code, request_id, attempt) if code not in RETRY_SAME_KEY | RETRY_NEW_KEY or attempt >= max_attempts: raise AvoxError(code, res.status_code if res is not None else 502, error.get("request_id", request_id), error.get("details")) if code in RETRY_NEW_KEY: key = str(uuid.uuid4()) # WhatsApp's refusal is stored against the old key retry_after = int(res.headers.get("Retry-After") or 0) if res is not None else 0 await asyncio.sleep(retry_after if retry_after > 0 else backoff(attempt)) async def send_order_confirmation(to: str, order: dict) -> None: try: await send_whatsapp( { "to": to, "type": "template", "template": { "name": "order_confirmation", # your approved template "language": {"code": "en"}, "components": [{"type": "body", "parameters": [ {"type": "text", "text": order["name"]}, {"type": "text", "text": f"{order['total_price']} {order['currency']}"}, ]}], }, "biz_opaque_callback_data": f"shopify-order-{order['id']}", }, idempotency_key=f"shopify-order-{order['id']}-confirmation", # one key per order means one message ) except AvoxError as err: log.error("order %s: %s request_id=%s", order["id"], err.code, err.request_id) ### Shopify "Order creation" webhook. Shopify signs the raw body with your webhook secret ### (X-Shopify-Hmac-Sha256, base64) - verify it before trusting anything in the order. @app.post("/shopify/orders/create") async def shopify_order_created(request: Request, background: BackgroundTasks): raw = await request.body() digest = hmac.new(os.environ["SHOPIFY_WEBHOOK_SECRET"].encode(), raw, hashlib.sha256).digest() expected = base64.b64encode(digest) if not hmac.compare_digest(request.headers.get("x-shopify-hmac-sha256", "").encode(), expected): return Response(status_code=401) order = json.loads(raw) phone = (order.get("customer") or {}).get("phone") or (order.get("shipping_address") or {}).get("phone") or "" to = "".join(ch for ch in phone if ch.isdigit()) if len(to) >= 7: background.add_task(send_order_confirmation, to, order) # Shopify expects a fast answer: send afterwards return Response(status_code=200) ``` Each version is a complete file: the Avox client (an `Idempotency-Key` per message, retries with backoff that honour `Retry-After`, and `error.code` and `request_id` in every log line) plus the Shopify route, which answers Shopify first and sends afterwards. Run Express with Node.js 18 or later, the Next.js route in an App Router project on Next.js 15 or later (it uses `after`), and FastAPI with Python 3.10 or later. For the full walkthrough - key setup, local testing with a tunnel, a deployment checklist - see [Connect your server](https://docs.theavoxai.com/avox-api/connect-your-server). #### Receiver Run this next to your Shopify server (or add its route to it) to receive customer replies. Put your own logic - for example, matching `data.from` to a recent order - in `handleEvent`. ```bash ### Environment of the receiver AVOX_WEBHOOK_SECRET=whsec_your_signing_secret ``` ```js // receiver.js - Node.js 18+ (npm install express). Run: AVOX_WEBHOOK_SECRET=whsec_... node receiver.js import express from "express"; import { createHmac, timingSafeEqual } from "node:crypto"; const TOLERANCE_SECONDS = 5 * 60; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). // The key is the whole signing secret, whsec_ included, as plain text. function verifyAvoxSignature(rawBody, header, secret) { if (!header || !secret) return false; let timestamp = null; const signatures = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } const app = express(); // express.raw keeps the exact bytes the signature covers - don't parse JSON on this route before checking it. app.post("/avox/messages", express.raw({ type: "application/json", limit: "1mb" }), (req, res) => { if (!Buffer.isBuffer(req.body) || !verifyAvoxSignature(req.body, req.get("Avox-Signature"), process.env.AVOX_WEBHOOK_SECRET)) { return res.sendStatus(401); } const event = JSON.parse(req.body.toString("utf8")); res.sendStatus(200); // answer within 10 seconds, then do the work handleEvent(event).catch((err) => console.error("[avox] handling failed:", err.message)); }); app.listen(process.env.PORT ?? 3000, () => console.log("Listening")); ``` ```ts // app/avox/messages/route.ts - Next.js 15+ (App Router) import { createHmac, timingSafeEqual } from "node:crypto"; import { after } from "next/server"; export const runtime = "nodejs"; const TOLERANCE_SECONDS = 5 * 60; type AvoxEvent = { id: string; type: "message.received"; test?: true; connection_id: string; data: { message_id: string; from: string; contact_name: string | null; type: string; text?: { body: string } }; }; // Avox-Signature: t=,v1=."> (two v1 values right after a rotation). function verifyAvoxSignature(rawBody: string, header: string | null, secret: string | undefined): boolean { if (!header || !secret) return false; let timestamp: number | null = null; const signatures: string[] = []; for (const part of header.split(",")) { const i = part.indexOf("="); if (i <= 0) continue; const key = part.slice(0, i).trim(); const value = part.slice(i + 1).trim(); if (key === "t" && /^\d+$/.test(value)) timestamp = Number(value); else if (key === "v1" && /^[0-9a-f]{64}$/i.test(value)) signatures.push(value); } if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`, "utf8").digest(); return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, "hex"), expected)); } // Retries and Resend keep the same event id. Per instance only - keep handled ids in your database in production. const seen = new Set(); async function handleEvent(event: AvoxEvent) { if (seen.has(event.id)) return; seen.add(event.id); if (seen.size > 10_000) seen.delete(seen.values().next().value!); // Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. if (process.env.FORWARD_TO_URL) { const res = await fetch(process.env.FORWARD_TO_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(event), signal: AbortSignal.timeout(10_000), }); if (!res.ok) console.warn(`[avox] passing on ${event.id} failed: HTTP ${res.status}`); return; } if (event.test) return console.info(`[avox] test event ${event.id} received`); const { from, contact_name, type, text } = event.data; console.info(`[avox] ${type} from ${contact_name ?? from}${text ? `: ${text.body}` : ""}`); } export async function POST(request: Request) { const rawBody = await request.text(); // the exact body, before any parsing if (!verifyAvoxSignature(rawBody, request.headers.get("avox-signature"), process.env.AVOX_WEBHOOK_SECRET)) { return new Response(null, { status: 401 }); } const event = JSON.parse(rawBody) as AvoxEvent; after(() => handleEvent(event).catch((err) => console.error("[avox] handling failed:", err))); // runs after the answer return new Response(null, { status: 200 }); } ``` ```python ### receiver.py - pip install fastapi uvicorn httpx ; run: uvicorn receiver:app --port 3000 import hashlib import hmac import json import logging import os import re import time from collections import OrderedDict import httpx from fastapi import BackgroundTasks, FastAPI, Request, Response log = logging.getLogger("avox") app = FastAPI() TOLERANCE_SECONDS = 5 * 60 HEX64 = re.compile(r"[0-9a-fA-F]{64}") ### Retries and Resend keep the same event id. Per process only - keep handled ids in your database in production. seen: "OrderedDict[str, None]" = OrderedDict() def verify_avox_signature(raw: bytes, header: str | None, secret: str) -> bool: # Avox-Signature: t=,v1=."> (two v1 values right after a rotation). if not header or not secret: return False timestamp, signatures = None, [] for part in header.split(","): key, _, value = part.strip().partition("=") if key == "t" and value.isdigit(): timestamp = int(value) elif key == "v1" and HEX64.fullmatch(value): signatures.append(value.lower()) if timestamp is None or abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, sig) for sig in signatures) async def handle_event(event: dict) -> None: if event["id"] in seen: return seen[event["id"]] = None if len(seen) > 10_000: seen.popitem(last=False) # Optional: pass the verified event on unchanged - for example to a webhook trigger in your automation tool. forward_to = os.environ.get("FORWARD_TO_URL") if forward_to: try: async with httpx.AsyncClient(timeout=10) as client: res = await client.post(forward_to, json=event) if res.status_code >= 300: log.warning("passing on %s failed: HTTP %s", event["id"], res.status_code) except httpx.HTTPError as err: log.warning("passing on %s failed: %s", event["id"], err) return if event.get("test"): log.info("test event %s received", event["id"]) return data = event["data"] log.info("%s from %s %s", data["type"], data.get("contact_name") or data["from"], (data.get("text") or {}).get("body", "")) @app.post("/avox/messages") async def receive(request: Request, background: BackgroundTasks): raw = await request.body() # the exact bytes, before any parsing if not verify_avox_signature(raw, request.headers.get("avox-signature"), os.environ.get("AVOX_WEBHOOK_SECRET", "")): return Response(status_code=401) background.add_task(handle_event, json.loads(raw)) # runs after the answer return Response(status_code=200) ``` Each receiver checks the `Avox-Signature` header over the raw body before trusting anything, refuses a timestamp more than 5 minutes from your clock, accepts either signature during the 24 hours after you rotate the secret, answers `200` straight away and does the work afterwards, and skips repeats by event id. With `FORWARD_TO_URL` set it passes every verified event on unchanged - including test events, which carry `"test": true` so you can filter them. The full payload for every message type, the retry schedule and auto-pause are on [Receive messages](https://docs.theavoxai.com/avox-api/webhooks#receive-messages). ### FAQ No. Shopify's own webhooks and the code on this page connect the two, and you stay in control of which events send which message. Yes. Add a webhook for order fulfillment, and send `order_shipped` with the tracking link. Use a different `Idempotency-Key`, such as `shopify-order--shipped`. For messages your store starts, yes. If the customer replies, you can answer with any message type for 24 hours. See [Messaging window](https://docs.theavoxai.com/whatsapp/messaging-window). To the Avox [Inbox](https://docs.theavoxai.com/inbox), where your team can answer them, and to your own server too if you turn on message forwarding. Delivery statuses for each order message are on [Logs](https://docs.theavoxai.com/logs) - the status payload carries your `biz_opaque_callback_data`, so you can see which order each one belongs to. --- ## Status page URL: https://docs.theavoxai.com/status-page Section: Status and reliability The Avox status page at [status.theavoxai.com](https://status.theavoxai.com) shows the live health of every part of Avox - the dashboard, your WhatsApp messages, the Avox API and Avox AI, and what you build with: tables, live Flows, the builder API and connected apps - and of the WhatsApp services Meta runs underneath them. It's public, needs no sign-in, and refreshes itself while it's open. The **Status** link at the bottom of this site's sidebar opens it. ### What's on the page From top to bottom: - **The mascot and headline** - the Avox mascot sums up the overall status in its thought bubble, with a headline under it: "Everything is running smoothly", "Some things need attention" or "We're working on a problem". Under it, **Check everything again** re-checks every service. - **Live heartbeat** - a pulse line in the colour of the current status, the database response time in milliseconds, how many services are up, and when the newest check came in. - **Ongoing incidents** - right under the heartbeat, every incident the Avox team is working on, with all its updates. When there are none, a single line says "No ongoing incidents - everything is running normally." - **Services** - one card per service (see below), then **Tables, Flows and apps** (see [Tables, Flows and apps](#tables-flows-and-apps)), then the **Meta / WhatsApp** group (see [Meta / WhatsApp](#meta-whatsapp)). - **Past incidents** - the last 90 days of incidents in one timeline (the 20 most recent), or "No incidents in the last 90 days." - **Links** - **API documentation**, **Open the dashboard**, **theavoxai.com** and **Status as JSON**. - **Helpful docs** and **Questions** - guides for the things the page watches and a short FAQ. - **Footer** - links to theavoxai.com, the docs, contact, email preferences, the legal pages, **Cookie settings**, and the support address. ### The services Each card shows the service's name, what it covers, its live state, how quickly it answered (in milliseconds), how often it's re-checked, when it was last checked, any open incident that names it, and 90 days of history. | Service | Key | What it covers | Re-checked every | | --- | --- | --- | --- | | Core API | `api` | The service behind the dashboard. | 15 seconds | | Database | `database` | Reading and saving your data. | 20 seconds | | Sign-in | `auth` | Accounts, sessions and one-time codes. | 30 seconds | | WhatsApp webhooks | `webhooks` | Messages and receipts arriving from WhatsApp. | 20 seconds | | Avox API | `messaging` | Sending WhatsApp messages from your own server with the [Avox API](https://docs.theavoxai.com/avox-api). | 15 seconds | | Avox AI (Beta) | `ai` | Automations and auto-replies - see [Avox AI](https://docs.theavoxai.com/avox-ai). | 45 seconds | | Billing | `billing` | Plans, checkout and payments. | 60 seconds | | Email delivery | `email` | Sign-in codes, receipts and notices - see [Emails](https://docs.theavoxai.com/emails). | 60 seconds | | Public APIs | `public` | Website forms, the newsletter and region lookup on theavoxai.com. | 30 seconds | | Admin API | `admin` | Tools the Avox team uses to look after your account. | 60 seconds | The **Key** is the name to use with the health endpoint (see [Monitoring Avox from your own tools](#monitoring-avox-from-your-own-tools)). ### Tables, Flows and apps Under the services, a second section, **Tables, Flows and apps**, covers what you build with in Avox: "Each one is judged on its own recent requests and background work." | Service | Key | What it covers | Re-checked every | | --- | --- | --- | --- | | Tables | `tables` | Your [tables](https://docs.theavoxai.com/tables), their rows and the automations they start. | 30 seconds | | Live Flows | `live_flows` | Flow screens that look up and save answers while a customer fills them in - see [Live Flows](https://docs.theavoxai.com/flows/live-endpoint). | 30 seconds | | Builder API | `builder_api` | Managing tables, Flows, templates and automations from your own code - see [Builder API](https://docs.theavoxai.com/avox-api/builder). | 30 seconds | | Connected apps | `connected_apps` | Payments, calendars, sheets, stores and CRMs you link to Avox on **Apps** in the dashboard - see [Apps](https://docs.theavoxai.com/connections/apps). | 60 seconds | What each one watches, in plain words: - **Tables** - a quick look at the tables themselves, whether row changes waiting for your automations are being picked up (none left waiting for more than a few minutes), and whether the background work that sends date reminders, and the daily clean-up, ran on time. - **Live Flows** - of the requests WhatsApp sent to the Avox endpoint in the last 15 minutes, how many Avox couldn't answer properly or answered too slowly, and whether the work that frees expired booking holds ran on time. - **Builder API** - of the builder API calls in the last 15 minutes, how many Avox itself failed, and whether its daily clean-up ran. - **Connected apps** - Avox's own side only: whether it can reach the apps you connected, and whether the work that keeps their access fresh ran on time. No app is ever called by the check. How these are judged: - **Only Avox's own problems count.** A mistake in a request, a refused key, a full table or a customer's bad input never turns a card amber. With only a few requests in the last 15 minutes, traffic says nothing either way. - **Connected apps never turns red because of an app.** One app being down is that app's problem, so the card turns amber only when calls to two or more different apps fail at once - the sign that Avox's way out is struggling. Avox never depends on an app. - **Grey "No data" for a feature that isn't set up yet.** Until a feature is switched on, its card shows a grey **No data**. That isn't saved into the history (its bars stay grey), doesn't count against the overall status, and isn't counted in **Services up**. - When the database is down, every card in this section shows it too. ### Meta / WhatsApp Under the Avox services, a second group, **Meta / WhatsApp**, shows the side of WhatsApp that Meta runs: "Run by Meta. Every WhatsApp message goes through these, so when they struggle messages can be slow even though Avox itself is fine." | Service | Key | What it covers | Re-checked every | | --- | --- | --- | --- | | WhatsApp Cloud API | `meta_api` | Meta's service every WhatsApp message goes through. | 30 seconds | | Incoming messages | `meta_inbound` | WhatsApp delivering new messages and receipts to Avox on time. | 30 seconds | | Message sending | `meta_sending` | WhatsApp accepting the messages Avox sends. | 30 seconds | | Meta platform (reported by Meta) | `meta_platform` | What Meta itself says about the WhatsApp Business Platform. The card links to **Meta's status page**. | 60 seconds | How these are judged: - **Only on evidence.** A Meta service turns amber or red only when there's a clear sign of trouble - for example Meta not answering, most recent messages arriving late, or many sends failing on Meta's side. Quiet hours with little traffic leave it green. - **Never one account.** Sending problems count only when they show up across several Switchboards, so a problem with one business's own number never changes the public status. - **Meta's own report** reflects the parts of Meta's platform that Avox uses, such as the Cloud API, Coexistence, Calling, Embedded Signup and Flows. When only the Meta side has trouble, the page says so plainly: the headline reads **WhatsApp (Meta) is having issues** and the mascot says "Avox is up, WhatsApp (Meta) is having issues", so you can tell a WhatsApp slowdown apart from a problem with Avox. For your own number, Meta's quality and limits are on [Health](https://docs.theavoxai.com/health). ### How often each service is checked There are two kinds of checks: - **While the page is open**, each service is re-checked on its own schedule - every 15 to 60 seconds, as listed above and printed on each card ("Refreshes every 15s"). The busiest paths are checked most often. A card says "checking now" while its check runs, and "couldn't refresh" if a check didn't get through - the last answer stays on screen until the next one arrives. - **In the background**, every service is also checked about once a minute, all day, whether anyone has the page open or not. Those recordings build the 90-day history bars and the uptime percentages. To re-check everything at once, select **Check everything again** under the headline, or press and hold the mascot. While another browser tab is in front, the page pauses its checks; it checks again as soon as you come back. ### Colours | Colour | Label | What it means for you | | --- | --- | --- | | Green | Operational | The service is working normally. | | Amber | Degraded | It works, but some requests may be slower than usual or need a retry. | | Red | Outage | The service isn't working right now. The team is on it. | | Grey | No data | No checks were recorded for that day (or the page is still loading). A grey card means there's nothing to judge yet, for example a feature that isn't set up. | In the 90-day bars, a day turns **red** after a few minutes of outage and **amber** for any trouble at all that day. Hover or tap a bar for that day's details. Each card's uptime percentage is the share of that service's checks over the period that weren't an outage; it's never rounded up to a misleading 100%. On a phone, the bars show the last 30 days. The overall status is the worst of all the services (a grey card with no data doesn't count). An open incident the team has posted counts too, even while the automatic checks look fine: a **Minor** or **Major** incident makes the page amber and a **Critical** one makes it red. ### The mascot The mascot at the top is the same Avox Avatar you see across the dashboard, here wearing the page's status colour. Its face follows the overall status: | The mascot looks | When | | --- | --- | | Happy | Everything is operational. | | Scared | Some services are degraded. | | Sad | Part of Avox is down. | | Unsure | A check couldn't get through and the last result is being shown. | | Thinking | Everything is being re-checked right now. | Its thought bubble states the overall status in plain words, then rotates through a few friendlier ways of saying the same thing (screen readers only hear the plain status, and only when it changes). Tap the mascot for a little reaction; press and hold it to re-check every service. ### Incidents Incidents appear in two ways: - **Posted by the Avox team.** When the team is working on a problem it appears under the Live heartbeat and on the card of every service it affects. Each incident has a title, an impact - **Notice**, **Minor**, **Major** or **Critical** - the services it affects, when it started, and a status that moves through **Investigating**, **Identified**, **Monitoring** and **Resolved**, with a timestamped update at each step (newest first). Times are shown in UTC. - **Found automatically.** A run of failed background checks is recorded as an incident on its own - for example "Database degraded" - with how long it lasted and the note "found by our automatic checks". Once resolved, both kinds stay in **Past incidents** for 90 days, with how long each one lasted. A resolved posted incident keeps its updates behind **Show the update** (or **Show 3 updates**, and so on). When a posted incident and an automatic one describe the same event on the same service, only the posted one is shown. If something isn't working for you and the status page shows everything green, open a ticket from [Support](https://docs.theavoxai.com/support) or email hello@theavoxai.com - include the time it happened and, for API calls, the `request_id` from the response. ### News, maintenance and changes The status page is for live health and incidents. For everything else: - **Announcements** on theavoxai.com/announcements - product news from the Avox team, with an RSS feed and an optional email. - **Dashboard notifications** - notices such as planned maintenance appear in the dashboard's notification bell, and can also be emailed. See [Emails](https://docs.theavoxai.com/emails#reminders-and-news). - **The docs [Changelog](https://docs.theavoxai.com/changelog)** - every new feature, improvement and fix, with its own RSS feed. ### Monitoring Avox from your own tools The status page reads a public, read-only health endpoint that you can point your own uptime monitor at. It needs no key, is never cached, and every answer includes the time of the check. #### Everything at once ```bash curl -i https://status.theavoxai.com/api/health ``` ```json { "ok": true, "status": "operational", "overall": "operational", "groups": { "avox": "operational", "meta": "operational" }, "checkedAt": "2026-10-10T09:30:00.000Z", "checks": { "api": { "ok": true, "ms": 4 }, "database": { "ok": true, "ms": 38 } }, "components": [ { "id": "api", "name": "Core API", "status": "operational", "ms": 4, "checkedAt": "2026-10-10T09:30:00.000Z" }, { "id": "database", "name": "Database", "status": "operational", "ms": 38, "checkedAt": "2026-10-10T09:30:00.000Z" } ], "services": ["... the same list as components ..."] } ``` - **The HTTP status follows the core service** (the API and the database): `200` while it's up, `503` when it isn't. That makes it a drop-in check for any monitor that only looks at the status code. - `ok` and `status` describe the core service too (`status` is `operational` or `degraded`). - `overall` is the worst state across **every** service: `operational`, `degraded` or `down`. - `groups` splits that by who runs the service: `groups.avox` for Avox's own services and `groups.meta` for the [Meta / WhatsApp](#meta-whatsapp) ones. - `components` lists every service with its `id` (the key from the tables above), `name`, `status`, response time `ms` (or `null`) and `checkedAt`. A service with nothing to judge yet has the status `no_data`; it never counts toward `overall` or `groups`. `services` is the same list under the name the status page uses. (The example above is shortened to two services.) #### One service Add `?service=` to watch a single service - for example, only the Avox API if that's all your integration uses: ```bash curl https://status.theavoxai.com/api/health?service=messaging ``` ```json { "ok": true, "service": { "id": "messaging", "name": "Avox API", "status": "operational", "ms": 12, "checkedAt": "2026-10-10T09:30:00.000Z" } } ``` - The answer is always `200` for a known key. `ok` is `false` only when that service is `down`; read `service.status` to also catch `degraded` (or `no_data`, for a feature that isn't set up). - An unknown key returns `400` with `{ "error": "unknown_service" }`. - Checking too often returns `429` with `{ "error": "rate_limited" }` and a `Retry-After` header (in seconds). Once a minute per service is plenty. ```js // Alert when the Avox API is degraded or down. Run it once a minute. const res = await fetch("https://status.theavoxai.com/api/health?service=messaging"); if (res.status === 429) { const wait = Number(res.headers.get("Retry-After") ?? 60); console.log(`Checked too often - try again in ${wait}s`); } else { const { service } = await res.json(); if (service.status !== "operational") { console.warn(`${service.name} is ${service.status} (checked ${service.checkedAt})`); } } ``` ```python ### Alert when the Avox API is degraded or down. Run it once a minute. import requests res = requests.get("https://status.theavoxai.com/api/health", params={"service": "messaging"}, timeout=10) if res.status_code == 429: print(f"Checked too often - try again in {res.headers.get('Retry-After', '60')}s") else: service = res.json()["service"] if service["status"] != "operational": print(f"{service['name']} is {service['status']} (checked {service['checkedAt']})") ``` #### A summary for AI assistants The status site also has a plain-text summary written for AI assistants, at [status.theavoxai.com/llms.txt](https://status.theavoxai.com/llms.txt). It follows the common `llms.txt` format and lists the services in their groups, how the checks and the colours work, how incidents are posted and kept, and every field of the public health JSON described above, with links to the live page and this guide. Point an assistant at it when you ask "is Avox down?". ```bash curl https://status.theavoxai.com/llms.txt ``` The health endpoint tells you about Avox as a whole. To check one of your own WhatsApp numbers, use the dashboard's [Health](https://docs.theavoxai.com/health) page, and see [Reliability](https://docs.theavoxai.com/reliability) for how Avox keeps messages flowing. --- ## Reliability URL: https://docs.theavoxai.com/reliability Section: Status and reliability Every message, delivery receipt, read receipt, and account update for your WhatsApp number reaches Avox as an event from Meta. This page explains what Avox does with each one, so you know what to expect - and where to look when you want to check. You don't need to set anything up. ### Every event is received and kept When Meta sends an event, Avox: 1. **Checks it really came from Meta.** Every delivery carries Meta's signature, and Avox checks it before reading anything. Anything unsigned or altered is refused. 2. **Stores it straight away**, then confirms receipt to Meta right away. A burst of activity - a busy morning, a big campaign - never makes Meta give up on delivering to Avox. 3. **Processes it** a moment later: adding the message to your [Inbox](https://docs.theavoxai.com/inbox), updating a delivery status, recording a call, and so on. If Avox can't store an event, it doesn't confirm receipt, so Meta sends it again. ### No duplicates Meta sometimes sends the same event more than once - that's normal for WhatsApp. Avox recognises repeats and handles each one once: - The same event arriving twice is stored once. - A message is added to a conversation once, even when Meta delivers it again inside another event. - An [automation](https://docs.theavoxai.com/automation) never replies twice to the same customer message. - A **No-reply follow-up** automation checks in at most once per unanswered message, and only while nobody has replied since - not your team in the Inbox or through the API, not the WhatsApp Business app on your phone, and not another automation. A new message from the customer starts its own wait. You won't see a message twice in your Inbox or counted twice in [Analytics](https://docs.theavoxai.com/analytics). ### Order is kept Events for your account are processed in the order Avox received them, so a delivery status never overtakes the message it belongs to, and a conversation reads in the order it happened. ### Failures are retried If processing an event fails - for example during a brief outage - Avox puts it back in line and tries again automatically, up to 5 times. You can follow every event in [Logs](https://docs.theavoxai.com/logs): - **Attempts** shows how many tries an event took. - An event that still can't be processed after 5 tries is marked `failed`, with the reason in its **Error** column. A failed event is still kept, with Meta's full payload, so nothing is lost. Contact [Support](https://docs.theavoxai.com/support) with the event type and time, and Avox can look into it and process it again. ### Message forwarding keeps trying If you turn on [Message forwarding](https://docs.theavoxai.com/connections/webhook-override) for a connection, Avox sends each incoming customer message to your own endpoint. When your endpoint doesn't accept a delivery, Avox retries it for many hours before giving up on it. If your endpoint keeps failing delivery after delivery, Avox pauses forwarding for that connection and emails every Admin a **Message forwarding paused** notice. Nothing is lost either way: every message is still in your [Inbox](https://docs.theavoxai.com/inbox), and once your endpoint is working again you turn forwarding back on and resend anything you missed from the connection's delivery log. ### Your connection's heartbeat Every event Meta sends for your number also refreshes that connection's **Last active** time. That's the heartbeat you see on [Health](https://docs.theavoxai.com/health) and on each connection's card - a quick way to confirm events are flowing. ### What you can check yourself | Question | Where to look | | --- | --- | | Are events arriving for my number? | The heartbeat and **Live heartbeat** on [Health](https://docs.theavoxai.com/health). | | Did a specific event arrive, and what did it contain? | [Logs](https://docs.theavoxai.com/logs) - filter by event type and open it. | | Did anything fail? | [Logs](https://docs.theavoxai.com/logs) with the `failed` filter, and the Insights rail. | | Can my number send right now? | **Check health now** on [Health](https://docs.theavoxai.com/health). | | Is Avox itself running normally? | The [Status page](https://docs.theavoxai.com/status-page). | ### Related pages - [Meta webhooks](https://docs.theavoxai.com/whatsapp/webhooks) - every event type Avox handles. - [Coexistence sync](https://docs.theavoxai.com/connections/coexistence) - history, contacts, and phone-app messages. - [Idempotency](https://docs.theavoxai.com/avox-api/idempotency) - retrying API sends without sending twice. - [Status page](https://docs.theavoxai.com/status-page) - live status of every part of Avox, and any incident the team is working on. - Still stuck? Open a ticket in [Support](https://docs.theavoxai.com/support) or email hello@theavoxai.com. --- ## Changelog URL: https://docs.theavoxai.com/changelog Section: Updates What shipped, when - 2026-12-04 - A new Send later picker, template review reasons and Meta's library: Scheduling a message feels like setting an alarm, templates waiting for review tell you why, and Meta's template library is easier to browse. - 2026-12-04 - Notices from Avox, right where you work: Important news from Avox now shows as a slim bar at the top of your pages, stays pinned in your notifications, and the most important updates open as a page of their own. - 2026-12-04 - Verify it's you: safer sensitive actions: Important changes now ask you to confirm it's you, with an emailed code or your authenticator app. One check covers an hour of everyday changes; the most sensitive ones ask every time. - 2026-11-29 - Smoother docs and a clearer status page: Docs pages scroll smoothly with a mouse wheel and the contents list glides to each section. The status page shows only the days Avox was measured and lists real incidents, not one-off slow checks. - 2026-11-28 - WhatsApp calls in Avox: answer in your browser and call customers who said yes: Your team can answer WhatsApp calls right in the dashboard, take notes, see who is calling and call customers who allowed it. Every call is listed on the new Calls page. - 2026-11-28 - Get paid through your own PayPal, Stripe or Razorpay: Payment apps now have a setup checklist, a webhook Avox can add for you, clear payment statuses, refunds, part payments and UPI-only links, plus automations that start when a payment is paid, fails, is refunded or is disputed. - 2026-11-28 - Everything connected: see what uses what, and jump to the right place: Each number shows what runs on it, automations, templates and Flows show what they use or are used by, search finds any reference, and Open chat lands on the right number. - 2026-11-28 - Send a template from any chat in the Inbox: Pick an approved template beside the reply box, fill in its parts with a live preview and send it, even when the 24-hour window has closed. - 2026-11-28 - Automations from your apps, plus Shiprocket and Zoho Books: Start an automation when something happens in a connected app, keep night-time events for the morning, leave out people who sent STOP, and connect Shiprocket and Zoho Books. - 2026-11-28 - Smart links: one panel to edit, and your own icon on the website button: Edit every setting of a smart link in one panel that saves only what you changed, and give your website chat button one of fifteen icons or your own. - 2026-11-28 - Billing: payment updates in plain words: A new Payment updates card on Billing tells you about a payment still clearing, PayPal's next try after a failed renewal, a disputed payment and recent refunds. - 2026-11-28 - Alerts from your other Switchboards, and What's new in the header: Alerts now belong to the Switchboard you're viewing, the Switchboard switcher shows what's waiting in the others, and a sparkle button in the header shows what Avox just shipped. - 2026-11-28 - Shop: its own pages, product insights and new-order alerts: The Shop now has Overview, Products and Orders pages, a page for every product with its numbers, and an alert with a sound when an order comes in. - 2026-11-28 - Ads: fuller settings, results by country and Settings > Ads: Ads gets its own menu, results with a country map and splits by age, placement and device, a picker for your ad accounts, and a much fuller ad builder that switches on once Meta approves Avox. - 2026-11-28 - Clearer connecting, removed numbers and chat faces in the Inbox: Connecting and reconnecting a number are now short step-by-step dialogs, removed numbers can be deleted at once, and each chat's face in the Inbox shows how the chat is going. - 2026-11-28 - A faster dashboard, a smarter search, and new notifications and toasts: Pages open faster, search can now run actions, dots show where something needs you, and notifications and messages are clearer, with Undo where it makes sense. - 2026-11-13 - Clearer PayPal messages, a PayPal button that loads by itself, and pack invoices: When PayPal refuses a payment you now see a plain reason, the PayPal button loads straight away, and invoices for packs bought for your other Switchboards show on Billing. - 2026-11-13 - Security and reliability review: An end-to-end review of Avox: private numbers left out of more places, payments recorded exactly once, steadier message handling, and fixes across the dashboard and the website. - 2026-11-13 - Several numbers in one Switchboard, plan and trial controls, and the Unpaid order signal: Every part of Avox now works with more than one WhatsApp number in a Switchboard. Billing gets End trial now, Keep my plan, pay now and Pause my plan, and chat signals get Unpaid order. - 2026-11-12 - Catalogue management, shop and ads plan limits, connected automations and chat import choices: Make or link a catalogue and manage its products from Avox, plan limits for shops and ads, automations for orders and ad chats, and a choice of which old chats come in when you connect a number. - 2026-11-11 - Message menu, chat actions, private numbers and reconnecting with Meta: A full message menu and chat actions in the Inbox, private numbers for each WhatsApp number, reconnecting a number in place, new template kinds, number controls, and the first shop and ads tools. - 2026-11-10 - Every kind of media in the Inbox, live updates, and Meta's template library: The Inbox now sends and receives every kind of media and updates live. Meta's template library is browsable in Avox, the number page is redesigned, and new reminders help secure your sign-in. - 2026-11-07 - Plan limits for smart links and broadcasts, a free trial on any plan, and a safer email change: Plans now set limits for smart links, broadcasts and custom chat signals, smart link drafts are free, each plan can have its own free trial, and changing your email address asks you to confirm it's you first. - 2026-11-06 - Smart links, Broadcasts, Chat signals and Personalisation: Four big additions: smart links and QR codes that open a chat with a message ready, Broadcasts with a check before and a report after, chat signals in the Inbox, and Personalisation settings with tours. - 2026-10-25 - Safer sign-ups, a few questions before your dashboard, and newsletter confirmation: Sign-up has new protection against throwaway and automated sign-ups, new accounts answer a few short questions before the dashboard opens, and newsletter sign-ups are confirmed by email. - 2026-10-24 - See your apps' payments and meetings in Avox, a Tables library and a new Flow editor: Connected apps now have their own pages with payments, meetings, orders and contacts. Tables get a library and a smarter start, Flows a calmer editor, and Automation is now AI Automation. --- ## All Avox error codes URL: https://docs.theavoxai.com/error-codes - AVX-1001: Couldn't load your account. Try refreshing. - AVX-1101: Enter your full name (up to 120 characters). - AVX-1102: That isn't a real date. Pick your date of birth. - AVX-1103: That date is in the future. Check the year. - AVX-1104: That date is too far back. Check the year. - AVX-1105: Avox is for people aged 18 and over, so we can't set up your account. - AVX-1106: Pick one of the options. - AVX-1107: Enter your phone number with the country code, like +919876543210. - AVX-1108: Enter your business name (up to 120 characters). - AVX-1109: Couldn't save your details. Try again. - AVX-1110: Add your date of birth before starting or changing a plan. - AVX-1111: You need to be 18 or older to have an Avox plan. - AVX-1112: You can't change your date of birth to one under 18. - AVX-1113: Your date of birth can't be changed here. Contact support if it's wrong. - AVX-1114: That username is taken. Try another one. - AVX-1115: Usernames are 3 to 30 lower-case letters, numbers, dots, hyphens or underscores. - AVX-1116: That username is reserved. Pick another one. - AVX-1117: Too many tries. Wait a minute and try again. - AVX-1118: Couldn't load your details. Try refreshing. - AVX-1119: Account details can't be saved just yet. Try again later. - AVX-1120: You can't set a date of birth under 18 while your account has a plan. - AVX-1121: Couldn't check your account just now. Try again in a moment. - AVX-1122: Finish setting up your account first. - AVX-1123: A few questions are still open before we can finish setting you up. - AVX-1124: That's not your current password. - AVX-1125: That code is wrong or has run out. Check it, or send a new one. - AVX-1126: That's already your email address. Enter a different one. - AVX-1127: For your safety, sign out and sign in again, then change your email. - AVX-1128: Changing your email isn't available just now. Try again in a few minutes. - AVX-1129: Couldn't cancel that email change. Try again. - AVX-1130: Enter your date of birth to buy a plan. - AVX-1131: Enter a real date of birth. - AVX-1132: You need to be 18 or older to buy an Avox plan. - AVX-1133: Couldn't save your date of birth. Try again. - AVX-1134: Confirm you're 18 or older to create an account. - AVX-1135: Couldn't load your saved details. Fill them in below. - AVX-1136: Avox staff accounts can't buy plans. Sign in with a customer account to check out. - AVX-1137: Only a Switchboard Admin can buy a plan for it. Ask an Admin to check out. - AVX-1138: Pick a state from the list for the country you chose. - AVX-1139: That postal code doesn't match the format used in the country you chose. - AVX-1140: This PIN code is in a different state. Check the PIN code or the state. - AVX-1141: This postal code is in a different province. Check the postal code or the province. - AVX-1142: Your country is set and can't be changed here. If it's wrong, contact support and we'll update it. - AVX-1150: You can't start a free trial on this account. Pick a plan, or contact support if you think this is wrong. - AVX-1151: PayPal has your payment but is still clearing it. It switches on as soon as it clears. - AVX-1152: Your last payment didn't go through. PayPal will try again soon. Update your payment method in PayPal to fix it. - AVX-1153: A payment is disputed in PayPal. Paid features may be paused until it's settled. - AVX-1154: This payment was refunded to you. It can take a few days to show. - AVX-1160: This discount code is only for certain countries, and this payment looks like it comes from a different one. This PayPal payment wasn't taken. - AVX-1161: PayPal can't take payments for Avox right now. This isn't a problem with your PayPal account, and you haven't been charged. Please try again later. - AVX-1162: PayPal can't take this payment in this currency right now. You haven't been charged. Contact support and we'll help you pay. - AVX-1163: PayPal stopped this payment because it looked like a repeat of an earlier one. You haven't been charged twice. Reload the page and check your purchases before trying again. - AVX-1164: PayPal refused this payment. You haven't been charged. Wait a while and try again, or pay with another card or account in PayPal. - AVX-1165: PayPal couldn't allow this payment under its rules. You haven't been charged. Contact support and we'll help you find another way to pay. - AVX-1166: PayPal didn't accept the details of this payment. This is on our side, and you haven't been charged. Please try again later. - AVX-1167: PayPal declined the way you chose to pay. You haven't been charged. Try again and pick another card or bank account in PayPal. - AVX-1168: PayPal couldn't start the payment. You haven't been charged. Please try again in a few minutes. - AVX-1170: You've used every smart link your plan allows. Live, scheduled, paused and ended links count. Delete one to free a place, buy more links or move to a bigger plan. - AVX-1171: Extra smart links come with a plan. Pick a plan first, then you can add more links. - AVX-1172: Your plan already includes unlimited smart links, so there's nothing to buy. - AVX-1173: That link pack isn't on sale any more. Reload to see the current packs. - AVX-1174: Couldn't start the payment. You haven't been charged. Please try again. - AVX-1175: Your extra links weren't added. If PayPal took the money, it's refunded or the links are added automatically. Contact support if you're unsure. - AVX-1176: Couldn't load link packs. Try again. - AVX-1177: Extra smart links can't be bought just yet. Please try again later. - AVX-1190: This Switchboard is paused. Resume it to buy more. - AVX-1180: That account is already connected to another Avox account. Use a different one. - AVX-1181: Connecting and disconnecting sign-in methods isn't switched on yet. Try again later. - AVX-1182: Signing in with this provider isn't available on Avox right now. - AVX-1183: This is your only way to sign in, so it can't be disconnected. Connect another one first. - AVX-1184: Your Avox email comes from this account. Keep it, or first connect another sign-in that uses the same email. - AVX-1185: That's not your current password. - AVX-1186: That code is wrong or has run out. Check it, or send a new one. - AVX-1187: For your safety, sign out and sign in again, then disconnect it. - AVX-1188: That account didn't share an email address with Avox, so it couldn't be connected. Allow access to your email and try again. - AVX-1189: Couldn't load your sign-in methods. Try again. - AVX-1191: Your email address isn't confirmed yet, so a password can't be set. - AVX-1192: Setting a password isn't available yet. Try again later. - AVX-1193: Couldn't set your password. Try again. - AVX-1194: For your safety, sign out and sign in again, then set your password. - AVX-2001: Couldn't find your workspace. Try refreshing. - AVX-2002: Choose a plan to create a Switchboard and use Smart links, Broadcasts, Apps and the rest of Avox. - AVX-2003: That Switchboard name isn't valid. - AVX-2004: Couldn't save your Switchboard. Try again. - AVX-2005: Couldn't upload that image. Try a smaller file. - AVX-2006: Couldn't send that invite. Try again. - AVX-2007: That email is already a member. - AVX-2008: Couldn't create that Switchboard. Try again. - AVX-2009: Couldn't change that member's role. Try again. - AVX-2010: A Switchboard always needs at least one Admin. Make someone else an Admin first. - AVX-2011: Only an Admin can change roles. - AVX-2012: The person who created this Switchboard can't be made a Manager or removed by someone else. - AVX-3001: This feature needs a WhatsApp connection first. - AVX-3002: The WhatsApp connection attempt didn't go through. - AVX-3003: Payment is needed to keep this Switchboard active. - AVX-3004: Couldn't save your profile. Try again. - AVX-3005: Couldn't save your business details. Try again. - AVX-3006: Check your connection name and, if you're forwarding messages, your endpoint URL. - AVX-3007: Couldn't save your webhook configuration. Try again. - AVX-3008: We couldn't reach that webhook URL. - AVX-3009: You've used every connection your plan allows. - AVX-3010: Couldn't save your retention settings. Try again. - AVX-3011: Couldn't save your email preferences. Try again. - AVX-3012: Couldn't export your logs. Try again. - AVX-3013: Check the template name, language, and message body. - AVX-3014: You've used every template your plan allows. - AVX-3015: Connect a WhatsApp number before creating templates. - AVX-3016: Meta couldn't accept that template. Check its wording and try again. - AVX-3017: Usernames must be 3 to 35 characters: letters, numbers, periods, and underscores, with at least one letter. - AVX-3018: Meta didn't accept that username. It may be taken, protected, or not available for this number yet. - AVX-3019: Couldn't rename that connection. Try again. - AVX-3020: Couldn't pause that connection. Try again. - AVX-3021: Resuming this would put you over your plan's connection limit. - AVX-3022: Couldn't send the delete confirmation code. Try again. - AVX-3023: That code is invalid or expired. - AVX-3024: Couldn't delete that template. Try again. - AVX-5360: Something still uses this template, so it can't be deleted. Change or stop the places listed first, then delete it. - AVX-5361: Couldn't load the chats and orders from this ad. Try again. - AVX-3025: Couldn't load insights for this template right now. - AVX-3026: Couldn't refresh templates from Meta. Try again. - AVX-3027: Couldn't load Meta's template library right now. - AVX-3028: Meta couldn't accept that file - try a smaller or differently formatted one. - AVX-3029: You've reached the maximum of 10 saved drafts. Delete one to start another. - AVX-3030: Couldn't load that draft. Try again. - AVX-3031: Couldn't start a new draft from that template. Try again. - AVX-3032: Check the Flow's name, categories, and JSON. - AVX-3033: You've used every Flow your plan allows. - AVX-3034: Connect a WhatsApp number before creating Flows. - AVX-3035: Meta couldn't accept that Flow. Check its JSON and try again. - AVX-3036: Meta rejected this Flow's JSON - check the errors below. - AVX-3037: Couldn't publish that Flow. Try again. - AVX-3038: Couldn't delete that Flow. Try again. - AVX-3039: Only a Flow still in draft on Meta's side can be deleted here. - AVX-3040: This Flow template needs a live endpoint URL to work. - AVX-3041: Enter a valid HTTPS endpoint URL. - AVX-3042: Couldn't refresh Flows from Meta. Try again. - AVX-3043: You've reached the maximum of 10 saved drafts. Delete one to start another. - AVX-3044: Couldn't load that draft. Try again. - AVX-3045: Couldn't start a new draft from that template. Try again. - AVX-3046: Couldn't generate a key pair in this browser. Try again. - AVX-3047: Meta couldn't register that public key. Try again. - AVX-3048: Couldn't reach that endpoint URL. - AVX-3049: Couldn't deprecate that Flow. Try again. - AVX-3050: Couldn't load metrics for this Flow. - AVX-3051: Meta rejected that edit. Check the wording and try again. - AVX-3052: Couldn't update identity-check settings. Try again. - AVX-3053: Couldn't create that API key. Try again. - AVX-3054: Couldn't revoke that API key. Try again. - AVX-3055: Couldn't verify that key. Try again. - AVX-3056: Couldn't load recent activity for that key. - AVX-3057: Your WhatsApp number isn't connected right now. - AVX-3058: Couldn't find that contact. - AVX-3059: It's been over 24 hours since they last wrote, so WhatsApp only allows a template. When they reply, you can write freely again for 24 hours. - AVX-3060: WhatsApp couldn't send that message. Try again. - AVX-3061: You're sending too quickly - wait a moment and try again. - AVX-3062: Couldn't save that contact's name. Try again. - AVX-3063: Couldn't load your contacts. Try again. - AVX-3064: Couldn't load your call log. Try again. - AVX-3065: Couldn't send that permission request. Try again. - AVX-3066: Couldn't load this conversation. Try again. - AVX-3067: Check the automation's name, trigger, and actions. - AVX-3068: You've used every automation your plan allows. - AVX-3069: Couldn't create that automation. Try again. - AVX-3070: Couldn't save that automation. Try again. - AVX-3071: Couldn't delete that automation. Try again. - AVX-3072: Add at least one action before turning this on. - AVX-3073: You've reached the maximum of 10 saved drafts. Delete one to start another. - AVX-3074: Couldn't load that draft. Try again. - AVX-3075: Couldn't load your automation credit balance. - AVX-3076: This period's automation credits are used up - automated replies are paused until they reset. - AVX-3077: Two conditions check the exact same keywords - remove one before continuing. - AVX-3078: One of this automation's actions sends a Flow that's no longer published. - AVX-3079: Couldn't load your webhook logs. Try again. - AVX-3080: Couldn't check this connection's health with Meta right now. - AVX-3081: Couldn't save your automation credit limit. Try again. - AVX-3082: This connection is paused because this Switchboard's subscription was canceled - resolve it on the Billing page first. - AVX-3083: Couldn't load your support tickets. Try again. - AVX-3084: Check the ticket's category, subject, and message. - AVX-3085: Couldn't submit that ticket. Try again. - AVX-3086: Couldn't send that reply. Try again. - AVX-3087: Couldn't update your password. Try again. - AVX-3088: Couldn't start two-factor setup. Try again. - AVX-3089: That code didn't work. Check your authenticator app and try again. - AVX-3090: Couldn't disable two-factor authentication. Try again. - AVX-3091: Couldn't load your active devices. Try again. - AVX-3092: Couldn't sign out other sessions. Try again. - AVX-3093: Couldn't delete your account. Try again. - AVX-3094: Couldn't start that email change. Try again. - AVX-3095: Couldn't connect that account. Try again. - AVX-3096: Couldn't disconnect that account. Try again. - AVX-3097: This page isn't included on your plan - upgrade to unlock it. - AVX-3098: Couldn't load message forwarding. Try again. - AVX-3099: Couldn't save message forwarding. Try again. - AVX-3100: Couldn't create a new signing secret. Try again. - AVX-3101: Your endpoint didn't accept the test event. - AVX-3102: Couldn't load the delivery log. Try again. - AVX-3103: Couldn't resend that message. Try again. - AVX-3104: Message forwarding was paused because your endpoint kept failing. - AVX-3105: Couldn't rotate that API key. Your current key still works - try again. - AVX-3106: Couldn't load your API logs. Try again. - AVX-3107: Couldn't export your API logs. Try again. - AVX-3108: Your session ended. Sign in again, then connect your number. - AVX-3109: Choose a plan before connecting a WhatsApp number. - AVX-3110: Too many connection attempts. Wait a minute, then try again. - AVX-3111: You're not a member of this Switchboard. Refresh the page and try again. - AVX-3112: Connecting WhatsApp is unavailable right now. Try again in a few minutes. - AVX-3113: Meta couldn't finish the connection. Try again. - AVX-3114: That WhatsApp number doesn't belong to the business account you picked in Meta's window. - AVX-3115: Meta couldn't confirm which WhatsApp account you connected. Try again. - AVX-3116: Meta didn't finish setting up this number. Delete it on the Connections page, then connect it again. - AVX-3117: Set the follow-up wait to between 1 and 1380 minutes (23 hours). - AVX-3118: Couldn't delete that setup. Try again. - AVX-3119: That WhatsApp number is already connected to an Avox account. Disconnect it there first, then connect it again. - AVX-3120: That WhatsApp number is already connected to this Switchboard. Open Connections to see it. - AVX-3121: We couldn't save that connection. Try again. - AVX-3180: This WhatsApp number already had a free trial. Pick a plan to connect it. - AVX-3122: Meta's sign-in for this connection expired before it could be used. Start the connection again. - AVX-3123: This number is already being connected. Wait a moment, then check Connections. - AVX-3124: Meta didn't answer in time. Try again in a minute. - AVX-3125: Connecting WhatsApp isn't set up correctly on our side. Contact support with this code. - AVX-3126: Meta didn't give Avox access to that WhatsApp account. Start again and allow every permission Meta asks for. - AVX-3127: Your browser blocked Meta's window. Allow pop-ups for this site, then try again. - AVX-3128: Meta's window closed before the connection finished. - AVX-3129: Meta's window stopped answering. Close it if it's still open, then try again. - AVX-3130: Meta's window reported a problem and stopped. - AVX-3131: A connection is already open in another tab. Finish or close it there first. - AVX-3132: The number was saved, but Meta didn't finish registering it. Open the number and click Finish setup. - AVX-3133: This number already has a two-step verification PIN. Enter it to finish setup. - AVX-3134: The number was saved, but Meta didn't switch on its messages for Avox. Open the number and click Finish setup. - AVX-3135: Meta says this number can't be used in the WhatsApp Business app and Avox together. - AVX-3136: Couldn't finish setting up this number. Try again. - AVX-3137: Meta didn't finish handing this number over. Delete it, then connect it again. - AVX-3138: The connection dropped while finishing. Check Connections: the number may already be there. - AVX-3150: This number is on personal WhatsApp. Avox needs a WhatsApp Business app number or a new number. - AVX-3151: The verification code expired or didn't match before Meta could check it. - AVX-3152: This number is already connected to another WhatsApp provider. - AVX-3140: Couldn't load this number's Meta account details. Try again. - AVX-3141: Couldn't check with Meta right now. Try again in a minute. - AVX-3142: Your business isn't verified with Meta yet. - AVX-3143: Avox can't read your business verification status from Meta. - AVX-3160: This template is still in Meta's review. You can edit it once it's approved, rejected or paused. - AVX-3161: Only approved, rejected or paused templates can be edited. Create a new template instead. - AVX-3162: Approved templates can be edited once every 24 hours. Try again later. - AVX-3163: This approved template has used all 10 edits Meta allows in 30 days. - AVX-3164: The category of an approved template can't be changed. - AVX-3165: Nothing changed. Edit the content before resubmitting. - AVX-3166: Meta says this template has reached its edit limit for now. - AVX-3167: Meta is limiting requests right now. Wait a few minutes and try again. - AVX-3168: Your WhatsApp connection needs to be reconnected before templates can be edited. - AVX-3169: Couldn't load this template's history. Try again. - AVX-3170: Set the reply wait to between 1 and 1380 minutes (23 hours). - AVX-3171: Write the question and choose where to save the answer. - AVX-3172: An automation can pause (wait for a reply or a delay) at most 10 times. - AVX-3290: Set each delay to between 1 and 1380 minutes (23 hours). - AVX-3291: Use a public https:// link to a supported file type in each media step. - AVX-3292: Each Tags & categories step needs at least one tag or category to add or remove (up to 10 in each list). - AVX-3293: Use a public https:// URL in each Send to webhook step. - AVX-3294: Finish setting up Automation first. - AVX-3295: Agree to use Avox AI before working on automations. - AVX-3296: Couldn't save your automation setup. Try again. - AVX-3297: Couldn't load or save your Avox AI settings. Try again. - AVX-3298: An AI step was skipped because nobody who manages automations here has agreed to use Avox AI. - AVX-3299: Someone who can manage automations in this Switchboard needs to finish setting up Automation first. - AVX-3240: Couldn't send the confirmation code. Try again. - AVX-3241: That code is wrong or has expired. Check the email, or ask for a new code. - AVX-3242: Too many wrong codes. Ask for a new code and try again. - AVX-3243: Another key in this Switchboard already has that name. Pick a different name. - AVX-3244: Give the key a name between 2 and 60 characters. - AVX-3245: Choose which WhatsApp number this key sends from. - AVX-3246: Couldn't load your Switchboards and numbers. Try again. - AVX-3247: Couldn't delete this Switchboard. Try again. - AVX-3370: Couldn't leave this Switchboard. Try again. - AVX-3371: Couldn't pause this Switchboard. Try again. - AVX-3372: Couldn't resume this Switchboard. Try again. - AVX-3373: Couldn't load this Switchboard's usage. Try again. - AVX-3374: Couldn't load your recent security events. Try again. - AVX-3400: A template with that name already exists in this language. Pick a different name. - AVX-3401: This Avox template isn't written in that language. Pick one of its languages, or translate the text first. - AVX-3402: This template's header needs a sample image, video or document. Upload one before submitting. - AVX-3403: Authentication templates use Meta's one-time passcode format. Their text and buttons can't be changed. - AVX-3404: Number the variables {{1}}, {{2}} in order and give every one an example value. - AVX-3405: This premade sends a template, and this Switchboard has no approved template yet. - AVX-3406: This premade asks to call the customer. Turn on calling for a WhatsApp number first. - AVX-3407: This premade sends a Flow, and this Switchboard has no published Flow yet. - AVX-3410: This Switchboard is paused. Resume it in Settings first. - AVX-3420: Your plan has ended, so this Inbox is read-only. Renew your plan to reply again. - AVX-3421: Choose a plan to reply from the Inbox. - AVX-3422: Changing your WhatsApp username needs an active plan. Choose a plan first. - AVX-3423: Turning calling on or off needs an active plan. Choose a plan first. - AVX-3930: Calling isn't available on a number that also uses the WhatsApp Business app. Meta only allows it on numbers used with Avox alone. - AVX-3931: Meta turns calling on only once this number can message at least 2,000 people a day. It opens up as your messaging limit grows. - AVX-3932: Meta says calling can't be turned on for this number. It isn't offered in every country yet. - AVX-3933: Meta has paused calling on this number for a while. Try again later. - AVX-3934: Meta didn't change calling for this number. Try again in a few minutes. - AVX-3935: That username is taken or can't be used. Try another one, or one of Meta's suggestions. - AVX-3936: Meta gives usernames only to businesses with a higher messaging limit. It opens up as your number sends more. - AVX-3937: That username is on another number in your Meta business. Move it to this number, or remove it from the other one first. - AVX-3938: Meta didn't accept the format of that username. Use lower-case letters, numbers, dots and underscores. - AVX-3939: This number also uses the WhatsApp Business app, so Meta doesn't let Avox change its username. Set it in the WhatsApp Business app instead. - AVX-3942: A Facebook Page already uses this name. Link this number to that Page in Meta, then claim it again. - AVX-3943: An Instagram account already uses this name. Link this number to that account in Meta, then claim it again. - AVX-3944: Meta already has a different username reserved for this number. Remove that one first, or claim it instead. - AVX-3945: Meta allows 2 username changes in 14 days for each number, and this number has used them. Try again once the 14 days pass. - AVX-3946: This number isn't fully set up with WhatsApp yet, so Meta can't give it a username. Finish the setup first. - AVX-3947: Someone else is changing this number's username right now. Wait a moment and try again. - AVX-3948: This number's username changed a moment ago. Check the latest one and try again. - AVX-3949: This number needs to be connected and running before its username can change. Reconnect or resume it first. - AVX-3950: Avox just asked Meta about this. Wait a few seconds and try again. - AVX-3951: Meta didn't remove the username. Try again in a few minutes. - AVX-3952: A username can only move between numbers in the same Meta business. These two numbers are in different ones. - AVX-3940: Meta says Avox isn't allowed to change this number right now. Reconnect the number to give access again. - AVX-3941: Meta is limiting how often this can change. Wait a few minutes and try again. - AVX-3430: Replace the sample link with your own working link (it must start with https://) - AVX-3440: Meta can't take payment for this WhatsApp Business Account, so messages may not send. - AVX-3441: Meta has stopped this WhatsApp Business Account from sending until a billing problem is fixed. - AVX-3442: Couldn't check this number's payment status with Meta right now. - AVX-3445: Meta doesn't show a payment method on this WhatsApp Business Account, so paid messages won't send. - AVX-3446: Avox can't tell whether this WhatsApp Business Account has a payment method. - AVX-3443: Couldn't load Meta charges. Try again. - AVX-3444: Couldn't ask Meta for fresh figures. Try again in a few minutes. - AVX-3450: Couldn't load this Flow's log. Try again. - AVX-3451: Couldn't load this Flow's responses. Try again. - AVX-3452: Couldn't download the responses. Try again. - AVX-3453: The Flow log isn't switched on yet. Try again later. - AVX-3454: Couldn't find that response. It may have been deleted. - AVX-3455: Some answers in this Flow are never sent back, so you won't see them in Avox. - AVX-3456: Pick a date range of up to 366 days, with the start before the end. - AVX-3457: Couldn't add every answer to this Flow. Fix the JSON errors first, then try again. - AVX-3458: Only the newest 10,000 responses were downloaded. Pick a shorter date range to get the rest. - AVX-3460: Tables aren't switched on yet. Try again later. - AVX-3461: Couldn't load this table. Try again. - AVX-3462: Couldn't find that table. It may have been deleted. - AVX-3463: You've used every table your plan allows. Archived tables count too. - AVX-3464: This table has reached its plan's row limit. - AVX-3465: Couldn't create that table. Try again. - AVX-3466: Check the table's name and columns. - AVX-3467: Couldn't save your change, so it was undone. Try again. - AVX-3468: That value doesn't fit this column. - AVX-3469: Another row already has this value in a column that must be unique. - AVX-3470: Fill in every required column first. - AVX-3471: This table is archived. Restore it to make changes. - AVX-3472: Someone else changed this row a moment ago. Your change was saved over theirs. - AVX-3473: That row was deleted by someone else. - AVX-3474: A table can have up to 50 columns. - AVX-3475: Couldn't save that column. Try again. - AVX-3476: Another column already has that name. - AVX-3477: This column is used by a Flow, automation, template or formula. - AVX-3478: Some values don't fit the new type and will be emptied. - AVX-3479: That formula can't be worked out. Check the column names and brackets. - AVX-3480: This column already has repeated values, so it can't be made unique yet. - AVX-3481: Couldn't import that file. Try again. - AVX-3482: That file couldn't be read. Use a CSV or Excel (.xlsx) file. - AVX-3483: That file is too big. Import up to 10,000 rows at a time. - AVX-3484: Some rows have problems. Fix them or leave them out, then import. - AVX-3485: Couldn't download this table. Try again. - AVX-3486: You've reached the maximum of 10 saved drafts. Delete one to start another. - AVX-3487: Couldn't save your draft online. It's kept on this device. - AVX-3488: Couldn't delete that table. Try again. - AVX-3489: This table is used by Flows, automations or templates. - AVX-3490: Couldn't archive or restore that table. Try again. - AVX-3491: Couldn't copy that table. Try again. - AVX-3492: Couldn't load this table's analytics. Try again. - AVX-3493: That's more than 1,000 rows. Use Import for big pastes. - AVX-3494: You can see this table but not change it. Ask an Admin for access. - AVX-3495: Too many changes at once. Wait a moment and try again. - AVX-3496: Your browser blocked the clipboard. Use Ctrl+C and Ctrl+V instead. - AVX-3497: Couldn't load where this table is used. Try again. - AVX-3498: Subscribe to a plan to create tables. - AVX-3499: Another table already uses that API name. - AVX-3500: Couldn't load the rows. Try again. - AVX-3501: A column was deleted while you were editing. The table was reloaded. - AVX-3502: Connect a WhatsApp number to use Tables. - AVX-3503: Tables has been turned off for your account. Contact Avox support if you need it. - AVX-3504: Creating tables has been turned off for your account. Contact Avox support if you need it. - AVX-3505: Save or cancel the column you're changing first. - AVX-3506: That premade table isn't available any more. Pick another one. - AVX-3507: Avox didn't recognise those words. Pick a premade table, start from scratch, or check the columns it made. - AVX-3508: There's nothing to paste. Copy some cells first. - AVX-3520: Live data isn't switched on yet. Try again later. - AVX-3521: Couldn't set up the key for this number. Try again. - AVX-3522: Couldn't replace the key. Your live Flows keep using the old one. - AVX-3523: Connect a WhatsApp number before turning on live data. - AVX-3524: Couldn't save this Flow's live data settings. Try again. - AVX-3525: This table link isn't finished yet. - AVX-3526: A table this Flow uses changed. Check the screens marked in red. - AVX-3527: Couldn't load real rows for the preview. Try again. - AVX-3528: Couldn't load your tables. Try again. - AVX-3529: The Flow JSON and its table links don't match yet. - AVX-3530: Enter your server's public address, starting with https://. - AVX-3531: Couldn't make a signing secret. Try again. - AVX-3532: Couldn't switch where this Flow's live data comes from. Try again. - AVX-3533: Meta doesn't let a published Flow change where it gets live data. Make a new version. - AVX-3534: Couldn't load the live request log. Try again. - AVX-3535: This number uses your own key, so Avox can't answer its live Flows. - AVX-3536: Avox's endpoint can't be reached by Meta from here yet. - AVX-3537: Connect the tables this Flow needs before publishing. - AVX-3538: Couldn't make that table. Try again. - AVX-3539: This change needs a new version of the Flow. - AVX-3540: This Switchboard used every live request its plan allows this month. - AVX-3541: Too many live requests at once, so some were asked to try again. - AVX-3542: The Switchboard is paused, so live Flows show a paused message. - AVX-3543: Meta's request couldn't be unlocked with this number's key. - AVX-3544: A request didn't carry Meta's signature, so it was refused. - AVX-3545: That Flow message is no longer valid. - AVX-3546: This Flow is deprecated, deleted or no longer live. - AVX-3547: A step took too long, so the customer was asked to try again. - AVX-3548: A table this Flow uses changed, so a step couldn't run. - AVX-3549: The table is archived, so the Flow couldn't save to it. - AVX-3550: The answers didn't fit the table's columns, so nothing was saved. - AVX-3551: The table is full for this plan, so nothing was saved. - AVX-3552: The slot or seat was full, so the customer was asked to pick another. - AVX-3553: The hold ran out and the place was taken before the customer confirmed. - AVX-3555: Your server didn't answer in time or answered with an error. - AVX-3556: Your server's answer wasn't in the shape Avox expects. - AVX-3557: Meta reported that a screen Avox sent couldn't be shown. - AVX-3558: A request couldn't be read. - AVX-3559: The WhatsApp number is disconnected. - AVX-3560: None were left (a number reached zero), so the customer was told. - AVX-3561: A calculation couldn't be worked out. - AVX-3562: This Flow was sent without its own token, so it can't book or save. - AVX-3563: Something unexpected went wrong. The customer was asked to try again. - AVX-3564: This change affects every live Flow on this number. Confirm to go ahead. - AVX-3565: Couldn't save your changes. They're still here, so try again. - AVX-3566: This Flow JSON is too big to save. Make it smaller and try again. - AVX-3567: Couldn't load this Flow's JSON. Try again. - AVX-3568: Avox doesn't have this Flow's JSON yet, and Meta didn't send it. - AVX-3569: This Flow is published, so Meta won't let its JSON change. Create a new Flow to make changes. - AVX-3570: Meta didn't take this Flow JSON, so nothing was saved. Check the problems and try again. - AVX-3571: This Flow changed somewhere else while you were editing. Reload to see the newest version. - AVX-3572: Creating and changing Flows is switched off for this account. - AVX-3573: This premade Flow needs a table you don't have yet, and making tables needs the Manage tables permission. - AVX-3580: Run logs aren't switched on yet. Try again later. - AVX-3581: Couldn't load this automation's runs. Try again. - AVX-3582: Couldn't find that run. It may have been removed. - AVX-3583: Couldn't download the runs. Try again. - AVX-3584: Pick a date range of up to 366 days, with the start before the end. - AVX-3585: Couldn't load this automation's credit usage. Try again. - AVX-3586: Couldn't load this template's log. Try again. - AVX-3587: Couldn't download the template log. Try again. - AVX-3588: The template log isn't switched on yet. Try again later. - AVX-3589: This automation uses a table that was deleted or archived. Pick another table. - AVX-3590: A step uses a table column that was deleted or changed type. Pick the column again. - AVX-3591: Finish every table step: pick a table, the row and the columns. - AVX-3592: Finish the trigger: pick a table and what should start the automation. - AVX-3593: Pick a date column, when to send and a time zone for this reminder. - AVX-3594: A message uses a value that doesn't exist here. Check the {{...}} names. - AVX-3595: Fill in every variable of this template, or give it a fallback. - AVX-3596: This step needs an app that isn't connected. Connect it on the Apps page first. - AVX-3597: Finish the app step: pick what to do and fill in the required details. - AVX-3598: Pick a number column and an amount, and keep the lowest value below the highest. - AVX-3599: Pick the Flow whose answers start this automation. - AVX-3600: A table step couldn't save its row. - AVX-3601: The row was deleted before the step ran. - AVX-3602: The table is archived or deleted, so the step couldn't use it. - AVX-3603: The table is full for your plan, so the row wasn't added. - AVX-3604: The number would go past its lowest or highest value, so the run stopped. - AVX-3605: The app refused the request or couldn't be reached. - AVX-3606: A message needed a value the run didn't have, so it wasn't sent. - AVX-3607: The row has no contact or phone number, so no message could be sent. - AVX-3608: The 24-hour window was closed, so only a template could be sent. - AVX-3609: The template isn't approved by Meta right now, so it wasn't sent. - AVX-3610: Automation credits ran out, so the run stopped. - AVX-3611: This Switchboard is paused, so the run didn't start. - AVX-3612: Started by another automation's change too many times in a row, so it stopped to avoid a loop. - AVX-3613: WhatsApp refused a message, so the run stopped. - AVX-3614: No connected WhatsApp number could send this. - AVX-3615: The run reached its limit of steps and stopped. - AVX-3616: The automation was changed or turned off while this run was waiting, so it ended. - AVX-3617: There's no active plan, so the run didn't start. - AVX-3618: Saved, but couldn't record which tables this automation uses. Save again. - AVX-3619: No row matched, so the run stopped. - AVX-3620: Couldn't change this key's permissions. Try again. - AVX-3621: You can only give a key permissions you have yourself in this Switchboard. - AVX-3622: Key permissions beyond sending aren't switched on yet. Try again later. - AVX-3623: Give the key at least one permission. - AVX-3624: Couldn't load this key's usage. Try again. - AVX-3625: That key is revoked or expired, so its permissions can't change. Create a new key instead. - AVX-3626: Nothing changed. Pick different permissions first. - AVX-3680: Couldn't load your apps. Try again. - AVX-3681: Apps aren't switched on for Avox yet. Try again later. - AVX-3682: This app isn't available yet. It's coming soon. - AVX-3683: You've connected every app your plan allows. Disconnect one or change your plan. - AVX-3684: This app is already connected. Reconnect it from its page instead. - AVX-3685: Couldn't connect this app. Try again. - AVX-3686: The app didn't accept those details. Check them and try again. - AVX-3687: The sign-in was cancelled in the app, so nothing was connected. - AVX-3688: That sign-in took too long or was already used. Start again. - AVX-3689: That sign-in was started by someone else, or you're signed out. Sign in to Avox and start again. - AVX-3690: Some permissions weren't allowed, so parts of this app won't work. Reconnect and allow everything Avox asks for. - AVX-3691: This app isn't connected. - AVX-3692: This app needs reconnecting. Its access was removed or has run out. - AVX-3693: The app didn't pass the test. Check the details below and try again. - AVX-3694: The app isn't answering right now. Try again in a few minutes. - AVX-3695: The app asked Avox to slow down. Try again in a minute. - AVX-3696: Couldn't disconnect this app. Try again. - AVX-3697: Disconnected in Avox, but the app couldn't be told. Remove Avox's access in the app's own settings too. - AVX-3698: Couldn't load this app's log. Try again. - AVX-3699: Couldn't load this app's usage. Try again. - AVX-3700: Couldn't load this app's webhooks. Try again. - AVX-3701: Pick a date range of up to 90 days, with the start before the end. - AVX-3702: Enter your store's address. It must start with https:// and be reachable from the internet. - AVX-3703: That's a different account from the one connected before. Disconnect first to switch accounts. - AVX-3704: This app can't do that. - AVX-3705: Some details for this action are missing or not valid. - AVX-3706: Subscribe to a plan to connect apps. - AVX-3707: You don't have permission to manage apps in this Switchboard. Ask an Admin for access. - AVX-3708: This app is used by tables, Flows or automations. Disconnecting stops those steps until you connect it again. - AVX-3709: Add the webhook secret from the app so Avox can check every update really came from it. - AVX-3710: Couldn't find that log entry. It may have been removed after your retention period. - AVX-3711: This Switchboard is paused, so Avox won't call your apps. Resume it in Settings first. - AVX-3712: Enter your Shopify store's address, like your-store.myshopify.com. - AVX-3713: The app refused the request. Open the log entry to see what it said. - AVX-3714: Connected apps has been turned off for your account. Contact Avox support if you need it. - AVX-3715: Couldn't load this list. Try again. - AVX-3716: Couldn't find that one. It may have been deleted in the app, or removed from Avox after your retention period. - AVX-3717: The app couldn't be read just now, so this shows only what Avox saved. Try again in a few minutes. - AVX-3718: Couldn't do that in the app. Try again. - AVX-3719: A refund can't be more than what's left to refund on this payment. - AVX-3720: Only a paid payment can be refunded. - AVX-3721: This can't be cancelled now. It may already be paid, finished or cancelled. - AVX-3722: Pick a new start time in the future, up to a year ahead. - AVX-3723: Type the amount exactly as shown to confirm. - AVX-3724: That page of results has gone out of date. Start again from the first page. - AVX-3725: Avox can only read this app's data, so this can't be changed from Avox. Change it in the app itself. - AVX-3726: The contact behind this was deleted, so there's no chat to open. - AVX-3727: This token is missing a permission Avox needs. Make a token with every required scope and paste it again. - AVX-3728: Couldn't open that base. Check its ID and that the token has access to it. - AVX-3729: Couldn't find that table in the base. Check its name or ID. - AVX-3730: A field named in this step isn't in the table. Check the field names. - AVX-3731: A value doesn't fit its field (a number, a date, a checkbox or one of the field's options). Check the value. - AVX-3732: The filter formula isn't valid. Try it in Airtable first, then paste it again. - AVX-3733: Airtable takes at most 10 records at a time. Split them into smaller batches. - AVX-3734: That record isn't in the table any more, or the ID is wrong. - AVX-3735: A file must be a public https link Airtable can download. - AVX-3736: Pick a base for this step, or set a default base for the app. - AVX-3737: Your plan in the app has reached a limit (records or calls). Raise it in the app, or try again next month. - AVX-3738: Pick 1 to 3 fields to match records on, and fill them in every record. - AVX-3739: This app isn't available for your account. Contact Avox support if you need it. - AVX-3740: Avox couldn't add the webhook for you. Check the key's permissions, or add it by hand with the steps shown. - AVX-3741: Couldn't find that shipment. Check the AWB number or order ID. - AVX-3742: A return can be made only for a delivered order. Check the order's status first. - AVX-3743: That GSTIN isn't valid. It has 15 letters and digits, like 29ABCDE1234F1Z5. - AVX-3744: This invoice can't take a payment now. It may be a draft, void or already paid. - AVX-3745: A payment can't be more than what's still due on the invoice. - AVX-3746: Avox couldn't find an organization in Zoho Books. Set one up there, then reconnect. - AVX-3800: Smart links aren't switched on yet. Try again later. - AVX-3801: Couldn't load your smart links. Try again. - AVX-3802: Couldn't find that smart link. It may have been deleted. - AVX-3803: Check the link's details and try again. - AVX-3804: Couldn't save your smart link. Try again. - AVX-3805: That address is already in use. Try another ending. - AVX-3806: That word is kept for Avox. Pick another one. - AVX-3807: Use 3 to 40 lowercase letters, numbers and hyphens. - AVX-3808: Confirm the new address first. - AVX-3809: Connect a WhatsApp number to use smart links. - AVX-3810: Pick one of this Switchboard's WhatsApp numbers. - AVX-3811: Pick what the link sends again. - AVX-3812: Pick the tag that counts as a conversion again. - AVX-3813: That folder couldn't be found. Pick another one. - AVX-3814: Another folder already has that name. - AVX-3815: A Switchboard can have up to 100 folders. - AVX-3817: Avox paused this link. Contact Avox support to switch it back on. - AVX-3818: Smart links have been turned off for your account. Contact Avox support if you need them. - AVX-3819: Creating smart links has been turned off for your account. Contact Avox support if you need it. - AVX-3820: Too many changes at once. Wait a moment and try again. - AVX-3821: Couldn't load this link's analytics. Try again. - AVX-3822: Couldn't load the chats from this link. Try again. - AVX-3823: Check the start and end dates. - AVX-3824: Pick the smart link that starts this automation, or any link. - AVX-3826: Something still uses this link, so it can't be deleted. Remove it from the places listed first, then delete it. - AVX-3827: Couldn't save your answer on that possible match. Try again. - AVX-3828: Only a possible match that nobody has answered yet can be confirmed or dismissed. - AVX-3835: You can keep up to 5 smart link drafts. Finish or delete one to start another. - AVX-3840: Saved designs and the brand kit aren't switched on yet. Try again later. - AVX-3841: A Switchboard can keep up to 20 saved designs. Delete one to save another. - AVX-3842: That design is too big to save, usually because of a large logo. Use a smaller image. - AVX-3843: That saved design couldn't be found. It may have been deleted. - AVX-3844: Couldn't load your saved designs and brand kit. Try again. - AVX-3845: Couldn't save that. Try again. - AVX-3850: Broadcasts aren't switched on yet. Try again later. - AVX-3851: Couldn't load your broadcasts. Try again. - AVX-3852: Couldn't find that broadcast. It may have been deleted. - AVX-3853: Check the broadcast's details and try again. - AVX-3854: Couldn't save your broadcast. Try again. - AVX-3855: Connect a WhatsApp number to send broadcasts. - AVX-3856: Pick one of this Switchboard's WhatsApp numbers. - AVX-3857: Pick an approved Marketing template from the list. - AVX-3858: Broadcasts use Marketing templates only. Pick a Marketing template. - AVX-3859: This template isn't approved by Meta right now, so it can't be sent. - AVX-3860: Fill in every variable of the template, or give a fallback. - AVX-3861: A tag, category or contact in the list no longer exists. Pick them again. - AVX-3862: Nobody in this list can get the broadcast. Change who it goes to. - AVX-3863: A broadcast can go to at most 100,000 contacts. Narrow the list. - AVX-3864: Only drafts can be changed. Copy this broadcast to make a new one. - AVX-3865: Confirm the sentence exactly as shown before sending. - AVX-3866: The numbers changed since you checked. Look at the new check, then send again. - AVX-3867: Pick a time in the future, at most 60 days ahead. - AVX-3868: You've used all the broadcasts your plan allows this month. A broadcast counts once it starts sending, and ones already scheduled for this month are held for it. Change your plan or wait until next month. - AVX-3869: There's no active plan, so broadcasts can't be sent. Choose a plan first. - AVX-3870: Broadcasts have been turned off for your account. Contact Avox support if you need them. - AVX-3871: Creating broadcasts has been turned off for your account. Contact Avox support if you need it. - AVX-3872: Too many changes at once. Wait a moment and try again. - AVX-3873: Only a scheduled or sending broadcast can be paused. - AVX-3874: Only a paused broadcast can be resumed. - AVX-3875: This broadcast has already finished or been stopped. - AVX-3876: Avox paused this broadcast. Contact Avox support to switch it back on. - AVX-3877: Couldn't load this broadcast's report. Try again. - AVX-3878: Couldn't load who this broadcast went to. Try again. - AVX-3879: Couldn't check this broadcast. Try again. - AVX-3880: Avox paused this broadcast because your number's quality dropped. - AVX-3881: Avox paused this broadcast because too many messages failed. - AVX-3882: Avox paused this broadcast because WhatsApp limited or refused messages from your number. - AVX-3883: Avox paused this broadcast because the template isn't approved by Meta right now. - AVX-3884: The WhatsApp number isn't connected, so the broadcast can't send. - AVX-3885: Your number has reached how many people it can message in 24 hours. The rest goes out as soon as it can. - AVX-3886: Sending is paused by Avox for a short while. The broadcast carries on by itself once it's back. - AVX-3887: This Switchboard is paused, so the broadcast waits until it's resumed. - AVX-3888: The Unsubscribed tag can't be renamed, recoloured or deleted. - AVX-3889: Couldn't export this list. Try again. - AVX-3890: Pick the tag that counts as a conversion again. - AVX-3891: Pick one of this Switchboard's smart links. - AVX-3892: Use a pace from 1 to 1,000 messages a minute. - AVX-3893: Avox stopped this broadcast. Contact Avox support if you have questions. - AVX-3894: You can keep up to 10 broadcast drafts. Send or delete one to start another. - AVX-3896: A broadcast this automation listens for was deleted. Pick the broadcasts again, or any broadcast. - AVX-3900: Chat signals aren't switched on yet. Try again later. - AVX-3901: Couldn't load your chat signals. Try again. - AVX-3902: Couldn't find that signal. It may have been deleted. - AVX-3903: Check the signal's details and try again. - AVX-3904: Couldn't save your signal. Try again. - AVX-3905: Built-in signals can be switched off or edited, but not deleted or given other kinds of rules. - AVX-3906: Pick the people to tell again. Someone may have left the team or lost Inbox access. - AVX-3907: Pick the tag again. It may have been deleted. - AVX-3908: Pick the table and its columns again. One of them may have changed. - AVX-3909: Pick the smart link again, or choose any link. - AVX-3910: That pack isn't available. Reload to see the current packs. - AVX-3911: Every signal in this pack is already here. - AVX-3912: Chat signals have been turned off for your account. Contact Avox support if you need them. - AVX-3913: Too many changes at once. Wait a moment and try again. - AVX-3914: Couldn't clear that signal. Try again. - AVX-3915: That signal was already cleared. - AVX-3916: Couldn't load wait times. Try again. - AVX-3917: A Switchboard can have up to 100 chat signals. Delete one you don't use first. - AVX-3918: The list changed while you were sorting it. Reload and try again. - AVX-3919: Couldn't load signal counts. Try again. - AVX-3920: Add at least one word or phrase, each up to 60 characters. - AVX-3921: Check the opening hours: pick a time zone, at least one day, and different opening and closing times. - AVX-3922: Add at least one rule for when the signal appears. - AVX-3923: Your plan has no room for more custom chat signals. Delete one or move to a bigger plan. - AVX-3924: This pack needs more places than your plan has free. Delete some custom signals or move to a bigger plan. - AVX-3925: Subscribe to a plan to add your own chat signals. - AVX-3926: A chat signal this automation listens for was deleted. Pick the signals again, or any signal. - AVX-3927: Only the built-in Unpaid order signal can follow unpaid orders. Change that signal instead of adding the rule here. - AVX-3928: The Unpaid order signal clears by itself when the order is paid or cancelled, so it can't clear on a reply. Use the time limit or clear it by hand. - AVX-3960: A template with this name was deleted recently, and Meta keeps the name blocked for up to 4 weeks. Pick a different name. - AVX-3961: Part of this template is longer than Meta allows. Shorten the header, body, footer or a button label. - AVX-3962: The message can't start or end with a variable. Add some words before or after it. - AVX-3963: The message has too many variables for its length. Add more words or use fewer variables. - AVX-3964: Meta couldn't accept how part of this template is written. Check its variables, emoji, formatting and line breaks. - AVX-3965: This WhatsApp account has reached Meta's limit on templates: 250 while the business isn't verified, 6,000 once it is. Delete templates you no longer use, or verify the business, then try again. - AVX-3966: Add your own website link or phone number for this template's buttons. - AVX-3969: Pick a message validity period that fits this template's category. - AVX-3970: Remove the stray { or }. Curly brackets can only be used in pairs around a variable, like {{1}}. - AVX-3971: Sending a code? Use the One-time passcode type. Meta rejects Utility and Marketing templates that send sign-in or verification codes. - AVX-3972: This wording is the same as another template on this WhatsApp account. Change the wording or use that template. - AVX-3973: Meta lets one WhatsApp account create 100 templates an hour, and this account has reached it. Try again in an hour. - AVX-3974: A sample value can't contain curly brackets, tabs, line breaks or 4 spaces in a row. - AVX-3967: Meta no longer offers this library template. Pick another one. - AVX-3968: Couldn't load this template's languages. Try again. - AVX-3975: An automation started by an opt-out can't send marketing templates. Pick a utility template or another step. - AVX-3976: This person stopped marketing messages, so the marketing template wasn't sent. - AVX-3977: Meta hasn't approved this WhatsApp Business Account, so broadcasts can't start. Check the number's page for what to do. - AVX-3978: Meta has disabled or restricted this WhatsApp Business Account, so broadcasts can't start. Check the number's page for what to do. - AVX-3979: WhatsApp event settings aren't available just yet. Try again later. - AVX-3980: Couldn't save your WhatsApp event settings. Try again. - AVX-3981: Couldn't load opt-outs and ad conversions. Try again. - AVX-3990: Meta only allows bringing in contacts and old chats within 24 hours of connecting a number. To try again, disconnect the number and connect it again. - AVX-3991: Contacts or old chats were already asked for. Meta allows it only once per connection. - AVX-3992: Only a number that also uses the WhatsApp Business app on a phone can bring in contacts and old chats. - AVX-3993: Meta didn't take the request this time. Try again in a few minutes. - AVX-3994: Meta refused the request to bring in contacts or old chats. - AVX-3995: This number was refreshed less than an hour ago. Try again later. - AVX-3996: Couldn't refresh this number. Try again. - AVX-3997: Bringing in chats isn't available just yet. Try again later. - AVX-3998: Couldn't load this number's contacts and chats details. Try again. - AVX-4001: That page moved, got renamed, or never existed. - AVX-4002: Something broke. That's on us, not you. - AVX-4010: Payments are paused for a short while, so nothing was charged and your plan hasn't changed. Please try again in a little while. The Avox status page shows when payments are back. - AVX-4011: Sending email is paused for a short while, so this email wasn't sent. Reminders and notices wait and go out once it's back. Please try again in a little while. The Avox status page shows when email is back. - AVX-4012: Sending WhatsApp messages is paused for a short while, so this message wasn't sent and nothing was used up. Messages from your customers still arrive. Please send it again in a little while. The Avox status page shows when sending is back. - AVX-4013: Connected apps are paused for a short while, so the app wasn't contacted. Your connections are kept. Please try again in a little while. The Avox status page shows when apps are back. - AVX-4014: The Avox API is paused for a short while, so nothing was done. Wait the number of seconds in the Retry-After header, then try again. The Avox status page shows when it's back. - AVX-4015: New sign-ups are paused for a short while, so no account was made. Please try again in a little while. If you already have an account, you can sign in as usual. The Avox status page shows when sign-ups are back. - AVX-4016: Smart links are paused for a short while, so nothing was changed. Your links and their counts are kept. Please try again in a little while. The Avox status page shows when smart links are back. - AVX-4017: Broadcasts are paused for a short while, so nothing was sent and nothing was used up. Broadcasts already sending wait and carry on by themselves once it's back. Please try again in a little while. The Avox status page shows when broadcasts are back. - AVX-4100: That file is too large to send on WhatsApp. - AVX-4101: WhatsApp can't send that type of file. - AVX-4102: Couldn't upload that file. Check your connection and try again. - AVX-4103: WhatsApp didn't accept that file. Try again, or try a different file. - AVX-4104: Files, locations and contact cards can only be sent within 24 hours of the customer's last message. Send a template to reopen the chat. - AVX-4105: Media storage for this Switchboard is full, so the file wasn't sent. - AVX-4106: This file is no longer available from WhatsApp. - AVX-4107: Couldn't ask WhatsApp for this file again. Try again in a moment. - AVX-4108: This recording couldn't be turned into a WhatsApp voice message. Try recording again. - AVX-4109: Stickers must be 512 x 512 WebP images, at most 100 KB (500 KB if animated). - AVX-4110: Enter a latitude between -90 and 90 and a longitude between -180 and 180. - AVX-4111: Add a name and at least one phone number with its country code. - AVX-4112: Couldn't add this contact. Try again. - AVX-4113: This browser recorded the video in a format WhatsApp doesn't accept (it needs MP4). Record it on your phone, or try another browser. - AVX-4114: Sending files isn't switched on for your account yet. Try again later. - AVX-4115: Couldn't load your templates. Try again. - AVX-4116: This person asked not to get marketing messages (they stopped them in WhatsApp, or they have the Unsubscribed tag), so a Marketing template can't be sent to them. Utility templates still can. - AVX-4117: Fill in every part of the template, then send it again. - AVX-4118: This kind of template can't be sent from a chat. Send it from a broadcast or an automation. - AVX-4119: WhatsApp didn't accept this template. Check the values and try again. - AVX-4120: You can't rename contacts in this Switchboard. Ask an Admin for the Edit contacts permission. - AVX-4121: Couldn't find this contact. It may have been deleted. - AVX-4122: Too many changes at once. Wait a minute and try again. - AVX-4123: Use plain text for the name, up to 120 characters. - AVX-4124: Couldn't put the old name back. Try again. - AVX-4170: WhatsApp allows 1 call request a day and 2 a week to each customer. Try again later. - AVX-4171: This customer already allows your calls, so there's nothing to ask. - AVX-4172: Couldn't look up that number. Try again. - AVX-4173: There's no chat with this number yet. WhatsApp needs an approved template to start one. - AVX-4200: Private numbers aren't switched on yet. Try again later. - AVX-4201: That isn't a phone number we can read. Add the country code, like +44 7700 900123. - AVX-4202: That's this Switchboard's own WhatsApp number, so it can't be private. - AVX-4203: A WhatsApp number can have up to 2,000 private numbers. Remove some you don't need first. - AVX-4204: Couldn't load your private numbers. Try again. - AVX-4205: Couldn't save that. Try again. - AVX-4206: Those numbers aren't private any more. - AVX-4207: Too many changes at once. Wait a minute and try again. - AVX-4300: Chat actions aren't switched on yet. Try again later. - AVX-4301: You can pin up to 5 chats. Unpin one to pin another. - AVX-4302: Couldn't change that chat. Try again. - AVX-4303: Archiving is for people who can reply in the Inbox. Ask an Admin for access. - AVX-4304: Couldn't clear this chat. Nothing was changed. Try again. - AVX-4305: Clearing chats isn't switched on yet. Try again later. - AVX-4306: Couldn't delete that contact. Try again. - AVX-4307: Only people with the Delete contacts permission can do this. Ask an Admin for access. - AVX-4308: That doesn't match. Type it exactly as shown to confirm. - AVX-4309: You can delete up to 50 contacts at once. Pick fewer and try again. - AVX-4310: Too many changes at once. Wait a minute and try again. - AVX-4311: That chat or contact couldn't be found. It may have been deleted. - AVX-4312: Deleting contacts isn't switched on yet. Try again later. - AVX-4313: Couldn't load those chats. Try again. - AVX-4340: Couldn't load this contact's activity. Try again. - AVX-4360: Couldn't send that reaction. Try again. - AVX-4361: WhatsApp doesn't take a reaction to this message. - AVX-4362: The message you're replying to isn't in this chat any more. Remove the quote and try again. - AVX-4363: Couldn't delete that. Nothing was changed. Try again. - AVX-4364: It's too late to undo this delete. - AVX-4365: Deleting and starring messages isn't switched on yet. Try again later. - AVX-4366: Couldn't change the star. Try again. - AVX-4367: Couldn't forward that message. Try again. - AVX-4368: Avox doesn't keep a copy of this file, so it can't be forwarded. - AVX-4369: That message isn't available to forward any more. - AVX-4370: Couldn't save that note. Try again. - AVX-4371: Couldn't load this chat's notes. Try again. - AVX-4372: That message isn't in this chat any more, or it's too far back to open here. - AVX-4373: Couldn't load starred messages. Try again. - AVX-4374: Couldn't copy. Your browser didn't allow it. - AVX-4375: Couldn't save that as a quick reply. Try again. - AVX-4530: Check the message: something is missing or longer than WhatsApp allows. - AVX-4531: Address requests work only between an Indian business number and an Indian customer. - AVX-4532: This Flow isn't published right now. Publish it in Flows, then send it. - AVX-4533: Avox couldn't send this message. Check it and try again. - AVX-4573: Welcome and away messages aren't available yet. Try again later. - AVX-4574: Couldn't load your welcome and away messages. Try again. - AVX-4575: Couldn't save your welcome and away messages. Try again. - AVX-4576: These messages were changed somewhere else. We loaded the latest version. Check it and save again. - AVX-4577: Your plan has no room for another automation that's on. Turn one off in Automation, or change your plan. - AVX-4578: This Switchboard is paused, so nothing can be turned on. Resume it in Settings first. - AVX-4579: Write the message customers get. - AVX-4580: Keep the message under 4,096 characters, or 1,024 with a picture. - AVX-4581: Enter a link to a JPG or PNG picture that starts with https://. - AVX-4582: Pick at least one day you're open. - AVX-4583: Opening and closing times can't be the same. - AVX-4584: One of the chosen WhatsApp numbers isn't in this Switchboard any more. Pick your numbers again. - AVX-4585: Too many changes at once. Wait a minute and try again. - AVX-4586: Connect a WhatsApp number first. Welcome and away messages are sent from your numbers. - AVX-4587: This message was changed in the Automation builder. Saving here replaces its steps with this message. - AVX-4588: Pick a time zone from the list. - AVX-4589: Check the message and its settings, then save again. - AVX-4560: Couldn't go to that date. Try again. - AVX-4561: There are no messages on that day. Showing the nearest one. - AVX-4562: This chat has no messages to go to yet. - AVX-4563: Couldn't load newer messages. Try again. - AVX-4565: Starter replies can't be added yet. Try again later. - AVX-4566: Couldn't add the starter replies. Try again. - AVX-4567: You've saved 100 quick replies, the most you can. Delete one to add another. - AVX-4568: Some starters weren't added because you already use their shortcuts. Rename yours and add them again. - AVX-4569: This reply was changed in another tab or window. We loaded the latest version. Check it and save again. - AVX-4570: Use only {{contact.first_name}}, {{contact.name}} or {{business.name}} as values in a saved reply. - AVX-4571: Some details in this reply aren't known for this chat. Check the message before you send it. - AVX-4572: Too many changes at once. Wait a minute and try again. - AVX-4440: Couldn't load this template's analytics. Try again. - AVX-4441: Meta's template analytics aren't turned on for this WhatsApp account yet. - AVX-4442: Meta doesn't offer template analytics for this WhatsApp account. - AVX-4443: Meta didn't turn template analytics on. Try again in a few minutes. - AVX-4444: Meta stopped accepting this WhatsApp connection. Reconnect WhatsApp to see template analytics. - AVX-4445: Connect a WhatsApp number to see Meta's template analytics. - AVX-4446: Call permission requests need a number used with Avox alone. Meta doesn't allow calling on a number that also uses the WhatsApp Business app. - AVX-4447: Check the carousel cards: each one needs its file, and every card needs the same parts. - AVX-4448: Check the offer: up to 16 characters of offer text, a sample code of up to 15 characters, and a body of up to 600 characters. - AVX-4449: Fill in the template's extra values: the coupon code, when the offer ends, the cards or the products. - AVX-4450: The offer's end time had passed or was too far away, so the template wasn't sent. - AVX-4451: No product catalog is connected to this WhatsApp account, so the product template wasn't sent. - AVX-4452: Template analytics aren't switched on in Avox yet. Try again later. - AVX-4453: Meta asked Avox to slow down. Try again in a few minutes. - AVX-4920: Only a Switchboard Admin can turn on template analytics. - AVX-4590: WhatsApp groups are paused for a short while, so nothing was changed or sent. Please try again in a little while. The Avox status page shows when they're back. - AVX-4591: This number can't have WhatsApp groups. Meta offers groups only to numbers used with Avox alone that have an official business account. - AVX-4592: This group's WhatsApp number isn't connected right now. Reconnect or resume it first. - AVX-4593: That group isn't in this Switchboard any more. - AVX-4594: Give the group a name of up to 128 characters. - AVX-4595: The group description can be up to 2,048 characters. - AVX-4596: The group photo has to be a square JPEG picture, at least 192 by 192 pixels and up to 5 MB. - AVX-4597: This group has the most people Meta allows (8). Remove someone before anyone else can join. - AVX-4598: Meta has suspended this group for breaking WhatsApp's rules, so it can't be used. - AVX-4599: Meta is limiting how many group changes this number can make. Wait a few minutes and try again. - AVX-4600: This number has made the most groups Meta allows. Delete groups you don't use first. - AVX-4601: Meta has paused new groups on this number for a while, because of how many marketing messages it sent recently. Try again in a few days. - AVX-4602: Meta says this number can't use groups. Groups need an official business account on a number used with Avox alone. - AVX-4603: That person isn't in the group any more. - AVX-4604: That request to join isn't waiting any more. It may have been answered or withdrawn. - AVX-4605: WhatsApp groups take text, photos, videos, audio, documents and text or media templates only. Buttons, lists, locations and calls can't be sent to a group. - AVX-4606: WhatsApp couldn't send that to the group. Try again. - AVX-4607: Meta didn't make that change to the group. Try again in a few minutes. - AVX-4608: Couldn't load groups. Try again. - AVX-4609: Couldn't save that. Try again. - AVX-4610: WhatsApp groups aren't switched on in Avox yet. Try again later. - AVX-4611: This group was deleted, so nothing more can be sent or changed in it. - AVX-4612: Nobody else has joined this group yet. Share the invite link first, then send. - AVX-4613: This Switchboard is paused. Resume it in Settings first. - AVX-4614: Creating and changing WhatsApp groups needs an active plan. - AVX-4615: Meta says Avox isn't allowed to manage groups for this number right now. Reconnect the number to give access again. - AVX-4616: This group is still being set up or changed. Wait a moment and try again. - AVX-4617: Meta allows only text and media templates without buttons in groups. Sign-in code templates can't be sent to a group. - AVX-4618: Meta has paused registration tries for this number for 72 hours, after too many. Finish setup again once that time has passed. - AVX-4619: Meta needs this number confirmed with the code it sends before it can be registered. Connect the number again and enter the newest code. - AVX-4640: That's a different number. To add it, use Add number. - AVX-4643: Meta removed this number's account, so it can't be reconnected. Delete it, then connect it again with Add number. - AVX-4644: This number never finished connecting. Delete it, then connect it again with Add number. - AVX-4646: Reconnecting didn't finish. Your number keeps its current access. Try again. - AVX-4647: Reconnected, but Meta didn't confirm message updates for this number. Use Check with Meta, or reconnect again. - AVX-4648: Couldn't load this number's Meta permissions. Try again. - AVX-4649: Checked a moment ago. Try again in a minute. - AVX-4650: That number isn't in this Switchboard any more. - AVX-4651: This number is still connected to a business platform in the WhatsApp Business app. If you just disconnected it, wait a few more minutes, then try again. - AVX-4652: This number was deleted from this Switchboard. You can connect it again with Add number once it's removed for good. - AVX-4653: Meta's window didn't say which number was connected, so nothing was changed. Click Connect again and finish every step. - AVX-4654: Couldn't delete this number for good. Try again. - AVX-4655: That removed number couldn't be found. It may already be deleted for good. - AVX-4656: This number was connected again, so it wasn't deleted. - AVX-4657: Couldn't load where this number lives at Meta. Try again. - AVX-4658: Couldn't check with Meta right now. The last known details still show. Try again in a minute. - AVX-4400: Shop isn't switched on yet. Try again later. - AVX-4401: Shop is paused for a short while, so nothing was sent or changed. Please try again in a little while. - AVX-4402: Couldn't load your shop. Try again. - AVX-4403: Couldn't save that. Nothing was changed. Try again. - AVX-4404: That order or product couldn't be found. It may have been deleted. - AVX-4405: Connect a WhatsApp number first. - AVX-4406: No Meta catalogue is linked to this WhatsApp number yet. Link one in WhatsApp Manager, then refresh here. - AVX-4407: Meta hasn't given Avox access to your catalogue or payments yet. Reconnect the number and allow every permission Meta asks for. If it still shows, Avox is waiting on Meta's approval. - AVX-4408: Meta is limiting requests for this number right now. Wait a few minutes and try again. - AVX-4409: Meta no longer accepts Avox's access to this number. Reconnect it on the Connections page. - AVX-4410: Meta doesn't allow this on a number that also uses the WhatsApp Business app. Manage the catalogue in the app, or use a number connected to Avox alone. - AVX-4411: The 24-hour window is closed, so product and payment messages can't be sent. They can go once the customer messages you. - AVX-4412: A product can't be sent right now: it was deleted, is still getting ready at WhatsApp, or Meta rejected it. Pick again. - AVX-4413: A message can show up to 30 products in up to 10 sections. - AVX-4414: Something in this form isn't right. Check the highlighted fields. - AVX-4415: WhatsApp didn't send that message. Try again. - AVX-4416: Payments in WhatsApp work only on Indian WhatsApp numbers (+91). - AVX-4417: This number has no payment setup yet. Add one in WhatsApp Manager under Payment configurations, then refresh here. - AVX-4418: That payment setup isn't ready. Finish connecting and testing it in WhatsApp Manager first. - AVX-4419: The total must be more than zero. Check the prices, tax, shipping and discount. - AVX-4420: UPI payments are capped at ₹5,00,000. Split the order into smaller ones. - AVX-4421: This order can't move to that status from where it is now. - AVX-4422: A paid order can't be cancelled in WhatsApp. Refund it with your payment provider first. - AVX-4423: A payment request was already sent for this order. - AVX-4424: A product sync is already running for this number. Wait a minute and try again. - AVX-4425: Too many requests. Wait a minute and try again. - AVX-4426: Shop has been turned off for your account. Contact Avox support if you need it. - AVX-4427: This Switchboard is paused. Resume it in Settings first. - AVX-4428: This order is already paid, delivered or cancelled, so it can't be paid again. - AVX-4429: Couldn't load products from your store app. Check the app on the Apps page. - AVX-4430: Only the first 5,000 products were synced. Search by name to find the rest in WhatsApp Manager. - AVX-4431: Couldn't check this payment with Meta. Try again in a minute. - AVX-4432: An order can have up to 50 lines, each up to 999 of one item. - AVX-4433: That contact couldn't be found. - AVX-4434: This WhatsApp number isn't connected right now. Check it on the Connections page. - AVX-4435: Someone changed this order a moment ago. It has been reloaded. - AVX-4436: This order has no WhatsApp payment request, so there's nothing to check or update in WhatsApp. - AVX-4437: You don't have permission to do this. Ask an Admin for access. - AVX-4438: Items that aren't in your catalogue need where they're made and who imports them. Fill in those fields. - AVX-4900: This payment request has waited more than a day with no payment, so it may have expired or never reached the customer. Check with Meta first. If nothing changes, use Get help and Avox support can clear it so you can ask again. - AVX-4901: A catalogue is already being made for this WhatsApp account. Wait a moment, then refresh the page. - AVX-4470: Only a Switchboard Admin can change how marketing messages are sent. - AVX-4471: Meta doesn't offer the Marketing Messages API to this WhatsApp account yet. Marketing messages keep going the normal way. - AVX-4472: Meta's terms for the Marketing Messages API aren't accepted yet. Someone with full control of the business accepts them in WhatsApp Manager > Overview, then check again. - AVX-4473: Couldn't check with Meta just now. Try again in a few minutes. - AVX-4474: Avox's access to this WhatsApp account doesn't include sending ad conversions yet. Reconnect the number to allow it. - AVX-4475: Meta didn't set up ad conversions just now. Try again in a few minutes. - AVX-4476: Set up ad conversions on the Ads page first. - AVX-4477: This chat didn't start from a click-to-WhatsApp ad, so Meta can't link it to an ad. - AVX-4478: This chat's ad click is more than 7 days old, so Meta wouldn't count it. - AVX-4479: That event was already sent for this chat today. - AVX-4480: You've marked as many ad conversions today as Avox allows. Try again tomorrow. - AVX-4481: Enter an amount of 0 or more with up to 2 decimals, and a 3-letter currency like USD. - AVX-4482: Enter your ad account id: the numbers after act_ in Ads Manager. - AVX-4483: Avox can't read this ad account. The Meta access for the chosen number doesn't include ad accounts yet. - AVX-4484: Couldn't reach Meta to check the ad account. Try again in a few minutes. - AVX-4485: Couldn't load your ad results. Try again. - AVX-4486: Couldn't save that. Try again. - AVX-4487: Ads aren't switched on for your Switchboard yet. Try again later. - AVX-4488: That WhatsApp number isn't connected to this Switchboard. - AVX-4489: This Switchboard is paused, so nothing is sent to Meta. Resume it to send ad conversions again. - AVX-4490: That chat isn't available. - AVX-4491: One of the rules isn't complete. Pick what starts it and the event to send. - AVX-4492: This needs an active plan. - AVX-4493: Too many tries. Wait a minute and try again. - AVX-4494: This chat already has as many ad conversions today as Avox allows. - AVX-4498: Sending ad conversions to Meta is paused for a short while. Your conversion was kept and goes out by itself once it's back. - AVX-4500: This number needs to be connected and running first. Reconnect or resume it. - AVX-4501: Couldn't read this from Meta. Try again in a few minutes. - AVX-4502: Meta didn't save the business profile. Try again in a few minutes. - AVX-4503: Meta didn't accept one of the profile fields. Check the email and website addresses, then try again. - AVX-4504: Someone changed this a moment ago. Check the latest version and try again. - AVX-4505: Meta took the change but still shows the old details. This number also uses the WhatsApp Business app, which can keep its own profile: change it in the app. - AVX-4506: Use a square JPG or PNG photo, at least 192 by 192 pixels and up to 5 MB. - AVX-4507: Meta didn't take the photo. Try again in a few minutes. - AVX-4508: Photo uploads aren't set up on Avox yet. Contact support. - AVX-4509: Meta doesn't allow conversation starters through Avox on a number that also uses the WhatsApp Business app. - AVX-4510: Meta doesn't give the green tick to numbers that also use the WhatsApp Business app. You can apply for Meta Verified in the app instead. - AVX-4511: Meta asks you to wait 30 days after a declined request before asking again. - AVX-4512: A request for this number is already with Meta. Wait for its answer. - AVX-4513: This number already has the green tick. - AVX-4514: Meta can't take a request for this number yet. It needs a verified business, an approved display name and two-step verification. - AVX-4515: Meta didn't take the request. Try again in a few minutes. - AVX-4516: Check the website and links: each starts with https://, and add 5 to 10 supporting links or none. - AVX-4517: Meta took the change but still shows the old conversation starters. Check again in a few minutes. - AVX-4518: This part of the number page isn't switched on yet. Try again later. - AVX-4519: Meta doesn't let Avox change this profile because the number also uses the WhatsApp Business app. Change it in the app instead. - AVX-4520: WhatsApp lets you block someone only within 24 hours of their last message to this number. - AVX-4521: This number has reached WhatsApp's limit of 64,000 blocked people. Unblock someone first. - AVX-4522: WhatsApp didn't block this person. Try again in a few minutes. - AVX-4523: WhatsApp didn't unblock this person. Try again in a few minutes. - AVX-4524: Meta doesn't let Avox block people on this number because it also uses the WhatsApp Business app. Block them in the app instead. - AVX-4525: You blocked this person on this number. Unblock them to send messages again. - AVX-4526: This person is being blocked or unblocked right now. Wait a moment and try again. - AVX-4527: WhatsApp can't block this number. It may be another business or your own number. - AVX-4528: Check the conversation starters: up to 4 ice breakers of 80 characters, up to 30 commands, and no emojis. - AVX-4529: Meta didn't save the conversation starters. Try again in a few minutes. - AVX-4660: Your plan has no room for a shop on another number. A number counts while its WhatsApp account has a catalogue linked: disconnect the catalogue in WhatsApp Manager where you don't sell and press Refresh on Shop, remove a number you don't use, or change your plan. - AVX-4661: Your plan has no room for more products. Remove products you don't sell, or change your plan. - AVX-4662: This month's orders are over your plan's limit. New orders are still saved, but order automations and payment requests wait until next month or a plan change. - AVX-4663: This month's ad conversions are over your plan's limit. New ones wait in the conversion log and aren't sent to Meta until next month or a plan change. - AVX-4664: Your plan has no room for another WhatsApp group. Delete a group you don't use, or change your plan. - AVX-4665: Your plan doesn't include WhatsApp payments. Change your plan to ask for payments in chats. - AVX-4666: Your plan doesn't include ad spend results. Change your plan to connect an ad account. - AVX-4667: Your plan doesn't include limited-time offer, carousel or multi-product templates. Change your plan to make or send them. - AVX-4668: Your plan doesn't include Meta's template analytics. Change your plan to turn them on. - AVX-4669: Your plan doesn't include the Marketing Messages API. Change your plan to send marketing messages that way. - AVX-4670: This group is over your plan's group limit, so nothing can be sent in it. Delete groups you don't use, or change your plan. - AVX-4671: Confirm you've read the warning about Meta's Marketing Messages terms before turning this on. - AVX-4700: Catalogue management isn't switched on yet. Try again later. - AVX-4701: Avox can't manage catalogues for this number yet. Reconnect with Meta and allow catalogue access when Meta asks. - AVX-4702: This WhatsApp account already has a catalogue. Meta allows one catalogue per WhatsApp account. - AVX-4703: Meta didn't create the catalogue. Nothing was changed. Try again. - AVX-4704: Meta didn't let Avox link the catalogue. Link it in WhatsApp Manager with the steps shown, then press Check link. - AVX-4705: Meta doesn't show a catalogue linked to this WhatsApp account yet. Finish the steps in WhatsApp Manager, then check again. - AVX-4708: Another product in this catalogue already uses this Content ID. - AVX-4709: Something in this product isn't right. Check the highlighted fields. - AVX-4710: Enter a price above zero in the product's currency. - AVX-4711: The sale price must be above zero and lower than the price. - AVX-4712: The link must be a full web address that starts with https://. - AVX-4713: Add a photo. Meta needs one for every product. - AVX-4714: Photos must be JPG or PNG. - AVX-4715: Photos can be up to 8 MB and 10,000 pixels a side. - AVX-4716: Photos must be at least 500 x 500 pixels. - AVX-4717: Couldn't upload that photo. Try again. - AVX-4718: That product couldn't be found. It may have been deleted. - AVX-4719: This product changed a moment ago. It has been reloaded, so check it and save again. - AVX-4720: A file can have up to 5,000 products and be up to 3 MB. - AVX-4721: Some rows have problems. Fix them in the file and check it again. - AVX-4722: The file or your catalogue changed since it was checked. Check it again before adding. - AVX-4723: The file has no products in it. - AVX-4724: The file is missing columns Avox needs. Download the example file to see them. - AVX-4725: Meta is limiting catalogue changes right now. Your changes are saved and go to Meta in a few minutes. - AVX-4726: Avox can't change this catalogue: it belongs to a business Avox can't reach. Manage it in Commerce Manager or reconnect with Meta. - AVX-4727: Pick up to 500 products at a time. - AVX-4728: A catalogue sync is already running. Wait a minute and try again. - AVX-4729: Meta doesn't let apps unlink or switch a catalogue. Use the WhatsApp Manager steps shown. - AVX-4730: Avox doesn't know which Meta business owns this number. Reconnect with Meta, then try again. - AVX-4731: That photo couldn't be read. Save it again as a JPG or PNG and upload it. - AVX-4732: That catalogue isn't one this business owns. Pick another or make a new one. - AVX-4733: Numbers for products aren't switched on yet. The product itself works as usual. - AVX-4734: Couldn't load this product's numbers. Try again. - AVX-4740: This isn't switched on yet. Try again later. - AVX-4741: Pick the order statuses again, or any status. - AVX-4742: Pick the ads or campaigns again, or any ad. - AVX-4743: Pick blocked, unblocked or both. - AVX-4744: This step works on the run's order. Start the automation from an order, or add a Create an order step before it. - AVX-4745: Pick 1 to 50 products from your catalogue, each 1 to 999 of one item. - AVX-4746: Finish the payment step: the message, what you sell and which order. - AVX-4747: Pick the status to move the order to. - AVX-4748: Only someone who may block and unblock people can save a Block or unblock step. Ask an Admin for access. - AVX-4751: Check the shop, ad and smart link parts of the audience. - AVX-4752: Never ordered can't go with the other order conditions. - AVX-4753: Shop, ad and smart link audiences aren't switched on yet. Try again later. - AVX-4754: Pick the products to send once the chat starts. - AVX-4755: Orders from this link can't be shown yet. Try again later. - AVX-4756: Only someone who may run the shop can save shop steps. Ask an Admin for access. - AVX-4757: Couldn't load this person's orders. Try again. - AVX-4758: Couldn't load your ads. Try again. - AVX-4759: Shop and block steps can't be added with an API key. Add them in the dashboard. - AVX-4760: A shop or block step couldn't finish, so the run stopped there. - AVX-4761: The run's order couldn't be found: it was deleted, or it isn't this person's. - AVX-4762: The products were priced in different currencies, so no order was made. - AVX-4763: WhatsApp allows a block only within 24 hours of the person's last message. - AVX-4764: The contact is private on this number, blocked, or was deleted. - AVX-4765: WhatsApp refused it, or didn't answer. - AVX-4766: The step couldn't be done. It will work again once the problem clears. - AVX-4780: This setting isn't switched on yet. Try again later. - AVX-4781: Add at least one number first. With an empty list, Avox would keep no chats on this number. - AVX-4782: That's the last number on the list. Turn off "Only bring in chats from these numbers" in the same step, or add another number first. - AVX-4783: Old chats were already brought in with the earlier choice, so it can't be changed now. - AVX-4784: Someone already chose for this number a moment ago. Check the choice shown now. - AVX-4785: No old chats are waiting for this number, so there's nothing to choose for them. Your lists still apply to new chats. - AVX-4786: A WhatsApp number can have up to 2,000 numbers on this list. Remove some you don't need first. - AVX-4787: A number can be on only one list of a WhatsApp number: private or allowed. - AVX-4788: Couldn't load this number's chat settings. Try again. - AVX-4789: Couldn't save that. Try again. - AVX-4850: Pick the WhatsApp number this is for. Your numbers are on different WhatsApp accounts. - AVX-4851: That WhatsApp number isn't connected right now. Pick a connected number, or reconnect it on the Connections page. - AVX-4852: None of the numbers on this WhatsApp account is connected right now, so Avox can't change it at Meta. Reconnect or resume one of them first. - AVX-4853: This template is on a different WhatsApp account from the number sending it. Make the template on this number's account too, or send from a number on the template's account. - AVX-4854: Meta hasn't approved this template, so it can't be sent yet. - AVX-4855: This Flow is on a different WhatsApp account from the number sending it. Make the Flow on this number's account too, or send from a number on the Flow's account. - AVX-4856: Some WhatsApp accounts couldn't be refreshed. The others were. - AVX-4858: Meta no longer has this on any of your connected WhatsApp accounts. Refresh the page. - AVX-4859: The WhatsApp account this is on isn't connected to this Switchboard any more. Connect one of its numbers again to change it at Meta. - AVX-4872: Pick the WhatsApp number this group is for. - AVX-4873: That WhatsApp number isn't in this Switchboard any more. Refresh the page and pick a number again. - AVX-4880: One of the chosen WhatsApp numbers isn't in this Switchboard any more. Pick the numbers again. - AVX-4881: Every WhatsApp number this automation answers on was removed. Pick the numbers it answers on again. - AVX-4882: The WhatsApp number this automation sends from was removed. Pick another number to send from. - AVX-4883: A template in this automation isn't on the WhatsApp account of any number it sends from. Pick a template from that account, or change the numbers it answers on. - AVX-4884: That WhatsApp number isn't in this Switchboard any more. Pick another number. - AVX-4885: The WhatsApp number this draft was for isn't connected now. Pick the number to make it on. - AVX-4886: Couldn't load your Flows. Close this window and try again. - AVX-4910: Copying templates isn't available yet. Try again later. - AVX-4911: This number isn't connected right now, so Avox can't make templates on its WhatsApp account. Reconnect or resume it first. - AVX-4912: Your plan doesn't have room for that many templates. Pick fewer, delete templates you don't use, or change your plan. - AVX-4913: Templates were copied a lot just now. Wait a few minutes and try again. - AVX-4914: Templates are already being copied to this WhatsApp account. Wait for that to finish, then look at the result. - AVX-4915: Pick the templates to copy again. - AVX-4916: Couldn't load your templates for copying. Try again. - AVX-4917: Copying didn't finish. Templates already sent to Meta stay. Try again for the rest. - AVX-4918: That number isn't in this Switchboard any more. Refresh the page. - AVX-4919: Copy up to 25 templates at a time. Run it again for the rest. - AVX-4810: Too many codes that didn't work. Wait 10 minutes, then try again. - AVX-4811: This price is for buyers in another country, and this payment looks like it comes from somewhere else. This PayPal payment wasn't taken. Start checkout again to see the price for your country. - AVX-4812: This plan isn't sold any more, so it can't carry on. Choose a plan before it ends. - AVX-4813: The amount changed while this page was open. Check the new amount, then try again. - AVX-4814: Your plan ends in less than 30 minutes, so there isn't time to set up its payments again. Choose a plan to carry on now. - AVX-4815: Too many payment tries in a short time. Wait 10 minutes, then try again. - AVX-4816: PayPal shows nothing owed on your plan right now. If it still shows a payment due, check your payment again. - AVX-4817: PayPal didn't take the payment. Nothing was charged. Update your payment method at PayPal, then try again. - AVX-4818: PayPal can't take this payment from here. Update your payment method at PayPal, and PayPal takes it by itself. - AVX-4819: Payments are busy right now. Wait a minute, then check your payment again before paying again. - AVX-4820: This isn't available just now. Try again later. - AVX-4821: Your free trial has already ended, so there's nothing to stop. - AVX-4822: Couldn't make that change. Nothing was changed. Try again. - AVX-4823: Your plan isn't set to end, so there's nothing to undo. - AVX-4824: This plan has already ended, so it can't be kept. Choose a plan to start again. - AVX-4825: PayPal has already stopped this plan's payments and can't restart them. To keep your plan, approve new payments at PayPal. Nothing is charged before your plan's end date. - AVX-4826: Couldn't reach PayPal to check your plan. Nothing was changed. Try again in a few minutes. - AVX-4827: A payment you just made is still being confirmed. Your trial ends by itself as soon as it goes through. - AVX-4828: Couldn't load your plan details. Try refreshing. - AVX-4829: Checked a moment ago. Try again in a minute. - AVX-4672: Your plan doesn't include creating ads in Avox. Change your plan to create click-to-WhatsApp ads here. - AVX-4673: You've launched as many ads this month as your plan allows. Ads already running keep running. Launch more next month, or change your plan. - AVX-4674: Your plan has no room for another ad audience. Delete an audience you don't use, or change your plan. - AVX-4675: Your plan doesn't include A/B tests of ads. Change your plan to compare audiences or versions of an ad. - AVX-4676: This campaign has more ad sets than your plan allows. Remove an ad set, or change your plan. - AVX-4677: This campaign makes more ads than your plan allows. Remove a version or an ad set, or change your plan. - AVX-4678: Your plan has no room for another lookalike audience. Delete a lookalike you don't use, or change your plan. - AVX-4940: Creating ads isn't switched on for your Switchboard yet. Try again later. - AVX-4941: Waiting for Meta's approval. Meta hasn't approved Avox to create ads for businesses yet, so this can't be turned on. Your ad results still work. - AVX-4942: Reconnect with Meta to allow creating ads. The Meta access for this number doesn't include managing ads and your Facebook Page yet. - AVX-4943: Connect your Meta ad account first, in Settings > Ads. - AVX-4944: Meta says this ad account can't run ads right now. Check it in Meta Business Suite. - AVX-4945: Your ad account has no payment method, so Meta won't run ads. Add one in Meta's Billing. Meta charges it, not Avox. - AVX-4946: Pick the Facebook Page the ad runs as. - AVX-4947: This Facebook Page isn't linked to the WhatsApp number you picked. Link them in the Page's settings, then check again. - AVX-4948: Avox can't use this Facebook Page for ads. Reconnect with Meta and include the Page, or pick another one. - AVX-4949: That WhatsApp number isn't connected right now. Pick a connected number. - AVX-4950: Pick the WhatsApp number the ad opens a chat with. - AVX-4951: Avox can't make ads about politics, elections, social issues or gambling. Use Meta's Ads Manager for those. - AVX-4952: Ads about housing, jobs or credit must reach everyone aged 18 to 65+, of every gender, without interests or your own audiences. - AVX-4953: That budget is below the lowest Meta takes for your ad account. Raise it and try again. - AVX-4954: Enter a budget above zero, with up to 2 decimals. - AVX-4955: Check the dates: the start can't be in the past, and the end has to come after it. - AVX-4956: Something in the ad isn't complete. Check the text and the image or video. - AVX-4957: That image or video isn't ready at Meta yet. Wait a minute and try again. - AVX-4958: That file is too big. Images can be up to 8 MB and videos up to 200 MB. - AVX-4959: Use a JPG or PNG image, or an MP4 or MOV video. - AVX-4960: Couldn't send that file to Meta. Try again in a few minutes. - AVX-4961: Meta's Custom Audience terms aren't accepted for this ad account. Someone in your business accepts them on Meta, then try again. - AVX-4962: Too few people for Meta to use. Audiences need at least 100 people. - AVX-4963: That audience isn't ready at Meta yet. Wait until it shows Ready. - AVX-4964: This audience is used by an ad or a lookalike. Remove it there first. - AVX-4965: Pick who goes in the audience. - AVX-4966: Meta refused the ad because of its advertising policies. Change the text or image and try again. - AVX-4967: Meta refused this change. Meta's reason is shown below. - AVX-4968: Meta asked Avox to slow down for this ad account. Try again in a few minutes. - AVX-4969: Meta allows 4 budget changes an hour. Try again later. - AVX-4970: That ad isn't in this Switchboard. - AVX-4971: This ad can't be changed any more. Duplicate it to make a new one. - AVX-4972: This ad is already being sent to Meta. Wait a moment, then refresh. - AVX-4973: Couldn't load your ads. Try again. - AVX-4974: Couldn't save that. Try again. - AVX-4975: Couldn't load Meta's preview just now. The ad itself isn't affected. - AVX-4976: Meta didn't give an audience size for these choices. - AVX-4977: Pick an automation that starts with "Chat started from an ad". - AVX-4978: To run on Instagram, link an Instagram account to the Page, or pick Facebook only. - AVX-4979: Avox's access to Meta for this number has run out. Reconnect the number with Meta. - AVX-4980: This Switchboard is paused. Resume it to launch or change ads. - AVX-4981: Enter a spending limit of at least one day's budget. Meta's lowest is about USD 100 or the same in your currency. - AVX-4982: One of the interests isn't one Meta offers any more. Remove it and search again. - AVX-4983: Couldn't copy this ad. Try again. - AVX-4984: Couldn't delete this at Meta just now. Try again in a few minutes. - AVX-4985: Meta didn't answer. Avox checks again by itself and shows what Meta did. - AVX-4986: Creating and changing ads is paused for a short while. Your ads keep running at Meta. Please try again in a little while. - AVX-4987: Your own audiences and lookalikes can't be used for ads about housing, jobs or credit. - AVX-4988: A lookalike needs a source audience of at least 100 people. - AVX-4989: Too many tries. Wait a minute and try again. - AVX-4990: This ad belongs to an ad account that isn't connected any more. Reconnect that ad account to change it. - AVX-4991: Running only at certain hours needs a total budget, not a daily one. - AVX-4992: This image or video is used by an ad. It can be removed once no ad uses it. - AVX-4993: Your creative library is full. Remove images or videos you don't use. - AVX-4994: Meta flagged this audience and won't let ads use it. Meta does this when a list suggests health or money details. - AVX-4995: This needs an active plan. - AVX-5000: Check the ad sets: each needs a name, who sees it and a budget that fits. - AVX-5001: Check the versions of the ad: each needs a name, its words and a picture or video. - AVX-5002: Enter the amount for the bid strategy, above zero and no more than the budget. - AVX-5003: Check the places: pick at least one, and don't pick a city or region inside a country you already picked. - AVX-5004: One of the languages isn't one Meta offers. Remove it and search again. - AVX-5005: Check the spots where the ad shows. Some spots need the Facebook feed too. - AVX-5006: An A/B test needs two or more ad sets or versions, each with the same budget. - AVX-5007: That image or video isn't in your library or your ad account any more. Pick it again. - AVX-5008: Couldn't load the ad accounts Meta lets Avox use. Try again in a few minutes. - AVX-5009: Meta hasn't shared that ad account with Avox. Reconnect with Meta and pick it, or enter another one. - AVX-5010: Couldn't load the images and videos in your ad account. Try again in a few minutes. - AVX-5011: That product has no photo. Add one in Shop, or pick another picture. - AVX-5012: Couldn't load your ad results. Try again. - AVX-5013: Pick a date range of up to a year. - AVX-5014: Avox couldn't be reached. Try again in a moment. - AVX-5035: This kind of audience isn't switched on yet. Pick another kind, or try again later. - AVX-5036: The tag, product, Chat signal, Broadcast or Smart link you picked isn't in this Switchboard any more. Pick another one. - AVX-4018: WhatsApp calling in Avox is paused for a short while, so this call wasn't placed or answered and nothing was charged. Please try again in a little while. The Avox status page shows when calling is back. - AVX-4019: Moving numbers between Switchboards is paused for a short while, so nothing was moved. Moves already running carry on. Please try again in a little while. The Avox status page shows when it's back. - AVX-5100: Calling is off for this number. Turn it on in the number's settings. - AVX-5101: This customer can't get WhatsApp calls right now (their app may need an update). - AVX-5102: WhatsApp has too many calls going on for this number. Try again in a minute. - AVX-5103: You're already on a call with this customer. - AVX-5104: WhatsApp couldn't connect the call. Try again. - AVX-5105: Too many calls in a short time. Wait a minute and try again. - AVX-5106: This customer hasn't allowed your calls. Ask them first. - AVX-5107: The call didn't connect in time. Try again. - AVX-5108: This number can't call customers without asking first. Keep asking customers for permission. - AVX-5109: You've reached WhatsApp's 100 calls a day to this customer. You can call again later. - AVX-5110: WhatsApp doesn't allow calling customers from numbers in the US, Canada, Egypt, Vietnam or Nigeria. Customers can still call you. - AVX-5111: WhatsApp has paused calling on this number for a while because of call quality. - AVX-5112: The call couldn't be set up. - AVX-5113: The call's audio couldn't reach WhatsApp. - AVX-5114: No audio came from the customer, so the call ended. - AVX-5115: Your audio stopped reaching WhatsApp, so the call ended. - AVX-5116: The call connected but no audio flowed. - AVX-5117: This number reached WhatsApp's daily limit for calls without permission. - AVX-5118: Add a payment method to this WhatsApp account in WhatsApp Manager so calls can connect. - AVX-5119: This test number can only call numbers on its recipient list in Meta's app settings. - AVX-5120: This customer's WhatsApp app is too old for calls or call requests. - AVX-5121: Another system handles calls for this number, so Avox can't. - AVX-5122: WhatsApp didn't accept this browser's call setup. Try another browser. - AVX-5130: Allow your microphone to take calls. - AVX-5131: No microphone found. Plug one in or pick one in Camera and microphone. - AVX-5132: Your microphone was unplugged. Using another one now. - AVX-5133: This browser can't make calls. Use a recent Chrome, Edge, Firefox or Safari. - AVX-5134: The call's audio couldn't connect. Your network may block calls. - AVX-5135: Someone else answered this call. - AVX-5136: This call has already ended. - AVX-5137: You're already on a call. End it first. - AVX-5138: Your plan doesn't include answering WhatsApp calls in Avox. - AVX-5139: Your plan doesn't include calling customers. - AVX-5140: This Switchboard is paused, so calls can't be made or answered. - AVX-5141: This number isn't connected, so it can't make calls. - AVX-5142: Ask to call by template: it's been over 24 hours since their last message. - AVX-5143: A note can be up to 2,000 characters. - AVX-5144: Couldn't save that note. Try again. - AVX-5145: You can only change your own notes. - AVX-5146: Couldn't answer the call. Try again if it's still ringing. - AVX-5147: Couldn't place the call. Try again. - AVX-5148: Couldn't end the call from Avox. It ends by itself within 30 seconds. - AVX-5149: Couldn't load this call. Try again. - AVX-5150: Each day can have up to 2 time ranges, opening before closing, not overlapping. - AVX-5151: Holidays must be in the future. Up to 20. - AVX-5152: Pick a time zone. - AVX-5153: The voicemail message must be an OGG (Opus) audio file under 60 seconds. - AVX-5154: Meta didn't save these call settings. Try again in a few minutes. - AVX-5155: Turn off call hours to use voicemail (WhatsApp's rule). - AVX-5156: Calls for this number ring in the WhatsApp Business app, so Avox can't take them. - AVX-5157: Calling customers is turned off for this Switchboard. An Admin can turn it on in Settings > Calls. - AVX-5158: These call settings were changed somewhere else. We loaded the latest. Check them and save again. - AVX-5159: Calling isn't switched on in Avox yet. Try again later. - AVX-5200: You need to be an Admin in both Switchboards to move a number between them. - AVX-5201: Both Switchboards must belong to the same account. Ask Avox support to move a number to someone else's account. - AVX-5202: This is the only number in this Switchboard. A Switchboard keeps at least one number. - AVX-5203: Pick a different Switchboard. - AVX-5204: This number can't move while it's being removed or connected. Finish that first. - AVX-5205: This number is paused because a payment didn't go through. Sort out the payment first. - AVX-5206: One of these Switchboards is paused. Resume it first. - AVX-5207: Your account is paused. Resume it first. - AVX-5208: One of these Switchboards is being deleted, so numbers can't move in or out. - AVX-5209: There's a call on this number right now. Try again when it ends. - AVX-5210: A broadcast is sending from this number. Wait until it finishes or pause it. - AVX-5211: An ad for this number is still being set up at Meta. Try again in a few minutes. - AVX-5212: Choose which old chats to bring in for this number first. - AVX-5213: Products are being sent to WhatsApp. Try again in a few minutes. - AVX-5214: Another number move is running in one of these Switchboards. Wait until it's done. - AVX-5215: A request to erase someone's data is in progress. Wait until it's done. - AVX-5216: A data export is being prepared. Wait until it's ready. - AVX-5217: A smart link of this number is used by something that stays in this Switchboard. Remove it there, or move that too. - AVX-5218: This number moved recently. You can move it again later. - AVX-5219: The Switchboard you picked has no room on its plan for another number. Upgrade or remove a number there first. - AVX-5220: The Switchboard you picked has no active plan. - AVX-5221: This WhatsApp number already had a free trial. Pick a plan to connect it. - AVX-5222: Your plan allows no more Switchboards. - AVX-5223: Something changed since you checked. Look at the summary again. - AVX-5224: This number is moving to another Switchboard. It's back in a minute or two. - AVX-5225: The number already moved. To bring it back, move it again. - AVX-5226: The Switchboard you picked was removed, so the move stopped. Nothing changed. - AVX-5227: A group on this number is being set up or deleted. Try again in a few minutes. - AVX-5228: This number (or person) is being moved. Try again when the move is done. - AVX-5229: Moving numbers isn't switched on in Avox yet. - AVX-5230: One of the choices isn't valid. Pick it again. - AVX-5231: This moved to another Switchboard. - AVX-5232: Live data for this Flow is answered by another of your Switchboards. Make your own copy to send it from this one. - AVX-5240: This automation starts from a payment app that isn't connected. Connect PayPal, Stripe or Razorpay on the Apps page first. - AVX-5241: Finish the payment trigger: check the app, the currency and the amounts. - AVX-5242: This automation starts from an app that isn't connected. Connect Shopify, WooCommerce, Calendly, Zoom, Shiprocket or Zoho Books on the Apps page first. - AVX-5243: Finish the app trigger: pick the app and the events it sends. - AVX-5300: Pick a time at least 1 minute from now. - AVX-5301: You can schedule up to 90 days ahead. Pick an earlier date. - AVX-5302: This chat already has 20 scheduled messages. Send or cancel one first. - AVX-5303: Your Switchboard has 1,000 scheduled messages waiting. Send or cancel some first. - AVX-5304: This message is already sending, so it can't be changed now. - AVX-5305: This scheduled message isn't here any more. It may have been sent or cancelled. - AVX-5306: Someone changed this scheduled message a moment ago. Check it and try again. - AVX-5307: Scheduling messages isn't switched on yet. Try again later. - AVX-5308: Couldn't load scheduled messages. Try again. - AVX-5309: Couldn't save that. Try again. - AVX-5310: To schedule a template with a picture, video or document, use a link to the file instead of uploading it. - AVX-5311: Not sent: the 24-hour reply window had closed. Send a template instead. - AVX-5312: Not sent: the person who scheduled it can no longer reply in this Switchboard. - AVX-5313: Not sent: the WhatsApp number wasn't connected. - AVX-5314: Not sent: the Switchboard was paused. - AVX-5315: Not sent: this person can't get messages from this number right now (blocked, private or removed). - AVX-5316: Not sent: they stopped marketing messages, so a Marketing template can't go to them. - AVX-5317: Not sent: the template isn't approved or available on this number any more. - AVX-5318: Not sent: WhatsApp didn't accept it. - AVX-5319: We couldn't confirm whether it went out. Check the chat before sending it again. - AVX-5320: Not sent: your plan's reply period had ended. - AVX-5321: Not sent: Avox had paused WhatsApp sending for a while. - AVX-5322: Not sent: WhatsApp or the connection kept failing. Try sending it now. - AVX-5323: Not sent: the template's values no longer fit it. - AVX-5324: One-time code templates can't be scheduled: a code is only good for a few minutes. Send it now instead. - AVX-5330: Type a phone number, or pick a contact. - AVX-5331: Use only digits, spaces, dashes, brackets and a + at the start. - AVX-5332: That number is too short. Check the digits and the country. - AVX-5333: That number is too long. Check the digits and the country. - AVX-5334: Add the rest of the number after the country code. - AVX-5335: That isn't a valid number for the country picked. Check the digits, or pick another country. - AVX-5336: WhatsApp doesn't allow business messages to this country or region, so Avox can't send there. - AVX-5337: That's one of this Switchboard's own WhatsApp numbers. Pick someone else. - AVX-5338: This person can't be messaged from this WhatsApp number. Pick another number, or someone else. - AVX-5339: This WhatsApp number only brings in chats from its list of numbers, and this one isn't on it, so their replies would be dropped. Add the number to that list first, or send from another number. - AVX-5340: This WhatsApp number can't send right now (it's paused, disconnected, removed or being moved). Pick another number. - AVX-5341: None of your WhatsApp numbers can send right now. Connect a number, or resume a paused one, first. - AVX-5342: You've started 30 new chats in the last hour, the most at once. Wait a while before starting more. To message many people, use a broadcast. - AVX-5343: Your chat with them is open (they messaged in the last 24 hours), so you can reply in the chat. No template needed. - AVX-5344: Messaging a new number adds it to your contacts, which needs Edit contacts. Ask a Switchboard Admin, or pick an existing contact. - AVX-5345: This is a test number, and it can only message numbers on its list. In your Meta app, open WhatsApp > API Setup and add this number (up to 5), or send from your real business number. - AVX-5346: WhatsApp couldn't deliver to this number. It may not use WhatsApp, have an old app, or not have accepted WhatsApp's terms yet. - AVX-5347: WhatsApp is limiting messages from this number right now. Wait a while and try again. Starting fewer new chats keeps your number's quality up. - AVX-5348: Meta paused or turned off this template, or it isn't approved in this language. Pick another template. - AVX-5349: Meta couldn't take payment for this WhatsApp Business account. Fix the payment method in Meta Business Suite, then try again. - AVX-5350: WhatsApp only lets an approved template start this chat. Pick a template and send it again. - AVX-5351: Avox's access to this WhatsApp number has run out or isn't finished. Reconnect the number, then try again. - AVX-5352: WhatsApp didn't accept this message. Check the number and the template, then try again. - AVX-5353: Couldn't check that just now. Try again. - AVX-5354: Meta has restricted this WhatsApp Business account for a policy, so it can't start chats. Check Meta Business Suite. - AVX-5400: Confirm you're a person to carry on. - AVX-5401: We couldn't confirm you're a person. Try the check again. - AVX-5402: The check couldn't load. Refresh the page and try again. - AVX-5403: You were signed out because this browser looked automated. Sign in again and complete the check. - AVX-5404: Access from this browser is paused for a while because it looked automated. - AVX-5410: Your free trial is being reviewed, so this isn't available yet. Everything else works as usual, or pick a plan to carry on now. - AVX-5440: This notice isn't shown to you any more. Refresh the page. - AVX-5441: This notice was withdrawn or has ended, so there's nothing to answer. Refresh the page. - AVX-5442: Tick the box to say you agree first. - AVX-5443: Read the notice to the end first. - AVX-5444: This notice can't be hidden. Read it, and press I understand if it asks. - AVX-5445: Notices can't be answered just now. Try again in a few minutes. - AVX-5446: Couldn't save your answer. Try again. - AVX-5447: Too many tries. Wait a minute and try again. - AVX-5448: This notice is answered on its own page. Refresh the page to open it. - AVX-5420: Confirm it's you to do this. - AVX-5421: That code is wrong. Check the email and try again. - AVX-5422: Too many wrong codes. Ask for a new code and try again. - AVX-5423: That code has expired. Ask for a new code. - AVX-5424: That code was already used, maybe in another tab. Ask for a new code. - AVX-5425: Wait a few seconds before asking for another code. - AVX-5426: You've asked for a lot of codes in the last hour. Wait a while, or use your authenticator app. - AVX-5427: Your account has no email address to send a code to. Use your authenticator app, or contact support. - AVX-5428: We couldn't send the code. Try again in a moment, or use your authenticator app. - AVX-5429: We can't check it's you just now, so nothing was changed. Try again in a moment. - AVX-5430: Your sign-in has ended. Sign in again, then try again. - AVX-5431: That authenticator code didn't work. Check the time on your phone and enter the newest code. - AVX-5432: There's no authenticator app on your account. Use an emailed code instead. - AVX-5433: That authenticator check took too long. Enter a new code from the app. - AVX-5434: That authenticator check was already used, maybe in another tab. Enter a new code from the app. - AVX-5435: This can't be confirmed here. Refresh the page and try again. - AVX-5436: Couldn't end your verified time. Try again. - AVX-5437: We sent you a newer code. Use the code in the latest email. - AVX-5438: Too many tries. Wait a few minutes and try again. - AVX-5439: What you're confirming isn't there any more. Refresh the page.