day was dominated by its new Agentic workflow product, Agent Builder. It permits you to craft agentic processes by way of a simple-to-use graphical person interface. It fairly rightly garnered many of the consideration, however the different aspect of their workflow course of — deployment — obtained much less consideration.
All we had had been fleeting glances of screens and code, and there was no actual clarification of the best way to combine an agent constructed with Agent Builder into your personal or what you are promoting’s web site or utility.
That is the place OpenAI’s different agent builder instrument, Chatkit, is meant to return in. It’s simply as vital a product as their Agent builder — arguably extra so.
Why? That’s as a result of ChatKit is used to deploy any agentic course of you create utilizing the Agent builder into real-world net apps and pages.
No worries, you would possibly assume, I’ll head over and browse OpenAI’s documentation on ChatKit. Properly, good luck to you. Aside from being poorly written, it requires a substantial quantity of programming data and an understanding of GitHub and varied different technical processes.
Within the the rest of this text, I’ll define the precise course of, step-by-step, for deploying an agent constructed utilizing OpenAI’s Agent Builder onto a publicly accessible web site.
What we’ll do
This text can be your “lacking handbook” for Agent Builder deployment. We’ll first create two easy web sites, one utilizing Lovable and one utilizing HuggingFace (HF) areas and deploy them to the World Vast Internet.
After that, we’ll develop a chatbot agent utilizing OpenAI’s Agent Builder. We’ll then deploy it to our new Lovable and HF web sites utilizing the Agent Builder ChatKit.
What you’ll want
There are a number of conditions, however most of them are free to arrange.
- An OpenAI account and API key (Paid plan)
- A Vercel account (Free)
- A HuggingFace account (Free)
- A take a look at web site (FREE and/or paid)
ChatKit deployment
There are a number of steps we have to take, however none are difficult. Take your time and comply with the steps methodically, and also you’ll be high-quality.
Step 1 — Create our take a look at web sites
If you have already got a web site and you’ll edit/change the code behind it, be at liberty to make use of this.
In any other case, you need to use a instrument like lovable.dev, which can’t solely create a web site for you however may also deploy it to the net utilizing one in all its personal domains or a customized area that you just present.
Observe that the lovable hyperlink above is an affiliate hyperlink, which suggests if you happen to signal as much as a paid plan utilizing it, I get a small fee.
Right here was my immediate to Lovable,
I need a easy "Hey world" sort javascript, css, html react web page
Lovable took round 15 seconds to supply a web site, and I deployed it utilizing one in all Lovable’s personal instance domains. Here’s what it produced. I’ll put a hyperlink to the web site on the finish of the article.
For these on a good price range, a free possibility for making a webpage is to make use of HuggingFace (HF) Areas. Right here’s how to do this.
- Create an HF account and log in.
- Click on the Areas hyperlink on the high of the house web page, then click on the New Area button, additionally in direction of the highest proper of the web page.
- Fill within the house’s title, select a licence sort, and choose ‘Static’ for the SDK, ‘Clean’ for the Template, ‘CPU Primary’ for the {hardware}, and ‘Public’ for the scope.
- Click on on the Create Area button on the backside of the display while you’re prepared. You must see a display like this seem,

The URL hyperlink to your HF web site can be one thing like:
https://huggingface.co/areas/{Your_HF_username}/{your_HF_space_name}
At this level, you need to have no less than one publicly accessible web site that you could modify to combine an Agent Builder agent with. However first, we want an agent.
Step 2 — Create an OpenAI Agent Builder Chatbot agent
I received’t spend an excessive amount of on this step, as there are many tutorials and demos accessible on-line on the best way to do it. Moreover, the OpenAI group coated this half very properly at their developer day.
Nonetheless, my agent builder is so simple as it will get. It will likely be a simple chatbot containing simply two nodes: a begin node and an agent node. Actually, that’s the default setup you get if you happen to click on the Create button on the agent builder dwelling web page. The one different change I made to the agent node was to pick out GPT5-nano as my agent LLM, and I up to date the agent directions to this:
You’re a useful assistant. Inform the person an fascinating truth in regards to the proposed topic, then inform a “dad joke” in regards to the topic
Right here is an instance of the chat.
Inform me an fascinating truth about canines
Fascinating truth: Canines can "odor in stereo." They draw completely different scent
data into every nostril, serving to them find the route of an
odor in 3D house. With as much as ~300 million olfactory receptors
(people have ~6 million), some canines can detect substances at
parts-per-trillion-roughly like discovering a teaspoon of sugar in two
Olympic-sized swimming pools.
Joke: Why did the canine sit within the shade? As a result of he did not wish to
be a scorching canine!
To create your personal agent, head over to https://platform.openai.com/agent-builder. Relying on what LLM mannequin you select to make use of in your agent, you might also must cross an identification test earlier than you possibly can run any brokers, so bear that in thoughts.
NB: Pay attention to the venture title you used when creating your agent. It’s positioned close to the highest left of the Agent Builder dwelling display. We’ll want this when creating our OpenAI API key, because the venture underneath which the API secret’s made should match the venture by which your agent is constructed. I used to be engaged on all my duties underneath the Default venture.
Click on the Preview button on the high proper of the web page to make sure that your agent is working as anticipated. If you’re happy, click on the Publish button, positioned close to the highest proper of the web page. Fill within the title of your agent and click on the Publish button once more. If you do that, a pop-up will appear as if this:

You’ll want the workflow ID later, so please pay attention to it now. Additionally, discover the Clone pattern app hyperlink close to the underside of the pop-up. We’ll use that within the subsequent step.
Step 3 — Fork OpenAI’s pattern ChatKit app to your personal GitHub repo
To assist with deploying brokers utilizing ChatKit, OpenAI gives some instance starter equipment code in a GitHub repository. We have to fork that app (i.e copy it) to our personal GitHub repo and deploy it to the net.
For the deployment stage, we’ll use Vercel. Vercel is a cloud platform for deploying and internet hosting net purposes.
To fork the OpenAI app, use the Clone Pattern app hyperlink within the pop-up from Step 2. This can take you to the suitable OpenAI GitHub web page. Now, click on the Fork button on the repo. It’s simply above and to the correct of the inexperienced Code button.

You’ll be prompted to enter a reputation in your new repository, if you happen to’d like, or you possibly can depart it because the default.
Step 4 — Deploy your fork of OpenAI’s pattern ChatKit app to Vercel
For this step, you’ll want a Vercel account if you happen to don’t have already got one. It’s free to arrange and use for the restricted instance we’ll be displaying right here. Head over to https://vercel.com and create your account now.
When you’re logged in, go to the dashboard and click on the Add New->Undertaking button to begin a brand new venture. You’ll find the hyperlink to the dashboard beneath your person profile icon on the excessive high left of the web page.

The primary time round, you’ll must authorise Vercel entry rights to your GitHub account, so click on the Proceed with GitHub button. You’ll then be requested to authorise Vercel. Select to permit Vercel entry to all of your repos or simply a person repo. As soon as that’s accomplished, you’ll be capable of import your GitHub repository into Vercel. After the import is full, the ultimate stage is deployment. Nonetheless, earlier than you proceed, you must add a few surroundings variables. The hyperlink to do that is simply above the deploy button.

The surroundings variables you must add are:
OPENAI_API_KEY — This should be an API key created throughout the identical venture as your Agent Builder. To get your API key, head over to
https://platform.openai.com/api-keys
Create or reuse an API key, guaranteeing the Undertaking Identify matches the one from the Agent Builder.
NEXT_PUBLIC_CHATKIT_WORKFLOW_ID — That is the ID of the workflow you created in Agent Builder, which begins with wf_…
After that, you possibly can click on the Deploy button on Vercel. This can take a minute or two, however as soon as it’s completed, we will take a look at our chatbot. As soon as the deployment is full, return to your Vercel dashboard. Make sure you’re on the proper venture, and you need to see a button labelled Go to, which can take you to your ChatBot. Earlier than we click on on it, we’ve got another factor to do. We should let OpenAI know the area of our chatbot app on Vercel for safety causes.
Copy the Vercel area URL in your venture and return to your OpenAI agent builder venture.
Subsequent, click on the Code button close to the highest proper of the display to show the Chatkit particulars pop-up. Click on the “Add Area” button. On the mini popup display that seems, enter the Vercel area URL into the sector, after which click on the “Generate Key” button.

Now, again on Vercel, click on the “Go to” button to check your chat app. That is what mine appeared like.

Step 5—Modify our unique Lovable and HuggingFace web sites to include the brand new chatbot.
That is our ultimate step, which entails producing embed code that we will insert in our personal net pages. We obtain this by modifying the index.html file of our net utility. I acquired ChatGPT to create the code we have to inject.
You may get the area URL of your chatbot from the Vercel dashboard.
Right here is my ChatGPT dialog. Substitute my area URL with your personal.
That is the area URL of my chatbot: openai-chatkit-starter-app-blue.vercel.app
I need some deployment code to go in my web site's index.html web page within the
HEAD part that can allow me to run the chatbot on my web site
And GPT’s response was this.
Good 👌 - since your chatbot is hosted at
https://openai-chatkit-starter-app-blue.vercel.app
the cleanest strategy to embed it in your web site is to make use of an
I took the above code and manually edited the index.html file in my repository that was created by Lovable when it generated my unique net web page. I inserted the above embed code into the part of my index.html file and saved the file contents. After that, I redeployed the repo to my pretty area, and you’ll see the outcomes under. As anticipated, somewhat speech bubble icon was created within the backside right-hand nook of the web page, and once I clicked on this, the Chatbot dialogue display appeared, and I used to be capable of work together with it.
Lovable ( https://little-react-wave.lovable.app/ )

I did the same operation on my net web page on HuggingFace. You’ll be able to edit the index.html file in your HF web site by clicking the Recordsdata hyperlink in your house, then clicking the index.html file hyperlink that’s displayed.

I added the identical embed code to my HF index.html file as I did with lovable, and after committing the modifications, my new net web page appeared as follows, with the identical Chatbot icon and functionality.
Hugging Face ( https://huggingface.co/spaces/taupirho/chatkit )

Not too shabby!

