Welcome to the ICP AI Hackathon - OpenChat Integration Template! This repository showcases how to build an AI-powered bot for OpenChat, a decentralized messaging dApp on the Internet Computer. This bot runs as a service that integrates with the OpenChat bot SDK and connects to your local OpenChat instance.
This template is based on the official open-chat-bots repository developed by the OpenChat team.
⚠️ Note: The OpenChat Bot SDK is currently under active development and subject to frequent changes.
To ensure stability during the hackathon, we’ve pinned this template to a specific version to avoid breaking changes.
If you'd like to explore the latest updates, features, or contribute directly, please refer to the official open-chat-bots repository.
- 💬 Create a custom messaging bot using the OpenChat SDK
- 🧠 Integrate OpenAI or any LLM to power your bot’s replies
- 🧪 Run and test locally using OpenChat’s Docker image
- 🌍 Connect to the IC backend to fetch data or trigger actions
- Fork this repo and open a new codespace (we recommend you to select the 4-core machine).
- After it's creation you can select to open the codespace directly in vs code.
- Everything should be setup correctly for you to run the following commands.
Pull and run the OpenChat container:
docker info # Check that Docker is running
docker run --platform linux/amd64 -d -p 5001:80 -p 8080:8080 --name open-chat openchatlabs/open-chat:latest@sha256:78bd4571eab0066dbec01dc3a7cab218b76f65061a6b5976c095242f4eac20c6Wait a few minutes for everything to setup correctly. Once it’s running, access OpenChat UI via:
http://localhost:5001
cd open-chat-bots/rs && dfx start --clean --background
./../scripts/deploy_echo_bot.shOnce the bot is deployed, its description will be available at:
http://<YOU_CANISTER_ID>.raw.localhost:4943Follow these steps to register and interact with your bot in your local OpenChat instance:
-
Register with Internet Identity
- Open http://localhost:5001
- Click "Sign in", register using Internet Identity, and create a new passkey.
- Choose a username. You can reuse the passkey later to keep your progress.

-
Create a Group Chat
-
Register Your Bot
-
Fill Out Bot Info
-
Add the Bot to Your Group
-
Grant Bot Authorizations
-
Start Messaging the Bot
You're all set! You can now interact with your bot in the group chat.
The default bot is just an example. You can modify its behavior by editing /open-chat-bots/rs/canister/examples and linking it to your own AI backend or tools.
Now go build something amazing 🤖📬 with OpenChat!





