Brian Mena
All agents

Agente Conversor IAE CNAE, own project

Agente Conversor IAE CNAE

Your AI tax advisor: accurate answers 24/7 with official sources

The figures

Codes in databaseIAE, CNAE 2025 and CNAE 2009
3,257
AI toolsspecialized in Spanish taxation
9
Official documentsindexed with semantic embeddings
13

The problem

Self-employed workers waste hours searching codes in confusing tables. A wrong code means tax authority fines and problems with your tax return.

What I did

Conversational agent with 9 specialized tools. Describe your activity in natural language and receive precise recommendations based on semantic search.

The result

Targets Spanish businesses registering new activities or migrating from CNAE 2009 to CNAE 2025 (January 2025 deadline compliance). Tax advisors (gestorías) and entrepreneurs use it for accurate code lookups. 157 authorized subscribers with controlled access.

The same, for your business

  • A clinic that shows up first when people search «dentist near me».
  • A garage that gets calls from Maps.
  • A law firm that comes up when someone asks an AI assistant.
Technical details

Architecture

  • 384-dimensional embeddings for semantic search of tax codes
  • 9 specialized agent tools for code lookup and validation
  • 13 official Spanish documents (PDFs/DOCX) indexed in Supabase Storage
  • Cloudflare Workers + Durable Objects for agent runtime with persistent state
  • Access controlled by newsletter subscription (157 authorized subscribers)

Technical decisions

  • Semantic search via embeddings instead of keyword search: captures user intent, not just keywords
  • Newsletter subscription gate: builds audience while controlling access
  • Cloudflare Workers + Durable Objects: minimal latency and persistent state per session
  • Email validation via Edge Function: prevents unauthorized access

How it was built

Solves the problem of overlapping tax classification systems in Spain. IAE codes (1,187) are used by AEAT for tax registration. CNAE 2025 codes (1,060) are used by Social Security and INE. CNAE 2009 (1,010) are now obsolete. No 1:1 mapping exists; a wrong code triggers audits or administrative rejections. The agent provides accurate, database-driven recommendations with legal disclaimers and step-by-step guidance.

Tech stack

  • Cloudflare Workers
  • Durable Objects
  • Supabase
  • OpenAI
  • React

Features

  • Describe your work and get the exact code - no memorizing tables or acronyms
  • Ask at any hour - the agent never sleeps or gets tired
  • Codes updated to current regulations - includes CNAE 2009→2025 migration
  • Answers based on your specific context - no generic responses
  • Private access via email - your tax queries are confidential
Subscribe to the tax newsletterGet weekly tax guides for Spanish freelancers