Provider keys
Business agents require GOOGLE_GENERATIVE_AI_API_KEY. Add it to the deployment environment and restart the app. Without the key, agent routes return a configuration error instead of a response.
The AI Image Studio uses REPLICATE_API_TOKEN for Stable Diffusion XL. It is independent of the business agents and does not read ERP records.
What an agent reads
Each agent has a data fetcher for its domain. The CEO Dashboard reads payments, expenses, invoices, leads, quotes, and customers. The CFO Agent reads payments, expenses, and unpaid invoices. The Anomaly Detection Agent reads expenses and payments. The Pricing Intelligence Agent reads products and invoice data.
If a domain has no records, the agent has nothing useful to analyse. Populate the workspace before evaluating an agent's output.
Verify an agent
Pick a figure you can verify manually, such as total payments this month or unpaid invoices past expiry. Ask the agent for the same figure. Compare the response with the ERP list or report.
If they differ, check the selected analysis window and the underlying records before trusting the summary. Agent output is advisory.
Limits and guardrails
Agents do not write records, send emails, schedule follow-ups, or monitor continuously. They do not fetch market data or bank feeds. KPI figures on the public site are illustrative, not measured outcomes.
Keep provider keys out of source control, rotate exposed keys, and review provider terms before sending business data.
Troubleshooting
If an agent returns a configuration error, confirm the provider key is present in the running container and that the app was restarted after the variable was added. If the response is empty, check that the relevant module has records for the selected window.
If the output looks wrong, compare it with the underlying list or report before changing the prompt. The records remain the source of truth.
Frequently asked questions
Which model do the agents use?
The agent routes call Google Generative AI through the AI SDK with the model configured in the deployment. The exact model can change as the app is updated.
Can I use agents on a self-hosted instance without internet access?
No. The agents call the configured provider over the network. The core ERP can run without AI keys, but agent features require provider access.