$file = $file.get(0) expression in the window that opens.file variable in the Save answer parameter.curl 'https://twin-ai.com/iam/api/v1/auth/login'
-X 'POST'
-H 'Content-Type: application/json'
--data-raw '{"email":"{your_email}","password":"{your_password}"}'
Click the Request body tab in the Request block parameters.
Edit the field values:
email: specify as value the e-mail address used to log in to the personal account.password: specify as value the password from the personal cabinet.Press Save.
Set the Empty block and draw the arrow from the previous Request block into it.
Set the output data type to Success in the arrow parameters.
Click Set up variables in the arrow in the Variables field.
Specify the name of the token variable and assign it the value body.token.
Click Save.
Set up another Request block.
Click Open request editor in the block in the Request field.
On the cURL tab, paste the following code:
curl 'https://twin-ai.com/bot/api/v1/files/{file}/data'
-X 'GET'
-H 'Authorization: BEARER {token}'
link variable.link variable and assign it the value body.url.
As the last message, the bot will send a link to the file sent to it by the user in this dialog. The link to the file will be saved in the link variable.