Sui Agent Building
Quick Start: Building Your Bitte Open Agent on Sui
Prerequisite: make-agent
v0.3.1+ installed
1. Clone the Boilerplate & Install
This gives you the core agent framework, UI sandbox, and plugin manifest support.
2. Configure Your Bitte API Key
Visit 🔑 https://key.bitte.ai and generate a key.
Copy
.env.example → .env
and insert:
3. Wire Up Sui: Add Your Transaction Tool
In tools/
, change any of the routes to return a sui transaction, check the sui ts sdk for more information on how to create Sui Transactions:
4. Declare Your Tool in the Plugin Manifest
Open ai-plugin/manifest.json
(or wherever your manifest lives) and add the corresponding spec for your endpoint
Since this is a next js project the route path will correspond to the folder
5. Add generate-sui-tx
to the Tools Array
generate-sui-tx
to the Tools ArrayTo enable the review transaction component in the frontend, add the generate-sui-tx
primitive to the tools array in your configuration file:
This update ensures that the frontend can display the transaction review component appropriately.
6. Define Behaviour
To control how your agent behaves, customize its instructions—this is the equivalent of setting the system prompt. Use this to tailor the agent’s behavior to your tool’s needs. For example, you might instruct it to confirm addresses or amounts, adopt a specific tone or personality, or behave deterministically in certain scenarios.
If the transaction review screen isn’t appearing as expected, you can explicitly instruct the agent to show it after your tool call.
7. Run Locally & Test
The console UI opens your chat sandbox.
Ask the agent to build the transaction related to your tool
The agent will call your
tool
and then callgenerate-sui-tx
to display the transaction signing component so you can try sending your transaction
7. Deploy Your Agent
Push to GitHub.
Deploy to vercel or any provider
Update your URL env or hard code it in the spec
Run:
This validates your key, registers your plugin URL, and you’re live!
Last updated