For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

The First Connection

Create your first AI connection to start using AI services in Umbraco.

A connection stores the credentials and settings needed to communicate with an AI provider. Before you can use AI features, you need to create at least one connection.

Prerequisites

  • Umbraco.AI and a provider package installed

  • An API key from your AI provider

Create a Connection

  1. Log in to the Umbraco backoffice

  2. Navigate to the AI section

  3. Click Connections in the tree

  4. Click Create Connection

The Select AI Provider dialog showing available providers

If you don't see the AI section, ensure your user group has access to it. See the Installation guide for details on granting section access.

The Create Connection form with provider settings

Configure the Connection

Fill in the connection details:

Field
Description
Example

Name

A display name for this connection

"OpenAI Production"

Alias

A unique identifier for programmatic access

"openai-prod"

Provider

The AI provider to use

"OpenAI"

API Key

Your provider API key

"sk-..." or "$Umbraco:AI:Secrets:OpenAIApiKey"

Use a configuration reference like $Umbraco:AI:Secrets:OpenAIApiKey to read the API key from configuration instead of storing it in the database. See Configuration References for how the referenced sections work.

Connection Properties

Each connection has the following properties:

Property
Description

Id

Unique GUID identifier

Alias

Unique string alias for lookups

Name

Display name

ProviderId

Which provider this connection uses

Settings

Provider-specific settings (API key, endpoint, and so on)

IsActive

Whether the connection is enabled

Version

Current version number, increments with each save

Multiple Connections

You can create multiple connections to:

  • Separate development and production environments

  • Use different API keys for different teams or projects

  • Connect to multiple AI providers

Next Steps

The First Profile

Last updated

Was this helpful?