The First Profile
Create a profile to configure how AI requests are made and use it in your code.
A profile combines a connection with model settings for a specific use case. Profiles let you configure temperature, model selection, and system prompts once and reuse them throughout your application.
Prerequisites
At least one connection created
Create a Profile
In the Umbraco backoffice, navigate to the AI section
Click Profiles in the tree
Click Create Profile

Configure the Profile
Fill in the profile details:
Name
A display name for this profile
"Content Assistant"
Alias
A unique identifier for lookups
"content-assistant"
Capability
The type of AI capability
"Chat"
Connection
Which connection to use
"OpenAI Production"
Model
The specific model to use
"gpt-4o"
Chat Settings
For chat profiles, you can configure:
Temperature
Controls randomness (0-2). Lower is more focused.
Provider default
Max Tokens
Maximum tokens in the response
Provider default
System Prompt
Instructions sent with every request
None

Set as Default
To use this profile when no profile is specified in code:
Navigate to the AI section > Settings
Select "Content Assistant" in the Default Chat Profile picker
Click Save
Use the Profile in Code
Using the Default Profile
Using a Specific Profile
To use a specific profile, pass its alias (or ID) to WithProfile:
Understanding Profile Resolution
When you make a chat request:
The system resolves the profile by ID or alias
The connection provides the credentials
Profile settings (model, temperature, and so on) configure the request
The system applies any registered middleware
The system sends the request to the AI provider
Multiple Profiles
Create different profiles for different use cases:
content-assistant
Content suggestions
gpt-4o
0.7
code-helper
Code generation
gpt-4o
0.2
translator
Translation
gpt-4o-mini
0.3
Next Steps
Learn more about using the chat API:
Or explore the core concepts:
Last updated
Was this helpful?