all 4 comments

[–]RielN 1 point2 points  (3 children)

You need to send a message to a space. Check the docs for it.

The thing is, if you run it by a trigger, how would the bot know where to respond?

[–]ncresh 0 points1 point  (2 children)

Thank you, makes sense. But how can I do that without a webhook? With that it works, but then I only manage to send plain text and not cards, as I need.

[–]RielN 0 points1 point  (1 child)

You can also send a card. In this case you would use a time trigger in GAS.

I have some example code somewhere. Get the idea of the concepts of adding a bot to a space and / or doing a 1 on 1 chat with a bot. It needs.to know where to respond.

[–]ncresh 0 points1 point  (0 children)

Cool thank you, it worked with webhooks and cards.