Setting up Agentic Inbox for Cloudflare Email Service

Cloudflare Developers| 00:07:18|Apr 20, 2026
Chapters10
Public beta of Cloudflare's email service is announced, featuring an open-source Agent-based inbox that provides a Gmail-like experience for agents, with deployment and configuration shown.

Open-source Agent-based inbox now ships with Cloudflare Email Service beta—deploy via GitHub, configure AUD and team domain, enable Cloudflare Access, and route mail to a Gmail-like inbox on Cloudflare Workers.

Summary

Cloudflare Developers walks through setting up the new Agent-based inbox that ships with Cloudflare’s public beta email service. The presenter starts from the GitHub Cloudflare/agent-based repo and uses the “Deploy to Cloudflare” button to spin up a project, optionally reusing an existing R2 bucket. After deployment, the next steps involve configuring Cloudflare Access with the AUD policy and a team domain, then updating the deploy to apply these settings. The video then guides you to onboard the domain for the email sending service, showing how DNS is automatically configured and how to set up routing rules so incoming mail to [email protected] is sent to the agent-based inbox worker. Finally, the walkthrough covers accessing the app via Cloudflare Access, signing in with a one-time code, composing messages, and witnessing AI-assisted draft replies. Throughout, the host emphasizes practical tweaks (domain choice, policy values, and DNS routing) to get a working Gmail-like experience for agents on Cloudflare’s edge network. This is all demonstrated with the real-world domain fastflare.dev and a live demo of composing, replying, and forwarding to an agent inbox. If you’re building customer support or agent-based workflows, this video shows how to bootstrap the setup, deploy, and start using the inbox today.

Key Takeaways

  • Click Deploy to Cloudflare on the Cloudflare/agent-based GitHub repo to auto-create a GitHub project and start the edge deployment.
  • Use an existing R2 bucket or let the flow provision a new one during setup.
  • Configure Cloudflare Access with a policy AUD and a team domain to restrict access to the inbox.
  • Onboard the domain (e.g., fastflare.dev) for the Cloudflare email sending service and DNS auto-configuration.
  • Create a routing rule to send incoming mail ([email protected]) to a Worker that powers the Agent-based inbox.
  • Access the app via Cloudflare Access and sign in with a one-time code to begin composing and replying.
  • The inbox can auto-draft replies, which can then be sent, edited, or discarded within the Agent-based interface.

Who Is This For?

Developers and DevOps teams evaluating Cloudflare’s new email service for agent-based workflows and customer support. This video is especially useful for those who want a hands-on deployment flow, domain onboarding, and edge-network routing in one cohesive setup.

Notable Quotes

"might have already heard the news that the Cloudflare email service is now in public beta. And this is exciting."
Opening note establishing the beta and excitement around the new service.
"open-source Agent-based inbox. Which means that you now have a full-fledged Gmail-like application for your agents."
Highlighting the core feature and its usefulness for agents.
"The first thing you want to do is head on to GitHub to this repository, which is Cloudflare/agent-based"
Starting deployment via the GitHub repo.
"This will deploy it to Cloudflare's global edge network."
Describing where the app ends up after deployment.
"I've pasted the code, I'm going to click on sign in, and I have now access to my mailbox."
Demonstrating Cloudflare Access login and mailbox access.

Questions This Video Answers

  • How do I deploy the Cloudflare Agent-based Inbox to my account from GitHub?
  • What is AUD policy in Cloudflare Access and how do I apply it to the Agent-based Inbox?
  • How do I onboard a domain for Cloudflare Email Service and configure DNS automatically?
  • How do I route incoming emails to the Agent-based Inbox using Cloudflare Workers?
  • What steps are involved to sign in and start composing in the Agent-based Inbox on Cloudflare?
Cloudflare Email ServiceAgent-based InboxCloudflare AccessAUD policyTeam DomainOnboard DomainDNS RoutingWorkersR2 bucket
Full Transcript
might have already heard the news that the Cloudflare email service is now in public beta. And this is exciting. But what is more exciting for me is that it comes with an open-source Agent-based inbox. Which means that you now have a full-fledged Gmail-like application for your agents. In this video, I'm going to show you how you can deploy to your Cloudflare account, configure it, and use it today. So, the first thing you want to do is head on to GitHub to this repository, which is Cloudflare/agent-based When you scroll down to that, there is a deploy to Cloudflare button. Just click on that, and it will take you to your Cloudflare account. Now, if you haven't logged in into your Cloudflare account, it will first ask you to sign in. Once you sign in, and if you have multiple accounts like me, it will prompt you to select an account. I'm going to go ahead with my personal account, and then it will take me to the deployment flow. For this, I am going to change the project name to demo. I already have an R2 bucket configured, so I'm going to use that. But if you don't have an R2 bucket, or you want to use a new one, the flow will automatically do that for you. Now, you need to set up the policy AUD and the team domain. We'll come to this later. And lastly, the domain you want to use for this email service. I'm going to select fastflare.dev. This is one of the domains that I have been using for a lot of the demos. Now, when I click on deploy, it is going to do a couple of things behind the scenes. The first thing it will do is create the GitHub repository in my account. This is useful if I want to go ahead and configure the app later on. So, maybe I want to change the color scheme, or add more features to the existing app, I can go ahead and do that from the source code. The next thing it does is it starts the build process. And after this build is complete, it will deploy it to Cloudflare's global edge network. Now, this might take a couple of seconds. So, I'm going to fast-forward this part of the video so that we can look at the next steps. And over here, we have our Agent-based inbox deployed. But there are still a few steps that we need to take before we start using it. So, the first thing you want to do is go to settings. Click on the three icons over here, and enable Cloudflare access. When you enable this, it will show you the AUD that you need to use, as well as your team domain. I'm going to click on dismiss, and click on the edit button over here. This is where you will be configuring the policy AUD and the team domain. Now, I'm going to enter the policy AUD that I copied earlier, and also update the team domain here. Once I enter these values, I can click on deploy, and this will deploy the new version of the application with these values. Well, this was step one. Now, there's one more step that we need to take before we start using it. And that is to enable the email sending service. To do that, in the sidebar, click on email service, go to email sending, and click on onboard domain. This is where you select the domain that you used earlier. I'm going to select fastflare.dev. I can also configure a subdomain, but for this demo, I am not using a subdomain. So, I'm going to leave fastflare.dev as it is, and click on done. This will automatically configure the DNS for us. One other thing that we need to do is set up the email routing so that we can send the incoming emails to our inbox. So, I'm going to click on my domain, and go to routing rules. I am going to create a new address, and this is going to be demo @fastflare.dev, and select an action, send it to a worker. And over here, the worker is going to be our demo Agent-based inbox. Click on save, and you have everything now configured to use the Agent-based inbox. So, let's go back to workers and pages, and access our application. The first time I try to access this, I get the Cloudflare access login page. And this is crucial. This ensures that not everyone on the internet can access this inbox. Now, I have already configured my access policy to allow only my personal email address to access this application. I'm going to enter my email address, and it will send me a code. So, let me check my inbox and get the code. I've pasted the code, I'm going to click on sign in, and I have now access to my mailbox. Let's zoom this in. Now, I can click on compose to start writing the email. Hey, this is an email coming in from the Agent-based inbox. All right, this has a bit of typos, let's just do this. This looks good. Now, I'm going to enter my email address, and a subject over here. It can be demo email, and click on send. It sends the email I can go to my inbox and check it. So, over here in my inbox, I have the email address. I can also send back a reply to my agent. This is fantastic. What more can you do? I'm going to click on send. This sends the email to our agent, and you can go to our Agent-based inbox. And over here was the email that I sent. And as you can see, it automatically drafted the reply for us. Now, I can click on send, or edit, or even discard this. So, this was a quick demo on how you can configure the Agent-based inbox with the new Cloudflare email sending service, and let your agents take care of your I have already been using this for my production applications, and I would love to know how you are using the new email sending service from Cloudflare.

Get daily recaps from
Cloudflare Developers

AI-powered summaries delivered to your inbox. Save hours every week while staying fully informed.