Send a test message
Type in the message box at the bottom and send — with the send button or by pressing Enter. Your bot processes the message in real time and replies in the chat, with a typing indicator while it works. You’re not limited to text:- Send an image with the image button, to test how your bot handles media.
- Send a location to test location-based logic.
- Tap buttons and list options in your bot’s replies just as a customer would, to walk through an interactive flow.
What Preview doesn’t touch
Preview never sends a real WhatsApp message, even if your bot’s code sends with a real access token saved in your secrets. The message shows up in the phone instead of going out. It doesn’t contact your other outside services either. Calls to places like Airtable, Slack, Yoco or your own systems are faked rather than performed, so nothing is written there. That’s also why a preview run can come back empty where Paige Dev returns real records, unless you let Preview read from that system. The one exception is your bot’s AI. Calls to OpenAI or Anthropic still go out, so your bot can answer normally in Preview, and they’re billed to your own key.This applies however your bot’s code makes the call:
axios, fetch, node-fetch or the openai client. There’s one catch for AI. A call to OpenAI or Anthropic made through axios comes back empty in Preview, so use fetch or the openai client for those.Let Preview read from your own system
If your bot looks things up in another system, such as a booking system, a supervisor list or a stock API, the faked empty answer means Preview only ever shows your bot’s “not found” or error reply. You can let Preview read from that system for real in Tools → Preview APIs.1
Open Tools → Preview APIs
Find the card headed Real API reads in Preview. With no hosts added it says No hosts yet: every outside call in Preview is faked.
2
Add the host
Under Add a host, type just the host of the system, like
api.example.com, and click Add host. If you paste a full web address, Paige keeps only the host.3
Send a Preview message
From your next Preview message, your bot’s requests that read from that host (GET requests) go to the real system.
- Only reads are real. Anything that would change data there (POST, PUT, PATCH or DELETE) is still faked.
- Only that exact host. Adding
api.example.comdoesn’t coverwww.example.com; add each host you need, up to 20. - Secure addresses only. The read goes out only for an
https://address on the normal port. A redirect isn’t followed: your bot gets the redirect answer itself. - WhatsApp can never be added. WhatsApp sends from Preview are always captured, and Paige refuses any
facebook.comhost. - The automatic tests never use this list. They use made-up answers instead. See Automatic tests use made-up answers.
Only the project owner and workspace owners or admins see Preview APIs, and it isn’t offered for a bot that runs on your own server, because that bot doesn’t run in Paige’s Preview.
Automatic tests use made-up answers
On projects using Paige’s new AI engine, Paige tests your bot through the preview after a build. Those tests never read your real systems, not even hosts you added above, so they give the same result every time. Instead, each test can carry made-up answers for the outside services your bot calls (for example “this supervisor exists, named Sam”), so the test reaches your bot’s normal path rather than its error reply. Paige writes those answers itself, and its test report tells it which outside services still got an empty answer. See Tests after a build.Tap a URL button
The preview renders interactive URL buttons the same way real WhatsApp does. Tap one and the destination opens inside the phone frame in an embedded browser view:- Close returns you to the chat preview.
- Open in new tab opens the destination in a normal browser tab — useful for sites that block being embedded.
Tapping a URL button in the preview does not send a reply back to your bot. That matches real WhatsApp — only quick-reply buttons send a reply event.
Switch between test contacts
The preview simulates separate people so you can test how your bot treats different contacts. The contact selector at the top of the phone shows who you’re currently messaging as — Contact 1, Contact 2, and so on.- Open the dropdown to switch to another contact.
- Choose New Contact to add a fresh one — useful for testing a first-time greeting or a flow from the very start. You can have up to ten.
Reset a contact
To start a conversation over — say you want to re-test your welcome flow from scratch — use the reset control at the top of the phone:- Reset this contact clears the current contact’s conversation and state, so your next message is treated as their first.
- Reset all contacts wipes every preview contact back to a single default one.
Resetting clears conversation history and state. Any custom tables your bot wrote to in the preview database may need to be cleared separately.
On a phone, the preview is the other half of the Build tab — describe a change in the chat, then swipe across to try it. See Use Paige on your phone.
