run_ai_action
Execute AI-generated responses for specific messages using predefined prompts within the Carbon Voice platform. Supports multiple messages and customizable language settings for improved communication.
Instructions
Run an AI Action (Prompt) for a message. You can run an AI Action for a message by its ID or a list of message IDs.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
channel_id | No | ||
language | No | The language of the response. Defaults to original message. | |
message_ids | Yes | ||
prompt_id | Yes | ||
workspace_id | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"channel_id": {
"type": "string"
},
"language": {
"description": "The language of the response. Defaults to original message.",
"type": "string"
},
"message_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"prompt_id": {
"type": "string"
},
"workspace_id": {
"type": "string"
}
},
"required": [
"prompt_id",
"message_ids"
],
"type": "object"
}