day was dominated by its new Agentic workflow product, Agent Builder. It means that you can craft agentic processes by way of a simple-to-use graphical person interface. It fairly rightly garnered a lot of the consideration, however the different aspect of their workflow course of — deployment — acquired much less consideration.
All we had had been fleeting glances of screens and code, and there was no actual clarification of the way to combine an agent constructed with Agent Builder into your individual or your corporation’s web site or software.
That is the place OpenAI’s different agent builder software, Chatkit, is meant to come back in. It’s simply as necessary 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 suppose, I’ll head over and skim OpenAI’s documentation on ChatKit. Effectively, good luck to you. Aside from being poorly written, it requires a substantial quantity of programming information 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 Large 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 stipulations, 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 check 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 observe the steps methodically, and also you’ll be superb.
Step 1 — Create our check web sites
If you have already got an internet site and you’ll edit/change the code behind it, be happy to make use of this.
In any other case, you should utilize a software like lovable.dev, which cannot solely create an internet site for you however also can deploy it to the net utilizing considered one of its personal domains or a customized area that you just present.
Word that the lovable hyperlink above is an affiliate hyperlink, which implies when you 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 "Good day world" kind javascript, css, html react web page
Lovable took round 15 seconds to provide an internet site, and I deployed it utilizing considered one of 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 try this.
- Create an HF account and log in.
- Click on the Areas hyperlink on the prime of the house web page, then click on the New House button, additionally in the direction of the highest proper of the web page.
- Fill within the house’s title, select a licence kind, 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 House button on the backside of the display screen while you’re prepared. You need to see a display screen 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, it is best to have at the very least one publicly obtainable web site you can modify to combine an Agent Builder agent with. However first, we’d like 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 obtainable on-line on the way to do it. Moreover, the OpenAI workforce coated this half very effectively at their developer day.
Nevertheless, 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. In truth, that’s the default setup you get when you 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 concerning the proposed topic, then inform a “dad joke” concerning the topic
Right here is an instance of the chat.
Inform me an fascinating truth about canine
Fascinating truth: Canine can "scent in stereo." They draw totally 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 canine 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 need to
be a sizzling canine!
To create your individual agent, head over to https://platform.openai.com/agent-builder. Relying on what LLM mannequin you select to make use of on your agent, you may additionally have to cross an identification test earlier than you’ll be able to run any brokers, so bear that in thoughts.
NB: Pay attention to the undertaking title you used when creating your agent. It’s situated close to the highest left of the Agent Builder dwelling display screen. We’ll want this when creating our OpenAI API key, because the undertaking underneath which the API secret’s made should match the undertaking wherein your agent is constructed. I used to be engaged on all my duties underneath the Default undertaking.
Click on the Preview button on the prime proper of the web page to make sure that your agent is working as anticipated. Whenever you’re glad, click on the Publish button, situated close to the highest proper of the web page. Fill within the title of your agent and click on the Publish button once more. Whenever you do that, a pop-up will appear as if this:

You’ll want the workflow ID later, so please be aware of 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 individual GitHub repo
To assist with deploying brokers utilizing ChatKit, OpenAI offers 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 functions.
To fork the OpenAI app, use the Clone Pattern app hyperlink within the pop-up from Step 2. This may 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 appropriate of the inexperienced Code button.

You’ll be prompted to enter a reputation on your new repository, when you’d like, or you’ll be able to 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 when you 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->Venture button to begin a brand new undertaking. You’ll find the hyperlink to the dashboard beneath your person profile icon on the excessive prime left of the web page.

The primary time round, you’ll have to 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. Nevertheless, earlier than you proceed, it is advisable add a few surroundings variables. The hyperlink to do that is simply above the deploy button.

The surroundings variables it is advisable add are:
OPENAI_API_KEY — This have to be an API key created throughout the similar undertaking 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 Venture Title 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’ll be able to click on the Deploy button on Vercel. This may take a minute or two, however as soon as it’s completed, we are able to check our chatbot. As soon as the deployment is full, return to your Vercel dashboard. Make sure you’re on the proper undertaking, and it is best to see a button labelled Go to, which can take you to your ChatBot. Earlier than we click on on it, we now have 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 on your undertaking and return to your OpenAI agent builder undertaking.
Subsequent, click on the Code button close to the highest proper of the display screen to show the Chatkit particulars pop-up. Click on the “Add Area” button. On the mini popup display screen 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 seemed like.

Step 5—Modify our unique Lovable and HuggingFace web sites to include the brand new chatbot.
That is our remaining step, which entails producing embed code that we are able to insert in our personal net pages. We obtain this by modifying the index.html file of our net software. 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. Exchange my area URL with your individual.
That is the area URL of my chatbot: openai-chatkit-starter-app-blue.vercel.app
I would like 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 approach to embed it in your web site is to make use of an <iframe> and inject the embed script in your <head> so the widget hundreds routinely when your web page hundreds.
Under is a straightforward copy-paste snippet you'll be able to put contained in the <head> of your index.html file.
It creates a floating chat bubble within the bottom-right nook that opens your chatbot in an iframe panel:
📄 Add this inside <head> of your index.html:
<!-- Chatbot Embed -->
<model>
.chat-fab {
place: mounted;
proper: 20px;
backside: 20px;
width: 56px;
peak: 56px;
border-radius: 50%;
border: none;
cursor: pointer;
background: #111;
coloration: #fff;
font-size: 24px;
box-shadow: 0 6px 15px rgba(0,0,0,0.25);
z-index: 10000;
}
.chat-panel {
place: mounted;
proper: 20px;
backside: 90px;
width: 400px;
peak: 600px;
max-width: calc(100% - 40px);
rework: translateY(20px);
opacity: 0;
pointer-events: none;
transition: opacity .2s ease, rework .2s ease;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 12px 30px rgba(0,0,0,.25);
background: #fff;
z-index: 10000;
}
.chat-panel.open {
opacity: 1;
rework: translateY(0);
pointer-events: auto;
}
.chat-header {
peak: 44px;
show: flex;
align-items: heart;
justify-content: space-between;
padding: 0 12px;
background: #111;
coloration: #fff;
font: 14px/1.2 system-ui, sans-serif;
}
.chat-iframe {
border: 0;
width: 100%;
peak: calc(100% - 44px);
show: block;
}
.chat-close {
background: none;
border: 0;
coloration: #fff;
font-size: 18px;
cursor: pointer;
}
</model>
<script>
doc.addEventListener('DOMContentLoaded', operate () {
const fab = doc.createElement('button');
fab.className = 'chat-fab';
fab.textContent = '💬';
fab.setAttribute('aria-label', 'Open chat');
const panel = doc.createElement('div');
panel.className = 'chat-panel';
panel.setAttribute('aria-hidden', 'true');
const header = doc.createElement('div');
header.className = 'chat-header';
header.innerHTML = `<span>Chatbot</span>`;
const closeBtn = doc.createElement('button');
closeBtn.className = 'chat-close';
closeBtn.textContent = '✕';
closeBtn.setAttribute('aria-label', 'Shut chat');
closeBtn.addEventListener('click on', () => {
panel.classList.take away('open');
panel.setAttribute('aria-hidden', 'true');
});
const iframe = doc.createElement('iframe');
iframe.className = 'chat-iframe';
iframe.src = 'https://openai-chatkit-starter-app-blue.vercel.app';
iframe.permit = 'clipboard-write; microphone; digital camera';
iframe.referrerPolicy = 'strict-origin-when-cross-origin';
header.appendChild(closeBtn);
panel.appendChild(header);
panel.appendChild(iframe);
doc.physique.appendChild(fab);
doc.physique.appendChild(panel);
fab.addEventListener('click on', () => {
panel.classList.add('open');
panel.setAttribute('aria-hidden', 'false');
});
});
</script>
<!-- Finish Chatbot Embed -->
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 <head> 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, just a little 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 screen appeared, and I used to be capable of work together with it.
Lovable ( https://little-react-wave.lovable.app/ )

I did an identical operation on my net web page on HuggingFace. You possibly can edit the index.html file in your HF web site by clicking the Information 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!
