Time to read: 1 min
전체 문서 색인은 llms.txt
Conversational AI Agent with Blockchain Actions on Rootstock
This guide walks through a minimal dApp that connects a conversational AI agent to the Rootstock testnet. Users check token balances and send tRBTC through chat. The agent reads wallet state, keeps conversational context, and submits scoped on-chain actions through defined tools.
The tech stack used in this tutorial is:
- NextJS as the development framework.
- The Rootstock Next Reown starter kit and Wagmi to handle wallet connections and blockchain interactions.
- Groq’s LLM API, for the natural language interface.
- Shadcn as UI library.
What you'll learn
By the end of this tutorial, you will have:
- A connected wallet UI running on Rootstock testnet
- A chat interface powered by an LLM (via Groq SDK)
- A fully functioning AI agent that can interpret user intent and call blockchain methods accordingly
Next you wire AI tooling and Rootstock testnet access into a single-page app with wallet connection and scoped transaction tools.
Prerequisites
Ensure you have the following installed:
- Node.js (v18+)
- Git
- A browser wallet like MetaMask connected to the Rootstock Testnet
- Some basic familiarity with Javascript/Typescript and smart contract interaction