Share via

how to appened response of chat bot in custom document template and how to downlaod it

Anonymous
2024-02-28T04:20:59.5233333+00:00

i have chat application,i want to append the responses in custom document template and we have to give that as output

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.

Azure OpenAI in Foundry Models

1 answer

Sort by: Most helpful
  1. Vinodh247 42,206 Reputation points MVP Volunteer Moderator
    2024-02-28T05:46:46.2+00:00

    Hi Chebolu Sai Manasa,

    Thanks for reaching out to Microsoft Q&A.

    You can download the chatbot’s responses and save them in a custom document template.

    • You can capture the responses and store them in a list or any data structure using python
    • Before this design a template that suits your requirements. It can be a plain text file, a Markdown document or a Word document (any other format) etc with placeholders inside which you can insert the response of the chatbot.
    • Iterate through the chat responses and replace the placeholders in your template with the actual chatbot outputs
    • Save the custom document
    • Download the document by providing the download link (to download it locally)

    You might have to tweak the steps to adapt these steps to your specific use case.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.