Skip to main content

Overview

The Chat with Flow feature lets users interact with a deployed flow through a conversational chat interface directly in the platform UI. It is also used internally for other platform AI features such as generating automation descriptions and improving Studio prompts. This feature requires a built-in LLM to be configured via Helm chart values. Without it, users will see a generic error message when attempting to chat with a flow:
“Sorry, I’m having trouble answering your question. Please try again later.”
This is separate from Studio V2, which has its own setup process. See the Studio V2 guide for that configuration.

Prerequisites

  • CrewAI Platform is deployed and running
  • An API key for a supported LLM provider (OpenAI or Anthropic)

Configuration

Three Helm chart values control the built-in LLM. Two are non-sensitive environment variables and one is a secret:

Environment Variables (non-sensitive)

Set these under env in your values.yaml:

Secrets (sensitive)

Set this under secrets in your values.yaml:
If BUILT_IN_LLM_API_KEY is not set or is invalid, all Chat with Flow attempts will fail. A 401 error in the logs typically means the API key is missing, expired, or incorrect.

Apply the Configuration

After updating your values.yaml, upgrade the Helm release:
No rake tasks or manual setup steps are required — the platform picks up the environment variables on restart.

Verify

  1. Deploy a flow (or use an existing deployed flow)
  2. Click Chat with this crew from the deployment dashboard
  3. Send a test message (e.g., “Hi”)
  4. You should receive a response from the flow instead of an error

Troubleshooting