Dograh

Spanish AI Voice Agents for E-commerce: Spain's New Rules

Spanish AI Voice Agents for E-commerce: Spain's New Rules
Use CaseOctober 21, 2026· Updated October 27, 2026·6 min read

Spanish AI Voice Agents for E-commerce: Spain's New Rules

Pritesh Kumar
Pritesh Kumar·Co-founder, Dograh AI

Building Dograh, the open-source alternative to Vapi. OSS and Voice AI. Exit founder and YC alum.

Spanish AI voice agents for e-commerce answer an online store's calls in Spanish, or in Spanish and English on one line. They answer policy and order questions after verification and hand over to a Spanish-speaking person. In Spain, Ley 10/2025 generally gives large companies' customers the right to a person on request, so the handover must work from the start.

Key Takeaways

  • In Spain, large companies cannot run customer service on bots alone.
  • Build the handover to a Spanish-speaking person before the Spanish prompts.
  • Write the Greeting Text in both languages; detection starts after it.

This post is part of our guide to AI voice agents for e-commerce and retail. Below, we compare rules in the US and Spain, then set up the handover to a Spanish speaker in Dograh, the open-source AI voice agent platform we build. We also cover recording and Spanish store calls.

Two markets with different rules

A store meets Spanish-speaking callers in two settings, and the rules differ.

The first is a US or Latin American store answering customers in Spanish, or in both languages. The market is large: Mexico's online retail reached about 941 billion pesos in 2025, up 19.2% and 17.7% of retail sales, according to the AMVO online sales study reported by Marketing4eCommerce. AMVO is Mexico's online sales association. For a US store, the outbound rules are the same as in English: a cart or reorder call in an AI voice generally needs written consent, as AI voice agents for abandoned-cart recovery explains.

The second is a store selling to consumers in Spain. There, a new customer-service law sets the shape of the phone line for large companies. That law is the reason this post exists.

In Spain, a person is one request away

Spain's Ley 10/2025, which regulates customer service, came into force on 28 December 2025, and companies have twelve months to adapt, so until 28 December 2026.

For companies selling to consumers, it applies when, in the previous financial year, they employed at least 250 people, had annual turnover above €50 million or a balance sheet above €43 million. Any one of those is enough, and it applies whatever channel the customer uses and wherever the call centre sits.

The law's rule on automated answering is the line that matters for a voice agent. It says automated answering machines or similar systems may not be the only way customers reach service. It adds that a bot must let customers ask for "una atención personalizada", a real person, "en cualquier momento de la interacción, desde su inicio", at any point from the very start. That person must identify themselves when they come on.

The law also sets times. Under the law's rule on response times, 95% of phone calls must be answered, on average, within three minutes, and a call does not count as answered unless the customer can explain why they are calling and ask for a person. The rule on reaching a person sets the same three-minute average for 95% of requests for a person.

So, in general, a voice agent can answer first, but it can never stand between the customer and a person. This is general information, not legal advice; confirm with counsel whether the law covers your store.

Build the handover first

Design the transfer to a Spanish-speaking person before you write a single Spanish prompt.

Tell the agent, in its prompt, that any request for a person ("quiero hablar con una persona", "con un agente") is honoured at once, with no attempt to keep the caller. Transfer Call connects the caller to your team on Twilio, Telnyx and Asterisk ARI. Because it passes no summary by default, the agent first writes the caller's name, order and request to the helpdesk in Spanish, and then transfers.

A customer in Spain asks the voice agent for a person, and the agent plays a Spanish handover line and transfers the call to a Spanish-speaking team member, at any point in the call.
Build the handover before the Spanish prompts: customers of large companies in Spain generally have the right to reach a person on request.

The Pre-Transfer Message plays fixed text before the transfer, so write it in Spanish: "Le paso con una persona de nuestro equipo." Should no one on the team pick up within the 30-second default, the caller stays with the agent, so the prompt should have it offer a callback and record the request in the helpdesk. For a store in Spain's scope, the real answer is staffing the Spanish line so the three-minute averages hold.

Dograh's QA summaries are in English by default, so a Spanish speaker on the team should read the Spanish transcripts directly.

Dograh

Open Source Alternative to Vapi / Retell

Self-hosted voice agent platform — no per-minute fees

dograh-hq/dograh

Star on GitHub

Recording and sales calls in Spain

Two more Spanish rules touch a store's phone line.

On recording, Ley 10/2025 says that when a customer raises a query or complaint by phone and gives express consent, the company "deberá grabar la llamada", must record the call, and tell the customer how to access it. Recording cannot be switched off on Dograh Cloud and cannot wait for consent; self-hosted, recording can be turned off only server-wide, and transcripts are still saved. The Greeting Text can say the call is recorded, and a caller who objects can be handed to a person or the call ended.

On sales calls, Spain's telecommunications law, Ley 11/2022, gives users the right not to receive automated calls without human intervention for commercial purposes unless they have given their prior consent. An AI agent's cart or reorder call to a customer in Spain generally needs that prior consent. Settle both points before the first outbound campaign.

What changes in a Spanish store call

The call flow stays the same as in English: greet, verify, then disclose. What changes is the language setup.

Set speech-to-text to Multilingual (Auto-detect) with Spanish, plus English for a bilingual line, as Language hints (available with Dograh's own models or Deepgram Flux), then pick a voice that speaks Spanish. Greeting Text plays before Dograh can hear the caller's language, so write it in both, for example "Hola, hello". Tell the agent in its prompt to ask which language the caller prefers when it is unsure, and to switch only once the caller confirms.

Store words are where Spanish calls go wrong. Add product names, sizes such as "talla M", colours and SKU prefixes to the agent's Dictionary as one comma-separated list. Upload the Spanish version of the return and shipping policy to the Knowledge Base, so answers come from the store's own Spanish text. Read back addresses and order numbers digit by digit before writing anything.

For which speech models handle Spanish well, see Spanish AI voice agents for logistics and delivery.

Join the Dograh Community

Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.

Where to start

Start with the support line, because that is where Spain's rules apply and where most Spanish calls land; AI voice agents for customer support in e-commerce covers what the agent settles and what goes to a person.

If your customers are in the EU, think about where the calls are stored. Dograh Cloud names no EU data region, so for EU data location, self-host the platform in an EU data centre with the speech and language models running there too.

Glossary

Ley 10/2025
Spain's customer-service law of 26 December 2025. For large companies selling to consumers it generally bars automated answering as the only channel, gives customers a person on request from the start of the call, and sets three-minute answer-time averages.
Atención personalizada
Under Ley 10/2025, service given directly by a person who answers in real time and identifies themselves at the start of the conversation. Customers can ask for it at any point in a call.
Multilingual (Auto-detect)
The Dograh speech-to-text setting that detects the caller's language. Language hints below it, such as Spanish and English, narrow the choice for supported languages.
Pre-Transfer Message
Fixed text Dograh plays before Transfer Call connects the caller to a person. On a Spanish line, write it in Spanish so the caller knows they are being passed to the team.

Frequently Asked Questions

Get started with Dograh

Build, deploy, and scale AI agents with Dograh. Join the community of developers building the future.