Node configurationBelow is a description of the fields you’ll use to configure the node:
- Name (optional): Allows you to customize the node’s name within the flow, replacing the default value.
- Input Type:Allows you to select how to upload the image.
- URL: Enter the image URL. It must use the secure HTTPS protocol and be publicly accessible so the bot can display it.
- File Upload: Upload the image in Base64 format by dragging and dropping it into the upload area or selecting it using Click to browse. The file will be automatically converted to Base64, and when the flow runs, the node will generate a temporary URL for the image.
- Preview: Once the image is uploaded, a preview will appear in the node’s configuration panel, provided the server allows it.
Key points- The supported formats are jpg, jpeg, png, and gif.
- The temporary URL is valid for 1 hour within the bot session, so it should only be used for the integration.
- URLs pointing to files stored in services such as Drive are not supported.
- The URL and Base64 String fields support access to variables from the msg object using curly braces. For example, inserts the value contained in the msg.myParameter variable.
You can download a sample flow using this link.
Keep in mind: When testing the functionality in template mode, add an Inject Node before the Image Node. The Inject Node must contain either the file URL in the corresponding field or the file encoded in Base64.
In the video, we explain the configuration parameters: