Accelerating blockchain intelligence and security with AI-powered chatbot solutions.
Customer
Web3force.io is a pioneering organization at the forefront of Web3 innovation, dedicated to empowering businesses and individuals in the transition to a decentralized digital economy. Specializing in blockchain solutions, decentralized applications, and smart contract development, Web3force.io provides cutting-edge tools and expertise to unlock new possibilities in the Web3 space. With a commitment to excellence and a focus on scalability and security, the company enables its clients to harness the full potential of blockchain technology, driving growth and fostering trust in an evolving digital landscape.
Executive Summary
Web3Force.io sought to create an AI-powered chatbot designed to manage internal queries related to its decentralized platform and services, spanning blockchain applications, client onboarding, and compliance management. The solution needed to process intricate queries, provide precise answers, and handle data from multiple Web3 platforms like Polygon, Ethereum, IPFS, and Slack.
The Problem:
The chatbot required secure authentication using Okta and Web3 wallets, ensuring granular access control aligned with user permissions. Additional features such as conversation memory, chat history, and document upload were critical. This initiative was part of a larger Web3Force.io roadmap to deliver multichannel/multimodal Generative AI services to its internal teams and decentralized partner network.
- Interpreting Blockchain Queries: Complex queries involving smart contracts, token analytics, and staking data required deep integration with blockchain APIs and decentralized databases.
- Tokenized Access Control: Leveraging Web3 wallets and integrating them with AWS Cognito for authentication required custom development.
- Performance Optimization: Blockchain data integration introduced latency issues, demanding optimized indexing and retrieval mechanisms using OpenSearch.
Our Solution
Web3Force Internal Chatbot Architecture:
Frontend:
- Amazon CloudFront and S3: Delivers the frontend assets with low latency globally and enable scalable deployment and hosting for the React-based chatbot interface.
- React App: A sleek, Web3-ready user interface built with React and integrated with decentralized identity tools like MetaMask.
Authentication & Authorization:
- Amazon Cognito: Manages user authentication integrated with Okta and Web3 wallets for single sign-on (SSO).
- OIDC TVM (Token Vending Machine): Issues temporary AWS credentials based on OIDC tokens or wallet signatures.
- Web3 Wallet Integration: Supports MetaMask, WalletConnect, and Ledger for decentralized authentication.
- STS (Security Token Service): Issues temporary AWS credentials for blockchain data access.
Backend Services:
- AWS Lambda: Processes user queries, manages authentication workflows, and handles backend integrations.
- Amazon DynamoDB: Maintains chat metadata, session logs, and user activity.
Data Sources & Integration:
- Blockchain APIs: Fetches data from Polygon and Ethereum nodes.
- IPFS Gateway: Retrieves and synchronizes decentralized file data.
- External Tools: Integrates with Slack, and partner APIs for a unified knowledge base.
- Amazon EventBridge: Triggers automated data updates and blockchain syncs.
- Amazon S3: Stores raw blockchain and query-related data for processing.
GenAI & Knowledge Base:
- Amazon Bedrock Agent: Powers intelligent response generation, handling technical queries about blockchain services.
- Amazon OpenSearch Service: Facilitates vector-based search and retrieval of blockchain data.
Security & Sensitive Data Protection:
- AWS Key Management Service (KMS): Encrypts stored data and sensitive keys.
- AWS Lambda Notifications: Sends alerts for anomalies detected during blockchain syncs.
User Experience Flow:
- Users interact with the chatbot via Web3Force.io’s domain, enabling tokenized access to advanced features through MetaMask and SSO.
The Results
- Enhanced Query Resolution: The AI chatbot streamlined access to blockchain and platform insights, reducing response times.
- Improved Decentralized Workflows: Integrated blockchain tools empowered teams to manage operations efficiently.
- Scalability: The chatbot handled increased queries from internal teams and external partners without performance degradation.
- Data Security: Advanced encryption and decentralized identity ensured compliance and trust.
- Decentralized-Ready Design: Incorporating Web3 wallets in the authentication flow early saved time during implementation.
- Latency Optimization: Optimized indexing and vector-based searches significantly reduced response times for blockchain queries.
- Cross-Platform Collaboration: Strong collaboration across Web3Force.io teams ensured smooth deployment and alignment with blockchain-specific workflows.