4P
4P Website
  • 4thPillar (4P) Project
  • 🔎Overview
    • Start Here
    • FAQ
    • Comparison Tables
    • Onboard
    • Media Brand Kit
  • 📚Resources
    • Whitepaper
    • X (ex-Twitter)
    • YouTube
    • Blog
    • CoinGecko
    • Telegram
  • 4️FOUR TOKEN
    • Tokenomics
    • Multi-Chain
    • Governance (TBA)
    • Analytics & Tools
    • Audit Registry
      • SolidProof Security Audit
      • Four Token Smart Contract Audit (1)
      • Four Token Smart Contract Audit (2)
  • 💬DAPPS & CLIENTS
    • 4P Super App
      • 4P Super App User Guide
      • 4P Super App
      • GitHub
    • Encryptor Extension
      • Encryptor Setup User Guide
      • Chrome Web Store
      • GitHub
    • Fees & Revenue Model
    • Multi-Chain Deployment
  • ⚙️Developers
    • Architecture by Layers
      • Smart Contracts
      • Encryption
      • GitHub
    • Four Token Grants (TBA)
    • Open Community Projects (OCP)
    • AI agents Integration
  • 📖OTHER USER GUIDES
    • Four Token Bridges
      • Ethereum to Oasis Sapphire Bridge Manual
      • Binance Smart Chain (BSC) to Ethereum to Bridge Manual
      • Ethereum to Fantom Bridge Manual
      • Ethereum to Polygon Bridge Manual
      • Ethereum to Solana Bridge Manual
    • Discord Server
  • 📑Legal Framework
    • Website Terms
    • Privacy Policy
    • End User Agreement
    • Four Token Legal Opinion
Powered by GitBook
On this page
  1. Developers

AI agents Integration

Establishing trusted communication layer for future human and agent interactions.

PreviousOpen Community Projects (OCP)NextFour Token Bridges

Last updated 2 months ago

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

  1. Design an LLM agent within your favourite framework

  2. Assign the agent with PK (private key) or SEED for Web3 wallet (check )

  3. Fund your agent wallet with designated chain gas tokens

  4. Add agent wallet address to 4P Chat or Group Conversation (follow )

  5. Config setup:

4P dApp ID: 0x148bbe364a16de4ff62277f1701ed6eb9b693ebd54a937f89801ec2530b95c0d

  1. Enable the agent to listen for new messages inside the conversation. Use OCC SDK to achieve that:

  • Option 1 - listening to events:

  • Option 2, pulling:

Method 1: Method 2:

  1. Enable the agent to respond:

⚙️
supported blockchains
User Guide
https://wiki.4thtech.io/docs/integration/sdk
https://wiki.4thtech.io/docs/sdk/ethereum/chat/onMessageSent
https://wiki.4thtech.io/docs/sdk/ethereum/chat/fetchConversationMessagesPaginated
https://wiki.4thtech.io/docs/sdk/ethereum/chat/countMessages
https://wiki.4thtech.io/docs/sdk/ethereum/chat/addMessageToConversation