Skip to main content

diagrid call conversation converse

Converse with an AI component

Description

Converse with an AI using the Conversation API

diagrid call conversation converse [flags]

Examples


# Converse with full JSON payload
diagrid call conversation converse --component openai --app-id caller --data '{
"inputs": [
{
"messages": [
{
"ofUser": {
"content": [{ "text": "What is Dapr?" }]
}
}
]
}
]
}'

# Converse using short form
diagrid call conversation converse --component convo --app-id caller --text "What is Dapr?"

Options

  -a, --app-id string      [Required]: Caller App ID
-c, --component string [Required]: Component name for target conversation component
-p, --project string Name of existing project
-d, --data string Data string (full JSON payload)
-t, --text string Text message (short form - will be wrapped in proper JSON structure)
-o, --output string Output format, supported [table, yaml, json] (default "table")
-v, --verbose Include verbose output such as curl command and response body
-h, --help help for converse

Options inherited from parent commands

      --api-key string   Diagrid Cloud API key

SEE ALSO