
This matters more now that outside teams build most business agents. On 29 September 2026 Gartner predicted that up to 70% of enterprises will abandon agentic AI systems built by vendor forward-deployed engineers by 2028, because maintenance costs rise and in-house teams struggle to change what the vendor built (Techstrong.ai on the Gartner prediction). Gartner analyst Mukul Saha said success starts with getting the engagement structure right, "from scope and incentives to governance, ownership, and exit". This guide is for buyers in the US, UK, Europe and the UAE hiring an outside team.
What you should own when the project ends
An AI agent is more than code. Most of its value sits in the prompts, tests and accounts around the code, so the contract should name each one.
| Asset | Why it matters | What to agree |
|---|---|---|
| Source code and deployment scripts | Without them you cannot fix, move or extend the agent | Assigned to you on final payment; the repository sits in your organisation's account from day one |
| Prompts, system instructions and tool definitions | They decide how the agent behaves, and rebuilding them takes weeks | Listed as deliverables, kept under version control with change history |
| Test sets and evaluation results | They show whether a change broke the agent | Delivered with the scripts that run them and the scores at launch |
| Fine-tuned models, embeddings and search indexes | They are built from your data | Yours, exportable in a standard format |
| Your data, call recordings and conversation logs | You answer for this personal data | Stored in your accounts; returned or deleted when the contract ends |
| Model, cloud, telephony and WhatsApp accounts | Whoever holds the account controls the agent | Opened in your company's name, with the vendor added as a user |
| The vendor's own reusable tools | Vendors reuse them across clients | A permanent, royalty-free licence for your use, not ownership |
| Open-source and third-party parts | Each licence has conditions | A written list of every component and its licence |
Who owns the code by default (often not you)
Paying for software does not automatically mean owning it when an outside company writes it.
In the US, a commissioned work counts as "made for hire" only if it falls into one of nine categories and both parties sign a written agreement saying so. Software is not one of the nine, so custom code from a contractor is not a work made for hire (US Copyright Office, Circular 30). The usual fix is a written assignment of copyright in the contract.
In the UK, the author is the first owner of copyright, and the employer owns a work only when an employee makes it in the course of employment (Copyright, Designs and Patents Act 1988, section 11). A vendor's engineers are not your employees, so you need the same assignment clause. Elsewhere, ask a local lawyer, and have the contract state ownership in plain words.
AI-generated code and the agent's outputs
Agents are now partly written with AI coding tools, and they write to your customers. Two points belong in the contract.
First, not everything an AI produces is protected. The US Copyright Office concluded in January 2025 that prompts alone do not give enough human control to make the user the author of the output, while human-written parts and the human selection and arrangement of material can be protected (Mintz summary of the report). So the contract should assign whatever rights exist in all deliverables, including AI-assisted work, and the vendor should confirm it has the right to hand them over.
Second, check who the model provider treats as its customer. OpenAI's business terms, for example, say the customer owns the output and that OpenAI will not use customer content to develop or improve its services (OpenAI business terms). Those promises go to the account holder. If the vendor's account runs your agent, the vendor is the customer, which is one more reason to keep the API account in your name.
What a real handover includes
Ask for these seven items, and tie the final payment to them:
- Repository access with the full history, plus the deployment and infrastructure scripts.
- An architecture document: the components, the data flows and every outside system the agent calls.
- The prompt and tool library with its version history and the reason for each major change.
- The test set, the scores at launch and instructions to re-run it.
- Runbooks: how to roll back a release, rotate keys, pause the agent and handle an outage.
- Admin access to every account, so the vendor's access can be removed without breaking anything.
- Recorded knowledge-transfer sessions, then a short period in which your team makes a real change while the vendor reviews it.
Exit terms to agree before you start
The best time to agree how you leave is before you need to. Put these in the contract:
- Notice and transition help: how much notice either side gives, how many days of help the vendor provides after notice, and at what rate.
- No release fees: no charge for handing over code, accounts or data beyond the agreed transition days.
- Your data: returned or deleted at your choice, with a deadline and written confirmation. Under the GDPR, a processor must already delete or return all personal data at the end of its services, and delete existing copies unless the law requires it to keep them (GDPR, Article 28).
- Hosted services: if the vendor runs your agent as a hosted service for an EU customer, the EU Data Act applies. Since 12 September 2025, customers can start a switch on at most two months' notice, the switch must finish within 30 days after that, and contracts must list the data and digital assets that can be moved; all switching charges are banned from 12 January 2027 (Latham & Watkins on the Data Act).
- Licences that survive: your licence to the vendor's reusable tools carries on after the contract ends.
Six questions to ask an AI agent vendor before you sign
- On final payment, do we own the code, prompts, test sets and any trained models, and which clause says so?
- Whose name will the model, cloud, phone and WhatsApp accounts be in?
- Which of your own tools will the agent depend on, and what licence do we get to them?
- What does the handover include, and how many hours of knowledge transfer?
- If we leave, how much notice do we give, what help do we get and what does it cost?
- How and when will you return or delete our data and recordings?
A vendor that answers all six in one email will be easier to work with when something changes.
How Prilient can help
Prilient Technologies has delivered 500+ projects for 50+ clients since 2019. We build custom AI agents and run Prilient AI Agents, six agents for reception, customer support, WhatsApp lead generation, appointment setting, debt collection and HR interview screening. If you would rather keep the build in-house, you can hire dedicated AI developers who work in your own repository, or start with AI consulting to scope the agent and its contract terms first.
Book a free 30-minute call. Tell us what the agent should do and which systems it touches, and we will tell you what the build and the handover would involve.
This article is general information, not legal advice. Ask a lawyer to review the contract before you sign.
Questions about AI agent ownership and handover
Who owns the code when an outside company builds our AI agent?
Whoever the contract says. Without a written assignment, US and UK law generally leave copyright in custom code with the company that wrote it, because a contractor's software is not a work made for hire in the US and the UK employer rule covers only employees. Ask for an assignment of all deliverables on final payment.
Do we own the prompts and what the agent writes?
Prompts are only yours if the contract lists them as deliverables, so name them, with the tool definitions and test sets. For the agent's replies, the model provider's terms decide. OpenAI's business terms give output ownership to the customer, so keep the model account in your company's name.
Can AI-generated code be copyrighted?
Only in part. The US Copyright Office concluded in January 2025 that prompts alone do not make someone the author, while human-written parts and the human selection and arrangement of material can be protected. Contracts should therefore assign whatever rights exist in all deliverables, including AI-assisted work.
What should an AI agent handover include?
The repository with full history, deployment scripts, an architecture document, the prompt and tool library with version history, the test set and launch scores, runbooks for rollback and outages, admin access to every account, and recorded knowledge-transfer sessions. Tie the final payment to these items.
How do we switch AI agent vendors without starting again?
Keep the code, prompts, tests and all accounts in your name from the first day, and agree notice, transition help and fees before you sign. If the vendor hosts the agent as a service for an EU customer, the EU Data Act requires a switch within 30 days after at most two months' notice, and bans switching charges from 12 January 2027.
What happens to our data when the contract ends?
Agree that the vendor returns or deletes it at your choice, by a set date, and confirms in writing. For personal data, Article 28 of the GDPR already requires a processor to delete or return it at the end of the services and to delete existing copies unless the law requires it to keep them.
Leave A Reply
Your email address will not be published. Required fields are marked *