Recall.ai just released their new AI Meeting Agent feature. This feature means you can add an AI agent to any Google Meet, Zoom, Microsoft Teams or Webex call.
This immediately made me want to build an agent that runs on Trigger.dev and joins my meetings.
The idea I had was for an agent that sits in the background and stays quiet unless it thinks there's some news worth interrupting the meeting for.
Here's a demo of me larping as a sales rep "strategizing" about Pied Piper.
Until Erlich Bachman from Pied Piper emails me about the deal and the agent breaks in to tell me.
This might just be a fun example but I bet there are some really useful things possible from adding an agent to a meeting.
What you need
To build this yourself you will need:
- A Recall.ai account
- A Trigger.dev account
- A Resend account
- A place to host a public URL e.g. Vercel.
- Gemini or other TTS
- LLM API (we used the Vercel AI Gateway, which covers the LLM and the TTS with one key)
How it works
Recall.ai gets the agent into the meeting
Recall controls access to the meeting. It's essentially a black box we don't need to worry about. From our perspective we can join and then we receive the transcript, one sentence at a time. We provide a camera and screen feed in the form of a URL. On Trigger.dev, those sentences arrive as Recall.ai webhooks.
Trigger.dev runs the agent
Trigger.dev is where the agent runs. Since this agent is - at its core - a chat agent. A chat agent that rarely responds. We can use the chat.agent framework, which does a lot of the work for us.
We also give Trigger.dev the API key for your model. I usually use AI SDK so I have flexibility and can try out different models from different providers.
Resend gives the agent its own inbox
Resend has a product called Inboxes. You can give an agent its own inbox. When this inbox receives an email it sends a webhook to the same Trigger.dev agent as the sentences from Recall, and the agent pulls in the full email, including the body. We do this by setting the same key.
That means the Trigger.dev agent can process the email in the same context as the meeting conversation. So it knows if it's relevant.
The email arrives as an action in the same conversation, and the agent answers it as a turn.
Tools
To help with its research you can also give the Trigger.dev agent access to tools for instance CRM access. I won't cover this in much detail as I just used a fake CRM to demo it. But the sky is the limit.
The Recall.ai video feed
This might be the most surprising part of how this works.
With Recall.ai you can optionally provide two video feeds:
- 'Camera' feed: usually the person's camera, but here it's a web page, and whatever that page plays is the meeting agent's voice.
- Screen share: if you share the screen feed
The way these are controlled is that you provide a public URL to Recall.ai.
A web page works well for this agent, but Recall.ai also supports direct integrations, which can mean lower latency and less work to get your agent into the call. Here's a tutorial on building a LiveKit agent for meetings with Recall.ai.
A note on authentication
The URL has to be public, so lock the page down. In the example it sits behind Vercel Deployment Protection, and the URL Recall gets has a bypass secret in it, so the page is closed to anyone who doesn't have that URL. The URL also carries a watch token that can only read the agent's meeting session, not write to it, and it runs out after 6 hours.
Controlling what the meeting agent shows and says
So how do you control what is on the website?
Trigger receives sentences and emails. Most of the time it does nothing.
The agent doesn't actually send the page any HTML. The page subscribes to the agent, the same way a chat app shows a reply as it comes in. So the agent just answers, and the page picks it up.
When the agent answers, the page turns the text into speech with Gemini. That happens in a Next.js API route, which holds the API key.
When the agent wants to show the email, it calls a tool. The page gets the email and the CRM record as data and draws them itself. Then, as it starts speaking, it asks Recall to screenshare a second copy of the page that shows them.
So the agent decides what to show, and the page decides how it looks.
The page also listens to the meeting and waits for a short pause (I used 1.2 seconds) before it speaks, so it doesn't talk over anyone.
So that's how the whole thing works. Shout out to Recall and Resend for shipping some great features for agents to build with.
Build it yourself
If you want to build it yourself, you can copy this prompt.
Show the prompt
Build a sales intelligence meeting agent with Trigger.dev,Recall.ai and Resend.What it does: a Recall.ai meeting agent joins my Google Meet, Zoom orTeams call and listens. It stays quiet unless a new email landsin my Resend inbox, or someone in the call talks to it by name.Then it waits for a pause, gives the room a short spokenheads-up, and screenshares the email next to the customer's CRMrecord.Build it like this:1. Webhooks. In a Trigger.dev project, define two hosted webhook endpoints: "recall" with webhooks.recallai() for Recall.ai real-time transcript events, and "inbox" with webhooks.resend() for Resend inbox.email.received events. Set the signing secret on each one (Recall.ai's workspace secret, Resend's webhook secret).2. The agent. Create a chat.agent. Route both endpoints into the same session with chat.event and the same constant key. In onAction:- For a transcript sentence, add it to a running transcript. Only return chat.turn(...) when someone addresses the agent ("Hey <name>, ..." or a sentence that starts with its name). Check the previous sentence plus this one too, because the transcriber can split "Hey | <name>". Otherwise return without calling the model.- For a new inbound email, fetch its body from the Resend API (the webhook doesn't include it), add it to the conversation with chat.inject, and return chat.turn().Append the last 40 or so transcript lines to the system prompton every turn. Keep track of the Recall.ai meeting agent ID (from ameeting.start action, below, or from each transcript event'sdata.bot.id).Tools: lookup_crm (start with a stub CRM), present_lead (returnsthe email, the CRM record and the meeting agent ID, exactly as stored,nothing written by the model), draft_reply (saves a reply as adraft in the Resend inbox, never sends) and stop_sharing (stopsthe screenshare).System prompt: everything it writes is spoken aloud, plainsentences under 60 words, no jokes, reply exactly SILENT when asentence wasn't meant for it, and it can only draft emails,never send them. Set maxDuration to cover a long meeting.3. The meeting agent page. Build a Next.js page that the Recall.ai meeting agent uses as its camera. It reads a Trigger.dev watch token (chat.createWatchToken) from its URL and follows the agent's session with TriggerChatTransport in watch mode. Ignore replies that are exactly SILENT. When an answer arrives:- Turn it into speech in a Next.js API route (/api/speak) so the AI Gateway key stays on the server. Use Gemini TTS through the Vercel AI Gateway. Gemini returns raw 24 kHz PCM, so wrap it in a WAV header.- Wait until the meeting audio (from getUserMedia) has been quiet for 1.2 seconds, then play it.- At the same moment, if the turn returned a present_lead result with a meeting agent ID, call a server route (/api/share) that asks Recall.ai's output_media API to screenshare a second view of the same page (?view=screen) showing the email and CRM record.Put the page behind Vercel Deployment Protection. Add theProtection Bypass for Automation secret to the URL you giveRecall.ai (x-vercel-protection-bypass andx-vercel-set-bypass-cookie=true), and add both again to thescreenshare URL in /api/share, because Vercel strips them aftersetting a cookie.4. Joining a call. Add a Trigger.dev task, join-meeting, that takes a meetingUrl and creates a Recall.ai meeting agent with:- recording_config.transcript.provider set to recallai_streaming (mode prioritize_low_latency)- recording_config.realtime_endpoints pointing at the "recall" endpoint's URL for transcript.data- output_media.camera set to the meeting agent page's URL with the watch tokenThen send the agent a meeting.start action with the meeting agent ID.Read these first:- https://trigger.dev/docs/guides/example-projects/recall-meeting-agent- https://trigger.dev/docs/webhooks/session-routing- https://trigger.dev/docs/ai-chat/actions- https://trigger.dev/docs/webhooks/providers/recall-ai- https://trigger.dev/docs/webhooks/providers/resend- https://docs.recall.ai/docs/bot-real-time-transcription- Recall.ai's Output Media docs (a web page as the meeting agent's camera or screenshare)
Learn more
- Recall.ai meeting agent guide
- Recall.ai webhooks and Resend webhooks on Trigger.dev
- Routing webhooks into one agent session
- Trigger.dev chat agents
- Recall.ai: a web page as the meeting agent's camera or screenshare
- Recall.ai real-time transcription
- Recall.ai: building a LiveKit agent for meetings (direct integration)
- Resend Inboxes





