Configure an Agent
Choose the Agent's model and write its system prompt.
About This Task
Choose the model the Agent uses and write its system prompt. After that, you can expand the Agent's capabilities with tools, memory, and skills.
Prerequisites
- For an explanation of the Agent, its tools and memory, see AI Agent and Agent Tools.
- For an explanation of skills, see Agent Skills.
- For the
Agentcomponent reference and parameter documentation, see Agent. - Make sure Haystack Platform is connected to the provider of the model you want to use. The Agent works with chat models that support tool calls. For details on how to connect, see Using Hosted Models and External Services.
- To use custom model definitions, make sure they're added on the Integrations page in Settings. For details, see Add Custom Model Definitions.
- For instructions on how to write prompts, see Writing Prompts in Haystack Platform.
- Understanding of pipelines and components in Haystack Platform. For details, see Pipelines and Pipeline Components.
Configure the Model and System Prompt
- Click Add to open the component library and add the Agent component onto the canvas.
- Click the
Modelfield to open the Agent configuration panel and choose the model from the list. - Enter the system prompt for the Agent.
Next Steps
Expand what the Agent can do:
- Add Tools to an Agent: Connect an MCP server, custom code, or a pipeline.
- Add Persistent Memory to an Agent: Give the Agent long-term memory across conversations.
- Add Skills to an Agent: Attach versioned instructions and reference material.
- Configure an Agent: Advanced Settings: Set step limits and exit conditions.
Tutorials
See these tutorials for end-to-end examples of configuring an agent with tools:
- Building a Deal Desk Agent with Search and Custom Code — Configure a pipeline search tool and a custom code tool on the same agent.
- Building an IT Helpdesk Agent with Multiple Knowledge Bases — Configure two pipeline search tools that route questions to different knowledge bases.
Was this page helpful?