Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow event and action #2414

Open
1 of 3 tasks
blizzz opened this issue Nov 6, 2019 · 11 comments
Open
1 of 3 tasks

Flow event and action #2414

blizzz opened this issue Nov 6, 2019 · 11 comments
Labels
1. to develop enhancement feature: integration 📦 Integration with 3rd party (chat) service
Milestone

Comments

@blizzz
Copy link
Member

blizzz commented Nov 6, 2019

We would like to equip Talk for Nc 18 with following events and actions:

Events

  • call has finished (provide conversation name, start and end date, participants, conversation message in this time frame)

Actions (Operations)

  • write a message into a Talk conversation
  • create a Talk notification (so probably like ^ but one on one)

The actions should be independent of the triggering event, nevertheless should support/consider some context (e.g. the event itself like file modified, file path/name for Files, or also tag when in combination with a tagging event).

An Action (Operation in tech terms) implementation to look at could be nextcloud/workflow_script#22

As discussed @danxuliu :) Don't hesitate to reach out for any questions, starter points, API stuff, also missing bits.

@blizzz
Copy link
Member Author

blizzz commented Nov 6, 2019

@danxuliu had the wrong mention before

@nickvergessen nickvergessen added this to the 💚 Next Major (18) milestone Nov 14, 2019
@nickvergessen nickvergessen added feature: integration 📦 Integration with 3rd party (chat) service and removed 0. Needs triage labels Nov 14, 2019
@nickvergessen
Copy link
Member

Closing?

@blizzz
Copy link
Member Author

blizzz commented Jan 15, 2020

We still might get a call has finished (and perhaps started) event in (just not for 18/this week). Even if with less information. Just flipping the milestone?

@marcelklehr
Copy link
Member

An event for new chat messages would be nice, too.

@nickvergessen
Copy link
Member

nickvergessen commented Aug 2, 2020

There are events available for other apps. A flow action for talk messages doesn't make a lot of sense to me.

What do you want to do with the event?

@marcelklehr
Copy link
Member

marcelklehr commented Aug 2, 2020

I was thinking of automatically collecting links posted into a chat room in the bookmarks app, as an example. Another example would be a moderator's filter that logs messages with swear words to a file.

I've seen the existing events and they're great, but I think there are some instances like these, where you don't want to impose that integration on all users, but rather have it optional via flow.

@marcelklehr
Copy link
Member

In general I think exposing all events in flow would make a lot of sense as they exist already.

@nickvergessen
Copy link
Member

Well there are a lot of events. Talk alone has around 20. And also not all of them should be accessible to all users, but e.g. moderators or no one. Also woth a flow about messages, you could create problems as there a flows which create messages and so on.

@marcelklehr
Copy link
Member

I agree, maybe not all events should be available. Shooting yourself in the foot will inevitably be a problem with all apps that expose both operations and events. It might be worth thinking of a general solution for this.

@blizzz
Copy link
Member Author

blizzz commented Aug 2, 2020

IIRC comments posted trigger an events via Dispatcher. @marcelklehr / Bookmarks could hook in there. I guess the question is mostly about configurability: whether to pick up links generally, or only from selected channels, perhaps giving pre-defined tags (not systemtags). With this in mind, flows might make sense, but it is not the only possible route to go.

@SamSpiri
Copy link

My use case:
I want to dump WhatsApp into trash and use NextCloud to share photos with my family. So when I put new family photo/video to NextCloud it should be posted into a Talk group so everybody could see and discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop enhancement feature: integration 📦 Integration with 3rd party (chat) service
Projects
None yet
Development

No branches or pull requests

4 participants