Hello @Ziggy Zulueta , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: Create a Chatbot to use Azure OpenAI in order to train the bot and then use Azure Bot Service for it to be used in multiple channels.
Solution:
- Go to framework composer and create the bot. https://learn.microsoft.com/en-us/composer/install-composer?tabs=windows
- In the composer, you can call an HTTP Request to call the Open AI service and get the response.
- The tricky part is to add logic in the composer specifically on adding the chat history in the messages array:
- If user is new, then initialize the messages array to system role and initial user role
- We provide an option for user to reset the whole conversation so them messages array is initialized
- while the user keeps on chatting the messages array gets added
- in all cases above the messages array is sent to the open ai request
- while the user keeps on chatting the messages array gets added
- We provide an option for user to reset the whole conversation so them messages array is initialized
- If user is new, then initialize the messages array to system role and initial user role
- Once the logic is completed and the Open AI HTTP Request and handling is done properly in the composer, then you can eventually publish the bot in Azure bot service
- from there you can use the chatbot in multiple channels
Thank you again for your time and patience throughout this issue.
Regards,
Vasavi
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.