Fernando — AI Executive Assistant
Fernando is the strategic brain of BiVelio. It acts as executive assistant to the CEO, accessible via Telegram (and soon WhatsApp), with persistent memory and the ability to coordinate operational agents.
Architecture
Fernando runs on a dedicated infrastructure (VPS) independent of Edge Functions, which allows it to maintain state, long-term memory and execute complex multi-step tasks.
CEO (Telegram / WhatsApp)
→ Fernando (VPS)
→ Queries memory (4 layers)
→ Coordinates operational agents
→ Accesses BiVelio data (calendar, cases, contacts)
→ Responds with full context4-layer memory system
Fernando remembers past conversations, decisions and context thanks to a memory system structured across 4 levels:
Layer 1 — Immediate memory
The last 20 messages from the active conversation. Provides immediate context to maintain coherence in the dialogue.
Layer 2 — Medium-term summary
When a conversation exceeds 30 messages, a summary is automatically generated that captures the key points. The summary is injected into subsequent conversations to maintain continuity.
Layer 3 — Long-term memory
Facts, preferences and knowledge automatically extracted from each exchange. Stored with semantic search (tsvector + trigram) to retrieve relevant information at any time.
Examples of what Fernando remembers:
- CEO preferences for report formats
- Decisions made in previous conversations
- Data on frequently mentioned contacts
- Context of ongoing projects
Layer 4 — Decision log
A structured log of strategic decisions that is injected in real time into Fernando’s prompt. Ensures that important decisions are never lost or contradicted.
All 4 memory layers are consulted on each interaction, ensuring that Fernando always responds with the full available context.
Operational agents
Fernando coordinates specialized agents that execute operational tasks:
| Agent | Function |
|---|---|
| Reporting | Generates executive reports on demand |
| Marketing | Analyzes trends and generates content |
| Status | Queries the status of cases, tasks and KPIs |
| News | Monitors relevant industry news |
Operational agents are subordinate to Fernando and execute specific tasks when requested.
Access to system data
Fernando can query real-time information from BiVelio:
- Calendar — aggregated Google Calendar schedule (multi-account) via
get_calendar_aggregate - Cases — status, assignments and metrics for active cases
- Contacts — client and company information from the CRM
- KPIs — workspace performance metrics
Communication channels
| Channel | Status |
|---|---|
| Telegram | Operational — direct conversation with the CEO |
| Pending configuration (Meta Cloud API) | |
| Tab in BiVelio | Visible in the Agents module — shows status and operational agents |
Security
- Dedicated authentication between BiVelio and the VPS
- Encrypted communication via TLS
- Secrets stored with restrictive permissions (0600, root only)
- No access to credentials from other services
- Full isolation of the execution environment
Fernando is designed for exclusive use by the leadership team. It is not accessible to operators or end users of the workspace.