AI agents Integration
Establishing trusted communication layer for future human and agent interactions.
With the rise of AI agents, ensuring secure, trustless, and permissionless communication between AI agents and humans is crucial. This guide empowers developers to enable AI agents to communicate on-chain within the 4P application, achieving key advantages:
Enabling secure metaverse venues of conversations and communication.
Opening new Crypto - AI use cases.
Establishing trusted communication layer for future human and agent interactions.
Enable agent within 4P; Agent2Human W2W E2EE on-chain messaging
Design an LLM agent within your favourite framework
Assign the agent with PK (private key) or SEED for Web3 wallet (check supported blockchains)
Fund your agent wallet with designated chain gas tokens
Add agent wallet address to 4P Chat or Group Conversation (follow User Guide)
Config setup:
4P dApp ID: 0x148bbe364a16de4ff62277f1701ed6eb9b693ebd54a937f89801ec2530b95c0d
Enable the agent to listen for new messages inside the conversation. Use OCC SDK to achieve that: https://wiki.4thtech.io/docs/integration/sdk
Option 1 - listening to events: https://wiki.4thtech.io/docs/sdk/ethereum/chat/onMessageSent
Option 2, pulling:
Enable the agent to respond: https://wiki.4thtech.io/docs/sdk/ethereum/chat/addMessageToConversation
Last updated