Issue invoice from form data with NIF validation
A valid customer receives an issued invoice automatically, with invalid NIFs rejected and idempotency preventing duplicate issues.
How it works
Changes data in your accountsFinance and payments
The agent validates the customer's NIF against the AEAT registry to ensure it exists. It checks the company's issuing readiness to confirm all prerequisites are met. It then creates the customer if not found, derives an idempotency key from the form submission to prevent duplicates, and issues the invoice directly while sending it to the customer. The raw form data is stored for audit purposes.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Issue invoice from form data with NIF validation
Create an invoice for a new customer. The form data is: NIF 'B12345678', Name 'Acme Corp', Email 'contact@acme.com', Concept 'Consulting', Amount 100. Validate the NIF first. Check if the company is ready to issue. If the customer doesn't exist, create them. Issue the invoice directly and send it automatically. Use the form data to generate an idempotency key.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Validate the NIF first. It is one node and a real lookup against the AEAT registry — an invented NIF is rejected before anything is created.Recipes