jfrometa88/refugeeconnect-ai-api
RefugeeConnect AI β Backend API π§
The intelligence layer of RefugeeConnect AI β a multi-agent system helping migrants and asylum seekers navigate the support system in Spain.
This Space is the AI backend of RefugeeConnect AI. It processes natural language requests in Spanish, English, Arabic, and French, and returns personalized, step-by-step guidance toward the right resources β legal aid, healthcare, housing, food, and employment.
The visual interface lives here: jfrometa88/refugeeconnect-ai-dashboard
π€ Agent Architecture
The backend is built with Google's Agent Development Kit (ADK) around a single Orchestrator Agent operating on a 5-state decision tree:
1: Greet & detect language
2: Understand user's legal profile (PadrΓ³n, Tarjeta Roja, etc.)
3: Clarify if the query is incomplete
4: Call the appropriate tool (search_db, legal_rights, geolocate)
5: Respond and stopKey design decisions:
- Tools β not the model β hold all legal information: static, human-verified, zero hallucination risk
- Explicit stop markers prevent verbosity and loop behavior in smaller models
- All system logic is written in English; all user-facing content is delivered in the user's detected language
π‘ Endpoints
ποΈ Technology Stack
βοΈ Environment Variables
GOOGLE_API_KEYmust be set.USE_LOCAL_LLM=trueis designed for NGO on-premise deployments via Ollama, not for this hosted Space.
π Privacy Design
For organizations handling sensitive personal data, the full system supports a local-first inference mode using Gemma 4 via Ollama (E2B/E4B models). In that configuration, no user data leaves the organization's own infrastructure.
This hosted Space runs in cloud mode for demonstration purposes. The local mode is documented and functional for on-premise deployment.
π Current Scope
The database currently covers a representative sample of NGO resources in Valencia, Spain. The architecture scales horizontally β expanding to any city requires only populating the database with new records.
π Project Links
- πΊοΈ Dashboard: jfrometa88/refugeeconnect-ai-dashboard
- π GitHub Repository: (https://github.com/jfrometa88/RefugeeConnect)
π€ Author
Jorge Israel Frometa Moya β Cuban Engineer & Political Asylum Seeker in Spain.
This project was born from personal experience navigating a fragmented support system. Built with limited resources, submitted with the hope it reaches those who can take it further.
Submitted to the Gemma 4 Good Hackathon β Impact Track: Digital Equity & Inclusivity Β· Special Track: Ollama
