how to connect data source to python application for chatbot

Vishal Suryawanshi 0 Reputation points

Hi team, I need to connect azure chatbot to python application. from the 100 pdfs request content will be scanned matched and responded back to the user, for this using python application as data source. And to connect this data source we need to use Azure chatbot services. Please help me with the architecture to build with this scenario. Thanks Vishal Suryawanshi

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
729 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 43,646 Reputation points

    @Vishal Suryawanshi

    Thanks for reaching out to us, could you please share more details about your scenario? From the current information you provided to us, below steps seems a solution -

    To connect an Azure chatbot to a Python application that serves as a data source, you can use Azure Functions and Azure Blob Storage. Here's an architecture that you can use:

    1. Upload the 100 PDFs to Azure Blob Storage. You can use the Azure Portal or Azure Storage Explorer to upload the PDFs.
    2. Create an Azure Function that reads the PDFs from Azure Blob Storage, scans them for content, and returns the matched content. You can use a Python script to perform the scanning and matching.
    3. Configure the Azure Function to be triggered by an HTTP request. This will allow the chatbot to call the Azure Function and retrieve the matched content.
    4. Create an Azure Bot Service bot and configure it to use the Direct Line channel. This will allow the bot to communicate with users through a web chat interface.
    5. In the bot's code, call the Azure Function to retrieve the matched content and use it to generate a response to the user.

    Please let me know how it works, thanks.



    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments