Skip to main content
Bluejay tests an email agent the same way it tests voice and SMS. A Digital Human sends a real email to your agent’s inbox, your agent replies, and Bluejay grades the exchange. Everything runs over real email, so you are testing the channel your customers actually use.

How it works

  1. You create an email agent and give it the inbox your agent answers from, like [email protected].
  2. When a simulation runs, the Digital Human emails that inbox from a unique per-test address on Bluejay’s sending domain, mail.bluejaysims.com.
  3. Your agent replies over email.
  4. Bluejay receives the reply, threads it back into the conversation, and keeps going until the exchange ends. Then it grades the run against your success criteria.
Each test sends from its own address, so replies always attach to the right conversation.

Create an email agent

From the Agents view, click the + to add an agent. This opens the Connect Your Agent dialog. Fill it in:
  1. Name the agent.
  2. Write its Agent Description / System Prompt.
  3. Set Agent type to Inbound.
  4. Set Mode to Email. It sits next to Voice and Text as a top-level choice.
  5. In Agent email address, enter the inbox your agent replies from. Bluejay’s Digital Humans email this inbox and grade the replies.
  6. Tick the allowlist checkbox to confirm you have allowlisted mail.bluejaysims.com in that inbox.
  7. Click Create.

Allowlist Bluejay’s sending domain

Every test email comes from mail.bluejaysims.com. Add it to the receiving inbox’s allowlist so the email is delivered instead of quarantined. The create dialog asks you to confirm this, and it matters: corporate mail systems quarantine unfamiliar senders before they reach the mailbox, so without an allowlist entry your agent never sees the test and every check fails. Consumer inboxes like Gmail and Outlook.com usually deliver without this step. If a test email does not arrive, check your admin quarantine first. The message is almost always held there, not lost.
  1. Admin console → Apps → Google Workspace → Gmail → Spam, phishing, and malware.
  2. Under Email allowlist, add an Inbound gateway or content-compliance rule that bypasses spam for mail.bluejaysims.com.
  3. Save. Delivery takes effect within a few minutes.
  1. Microsoft 365 Defender → Policies & rules → Threat policies → Anti-spam.
  2. Add mail.bluejaysims.com to the Allowed senders / domains list, or create a mail-flow rule that sets the spam confidence level to bypass for that domain.
  3. Save.

Run an email simulation

Build a simulation on the email agent, add Digital Humans, and run it. Bluejay sends each Digital Human’s opening email, drives the back-and-forth, and grades the result. Email turns take minutes rather than seconds, so runs stay open longer than voice or SMS.

Checks on every reply

Alongside your success criteria, Bluejay runs six checks on each reply from your agent. Five are pass or fail. The sixth, latency, is measured and reported. SPF, DKIM, and DMARC together tell you whether your agent’s mail authenticates cleanly. Latency is recorded so you can see how long your agent takes, but it does not pass or fail.

Outbound: your agent emails first

By default the Digital Human emails your agent first. For an outbound agent, your own system sends the first email and the Digital Human replies. This uses the same trigger-webhook model as outbound voice and SMS.
  1. Create the agent with type Outbound and set its outbound trigger webhook URL, plus an optional payload template.
  2. When a simulation runs, Bluejay does not send an opening email. It POSTs your trigger webhook so your flow knows to start the conversation.
  3. Your flow emails the Digital Human at the address Bluejay provides. The Digital Human replies and is graded from there.
The trigger payload is your template with {{tokens}} filled in. The key token for email is {{digital_human.email}}, the unique per-test address your flow must email so the reply reaches the right Digital Human, like [email protected]. Other tokens include {{digital_human.intent}}, {{digital_human.name}}, and {{sim_conversation_id}}. With no template, Bluejay sends a minimal default.

Email uptime monitors

An uptime monitor runs the same send-and-reply loop on a schedule against a live email agent, so you catch a broken channel before your customers do. On each run the Digital Human emails your agent, waits for the reply, and grades it. Email monitors grade: Monitors probe from the same mail.bluejaysims.com domain, so the inbox must allowlist it just as for simulations. Email conversations run for minutes, so pick a comfortably long interval. See Uptime Monitoring for scheduling, alerting, and verdict rules.

Set it up with the API or MCP

Email agents and runs are fully scriptable.
  • Create the agent with add-agent: mode="EMAIL", connection_type="EMAIL", and email_address set to the agent’s inbox. Over MCP this is the add_agent tool with the same fields.
  • For an outbound email agent, also set type="OUTBOUND", outbound_trigger_webhook_url, and optionally outbound_trigger_payload_template with {{digital_human.email}} so your flow receives the address to email.
  • Queue a run with queue-email-simulation-run (MCP tool queue_email_simulation_run), passing the simulation_id.
Creating the simulation, adding Digital Humans, and reading results use the same tools as any other medium.