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
| Subcommand | Description |
|---|---|
eai chat send | Send a single message and receive a complete response |
eai chat stream | Start an interactive streaming chat session |
eai chat send
Send a single message and receive a complete response.
Syntax
eai chat send <message> [options]
Arguments
| Argument | Description | Required |
|---|---|---|
message | The message to send to the AI workflow | Yes |
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
| Argument | Description | Required |
|---|---|---|
message | The initial message to send | Yes |
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"
Related Commands
eai docs-- Upload and index documents for RAG-powered chat responseseai verify-- Verify AICore connectivity before using chat