User Profile
BarneyGood
Copper Contributor
Joined 4 years ago
User Widgets
Recent Discussions
Teamsfx bot deployment
Hello, I developped a notification bot for teams using Pernille-Eskebo/teamsfx package, Azure AD and the dev bot framework following that guide: https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-gs-notificationbot?tabs=vscode. When starting the node app locally and tunneling localhost with ngrok the bot works perfectly fine (I set the messaging endpoint of the bot on the bot framework https://dev.botframework.com/bots). But when changing the messaging endpoint to my company deployed API, the bot no longer sends a request to the messaging endpoint. To clarify, when trying to use the bot with my company's node app in prod environment the bot no longer works. I believe it's because the bot is not officially deployed on Azure and is still in a development status hence works only with ngrok urls, though I might be wrong. I tried migrating it using the bot framework but it is asking for an Azure subscription even though the Azure Bot Service is free for standard channels (which is what I believe I'm using) https://azure.microsoft.com/en-us/pricing/details/bot-services/. What should I do ? Is the problem where I think it is ? Thank you1.5KViews0likes2CommentsRe: Notification bot not detecting any installations
I managed to use my own bot by running the node app locally and creating a tunnel with ngrok. The message endpoint on the bot framework was not the right one, but it works now ! I have one more question. Is it possible to use the bot in another teams organization ? The bot would be hosted on my company's Azure, but it would be used by external clients whom we would give the manifest so they can add the bot to their organization. But they would not have to interact with the bot framework or Azure in any way.4.6KViews0likes3CommentsRe: Notification bot not detecting any installations
To clarify a few things, the tutorial you sent me works (https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-gs-notificationbot?tabs=vscode). However, it does not work when I try to use my own bot instead of the one created by default. When I try to use my own bot, I get the error previously mentioned "MessageEndpointUpdatingError: Failed to update message endpoint with https://<ngrok_url>/api/messages". Besides if I try to upload a custom manifest with my bot credentials to teams (upload custom app), run the bot with node locally and trigger the messages it does not work (the bot does not detect any installations). Probably I'm doing something wrong either in Azure, in the manifest or just the generic testing methodology.4.6KViews0likes5CommentsRe: Notification bot not detecting any installations
Actually, when running in debug mode the bot the 3rd step ((3/5) Updating the bot messaging endpoint ...) fails: "MessageEndpointUpdatingError: Failed to update message endpoint with https://3384-46-193-104-169.ngrok.io/api/messages". Even though it created the tunnel with ngrok it doesn't work. In the bot settings (accessed through https://dev.botframework.com/bots), I added the microsoft mail of the teamsappstudio in the owner section.4.7KViews0likes6CommentsRe: Notification bot not detecting any installations
Thanks. I'd like to add that trying the bot through the debugger (as explained in https://learn.microsoft.com/en-us/microsoftteams/platform/toolkit/debug-local?tabs=Windows&pivots=visual-studio-code) does not work either. The installations are still empty and no message is sent.4.7KViews0likes8CommentsNotification bot not detecting any installations
Hello, I created a teams notification bot using Teams Toolkit on VSCode (https://learn.microsoft.com/en-us/microsoftteams/platform/toolkit/teams-toolkit-fundamentals?pivots=visual-studio-code). I selected http trigger through a restify server. Before that, I created an app on Azure for the bot and generated a secret, and I created a bot on the Bot Framework (https://dev.botframework.com/bots) that uses the app ID of the previously created app. I filled in the credentials of the bot in the manifest template and in `initialize.ts` (file generated by Teams Toolkit initializing the bot). The code that I have is basically the code generated by Teams Toolkit, I did not change anything besides the credentials for the bot and the manifest. I then started the app in a terminal with npm, zipped the manifest and uploaded it as a custom app on teams. It opens a tab with a chat with the bot on teams, it just needs the http trigger to send me a message. When I send a POST request to http://localhost:3978/api/notification I can see the query working but the code that checks for bot installations and send an adaptive card to them returns nothing (`bot.notification.installations()` is empty), as if no one installed the bot, but I did. I tried using ngrok to create a tunnel but it does not change anything. What am I doing wrong ? I want to try the bot when it is running with node locally as later I'll need to implement it in an already existing node express app. Thank you for your time.Solved5KViews0likes10Comments
Recent Blog Articles
No content to show