<aside> 💡 Note: You can use the Bot-message configuration element with the ‘File’ type in all messengers:

This feature allows you to send the following file types:

<aside> 💡 Note: Only one file is sent per iteration.

</aside>

To send a file to a user, follow these steps:

  1. Add the [Read data] element.

  2. Select the object where the necessary file is kept, and specify the filter conditions and columns for reading:

  3. Add the [Execute process action] and complete the following parameters:

    Parameter Value
    What user action to perform? Bot Helper. Get File
    Schema Map to the value of the Id column from the added [Read data] element.
    Schema name Enter the object schema name where the necessary file is stored. For example, ContactFile.
    Schema data column Enter the column name in which the file data is stored. For example, Data.
  4. Add a new bot-message element.

  5. Add two message blocks.

  6. Select the necessary messengers in both blocks.

  7. In one of the blocks, select the ‘Message’ type and write the message text to be sent with the file. Also, you can configure the sending of the document name. If necessary, you can specify the parameters values in the text.

  8. In the other block, choose the ‘File’ type of message.

    <aside> 📢 Attention: Specify the type of the file you send correctly.

    </aside>

  9. Map the following element parameters:

    Parameter Value
    File Map to the Result parameter value of the [Execute process action] element.
    File_Name Map to the Result File name parameter value of the [Execute process action] element.

    To send several files in one stage, you need to organize the cycle of reading and sending files.

  10. Additionally, you can activate the ‘Not to expect the response’ feature, unless you are waiting for the user’s answer.