Ai Assistant Personalities

An AI Assistant Personality defines a system prompt used to customize the in-app AI Assistant.

Resource Schema

Required

PropertyDescription
name
String
AI Assistant Personality name.
system_prompt
String
System prompt injected into the in-app AI Assistant.

Optional

PropertyDescription
workspace_id
Int64
Workspace ID. 0 means the default workspace.
use_by_default
Bool
Whether this personality is the default personality for the Workspace.
apply_to_all_workspaces
Bool
If true, this default-workspace personality can apply to users in all workspaces.

Read Only

PropertyDescription
id
Int64
AI Assistant Personality ID.
created_at
String
Creation time.
updated_at
String
Last update time.

Example Resource

resource "files_ai_assistant_personality" "example_ai_assistant_personality" {
  apply_to_all_workspaces = false
  name                    = "Concise Assistant"
  system_prompt           = "Respond as a concise operations assistant."
  use_by_default          = false
  workspace_id            = 0
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Ai Assistant Personalities can be imported by specifying the id.
terraform import files_ai_assistant_personality.example_ai_assistant_personality 1

Data Source Schema

Required

PropertyDescription
id
Int64
AI Assistant Personality ID.

Read Only

PropertyDescription
workspace_id
Int64
Workspace ID. 0 means the default workspace.
name
String
AI Assistant Personality name.
system_prompt
String
System prompt injected into the in-app AI Assistant.
use_by_default
Bool
Whether this personality is the default personality for the Workspace.
apply_to_all_workspaces
Bool
If true, this default-workspace personality can apply to users in all workspaces.
created_at
String
Creation time.
updated_at
String
Last update time.

Example Data Source

data "files_ai_assistant_personality" "example_ai_assistant_personality" {
  id = 1
}