Forum Discussion
Teams bot not working when deployed
I have developed a RAG chat bot with Azure OpenAI and Teams Toolkit for VSCode. When I run the app in debug it works perfectly as expected, the problem is when I upload it to Teams it only sends the welcome message, then error messages. I published it to Teams with "Zip Teams App Package", and uploaded the zip file there. I suspect there might be a problem with the manifest, but would be grateful for any other pointers that might cause this issue.
This is what my manifest file looks like:
- CedricZimmermannBrass Contributor
Hello, tjson!
I'm not from Microsoft either—just another developer browsing the forums. I haven’t worked with Azure OpenAI specifically, so there may be some differences, but based on my experience with Teams bots, here are a few other setup steps you might find useful.
It looks like you used the Teams Toolkit to deploy your app in the Teams test environment (correct me if I'm wrong). The Teams Toolkit provides handy scripts for deploying your bot to Teams since your app requires configuration across several platforms:
- AAD App registration: Azure AD Portal – this is where you'll register your app with Azure AD.
- Bot Framework: Bot Framework Portal – here, you’ll configure the webhook URL. In development, this will typically be a tunnel (like ngrok) pointing to your localhost. The Teams Toolkit can set this up for you.
- Teams app: This is the part you handled manually by uploading the zip file.
To get started, I recommend using the Teams Toolkit scripts. In Visual Studio Code, just press F5 to see the list of options for deploying and testing your app.
Hope this helps!