Stream Message
The Stream Message node allows you to send a message to the spell’s output stream during execution. It is useful for logging, debugging, or providing feedback to the user at specific points in your spell’s logic.Inputs
flow(required): The input flow that triggers the node to send the message.content(optional): The message content to be streamed. Can be any string value. If left blank, an empty message will be sent.
Outputs
flow: The output flow after the message has been sent, allowing the spell to continue execution.
Configuration
This node has no additional configuration options.Usage
- Add a Stream Message node to your spell.
- Connect the input
flowto the point in your spell where you want to send a message. - Set the
contentinput to the message you want to send. This can be a static string, a variable, or an expression. - Connect the output
flowto the next node in your spell.
Example
Here’s an example of using the Stream Message node in a spell:Best Practices
- Use Stream Message nodes sparingly to avoid cluttering the output stream. Focus on key points where messages will be most helpful.
- Keep messages concise and informative. Clearly convey the spell’s status or the meaning of the message.
- Consider using expressions or variables for the
contentinput to create dynamic, context-specific messages.
Gotchas
- Remember that the Stream Message node does not pause spell execution. The message is sent and the flow immediately continues to the next node.
- Sending too many messages, especially in loops, can flood the output stream and make it difficult to follow the spell’s progress.
