Deploy the automation intelligent assistant
The automation intelligent assistant is an AI-powered chat interface embedded in Ansible Automation Platform. It uses large language models (LLMs) to answer questions about your Ansible Automation Platform environment in natural language.
- The automation intelligent assistant: A chat interface that generates answers to questions about Ansible Automation Platform. The intelligent assistant interacts with users in English and uses LLMs to provide contextual responses.
- The coding assistant: A generative AI service that works with IBM watsonx Code Assistant to help developers create Ansible content, including single-task and multi-task recommendations, playbooks, and roles.
Automation intelligent assistant
The automation intelligent assistant is an intuitive chat interface embedded in the Ansible Automation Platform, and uses generative artificial intelligence (AI) to answer questions about the platform.
The automation intelligent assistant interacts with users in English, and uses Large Language Models (LLMs) to generate quick, accurate, and personalized responses. These responses empower Ansible users to work more efficiently, thereby improving productivity and the overall quality of their work.
To use the automation intelligent assistant, you need:
- A valid subscription to Ansible Automation Platform.
- Deployment of an LLM service that is hosted on one of these platforms: Red Hat Enterprise Linux AI, Red Hat OpenShift AI, or Red Hat AI Inference Server.
Integration with the MCP server
The automation intelligent assistant integration with the Model Context Protocol (MCP) server is available as a Technology Preview release. MCP is an open protocol that enables applications to give real-time context to LLMs.
This integration enables the automation intelligent assistant to request and receive the latest information from external resources, and give more relevant, dynamically-sourced answers when responding to your questions. To set up this integration, you need to specify the MCP server variables when configuring the Red Hat Ansible Lightspeed variables in the inventory file.
Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features give early access to upcoming product features, enabling customers to test functionality and leave feedback during the development process.
Deployment models
The Ansible Lightspeed coding assistant supports two deployment models. No telemetry data is collected in either configuration.
- On-premise deployment
Both Red Hat Ansible Lightspeed and the IBM watsonx Code Assistant model (IBM Cloud Pak for Data) are on-premise deployments.
- Hybrid deployment
Red Hat Ansible Lightspeed is an on-premise deployment, while IBM watsonx Code Assistant model is a cloud deployment.
A hybrid deployment model provides the following benefits:
- Flexibility to choose an environment that best suits your organizational needs.
- Integrated authentication by using the Ansible Automation Platform for user authentication and removing the need for a separate Red Hat cloud login.
- Regional choice for organizations to deploy Red Hat Ansible Lightspeed in their preferred geographical region.
Ansible Automation Platform requirements
- Licensing requirements:
- A valid Ansible Automation Platform subscription.
- Administrator privileges for the Ansible Automation Platform.
- Additional requirements for Ansible Lightspeed coding assistant:
- A valid subscription to IBM watsonx Code Assistant (for on-premise deployment), or IBM watsonx Code Assistant for Red Hat Ansible Lightspeed on Cloud Pak for Data (for hybrid deployment).
- An API key and a model ID from IBM watsonx Code Assistant.
- VS Code version 1.70.1 or later.
- Additional requirements for automation intelligent assistant:
- Deployment of an LLM service that is hosted on one of these platforms: Red Hat Enterprise Linux AI, Red Hat OpenShift AI, or Red Hat AI Inference Server.
Large Language Model (LLM) provider requirements
You must have configured an LLM provider that you will use before deploying the automation intelligent assistant. An LLM is a type of machine learning model that can interpret and generate human-like language. When an LLM is used with the automation intelligent assistant, the LLM can interpret questions accurately and provide helpful answers in a conversational manner.
Your LLM must have tool calling enabled to handle tool-related requests. Tool calling allows the assistant to interact with platform services and execute complex workflows.
The automation intelligent assistant can rely on the following LLM providers:
- Red Hat LLM providers:
- Red Hat Enterprise Linux AI
You can configure Red Hat Enterprise Linux AI as the LLM provider. As the Red Hat Enterprise Linux is in a different environment than the Ansible Lightspeed deployment, the model deployment must allow access using a secure connection.
The automation intelligent assistant supports vLLM Server. When self-hosting an LLM with Red Hat Enterprise Linux AI, you can use vLLM Server as the inference engine.
- Red Hat OpenShift AI
You must deploy an LLM on the Red Hat OpenShift AI single-model serving platform that uses the Virtual Large Language Model (vLLM) runtime. If the model deployment lives in a different OpenShift environment than the Ansible Lightspeed deployment, include a route to expose the model deployment outside the cluster.
The automation intelligent assistant supports vLLM Server. When self-hosting an LLM with Red Hat OpenShift AI, you can use vLLM Server as the inference engine.
Note:For configurations with Red Hat Enterprise Linux AI or Red Hat OpenShift AI, you must host your own LLM provider instead of using a SaaS LLM provider.
- Red Hat AI Inference Server
You can deploy an LLM by using Red Hat AI Inference Server as your inference runtime. Red Hat AI Inference Server supports vLLM runtimes for efficient model serving and can be configured to work with the automation intelligent assistant.
If the Red Hat AI Inference Server deployment is in a different environment than the Ansible Lightspeed deployment, ensure the model deployment allows access by using a secure connection and configure appropriate network routing.
The automation intelligent assistant supports vLLM Server when self-hosting an LLM with Red Hat AI Inference Server as the inference engine.
- Red Hat Enterprise Linux AI
- Third-party LLM providers:
- OpenAI
To use OpenAI with the automation intelligent assistant, you need access to the OpenAI API platform.
- Microsoft Azure OpenAI
To use Microsoft Azure with the automation intelligent assistant, you need access to Microsoft Azure OpenAI.
- OpenAI
Deploy the automation intelligent assistant on OpenShift Container Platform
As a system administrator, you can deploy the automation intelligent assistant on Ansible Automation Platform on OpenShift Container Platform.
Overview
Install and use the automation intelligent assistant on Ansible Automation Platform for OpenShift Container Platform. An intuitive chat interface, embedded in Ansible Automation Platform, it uses generative artificial intelligence (AI) to answer questions about Ansible Automation Platform.
The automation intelligent assistant interacts with users in their natural language prompts in English, and uses Large Language Models (LLMs) to generate quick, accurate, and personalized responses. These responses empower Ansible users to work more efficiently, thereby improving productivity and the overall quality of their work.
The automation intelligent assistant requires the following configurations:
- Installation of Ansible Automation Platform 2.6 or later on Red Hat OpenShift Container Platform
- Deployment of an LLM provider served by either a Red Hat AI platform or a third-party AI platform. To know the LLM providers that you can use, see LLM Providers below.
Red Hat does not collect any telemetry data from your interactions with the automation intelligent assistant.
Integration with MCP server
Automation intelligent assistant integration with the Model Context Protocol (MCP) server is now generally available. This integration enhances the user experience by delivering relevant, dynamically sourced data results to your queries.
MCP is an open protocol that standardizes how applications provide context to LLMs. Using the protocol, an MCP server provides a standardized way for an LLM to increase context by requesting and receiving real-time information from external resources. The integration with an MCP server enables the automation intelligent assistant to offer an enhanced user experience by delivering relevant, dynamically sourced data results to your queries. You can configure a MCP server in the chatbot configuration secret.
Ansible Automation Platform requirements
- You have installed Ansible Automation Platform 2.6 or later on your OpenShift Container Platform environment.
- You have administrator privileges for Ansible Automation Platform.
- You have provisioned an OpenShift cluster with Operator Lifecycle Management installed.
Large Language Model (LLM) provider requirements
You must have configured an LLM provider that you will use before deploying the automation intelligent assistant.
An LLM is a type of machine learning model that can interpret and generate human-like language. When an LLM is used with the automation intelligent assistant, the LLM can interpret questions accurately and provide helpful answers in a conversational manner. Your LLM must have tool calling enabled to handle tool-related requests. Tool calling allows the assistant to interact with platform services and execute complex workflows.
The automation intelligent assistant can rely on the following LLM providers:
- Red Hat LLM providers:
- Red Hat Enterprise Linux AI
You can configure Red Hat Enterprise Linux AI as the LLM provider. As the Red Hat Enterprise Linux is in a different environment than the Ansible Lightspeed deployment, the model deployment must allow access using a secure connection.
The automation intelligent assistant supports vLLM Server. When self-hosting an LLM with Red Hat Enterprise Linux AI, you can use vLLM Server as the inference engine.
- Red Hat OpenShift AI
You must deploy an LLM on the Red Hat OpenShift AI single-model serving platform that uses the Virtual Large Language Model (vLLM) runtime. If the model deployment resides in a different OpenShift environment than the Ansible Lightspeed deployment, include a route to expose the model deployment outside the cluster.
The automation intelligent assistant supports vLLM Server. When self-hosting an LLM with Red Hat OpenShift AI, you can use vLLM Server as the inference engine.
Note:For configurations with Red Hat Enterprise Linux AI or Red Hat OpenShift AI, you must host your own LLM provider instead of using a SaaS LLM provider.
- Red Hat AI Inference Server
You can deploy an LLM using Red Hat AI Inference Server as your inference runtime. Red Hat AI Inference Server supports vLLM runtimes for efficient model serving and can be configured to work with automation intelligent assistant.
If the Red Hat AI Inference Server deployment is in a different environment than the Ansible Lightspeed deployment, ensure the model deployment allows access using a secure connection and configure appropriate network routing.
The automation intelligent assistant supports vLLM Server when self-hosting an LLM with Red Hat AI Inference Server as the inference engine.
- Red Hat Enterprise Linux AI
- Third-party LLM providers:
- OpenAI
To use OpenAI with the automation intelligent assistant, you need access to the OpenAI API platform.
- Microsoft Azure OpenAI
To use Microsoft Azure with the automation intelligent assistant, you need access to Microsoft Azure OpenAI.
- OpenAI
Process for configuring and using the automation intelligent assistant
Perform the following tasks to set up and use the automation intelligent assistant in your Ansible Automation Platform instance on the OpenShift Container Platform environment:
| Task | Description |
|---|---|
| Deploy the automation intelligent assistant on OpenShift Container Platform |
An Ansible Automation Platform administrator who wants to deploy the automation intelligent assistant for all Ansible users in the organization. Perform the following tasks:
|
| Access and use the automation intelligent assistant |
All Ansible users who want to use the intelligent assistant to get answers to their questions about the Ansible Automation Platform. |
Create a chatbot configuration secret
Create a configuration secret for the intelligent assistant so that you can connect it to the Ansible Automation Platform operator.
Before you begin
Procedure
Examples of chatbot configuration secrets
The following snippet shows a few examples of secrets configuration for different LLM models.
# Example of a secret configuration for Red Hat OpenShift AI
apiVersion: v1
kind: Secret
metadata:
name: chatbot-configuration-secret
namespace: aap
stringData:
chatbot_llm_provider_type: rhoai_vllm
chatbot_url: https://llm-dev-wisdom-model-staging.apps.stage2-west.v2dz.p1.openshiftapps.com/v1
chatbot_model: granite-3.3-8b-instruct
chatbot_token: <token number># Example of a secret configuration for OpenAI
apiVersion: v1
kind: Secret
metadata:
name: chatbot-configuration-secret
namespace: aap
stringData:
chatbot_llm_provider_type: openai
chatbot_url: https://api.openai.com/v1
chatbot_model: gpt-4o-mini
chatbot_token: <token number># Example of a secret configuration for Microsoft Azure OpenAI
apiVersion: v1
kind: Secret
metadata:
name: chatbot-configuration-secret
namespace: aap
stringData:
chatbot_llm_provider_type: azure_openai
chatbot_url: https://ols-test.openai.azure.com
chatbot_model: gpt-4o-mini
chatbot_token: <token number>
chatbot_model_config_extras: '{"api_version": "2025-01-01-preview"}'Update the YAML file of the Ansible Automation Platform operator
After you create the chatbot authorization secret, you must update the YAML file of the Ansible Automation Platform operator to use the secret.
Procedure
Results
- Verify that the chat interface service is running successfully:
- Navigate to .
- Filter with the term api and ensure that the following APIs are displayed in Running status:
myaap-lightspeed-api-<version number>myaap-lightspeed-chatbot-api-<version number>
- Verify the MCP server configuration if you specified either
aap_gateway_urloraap_controller_urlparameter:- Open the
lightspeed-chatbot-apipod and click the Containers section.- If the
ansible-mcp-lightspeedcontainer is displayed, the Ansible Lightspeed MCP server is running. - If the
ansible-mcp-controllercontainer is displayed, the Ansible Automation Platform Controller Service MCP server is running.
- If the
- Open the
- Verify that the chat interface is displayed on the Ansible Automation Platform:
- Access the Ansible Automation Platform:
- Navigate to .
- From the list of installed operators, click Ansible Automation Platform.
- Locate and select the Ansible Automation Platform custom resource, and then click the app that you created.
- From the Details tab, record the information available in the following fields:
- URL: This is the URL of your Ansible Automation Platform instance.
- Gateway Admin User: This is the username to log into your Ansible Automation Platform instance.
- Gateway Admin password: This is the password to log into your Ansible Automation Platform instance.
- Log in to the Ansible Automation Platform using the URL, username, and password that you recorded earlier.
- Access the intelligent assistant:
- Click the intelligent assistant icon
that is displayed at the top right corner of the taskbar. - Verify that the chat interface is displayed, as shown in the following image:
.
- Click the intelligent assistant icon
- Access the Ansible Automation Platform:
Change your LLM model
If you have already deployed Ansible Lightspeed intelligent assistant but want to change your LLM model, you can create a new chatbot configuration secret for the new LLM model.
About this task
Alternatively, if you want to use the same chatbot configuration secret, you must delete and redeploy the Ansible Lightspeed intelligent assistant.
Procedure
- To create and use a new chatbot configuration secret:
- To use the same chatbot secret by deleting and redeploying the Ansible Lightspeed intelligent assistant: