Unify Applications
Logo
Copilot Overview

Copilot Overview

Logo

10 mins READ

The Copilot block is a complete, embeddable AI-assistant experience — a full chat surface backed by an AI agent (or a human Live Chat inbox) with streaming responses, a message composer, conversation history, citations, a chain-of-thought drawer, an optional side canvas for previewing documents and interfaces, and built-in voice mode with microphone, camera, screenshare, and live transcription.

It is a composite block: it arrives as an assembled set of child blocks — header, welcome, input panel, suggestions, message footer and actions, follow-up prompts, and a floating video avatar — that you can restyle in place. It exposes the whole conversation as bindable state plus a large set of methods so the rest of your interface can drive it.

unify-applications-copilot-overview-01-copilot-block.png
unify-applications-copilot-overview-01-copilot-block.png

Tip: When to use Copilot: Embed a full AI assistant into an interface — pick the AI Agent variant, choose an agent, and get streaming answers, citations, thoughts, suggestions, and follow-up prompts. For human conversations (agent-to-customer, group, inbound support), switch to Live Chat. For a plain human messaging widget with no AI framing, use the Chat block. For composable pieces only — just the input box, a single response, a thread — use the individual copilot blocks.

Copilot Block

Add a Copilot to a page

  1. Open the block picker and drag Copilot onto the page.

  2. Keep the variant on AI Agent. In AI Agent, choose the agent that answers. The first available agent is filled in when you add the block.

  3. Optional: set Chat Key to resume a specific chat, and Chat Context to pass context to the agent when a new chat starts.

  4. Preview the page and send a test message.

  5. Publish the app so your users see the copilot. See Preview & Publish.

Properties

Content — Core

Property

Type

Default

Description

Variant (variant)

AI Agent / Live Chat

AI Agent

AI assistant or human conversation surface.

AI Agent (aiAgentId)

agent (bindable)

First available agent

The AI agent that answers messages. Appears when Variant is AI Agent.

Conversation Type (conversationType)

Inbound / Outbound / Group

Inbound

Nature of the human conversation. Appears when Variant is Live Chat.

Chat Key (initialChatId)

string (bindable)

—

Resume a specific chat session. If unset, a new chat is created.

Chat Source (chatSource)

string (bindable)

—

Tags every conversation this block creates. A chat history only lists conversations whose Chat Source matches its own, so leave this blank unless a Copilot History block uses the same value. Existing conversations keep the tag they were created with.

Chat Context (runtimeContext)

string / JSON (bindable)

—

Context passed to the AI agent when a new chat is created.

Drawer Container (drawerContainerId)

block reference

—

Stack or Container used as the mount point for the chain-of-thought and citations drawer.

Enable Profile Messages (enableProfileMessages)

boolean

Off

When on, all of the user's chats are visible in the chat list.

Jump to latest (showJumpToLatest)

boolean

On

Shows a button that returns the reader to the newest message once they scroll away from it.

Cycle thinking words (enableCycleThinkingWords)

boolean

On

Rotates through words like "Pondering" and "Brewing" while the agent works. Turn it off to keep a plain "Thinking" label. Applies only when the agent is not showing its reasoning steps.

Thinking words (thinkingWords)

list (bindable)

Built-in words

Appears when Cycle thinking words is on. Your own words, for example {{ ['Thinking', 'Pondering'] }}. The first word shows first and the rest rotate in random order. Web only.

Track read status (trackReadStatus)

boolean

Off

Marks the open chat as read for the viewer, so a chat list can show which chats have new messages.

Artifact ID (artifactId)

string (bindable)

—

Opens the canvas directly to this artifact instead of restoring the last preview. Usually bound to a page input or query parameter.

Space ID (spaceId)

string (bindable)

—

The collaboration space the conversation belongs to.

Default Space Role (defaultSpaceRoleId)

role

—

The role a participant joins the space with.

Allowed Space Roles (allowedSpaceRoleIds)

list of roles

—

The space roles that may take part.

Voice Mode Parameters

Property

Type

Default

Description

Separate Voice Mode (separateVoiceMode)

boolean

On

Voice mode opens in a dedicated view (on) or stays in context with the conversation (off). AI Agent only.

Show full chat history (fetchInitialMessagesOnConnect)

boolean

Off

Load all existing messages into the voice transcript on connect.

Enable video (enableVideo)

boolean

Off

Allow camera and agent video tracks during voice mode.

Enable screenshare (enableScreenshare)

boolean

Off

Allow screenshare controls during voice mode.

Add-Ons

Add-on

Available on

What it adds

Message Timestamp

Both variants

Shows a timestamp on each message.

Agent Avatar

Both variants

Thinking / idle avatar imagery for the agent.

User Avatar

Both variants

Shows the user's avatar beside their own messages.

Conversation Starters

Both variants

Seed prompts shown at the start of a chat.

Mentions

Both variants

@-mentions — agents (AI Agent) or users (Live Chat).

Response Actions

AI Agent

Per-response actions such as copy / good / bad feedback.

User Message Actions

AI Agent

Actions on the user's own messages.

Reply To Message

Live Chat

Reply-to-message threading.

Pin Messages

Live Chat

Pin / unpin messages.

Only agent transcript in voice mode

Both variants

Hides the user's own messages in the voice-mode transcript.

Reference

Both variants

A context pill above the composer.

Publish artifact

Both variants

Shows Publish on the artifact header for the artifact's owner.

Artifacts

Both variants

Artifact settings, such as Clone in the canvas title menu.

Composable Slots

SlotRegion
HeaderTop bar of the chat.
WelcomeEmpty-state welcome area.
Copilot InputThe message composer panel.
SuggestionsSuggested prompts.
Message Footer / Message ActionsBelow-message chrome and per-message actions.
Follow Up PromptsFollow-up chips after a response.
Video AvatarFloating agent-video overlay during voice mode.

Appearance

Property

Type

Default

Description

Message Variant (messageVariant)

Default / Bubble

Default

Message bubble styling. AI Agent only.

Thoughts Variant (thoughtsVariant)

Overlay / Inline / Loader / Plain Text

Inline

How the agent's thinking is displayed.

Content — More Settings

Property

Type

Default

Description

Routine ID (routineId)

string (bindable)

—

Set only when this chat shows a routine's run. Every message sent from it then carries this routine, so the user's replies stay part of the routine's conversation. Leave blank everywhere else.

Pause auto-scroll on response (pauseAutoScrollOnResponse)

boolean

Off

Keeps the start of each new turn in view while the response streams in, instead of following the response to the bottom.

The block also exposes state such as {{ id.isEmpty }}, {{ id.activeArtifactId }} and {{ id.isDrawerOpen }}.

Events

Event

Trigger

On Message Sent

User submits a message in the composer, or a Send Message call runs. It fires before the agent answers.

On Message Like / On Message Dislike

User gives feedback on a response.

On Case Created

A new conversation gets its id, for example when the first message of a new chat is answered.

On Citation Click

User clicks a citation chip in a response.

On Button Click

A button inside an agent's response raises a page event. Buttons you place in the Copilot's own slots use their own events instead.

On Query Cost Click

User clicks the cost figure under a response.

On Select Agent

User opens a chat that belongs to another agent, for example from its card under a message.

On Mention Select

User picks an item from the @-mention menu.

On Connect Email Account

User asks to connect an email account from an email draft in the canvas.

On Insert Message

User presses Insert on a response. Only available in the browser extension for Google Docs and Google Slides.

On Open Copilot Canvas

The copilot's canvas surface opens.

On Close Copilot Canvas

The copilot's canvas surface closes.

On Maximize Canvas / On Minimize Canvas

The canvas is expanded to fill the panel, or restored to its docked size.

On Canvas Preview Mode Entry / On Canvas Preview Mode Exit

The canvas opens straight into preview, or leaves preview for editing.

On Canvas Artifact Delete

The artifact's owner deletes the artifact shown in the canvas.

On Canvas Artifact Clone

User clones the artifact shown in the canvas.

On Canvas Back

User presses the back button in an artifact canvas in preview mode. The button only shows when this event is wired.

On View All Skills

User chooses View all skills in a skill canvas menu. The option only shows when this event is wired.

On View Skill

User clicks Saved or Updated on a skill they saved from the chat.

On Voice Mode Connect

A voice session connects successfully.

On Voice Mode Connect Error

Connecting to a voice session fails.

On Exit Voice Mode

The user leaves voice mode.

On Agent Connected / On Agent Disconnect

The agent joins or leaves the voice session.

On Voice Mode Screenshare Failed

Starting a screen share in voice mode fails.

There is no event for a finished response. To react when the agent stops responding, watch {{ id.isGeneratingResponse }} turn false. Canvas events fire only on a large Copilot, where the canvas is shown.

Methods

Method

Params

Effect

Send Message

message

Sends a chat message to the AI agent programmatically.

Stop Response Generation

—

Stops the agent part-way through a response.

Create New Chat

—

Starts a fresh chat session.

Go to Chat

chatId

Switches to an existing chat session.

Go to Message

messageId

Scrolls the transcript to a specific message.

Set Reference

reference

Sets the context pill shown above the composer.

Open Camera

—

Opens the device camera and adds the photo taken to the composer as an attachment.

Open Artifact

artifactId

Opens an artifact in the canvas.

Close canvas

—

Closes the canvas.

Open agent panel

tab

Opens the agent's panel in the canvas on the tab you choose.

Refetch email connections

—

Reloads the email accounts for an email draft open in the canvas.

Set Copilot mode

mode

Switches between text and voice mode.

Toggle voice mode microphone

state

Mutes or unmutes the user's microphone.

Toggle voice mode camera

state

Turns the user's camera on or off.

Toggle voice mode closed captions

state

Turns closed captions on or off in voice mode.

Set input/output device for media

device

Chooses the microphone, speaker or camera to use.

Start screenshare

—

Starts sharing the user's screen.

Stop screenshare

—

Stops the active screen share.

Change Agent Observability

isAgentObserving

Turns the agent's screen-watching on or off.

Interrupt Agent

—

Cuts off the agent while it is speaking or responding.

Exposed State

State keyTypeDescription
{{ id.chatId }}stringThe active chat session's identifier.
{{ id.isGeneratingResponse }}booleanTrue while the agent is streaming a response.
{{ id.voiceMode.isVoiceModeActive }}booleanWhether a voice session is running.
{{ id.voiceMode.isMicrophoneEnabled }}booleanWhether the user's microphone is live.
{{ id.voiceMode.isCameraEnabled }}booleanWhether the user's camera is on.
{{ id.voiceMode.agentState }}stringThe agent's connection/speaking state.

Behavior & Gotchas

Note: Conversation context only applies to brand-new chats. The value in Chat Context is handed to the agent when a new chat is created. Resuming via Chat Key does not re-send it.

Note: Each slot holds the child blocks for one region of the chat, such as Header, Welcome or Copilot Input. Restyle those blocks or swap in your own child blocks to change that region. The region itself stays where the Copilot places it.

Headless Copilot

The Headless Copilot block is an AI copilot engine with no built-in chat window — you design the interface yourself. It connects your app to an AI agent, manages the chat session and a real-time voice mode (microphone, camera, screen share, live transcription), and exposes everything through slots, methods and state so your own blocks act as the copilot's face.

Tip: When to use Headless Copilot: Headless Copilot is not offered in the block picker, so you cannot add a new one to a page; it remains only in older pages. For a new custom voice experience, use the Copilot Voice block (see Copilot Building Blocks). Otherwise, for a ready-made chat interface, use the standard Copilot block.

Properties

Content

Property

Type

Default

Description

AI Agent (aiAgentId)

string (bindable)

First available agent

The AI agent that powers the copilot.

Chat Key (initialChatId)

string (bindable)

—

The unique identifier used to resume a specific chat session.

Chat Context (runtimeContext)

string (bindable)

—

Context handed to the AI agent when a new chat is created.

Show full chat history (fetchInitialMessagesOnConnect)

boolean

Off

Load all existing messages into the voice transcript on connect.

Enable Video (enableVideo)

boolean

On

Enables the user's local camera sharing in voice mode.

Enable Screenshare (enableScreenshare)

boolean

On

Enables the user's local screen-share controls in voice mode.

Room Name

string

—

The voice room to join. Leave empty to start a new room; give the name of a live room to join the people and agent already in it.

Real time translation

boolean

Off

Joins the room for translated transcripts only. Suggested replies arrive in the voiceMode.suggestedReply state, and replies are sent with the Send RTT Message method.

Custom Voice Session

Enable Custom Voice Session to provide voice session credentials manually instead of having them managed automatically — for joining existing rooms with other people or agents.

Property

Type

Description

Session URL (customRoomConnectionUrl)

string

Address of the voice service to connect to.

Session Token (customRoomConnectionToken)

string

Credential used to authenticate and join the session.

Room ID (customRoomId)

string

Room identifier for the direct voice connection.

Slots

SlotDescription
BodyThe main canvas for your custom copilot UI.
Voice Mode ActionsHolds voice controls; arrives pre-filled with working mic, camera, screenshare, and voice-mode toggles.

Methods

Method

Params

Effect

Send Message

message

Sends a chat message to the AI agent.

Create New Chat

—

Starts a fresh chat session.

Go to Chat

chatId

Switches to an existing chat session.

Set Copilot mode

mode

Switches between text and voice mode.

Toggle voice mode microphone

state

Mutes or unmutes the user's microphone.

Toggle voice mode camera

state

Turns the user's camera on or off.

Start Screen Share

—

Starts sharing the user's screen.

Stop Screen Share

—

Stops the active screen share.

Change Agent Observability

isAgentObserving

Turns the agent's screen-watching on or off.

Interrupt Agent

—

Cuts off the agent while it is speaking or responding.

Send RTT Message

Payload type, Suggestion ID or Message text

Sends a reply to the agent when Real time translation is on.

Start Screen Share and Stop Screen Share do the same as Start screenshare and Stop screenshare on the Copilot block. Only the label's capitalisation differs between the two blocks.

Exposed State

State keyTypeDescription
{{ id.chatId }}stringThe active chat session's identifier.
{{ id.voiceMode.isVoiceModeActive }}booleanWhether a voice session is running.
{{ id.voiceMode.isMicrophoneEnabled }}booleanWhether the user's microphone is live.
{{ id.voiceMode.isCameraEnabled }}booleanWhether the user's camera is on.
{{ id.voiceMode.isScreenSharingEnabled }}booleanWhether a screen share is active.
{{ id.voiceMode.agentState }}stringThe agent's connection/speaking state.
{{ id.voiceMode.availableDevices }}objectDetected microphones, speakers and cameras.

Behavior & Gotchas

Warning: Send Message fails without an agent, but a blank message passes silently. No AI agent selected = the action fails. An empty or whitespace message is silently skipped but the action still reports success — chained actions run as if the message went through.

Warning: Long-running agent responses stop updating after 30 minutes. The block polls for the agent's response for up to 30 minutes. A response still pending after that stops updating in your UI.

Note: Voice transcripts start empty unless you turn on chat history. Turn on Show full chat history to load the existing conversation into the transcript on connect.

Block

Relationship

Copilot Chat

The transcript component embedded inside Copilot.

Copilot Input

The standalone message composer for custom compositions.

Copilot Voice

The voice engine block for fully custom voice UI.

Copilot History

Lists past conversations to jump back into.

Copilot Video

Shows the live video or screen-share feed from a voice session.

Simple Agent Builder

Embeds the AI agent editor for in-app agent management.

FAQs

When should I use a Copilot block versus a Headless Copilot?

Use the standard Copilot block when the built-in chat UI works for your use case. It gives you a complete chat interface, including message list, input field and optional voice mode, with minimal setup. For a custom layout, build it from the copilot building blocks: Copilot Thread with Copilot Input for a custom chat, or Copilot Voice for a custom voice experience. See Copilot Building Blocks.

Headless Copilot is not offered in the block picker, so you can't add a new one. It remains only on older pages, where it renders nothing itself and you build the UI in its Body and Voice Mode Actions slots.

How do I pass context about the current user or record to the AI agent?

Bind the Chat Context (runtimeContext) property to any expression — a page variable, a data source output, or a computed value. For example, {{ ds_caseRecord.output }} passes the current case details to the agent whenever a new chat is created. The agent receives this as context at conversation start. Changing runtimeContext after a chat has started does not retroactively update the existing conversation.

Can the Copilot block resume a previous conversation instead of always starting fresh?

Yes. Bind the Chat Key (initialChatId) property to a stable identifier for the conversation — for example a case ID or user ID. When the user returns, the block opens that conversation thread instead of starting new. Without a Chat Key, every page load starts a fresh conversation. You can also call the Go to Chat method to switch to a specific conversation programmatically.

What is the AI Agent variant versus the Live Chat variant?

The AI Agent variant connects to an AI agent you configure in the Agent Builder — it handles the conversation autonomously using tools and knowledge you define. The Live Chat variant is for human-to-human chat routed through a support or messaging system. The variant drives which backend handles messages and which features (like voice mode and AI tools) are available.

Is voice mode available in Headless Copilot?

Yes. Headless Copilot supports voice mode through the Voice Mode Actions slot, where you build your own voice controls. Start and stop voice mode with the Set Copilot mode method (Text or Voice), and control the microphone with Toggle voice mode microphone. The agent is the one chosen in the AI Agent property. To join your own voice session, turn on Custom Voice Session and fill in Session URL, Session Token and Room ID.