Microsoft Teams - Power Automate - Bot replies to older messages - bots

I’m having a problem with a bot that has to reply automatically when a message is posted in a Teams channel. When it is activated, it also responds to messages that were posted prior to its activation. How can i avoid this ?
Thanks for your help

I'm assuming you're running a flow with a Microsoft Teams trigger.
I can see two possible causes of this.
This first is that Microsoft's Team trigger doesn't work very well and is firing for previous posts while the Flow is disabled. Very plausible
If that's the case you need to make a Condition to check if the post date is greater than the current time minus say 10 minutes, AddMins(UtcNow(),-10). If successful, continue, if not, terminate.
Hopefully, you can pull the post date directly from the Teams trigger, but if not you'll have to use a Teams action to look up information about the given post id provided by the trigger.
The second possibility is that you're not taking the ID from the trigger which will tell you what post to respond to, and accidentally doing some kind of reply to all posts in the channel.

Related

Kik bot show "Pending Approval" always

I am creating a Kik bot. It doesn’t seem to be technically difficult.
I have created a new Kikbot under a Kik account A .
User A can automatically subscribe to Kikbot,
but when another account B subscribes to Kikbot,
it shows that the number of subscribers exceeds limit.
I find some informations, and it seems that Kikbot need join to Bot Shop .
About half a month ago, I submitted Kikbot information to dev.kik.com,
but the reply always is Pending Approval from then on.
I am very confused now.
Is there any way, what is going on?
and what is the problem?
Let Kikbot be displayed on the Bot Shop as soon as possible?
I even sent three emails to Bots#kik.com ,
but No response.
Do I need tell my boss that I am going to quit this project now ?
Same for me, very fast to deny if bot does not answer to text for example, but none if the bot is ok...
Ups, check that comment:
https://stackoverflow.com/a/61868376/15436636

Can Logic Apps Monitor a large number of calendars effectively?

PROBLEM
We want to track changes in user calendars, but are concerned with how often we'd need to check 2000+ user calendars (Outlook).
Would the process of monitoring over 2000 user calendars present a problem for our network?
WORKFLOW
Trigger (Check for calendar change) -> ACTION (Http: update a DB)
The Trigger below checks a calendar every 2 seconds. Is there a trigger that behaves like a "subscription" object where it simply handles a change notification?
For the question about how often to check the calendar events, it depends on your requirement. In my opinion, if you set check event every 2 seconds(it's a little bit more frequent), you'd better check if your logic app set as run in parallel. You can click the ... button of the trigger and click "Settings". Then check if it is same to below screenshot.
For your question about is there a trigger that behaves like a "subscription". I'm afraid it doesn't exist a trigger which can implement this requirement in logic app. We can also check if any backend api can implement it, we can see the graph api document.
The example in above screenshot is for mailFolders, but it's same with events. We can see it is necessary to specify a user(like me) or a group before the /events. So I don't think we can monitor the subscription events. You can raise a post on Azure feedback page to suggest developer add this feature.

what events can trigger webhook in MS Teams?

Hi StackOverflow community:
Hope everyone is as well as possible during this current pandemic. We're developing an AI-based system which needs to collect inputs from various sources, including MS Teams. For example, we need to be able to trigger an API call when someone clicks on a 'channel' or a 'chat', when they click on a link which takes them outside of MS Teams (for example, they click on a weblink which takes them to a website), when they post in a chat/channel and so on.
Given that this program will be used by many non-technical users, we don't want the user to have to initiate the API call - it has to be done automatically.
I was hoping please that some people would be able to let me know which actions can/can not trigger API calls and outgoing webhooks? And the best way of automatically triggering the API calls when these events occur?
Any help would be greatly appreciated!
Josh

Webhook not firing consistently for RingCentral Glip posts

I have successfully created a Glip bot in the sandbox and registered the corresponding webhooks, following the instructions found here: https://ringcentral-api-docs.readthedocs.io/en/latest/glip_bots/
When testing in the sandbox, I only get a webhook payload about 50% of the time when the bot is spoken to in a conversation. I would expect to get one every time, since the bot has a subscription for posts, and is a member of that group. Additionally, if the subscription wasn't working at all, I would expect to get it 0% of the time. Literally the same text will trigger it once, but not the second time.
I determined that there was nothing wrong with the endpoint by using Postman to simulate webhooks. Every time I created a simulation, the bot became aware of the post and responded accordingly. So it isn't the endpoint. It would appear that RingCentral Glip is not calling the endpoint every time it should.
It could potentially be a sandbox issue but I don't see any documentation that supports that theory. The specific event that's not firing every time is "/restapi/v1.0/glip/posts". As I continue to investigate I thought I'd reach out to see if anyone else experienced this issue, or has suggestions on how to debug.

Twilio SMS with links - links being clicked automatically?

I have an app that sends SMS's out to a bunch of people. Those messages contain links. They are not using any link shorteners or any other service. They link back to my site. The links themselves are randomized strings, which are stored in my db, which are associated with an action. (Click "yes" or "no" link and the db tracks what you chose.) For ALL users, this works perfectly. With one user - and it's always the same user, as soon as the cron job runs, which triggers this event, his "vote" comes in. This is without him clicking or even seeing the message sometimes.
So, the question: has anyone ever seen or heard of a cell provider or a messaging app or similar that "clicks" links as part of some process before sharing the content with the user? I can't see ANYTHING in the code that would single him out so I'm thinking it has to be something in between when the message goes out and he does what he does. Especially because the timestamp is also always within seconds of the cron job running.
Sending an SMS can sometimes go through multiple carriers before reaching an end destination. As such, providers may be "handling" the content in this case.
The best thing to do would for any cases of this in the future would be to write support for further investigation.

Resources