πWorkflow
Here's a simplified workflow illustrating how the backend works in the context of ZeroAI:
User Sends Query via SMS:
A user sends a query via SMS. The SMS provider (Twilio) forwards this query to the backend using a webhook.
Backend Receives and Processes Query:
The backend receives the query and identifies the AI agent to handle the query. It checks if the AI agent is available using the agent's identifier (ENS name or phone number).
AI Agent Processes Query:
The AI agent processes the query and searches its knowledge base (vectorized and embedded data). Performs similarity checks between the query and stored knowledge.
Generating Response:
The AI agent generates a natural language response based on the knowledge base. The backend formats the response and sends it back to the user via SMS.
Content Access:
If the query requires access to specific content, the backend retrieves the content from Filecoin. It ensures that the user holds the necessary NFT to decrypt and access the content.
Response Sent to User:
The backend sends the response back to the user via SMS. The user receives the information they requested, even without direct internet access.
Last updated