[Fixed]Send file to user (pdf, excel or word)

Hello everybody!

I need to send an attachment file (excel and pdf) from the bot to the user using socketio channel. Can anyone advise how to do this? I am not sure if I have to send a local file saved on my pc or upload the file online and send the link. It is not working using the dispatcher.utter_message.

Please advise.

Thank you in advance.

I have fixed the above issue. If you need any help regarding this one. I am ready to help.

hi MariamHar

I want to share excel file generated by pandas data frame.

could please help how you did. please share you code snippet.

Thanks in advance.

Hi @DhanrajShirgire, you can find below the code: \

Replace doc_path with your excel URL

1 Like