The Input File Upload node allows your clients to upload one or more files when interacting with the front end of your bot. In this tutorial, we will see how to use this node.
Step 1: Add the Date Node
Add a File upload node in your bot from the “+” menu.
Step 2: Change the Field Name
Modify the field name of the File Upload Node for internal reference. Keep in mind that this field name will not be visible to the user in the frontend.
Step 3: Set File Type Restrictions (Optional)
Choose whether you want to allow only specific file types to be uploaded or if you prefer not to have any limitations on file types.
Step 4: Configure File Renaming (Optional)
Decide if the uploaded file should be renamed. You can choose to use a static name or a dynamic value by referring to another input field, such as a text field created earlier in the bot.
Step 5: Link the file to an AI Output node
In order to use uploaded documents in an AI output node, you need to switch on the “Use in AI Output” toggle. From the dropdown, select “Create or modify AI Settings” to open the AI setting modal.
Step 6: Create the AI Settings
On the modal, first, enter the name, second, select the provider, next, the AI model, finally the API Key. Once this is done, click over the “save” button and the AI setting will be created.
Bear in mind that you must select the same setting in the AI Output node.
Remember to click on “Preview” in the top menu to see how your bot will appear to your clients. This helps in making any necessary adjustments before implementation.
Happy automating with e!