1

I would like to monitor @mentions on gchat spaces and call an API for triggering phone call. It shouldn't require any modification on existing spaces like adding a separate user. Can someone share how we could achieve this? Can we create bots or using webhooks or web scrapping?

krishnanunni
  • 510
  • 7
  • 16
  • The only way I could think of is using a bot, of course you would have to add the bot to the space and would trigger once you mention it. – Lorena Gomez May 12 '23 at 14:49
  • But that is not what I want. When there is a mention to a particular member, I would like to have a phone call triggered to that user. So it should be able monitor the whole chat space and trigger when a particular mention happens. – krishnanunni May 12 '23 at 18:28
  • I'd suggest you to open a [feature request](https://issuetracker.google.com/components/350158/manage#basic), explaining the potential usefulness of this functionality. – Lorena Gomez May 12 '23 at 19:28
  • related question : https://stackoverflow.com/questions/76097228/google-chat-bot-doesnt-receive-non-mention-message-event-in-space/76097688#76097688 – Muhammad Dyas Yaskur May 12 '23 at 20:53

1 Answers1

0

As of now, there isn't a specific feature available for that purpose, and it may not be introduced in the future. However, you can utilize the spaces.messages/list endpoint to run a cron job at specified intervals. By checking each message retrieved and identifying if a mention is present, you can then trigger a phone call using Twilio or a similar service.

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73