Writing your will with a chatbot in Spain
Most wills in Spain are made before a notary, and the do-it-yourself form has to be handwritten in full. A printed chatbot draft signed at home generally meets neither form under the Código Civil.
In Spain, the will most people make is dictated to a notary, who writes it up. Under article 695 of the Código Civil you can give the notary your wishes orally, in writing or by any technical means. A chatbot draft can be one of those means. Signed at home, it is generally not a will.
That is the short answer. Spanish law does not test who drafted the words. It tests the form, and article 687 says a will made without the formalities its form requires is void.
The three common forms
Article 676 lists three common forms of will:
- ológrafo, written by the person making it;
- abierto (open), made before a notary under article 694;
- cerrado (closed), a sealed document presented to the people who must authorise it.
Only the first can be made without a notary, and it has strict conditions.
The handwritten will and its five-year clock
Under article 688, a handwritten will can only be made by an adult. It must be written entirely and signed by you, with the year, month and day it was made, and any crossings-out or words added between the lines must be confirmed under your signature. A foreign national may write it in their own language.
A typed or printed page is not written by you. Copying a chatbot draft out by hand can meet the form, but article 689 sets a further step: after your death, the handwritten will has to be presented to a notary for formal registration (protocolización) within five years. A will that is not presented in time may run into difficulty at that stage.
Two thirds for the children
Article 808 says the legítima of children and descendants is two thirds of the estate. You may use one of those two thirds to favour one or more of them (the mejora), and the remaining third is yours to leave freely. Under article 807, where there are no descendants, parents are forced heirs, and a surviving spouse has rights in the form the Code sets out. A chatbot that does not know your whole family cannot work within those limits.
Regional law and foreign residents
The Código Civil is not the whole story. Article 13 keeps in force the special or foral civil laws of the regions that have them, with the Code applying only as a fallback there. Catalonia, for example, has its own succession law. We have not checked those regional rules for this post.
For a foreign national living in Spain, the EU Succession Regulation also matters. Article 27 sets out the general rule that a written will is valid as to form if it complies with one of several laws, including the law of the place it was made and the law of a country of your nationality, domicile or habitual residence. But article 75 says member states that are party to the 1961 Hague Convention on the form of wills keep applying that Convention instead of article 27, and Spain is a party to it. Which rule applies to you is a question for a professional, not a chatbot.
Where we fit, in Spain
We do not prepare a will for Spain. A notary can explain the forms and make an open will with you, and can work from wishes you have already set out. Our Spain guide to using AI to write a will goes into what a chatbot draft can and cannot do, and our directory lists legal professionals by area.
This explains the general position under the Spanish Código Civil only and is not legal advice. Regional civil law may apply where you live, the law can change, and a notary or other qualified professional can advise on your own situation.
Sources
Checked November 2026; re-check after changes to the law.
- Código Civil (BOE consolidated text) (opens in a new tab), article 13, regional (foral) civil law
- Código Civil (BOE consolidated text) (opens in a new tab), articles 676 to 680, the common forms of will (handwritten, open, closed)
- Código Civil (BOE consolidated text) (opens in a new tab), article 687, nullity where the formalities are not observed
- Código Civil (BOE consolidated text) (opens in a new tab), articles 688 and 689, the handwritten will and its registration within five years
- Código Civil (BOE consolidated text) (opens in a new tab), articles 694 and 695, the open will before a notary (article 695 as amended by Ley 8/2021)
- Código Civil (BOE consolidated text) (opens in a new tab), articles 806 to 808, forced heirs and the legítima
- Regulation (EU) No 650/2012 (opens in a new tab), articles 27 and 75, the formal validity of written wills and the Hague Convention
- HCCH status table, Convention of 5 October 1961 on the conflicts of laws relating to the form of testamentary dispositions (opens in a new tab), Spain's ratification
Written by
TheWILL.ai Team
The editorial team at TheWILL.ai, dedicated to making estate planning accessible and modern.

