Skip to Content
AI & AgentsFernando (executive assistant)

Fernando — AI Executive Assistant

Fernando 4-layer memory system

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 context

4-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:

AgentFunction
ReportingGenerates executive reports on demand
MarketingAnalyzes trends and generates content
StatusQueries the status of cases, tasks and KPIs
NewsMonitors 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

ChannelStatus
TelegramOperational — direct conversation with the CEO
WhatsAppPending configuration (Meta Cloud API)
Tab in BiVelioVisible 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.

Last updated on