Skip to main content

eai chat

Interact with AI workflows configured on the Enterprise AI platform.

Description

The eai chat command group allows you to send messages to AI workflows from the command line. This is useful for testing AI integrations, debugging prompt behavior, and interacting with your vertical's AI capabilities without using the web UI.

Subcommands

SubcommandDescription
eai chat sendSend a single message and receive a complete response
eai chat streamStart an interactive streaming chat session

eai chat send

Send a single message and receive a complete response.

Syntax

eai chat send <message> [options]

Arguments

ArgumentDescriptionRequired
messageThe message to send to the AI workflowYes

Description

Sends a single message to the configured AI workflow and waits for the full response before displaying it. This is useful for scripting and one-off queries.

Examples

# Ask a question
eai chat send "What documents are needed for a work visa?"

# Use in a script
ANSWER=$(eai chat send "Summarize the application requirements")
echo "$ANSWER"

eai chat stream

Start an interactive streaming chat session.

Syntax

eai chat stream <message> [options]

Arguments

ArgumentDescriptionRequired
messageThe initial message to sendYes

Description

Sends a message and streams the response in real-time as it is generated, providing a more interactive experience. The response appears token by token, similar to a chat interface.

Examples

# Start a streaming chat
eai chat stream "Help me understand the asylum process"

# Ask a detailed question
eai chat stream "Walk me through the steps to submit a new application"
  • eai docs -- Upload and index documents for RAG-powered chat responses
  • eai verify -- Verify AICore connectivity before using chat