iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🥇

Tried Deploying OpenAI's Agent Builder and Chatkit: The Fastest on Zenn!?

に公開
2025/10/08

Introduction

On October 7th (Japan time), when I woke up in the morning, OpenAI announced a number of shocking things. This time, I’m writing a verification article with the strong desire to say “I tried deploying Agent Builder and Chatkit as fast as possible on Zenn (?!).”

To put it simply, I embedded the WORKFLOW_ID issued by Agent Builder into Chatkit and executed the app.

Official OpenAI Documentation

Agent Builder
https://platform.openai.com/docs/guides/agent-builder
ChatKit
https://platform.openai.com/docs/guides/chatkit

Organization Authentication

Deploying Agent Builder requires authentication. Please complete it in advance by referring to the following. (Thank you as always for the helpful posts.)
https://zenn.dev/schroneko/articles/openai-verify-organization

Building Agent Builder

I found myself wondering where to start.
Access from here!|https://platform.openai.com/agent-builder

Although it’s still the same day, many articles and YouTube videos have already been created about this part. I think it’s a function similar to Dify, so in this article I’ll keep it to a minimal setup.

I tried using the “User approval” feature, which I was curious about, to achieve human-in-the-loop. Approval right off the bat. That’s fine, because I just wanted to see it work.

The answer looks like this. It responds quite thoroughly, doesn’t it?

Building Chatkit

This part is the main focus! Let’s walk through how I read the official website and proceeded.

Official Guide

The official guide’s “Deploy in your product” section[1] says the following, so I clicked the link. In short, there are two ways to deploy into your product, and the ChatKit quick start seems easy. I clicked this link.

Quick Start

It seems good to try the “See working examples” section[2] at the link destination. The first one was openai-chatkit-【advanced】-samples, so it seemed too difficult for me. Let’s go with the second one, openai-chatkit-starter-app!

Trying the Starter Kit

Follow the README of the openai-chatkit-starter-app repository[3].

Clone the repository and create a local configuration file.

git clone https://github.com/openai/chatkit-js.git
cd openai-chatkit-starter-app/
cp .env.example .env.local

Obtain the WORKFLOW_ID

Next, obtain the WORKFLOW_ID to set in the configuration file. Return to Agent Builder and proceed from the “Publish” button at the top right.

Looking later, it had changed to “Deploy” at the top right. It’s a bit scary; I’d prefer it to be “Deploy” → “Deployed” rather than “Publish” → “Deploy”.

Run the Application

Return to the configuration file and set the API key and WORKFLOW_ID. If you're reading this, I'm sure I don't need to explain the API key.

.env.local
$ nano .env.local

OPENAI_API_KEY=sk-xxxxx
NEXT_PUBLIC_CHATKIT_WORKFLOW_ID=wf_xxxxxx

Build and run using npm. It runs on port 3000.

npm install
npm run build
npm start

Access the App Screen

When I asked the same question, the approval appeared properly! Approve!!

The app screen is very simple, but it shows thinking time, and

You can open the history from the top right, which I thought would be sufficient when embedded into a system!

Conclusion

Did you get an idea of how to deploy Agent Builder as an app? I thought it was so easy that I might as well try the openai-chatkit-advanced-samples!

https://github.com/openai/openai-chatkit-advanced-samples

Still, Dify, which comes with a frontend UI, is definitely user-friendly and easy to use, isn't it! (Is it okay to conclude like this?)

✍️ If this article was helpful, please like, bookmark, and follow me. I'm also happy to interact on X!

https://x.com/aToy0m0

Postscript

I also tried the openai-chatkit-advanced-samples.

Since I didn't fully understand, I just ran the commands from the README, but it's fine to simply execute as follows.

Run the Backend

The following commands are all you need.

  1. Start FastAPI backend API
git clone https://github.com/openai/openai-chatkit-advanced-samples.git
cd openai-chatkit-advanced-samples
npm run backend

Run the Frontend

  1. Run the Vite + React frontend. You can start the frontend directly from the repository root.
npm run frontend

Access the App

Open it in a browser.

http://localhost:5170/

This was the screen I saw. It's in English, so it's a bit hard to understand, but the red-bordered parts are custom UI and seem to allow the following:

  • Customer Support: Airline customer support workflow.
  • Knowledge Assistant: A knowledge base agent utilizing OpenAI's file search tool.
  • Marketing Assets: Marketing creative workflow.

脚注
  1. https://platform.openai.com/docs/guides/agent-builder ↩︎

  2. https://platform.openai.com/docs/guides/chatkit ↩︎

  3. https://github.com/openai/openai-chatkit-starter-app ↩︎

Discussion