What CoverFi AI knows
The backend system prompt tells the model that the website and product name is CoverFi. It also receives structured user context from the app when available:- Wallet address
- Username
- Network
- Profile details
- Protection positions
- Portfolio context
Modes and models
The chat UI provides two modes:
When Research is selected, the app sends
mode: "research" and the selected research model to the backend.
Live market context
Before generating a response, the backend attempts to fetch current market data from CoinGecko. That context is passed into the model so the assistant can discuss live prices and recent market movement. If live prices are unavailable, the API still answers and includes a market-context error in the response.Payment drafts
CoverFi AI can prepare payment drafts when the user writes a payment intent such as:- Parses the amount, asset, and recipient username.
- Looks up the username in the Soroban username registry.
- Creates a Markdown-formatted private draft.
- Shows recipient wallet, processing fee, total amount, and sender wallet.
- Lets the user copy the draft.
Protection drafts
CoverFi AI can also prepare a reviewable protection draft when the user writes something like:Chat input behavior
- Press Enter to submit.
- Press Shift + Enter for a new line.
- The composer stays fixed at the bottom of the chat view.
- The textarea is vertically centered, capped at three visible lines, and does not show an internal scrollbar.
- AI messages use the CoverFi logo instead of a generic robot icon.