AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

Connect the AAP Intelligent Assistant to OpenAI: Setup Guide

By Luca Berton · Published 2024-01-01 · Category: installation

Step-by-step guide to connecting the AAP Intelligent Assistant to OpenAI on Ansible Automation Platform 2.6/2.7 using the BYOM model.

Red Hat Ansible Automation Platform (AAP) 2.7 lets organizations bring their own large language model provider to power the Intelligent Assistant, the chatbot embedded directly in the AAP UI. Among the supported providers, OpenAI stands out as one of the easiest to get running for teams that already have an OpenAI account and want conversational automation help without standing up a private model. This guide walks through what BYOM means for the Intelligent Assistant, where OpenAI fits in Red Hat's provider compatibility matrix, and how to connect the two.

This guidance reflects the BYOM (Bring Your Own Model) provider compatibility matrix Red Hat presented at Red Hat Tech Day Netherlands 2026 in Bunnik on 3 June 2026, which laid out exactly which AI features support which model providers, and from which AAP version.

What Is BYOM on AAP 2.7?

BYOM, or Bring Your Own Model, is Red Hat's framework for letting customers point AAP's AI-assisted features at the LLM provider of their choice rather than being locked into a single vendor. AAP 2.7 exposes this through two distinct AI surfaces:

  • Intelligent Assistant — the chatbot embedded in the AAP UI, used for asking questions, generating playbook snippets, and getting contextual help while working in controller, automation hub, or the Ansible Lightspeed experience.
  • Coding Assistant — the Ansible VS Code extension that offers inline code suggestions while authoring playbooks and roles.
These two surfaces do not share the same provider support timeline, which is exactly why the compatibility matrix matters before you start configuring anything.

See also: Connect the AAP Coding Assistant to Google Gemini: Setup Guide

Provider Compatibility Matrix

Red Hat's Tech Day presentation broke down provider support feature by feature. Here is the matrix as announced:

ProviderIntelligent AssistantCoding Assistant
Red Hat AIAAP 2.6+AAP 2.6+
OpenAIAAP 2.6+Coming Soon
Azure OpenAIAAP 2.6+Coming Soon
IBM watsonxNot supportedAAP 2.5+ (first external provider supported)
Google Gemini / VertexComing SoonAAP 2.6+
Two details are worth calling out. First, IBM watsonx was actually the first external (non-Red Hat AI) provider supported anywhere in the platform, but only for the Coding Assistant starting at AAP 2.5 — it is explicitly not supported for the Intelligent Assistant. Second, OpenAI's support for the Intelligent Assistant (AAP 2.6+) arrived well before OpenAI support for the Coding Assistant, which remains "Coming Soon" as of this Tech Day. If your goal is specifically the chatbot experience, OpenAI is already a first-class, generally available option — you do not need to wait for anything.

Prerequisites

Before connecting the Intelligent Assistant to OpenAI, confirm the following:

  • You are running AAP 2.6 or later (AAP 2.7 recommended for the latest Intelligent Assistant capabilities, including BYOK described below).
  • You have platform administrator access to the AAP UI, specifically to the AI configuration settings.
  • You have an OpenAI API account with an active API key and sufficient quota/billing configured for expected chatbot usage.
  • Outbound network access from your AAP instance to the OpenAI API endpoint is permitted by your network policy and any egress proxy/firewall rules.

Connecting the Intelligent Assistant to OpenAI

At a high level, the connection is a platform-level configuration change performed once by an administrator, after which the Intelligent Assistant becomes available to all authorized users across the AAP UI.

  1. Log in to AAP as a platform administrator and navigate to the platform-level AI/model provider settings (found under the automation platform's global settings, not inside an individual controller instance).
  2. Select OpenAI as the model provider for the Intelligent Assistant feature. Because the Coding Assistant does not yet support OpenAI, you will only see this option surfaced for the Intelligent Assistant configuration panel — this is expected behavior per the compatibility matrix above, not an error.
  3. Enter your OpenAI API key and model identifier. Store the API key using AAP's built-in credential/secrets handling rather than pasting it into a plain configuration file, so it benefits from the platform's encryption at rest.
  4. Set request limits and timeouts appropriate to your organization's usage patterns and OpenAI rate limits.
  5. Save and test the connection. AAP will perform a lightweight validation call against the OpenAI API to confirm the key and endpoint are reachable before enabling the assistant for end users.
  6. Verify from the UI by opening the Intelligent Assistant chat panel and asking a simple question (for example, "how do I write a handler that restarts nginx?") to confirm responses are being generated through OpenAI.
Because this is a platform-level configuration rather than a playbook-driven one, most teams perform this through the UI rather than automating it. That said, once connected, you can still use Ansible itself to manage the credential object backing the OpenAI API key, alongside your other automation controller secrets, for consistency with how you manage other sensitive values:
---
- name: Ensure OpenAI credential exists for the AAP Intelligent Assistant
  hosts: localhost
  gather_facts: false
  tasks:
    - name: Create or update the OpenAI API credential in automation controller
      ansible.controller.credential:
        name: "OpenAI Intelligent Assistant Key"
        organization: "Default"
        credential_type: "OpenAI API Token"
        inputs:
          api_key: "{{ openai_api_key }}"
        state: present

    - name: Confirm the credential is visible to platform administrators
      ansible.controller.credential_info:
        name: "OpenAI Intelligent Assistant Key"
      register: cred_check

    - name: Show credential lookup result
      ansible.builtin.debug:
        var: cred_check

Treat the module and credential type names above as illustrative — always check the exact ansible.controller collection documentation shipped with your AAP version for the current module and credential-type names, since BYOM configuration surfaces are still evolving.

See also: Connect the AAP Coding Assistant to IBM watsonx: Setup Guide

A Note on BYOK: Grounding the Assistant in Your Own Knowledge

Alongside BYOM, Red Hat also announced BYOK ("Bring Your Own Knowledge") as a Tech Preview feature at the same event. BYOK lets organizations inject their own internal policies, best practices, and procedures into the Intelligent Assistant's retrieval-augmented generation (RAG) pipeline. In practice, this means the assistant's answers can be grounded not just in generic Ansible documentation, but in your organization's own change-management procedures, network naming conventions, compliance requirements such as PCI-DSS, HIPAA, or SOC2, and internal runbooks.

BYOK is independent of which model provider you choose for BYOM — you can pair an OpenAI-backed Intelligent Assistant with a BYOK-enabled knowledge base once that feature graduates from Tech Preview, giving you both a capable general-purpose model and organization-specific context in the same chat experience.

Key Takeaways

  • OpenAI is a fully supported model provider for the AAP Intelligent Assistant starting at AAP 2.6+, per the BYOM compatibility matrix presented at Red Hat Tech Day Netherlands 2026.
  • OpenAI is not yet supported for the Coding Assistant (VS Code extension) — that integration is listed as "Coming Soon," so do not expect inline OpenAI-powered code suggestions in VS Code yet.
  • IBM watsonx supports the Coding Assistant since AAP 2.5 (the first external provider supported anywhere on the platform) but is not supported for the Intelligent Assistant at all.
  • Connecting OpenAI requires platform administrator access, an OpenAI API key stored securely via AAP's credential handling, and a one-time configuration in the platform's AI settings.
  • BYOK (Tech Preview) can layer your organization's own policies and runbooks on top of any BYOM-connected provider, including OpenAI, for more grounded, compliance-aware chatbot answers.

Category: installation

Browse all Ansible tutorials · AnsiblePilot Home