# AI — Introduction

Source: https://cumulocity.com/docs/ai/aim-introduction/
Sector: Application enablement & solutions
Release: Latest

> **Feature preview:**
> The feature is currently in public preview and might change or is not feature complete. While we try to keep changes as low as possible, breaking changes and feature removals happen. To enable the feature, open the right drawer (by clicking on your username initials) in the **Administration** application and select **Manage preview features**. Then activate the toggle next to **AI Agent Manager**.



The AI Agent Manager enables you to create and manage AI agents—intelligent assistants that help users interact with your IoT data and systems through natural language conversations. Instead of building custom AI integrations from scratch, you configure pre-built agents that understand your specific use cases and have access to the tools required to be helpful.

![The AI Manager default view and a test prompt](https://cumulocity.com/docs/images/agents/testing_an_agent.png)

### What is an AI agent? {#what-is-an-ai-agent}

An AI agent is a configured AI assistant with a specific purpose and behavior. Each agent consists of:

- **System prompt**: Defines the agent's role, personality, and expertise (for example, "You are a factory monitoring assistant").
- **Tools**: Actions the agent performs, such as querying device data, triggering operations, or accessing custom services.
- **AI provider**: The underlying AI model (such as Claude, GPT, or others) that powers the agent.

Once configured, users interact with agents through natural language without needing to know technical details about APIs or system prompts.

### What you do with AI agents {#what-you-do-with-ai-agents}

- **Create specialized assistants**: Configure agents for specific use cases like equipment monitoring, predictive maintenance analysis, or device troubleshooting. Each agent has its own expertise and access to relevant data.

- **Add tools and capabilities**: Connect agents to Cumulocity data through built-in tools or extend them with custom tools via MCP (Model Context Protocol) servers. This allows agents to query device data, retrieve measurements, or trigger actions.

- **Test and refine**: Use the built-in test interface to interact with your agents and see how they respond. The test interface shows you exactly what tools the agent is calling and how it reasons about your questions.

- **Provide conversational interfaces**: Once configured, agents maintain conversations with context, using variables to personalize responses and access to tools to fetch real-time data.

- **Manage AI providers**: Configure which AI provider and model to use globally or for specific agents. The system supports multiple providers including OpenAI, Anthropic, Google, and others, abstracting away the complexity of working with different APIs.

### Getting started by configuring a global provider {#getting-started-by-configuring-a-global-provider}


> **Important:**
> Without a global LLM provider configured, the Cumulocity platform is never connected to any external Large Language Model provider, even if the list already shows subscribed agents.



Start by configuring a global provider and model. A global provider is the LLM provider and model that is used by default on each agent interaction as long as the agent does not define another provider or model in its local provider configuration. Use the AI Agent Manager UI in the **Administration** application:

1. Open the AI Agent Manager main view. You see a list of agents provided in your instance.
2. In the toolbar, click **Add global provider**.
3. In the modal, configure your provider. The tested providers are:
   - Anthropic
   - OpenAI
   - Google Gemini
   
   Additional providers are supported but not tested by the Cumulocity team. They work without guarantee. The same applies to open source models based on the OpenAI API, which are supported by using the OpenAI provider and changing the baseURL and the strict mode in the advanced settings.
   ![The modal helps to configure your global provider](https://cumulocity.com/docs/images/agents/configuring_a_provider.png)
4. Define the model to use.
5. Add an API key provided by your provider. This is securely stored inside the platform and cannot be read afterwards.
6. Add advanced provider-specific settings if necessary. The advanced settings editor accepts JSON and validates via a JSON schema.
7. Save the provider.

The next step is to validate your provider. The easiest way is to create a new agent:

1. Click **Add agent** at the bottom of the list.
2. Select **Test** and write "Hello world".
3. The agent responds with a hello message.

If successful, your provider is correctly configured, and you can start to use and test AI agents. Next, learn more about subscribed agents, object agents, local providers, and MCP tools:
 - Learn what [subscribed agents](https://cumulocity.com/docs/ai/agents/#what-are-subscribed-agents) are and how you can align them.
 - Understand the difference between an [object and a text agent](https://cumulocity.com/docs/ai/agents/#text-and-object-agents).
 - See how you can leverage [local providers](https://cumulocity.com/docs/ai/agents/#local-providers) to overwrite the provider or model of a global provider.
 - Understand the available [tools and how you can extend them with MCP](https://cumulocity.com/docs/ai/tools-mcp/).
 - You can also manage agents programmatically [via the REST API](https://cumulocity.com/docs/ai/rest-api/) for integration into your own applications and workflows.

