Create and share a custom agent
Create a custom agent in Le Chat ↗ with its own instructions, tools, and knowledge base.
- Write a system prompt to define the agent's behavior
- Attach documents as a knowledge source
- Enable tools like Web Search, Code Interpreter, and Canvas
- Share the agent with your team
Time to complete: ~10 minutes
Prerequisites
- A Le Chat account (Free, Pro, or Team plan).
- Optionally, a document to use as a knowledge source (PDF, TXT, DOCX)
Step 1: Start a new agent
- In the Le Chat sidebar, click Agents.
- Click Create agent.
- Give your agent a name: for example,
Meeting Summarizer. - Choose a model. Mistral Medium is a good default.
Step 2: Write instructions
Instructions shape how the agent behaves across every conversation. Be specific about the task, format, and tone.
- In the Instructions field, write a system prompt. For example:
You are a meeting summarizer. When given meeting notes or a transcript, produce:
- A one-paragraph executive summary
- A bulleted list of action items with owners
- A list of open questions
Keep the tone professional and concise. Don't add information not present in the source material.
- Set a Temperature: use
0.2for consistent, deterministic output or0.7for more creative responses.
Good instructions define what the agent should do, the output format, and what it should avoid. Test with a few example conversations and refine.
Step 3: Enable tools
Tools extend what the agent can do beyond text generation.
-
Scroll to Tools and toggle on the capabilities you need:
- Web browsing: search the internet for current information
- Code Interpreter: run Python code for calculations, charts, and data analysis
- Canvas: create and edit documents, presentations, or code interactively
-
For a Meeting Summarizer, Canvas is useful so the agent can produce an editable summary document.
Step 4: Add a knowledge base
Attach documents so the agent can reference them when answering questions.
- Scroll to Knowledge and click Add library.
- Upload a document: for example, a company meeting template or style guide.
- The agent retrieves relevant sections from this document during conversations.
Optional, but useful when the agent needs domain-specific context like company policies, product docs, or internal guides.
Step 5: Test and share
- Click Save to create the agent.
- Start a conversation with your agent: paste some meeting notes and verify the output matches your instructions.
- To share with your team:
- Click the three-dot menu on the agent
- Select Share
- Choose team members or copy the share link
Team members can use the agent from their own Le Chat sidebar without seeing or modifying the instructions.
Verify
Your agent is working correctly if:
- It follows the instruction format consistently across different inputs
- Enabled tools (web search, canvas) activate when relevant
- Knowledge base content is referenced when you ask related questions
- Shared team members can access and use the agent