For the complete guide, visit XMTP documentation
Installation
Usage
This example shows how to create an agent that sends a message when it receives a text message.[Node]
Set environment variables
To run an example XMTP agent, you must create a.env file with the following variables:
Get a basename for your agent
Give your agent a human-readable name: 1. Import agent wallet to Base App extension: • Install Base App browser extension • Import using your agent’s private key 2. Purchase a basename: • Visit https://base.org/names • Connect your agent’s wallet • Search and purchase your desired basename (e.g., myagent.base.eth) • Set as primary name 3. Verify setup: • Your agent can now be reached via the basename instead of the long address • Users can message myagent.base.eth instead of 0x123…For the complete guide, visit XMTP documentation