ESM
import "@arcgis/ai-components/components/arcgis-assistant-chat-entry";
Inheritance
ArcgisAssistantChatEntry→HTMLElement

The Assistant Chat Entry component provides prompt input for a custom assistant interface, with submit and cancel actions, keyboard submission, and input history navigation. It also supports custom entry actions through slots and optional voice input.

Use this component to collect user input as part of a composed assistant experience. Your application handles its submit and cancel events and connects them to the assistant or agent workflow; the component does not invoke agents itself.

Properties

PropertyAttributeType
awaiting-response
disabled
entry-placeholder
input-value
keyboard-shortcuts-disabled
read-only
status
"error" | "ready" | "working" | undefined
voice-input-enabled

awaitingResponse

Property
Type
boolean
Attribute
awaiting-response
Default value
false

disabled

Property
Type
boolean
Attribute
disabled
Default value
false

entryPlaceholder

Property
Type
string | undefined
Attribute
entry-placeholder

inputValue

Property
Type
string
Attribute
input-value

keyboardShortcutsDisabled

Property
Type
boolean
Attribute
keyboard-shortcuts-disabled
Default value
false

messages

Property
Type
Collection<ChatMessage>

readOnly

Property
Type
boolean
Attribute
read-only
Default value
false

status

Property
Type
"error" | "ready" | "working" | undefined
Attribute
status

voiceInputEnabled

Property
Type
boolean
Attribute
voice-input-enabled
Default value
false

Methods

MethodSignature
inherited
componentOnReady(): Promise<this>
setFocus(): Promise<void>
submitMessage(): Promise<void>

componentOnReady

inherited Method
Signature
componentOnReady (): Promise<this>

Creates a promise that resolves once the component is fully loaded.

Returns
Promise<this>
Example
const arcgisAssistantChatEntry = document.createElement("arcgis-assistant-chat-entry");
document.body.append(arcgisAssistantChatEntry);
await arcgisAssistantChatEntry.componentOnReady();
console.log("arcgis-assistant-chat-entry is ready to go!");

setFocus

Method
Signature
setFocus (): Promise<void>
Returns
Promise<void>

submitMessage

Method
Signature
submitMessage (): Promise<void>
Returns
Promise<void>

Events

arcgisCancel

Event
arcgisCancel: CustomEvent<void>
bubbles composed cancelable

arcgisSubmit

Event
arcgisSubmit: CustomEvent<string>
bubbles composed cancelable

Slots

NameDescription

Slot for adding actions to the start of the entry area.

Slot for adding actions to the end of the entry area.

entry-actions-start

Slot

Slot for adding actions to the start of the entry area.

entry-actions-end

Slot

Slot for adding actions to the end of the entry area.