The Intelligent Assistant is the chatbot embedded in the Ansible Automation Platform UI, and starting with AAP 2.6 it supports a BYOM (Bring Your Own Model) model, meaning you are not locked into Red Hat AI. OpenAI is one of the supported backends, alongside Azure OpenAI. Below is a minimal example of wiring an OpenAI credential into AAP so the Intelligent Assistant uses it.

# playbook: configure-intelligent-assistant-openai.yml
# Registers an OpenAI credential in AAP and points the
# Intelligent Assistant configuration at it.
---
- name: Configure Intelligent Assistant with OpenAI backend
  hosts: localhost
  gather_facts: false
  vars:
    aap_controller_host: "https://aap.example.com"
    aap_credential_name: "openai-intelligent-assistant"
    aap_organization: "Default"

  tasks:
    - name: Create OpenAI API credential in AAP
      ansible.controller.credential:
        name: "{{ aap_credential_name }}"
        organization: "{{ aap_organization }}"
        credential_type: "OpenAI API Token"
        controller_host: "{{ aap_controller_host }}"
        controller_username: "{{ aap_controller_username }}"
        controller_password: "{{ aap_controller_password }}"
        inputs:
          api_token: "{{ vault_openai_api_key }}"
          model: "gpt-4o"

    - name: Point Intelligent Assistant settings at the OpenAI credential
      ansible.controller.settings:
        controller_host: "{{ aap_controller_host }}"
        controller_username: "{{ aap_controller_username }}"
        controller_password: "{{ aap_controller_password }}"
        settings:
          INTELLIGENT_ASSISTANT_ENABLED: true
          INTELLIGENT_ASSISTANT_PROVIDER: "openai"
          INTELLIGENT_ASSISTANT_CREDENTIAL: "{{ aap_credential_name }}"

What it does and why

The first task creates a credential of type "OpenAI API Token" in AAP's credential store, holding the API key (pulled from an Ansible Vault–encrypted variable, vault_openai_api_key) and the model identifier. The second task updates the platform-wide Intelligent Assistant settings so the chatbot routes its requests through that credential instead of the default Red Hat AI backend. Once applied, users chatting with the Intelligent Assistant inside the AAP UI — asking it to explain a failed job, draft a playbook snippet, or summarize an inventory — have their requests forwarded to OpenAI's API using the configured model.

This BYOM pattern, presented at Red Hat Tech Day Netherlands 2026, is specific to the Intelligent Assistant. The separate Coding Assistant (the Ansible VS Code extension) has a different provider compatibility matrix: OpenAI support there is still listed as "Coming Soon," while IBM watsonx was actually the first external provider it supported, back in AAP 2.5. Don't assume parity between the two AI features just because they share an underlying BYOM concept.

Notes / Gotchas

  • AAP version requirement: OpenAI as an Intelligent Assistant backend requires AAP 2.6 or later. It is not available on 2.5.
  • Not all providers are supported everywhere: IBM watsonx is explicitly not supported for the Intelligent Assistant, and Google Gemini/Vertex is listed as "Coming Soon" for it — don't confuse this with the Coding Assistant matrix, where Gemini/Vertex is already supported from AAP 2.6.
  • Secrets hygiene: never hardcode vault_openai_api_key in plaintext — store it with ansible-vault encrypt_string or a proper secrets backend and reference it as shown.
  • Egress: the AAP controller nodes need outbound HTTPS access to OpenAI's API endpoints; check firewall/proxy rules before troubleshooting "assistant not responding" issues.
  • BYOK is separate from BYOM: Red Hat also announced BYOK ("Bring Your Own Knowledge," Tech Preview) at the same event, which lets you feed internal policies, naming conventions, and compliance runbooks (PCI-DSS, HIPAA, SOC2, etc.) into the Intelligent Assistant's RAG pipeline. Configuring an OpenAI backend does not automatically enable BYOK — it is a distinct, separately enabled preview feature.

Swapping the Intelligent Assistant's backend to OpenAI is a two-step credential-and-settings change, but keep the provider compatibility matrix handy since the Coding Assistant follows different rules entirely.

References