How it works
- You create an email agent and give it the inbox your agent answers from, like
[email protected]. - When a simulation runs, the Digital Human emails that inbox from a unique per-test address on Bluejay’s sending domain,
mail.bluejaysims.com. - Your agent replies over email.
- 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.
Create an email agent
From the Agents view, click the + to add an agent. This opens the Connect Your Agent dialog. Fill it in:- Name the agent.
- Write its Agent Description / System Prompt.
- Set Agent type to Inbound.
- Set Mode to Email. It sits next to Voice and Text as a top-level choice.
- In Agent email address, enter the inbox your agent replies from. Bluejay’s Digital Humans email this inbox and grade the replies.
- Tick the allowlist checkbox to confirm you have allowlisted
mail.bluejaysims.comin that inbox. - Click Create.
Allowlist Bluejay’s sending domain
Every test email comes frommail.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.
Google Workspace
Google Workspace
- Admin console → Apps → Google Workspace → Gmail → Spam, phishing, and malware.
- Under Email allowlist, add an Inbound gateway or content-compliance rule that bypasses spam for
mail.bluejaysims.com. - Save. Delivery takes effect within a few minutes.
Microsoft 365
Microsoft 365
- Microsoft 365 Defender → Policies & rules → Threat policies → Anti-spam.
- Add
mail.bluejaysims.comto the Allowed senders / domains list, or create a mail-flow rule that sets the spam confidence level to bypass for that domain. - 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.- Create the agent with type Outbound and set its outbound trigger webhook URL, plus an optional payload template.
- When a simulation runs, Bluejay does not send an opening email. It POSTs your trigger webhook so your flow knows to start the conversation.
- Your flow emails the Digital Human at the address Bluejay provides. The Digital Human replies and is graded from there.
{{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", andemail_addressset to the agent’s inbox. Over MCP this is theadd_agenttool with the same fields. - For an outbound email agent, also set
type="OUTBOUND",outbound_trigger_webhook_url, and optionallyoutbound_trigger_payload_templatewith{{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 thesimulation_id.