generate_node_output
Generates Say node content, such as text or Adaptive Cards, from a natural language prompt for use in creating or updating nodes.
Instructions
Uses Cognigy's generative AI to create content for Say nodes. Generates either plain text messages or rich Adaptive Cards based on a natural language prompt. Returns content you can use with create_node or update_node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The flow ID (used for context, e.g., persona settings) | |
| prompt | Yes | Natural language description of what content to generate (e.g., 'greeting message for a banking bot', 'poll for scheduling a meeting') | |
| localeId | Yes | The locale ID for language-appropriate generation | |
| lastOutput | No | Previous generation result to refine or continue from | |
| outputType | No | Type of content to generate: 'text' for plain Say messages, 'adaptiveCard' for rich interactive cards | text |
| generateContentLimit | No | Maximum number of text variations to generate (for text output type, 1-10) |