---
title: "Intro to Roleplay Agent from a File"
url: "https://help.outdoo.ai/en/article/create-roleplay-agent-using-a-file-or-resource"
language: "en"
last_updated: "2026-11-10T18:02:25.939Z"
---

# Intro to Roleplay Agent from a File

You can create AI roleplay agents using uploaded training files and documents during agent creation. Fine-tuning (or refinement) workflows can also use file attachments so behaviour stays aligned with specific source material, not only a free-form prompt.

You can base a roleplay agent on a real document, such as a product guide or a pricing policy, so the agent's answers and objections come from your own material. Files come from your [Resources](https://help.outdoo.ai/en/article/roleplay-resources) library, which accepts PDF, DOC, DOCX, PPT, PPTX, TXT, CSV and XLSX files. If the material isn't in a file yet, you can write it in **Manage > Resources** with **Add Text Snippet**, which saves it as a DOCX file.

### Why use it?

-   **Factual grounding**: product specs, FAQs, and policies reduce hallucinations and off-brand answers.

-   **Persona fidelity**: persona write-ups, example dialogues, or transcripts steer tone and objections.

-   **Faster iteration**: swap the file when tuning instead of rewriting long prompts. In **Manage > Resources**, **Edit** on a file opens **Replace File**, which updates the library file in place.

### How it works

-   Add the document to **Manage > Resources** first: click **Add Resources**, then **Add Files** to upload it or **Add Text Snippet** to write it.

-   Go to **Practice > Roleplay Agents** > **Create Roleplay Agent**, describe the agent in the prompt box, then click **Add Context > From Resources** and pick the file.

-   Generate the agent and run a test call.

You can attach one resource at a time. To use a different file, remove the current one and add the new one. The same **Add Context** menu (**From Calls with This Agent** and **From Resources**) is available in the **Fine-Tune with AI** panel when you refine an existing agent. The panel works on a saved draft.

For the step-by-step guide, see [Create a Roleplay Agent from a File or Resource](https://help.outdoo.ai/en/article/create-a-roleplay-agent-from-file-or-resource).

### Use cases

-   **Product launch practice**: attach the launch brief so the buyer asks about the new features and pricing.

-   **Objection handling**: attach your objection-handling guide so the agent raises the objections your team hears most.

-   **Policy and compliance**: attach a returns or refund policy so support team members practice explaining it accurately.

-   **Competitive deals**: attach a battlecard so the buyer compares you with a named competitor.

Hope this article was helpful. For any queries, please write to support@outdoo.ai

## Related articles

-   [Intro to Resources](https://help.outdoo.ai/en/article/roleplay-resources)

-   [Create a Roleplay Agent from a File or Resource](https://help.outdoo.ai/en/article/create-a-roleplay-agent-from-file-or-resource)

-   [Creating a Roleplay Agent: All the ways to do it](https://help.outdoo.ai/en/article/roleplay-agent-creation-overview)
