Nodes
Send Message#
The Send Message node allows you to send a message within a Magick spell. It is useful for generating output, logging information, or communicating with other parts of your spell.
Inputs#
flow
(required): The input flow that triggers the node to send the message.content
(optional): The content of the message to send. This 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. This allows you to chain additional nodes after sending the message.
Configuration#
This node does not have any additional configuration options.
Usage#
- Add a Send Message node to your spell.
- Connect the input
flow
to the output of the node that should trigger sending the message. - Set the
content
input to the message you want to send. This can be a static string or a dynamic value from a previous node. - Connect the output
flow
to the next node in your spell, if desired.
Example#
Here's an example of how to use the Send Message node in a spell:
In this example:
- The spell starts.
- The Set Variable node sets a variable named
username
with the value"John"
. - The Send Message node sends the message
"Hello, John!"
, using theusername
variable in the message content. - The spell ends.
Best Practices#
- Use the Send Message node for generating output, logging, or debugging your spell.
- Combine static text and dynamic values in the
content
input to create personalized or data-driven messages. - Chain multiple Send Message nodes together to send a sequence of messages.
Common Issues#
- If the
content
input is left blank, an empty message will be sent. Make sure to provide a value if you want to send a non-empty message. - Be mindful of the order of nodes in your spell. Make sure the Send Message node is connected and triggered at the appropriate point in your spell's flow.