Skip to content

Commit 7cf335a

Browse files
committed
refinements
1 parent 858f692 commit 7cf335a

File tree

8 files changed

+15
-362
lines changed

8 files changed

+15
-362
lines changed

docs/pages/agents/build-agents/create-a-client.mdx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Create a client
1+
# Create an XMTP agent
22

3-
Create an XMTP client that connects your agent to the XMTP network. The client handles authentication, encryption, and message delivery. Your agent's logic (brain) is separate. The client just gives it the ability to send and receive messages.
4-
5-
A [signer](/chat-apps/core-messaging/create-a-signer) links the client to an EOA or SCW wallet, which serves as your agent's identity on the network.
3+
Create an XMTP agent that can use the signing capabilities provided by the [signer](/chat-apps/core-messaging/create-a-signer). This signer links the agent to the appropriate EOA or SCW.
64

75
## Create an EOA signer
86

@@ -35,7 +33,7 @@ The XMTP Agent SDK allows you to use environment variables (`process.env`) for e
3533
| `XMTP_ENV` | XMTP network environment (`local`, `dev`, or `production`) | `XMTP_ENV=dev` or `XMTP_ENV=production` |
3634
| `XMTP_DB_ENCRYPTION_KEY` | Database encryption key for the local database (32 bytes, hex) | `XMTP_DB_ENCRYPTION_KEY=0xabcd...1234` |
3735

38-
Using environment variables, you can connect your agent to XMTP in just a few lines of code:
36+
Using the environment variables, you can set up your agent in just a few lines of code:
3937

4038
## Generate random keys
4139

@@ -64,7 +62,7 @@ yarn gen:keys
6462
// Load variables from .env file
6563
process.loadEnvFile('.env');
6664

67-
// Connect to XMTP using environment variables
65+
// Create agent using environment variables
6866
const agent = await Agent.createFromEnv();
6967
```
7068

@@ -142,7 +140,7 @@ loggingLevel?: LogLevel;
142140

143141
## Create a smart contract wallet (SCW) signer
144142

145-
When working with smart contract wallets, you can connect your agent to XMTP using the wallet's seed or private key:
143+
When working with smart contract wallets, you can create an XMTP agent using the wallet's seed or private key:
146144

147145
```tsx [Node]
148146
import { Agent, createSigner, createUser } from '@xmtp/agent-sdk';
@@ -152,8 +150,8 @@ const walletData = await initializeWallet('wallet.json');
152150
const user = createUser(walletData.seed as `0x${string}`);
153151
const signer = createSigner(user);
154152

155-
// Connect to XMTP with SCW signer
153+
// Create agent with SCW signer
156154
const agent = await Agent.create(signer);
157155

158156
/* Add your own business logic here */
159-
```
157+
```

docs/pages/agents/get-started/build-an-agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { KeyGenerator } from '../../../components/KeyGenerator';
22

3-
# Quickstart: Build an agent with XMTP
3+
# Build XMTP agents
44

55
Use the [XMTP Agent SDK](https://www.npmjs.com/package/@xmtp/agent-sdk) to build agents that interact with the XMTP network.
66

File renamed without changes.

docs/public/skills/create-xmtp-agent.md

Lines changed: 0 additions & 205 deletions
This file was deleted.

docs/public/skills/deploy-xmtp-agent.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/public/skills/xmtp-agent-troubleshoot.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)