MarvinAPI icon indicating copy to clipboard operation
MarvinAPI copied to clipboard

[REQUEST] Zapier Support for AM Trigger/Webhooks

Open blankster opened this issue 3 years ago • 1 comments

Statement of purpose I do solemnly swear (or affirm) that this is an API feature request and not a Marvin feature request. For a Marvin feature request, I would use Product Board.

Is your feature request related to a problem? Please describe. According https://github.com/amazingmarvin/MarvinAPI/wiki/Webhooks AM expects a certain answer when the webhook strategy is used, as far as I know, Zapier can't provide this when webhooks are used (https://zapier.com/page/webhooks/). Besides this, the current Zapier integration doesn't allow the usage of AM as a trigger.

Describe the solution you'd like I would like the direct option that allows AM webhooks to trigger Zapier webhooks.

Example: If in AM, a task/habit/Pomodoro is completed, what is triggering a webhook directly to Zapier and sends detailed data to it, related to the object completed.

Clarification: I don't need a visual configuration option directly in Zapier, just an option that allows me to trigger Zapier by AM webhook.

The only danger I see is that multiple tasks could be completed sometimes faster than 3s between each completion. It would be great if webhooks aren't sent faster (queueing?) than this. Zapier isn't the bottleneck here, it could theoretically handle 10K requests/5min.

Describe alternatives you've considered Developing a "man in the middle"/proxy that replies with the needed feedback to AM while forwarding the information to Zapier. But that's an additional part that can break, overhead, and can be considered an ugly workaround, as especially Zapier is exactly built, to receive such webhooks/triggers and deal with it (no danger of DOS).

If this is the only route possible in near future, then I do it, but if there is a cleaner solution possible, I would like to avoid it.

Additional context Personally, I want to let run a custom Python script on Zapier that manages the Exist.io integration (http://developer.exist.io/#list-of-attributes) and provides productivity data directly fed by AM (tasks completed, Pomodoro, and so on). I did this once successfully for https://habitica.com/ and it worked very well.

This request seems to be similar to the Integromat integration request (https://github.com/amazingmarvin/MarvinAPI/issues/21).

blankster avatar Jun 15 '21 20:06 blankster

Webhooks are queued up and only fire once every 3 seconds, so that part should be fine.

I've started working on the Zapier webhooks. No ETA yet but this will happen, and it seems easier to setup than Integromat.

amazingmarvin avatar Jul 11 '21 07:07 amazingmarvin