--- title: "Upload File To Ongoing Dialogflow Chats" slug: "upload-file-to-ongoing-dialogflow-chats" updated: 2024-06-13T11:15:23Z published: 2024-06-13T11:15:23Z canonical: "docs.rocket.chat/upload-file-to-ongoing-dialogflow-chats" excludeFromExternalSearch: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Upload File To Ongoing Dialogflow Chats You may have a use case where you want to upload a file to the ongoing Bot conversation, like a product handbook or purchase invoice. #### Prerequisites - Have a Dialogflow intent with fulfillment webhook enabled - A [bot user](/v1/docs/dialogflow-app#bot-user-configuration) with a Live Chat agent role. To upload a file to an ongoing bot conversation, - Get the Dialogflow `session-id` of the ongoing bot conversation where you want to upload this file. You can get it from the fulfillment webhook request, which Dialogflow will send upon detecting your target intent. > See a sample [webhook request](https://cloud.google.com/dialogflow/es/docs/fulfillment-webhook#webhook_request) for a detailed example. The `session-id` is in the session property. - Use the [Upload File to a Room](https://developer.rocket.chat/reference/api/rest-api/endpoints/rooms/rooms-endpoints/upload-file-to-a-room) endpoint with the `session id` as the `Room Id` on Rocket.Chat. The endpoint requires authentication, so you can use the [Login endpoint](https://developer.rocket.chat/reference/api/rest-api/endpoints/authentication-endpoints/login) to get authentication tokens for the bot user.