So if you are reading this, I bet you are accepting the challenge!
Here is it: I have managed to create a n8n twitter account activity webhook (Overview | Docs | Twitter Developer Platform). Although Twitter has this weird thing that they send a token every day to which your webhook needs to respond with some HMAC code, I’ve managed to get that to work too (happy to share the workflow for those interested).
Now, in theory all these activities will be sent to the webhook
Yeah great, but that means A LOT of workflow triggers. I’m afraid my n8n cloud bill will ramp up quickly, and also it seems such a waste to not filter any of those activities. Twitter doesnt allow for any filtering, so I will have to find a way myself. In short: current setup will trigger n8n a lot, though I only need the DM activity.
Then I thought, perhaps I could find some webhook forwarder that filters the activity stream for me? Some do exist: hookdeck.com, webhookrelay.com… But then it doesn work with Twitter, because it is pinning the first time and every 24 hours with this token that you need to respond to within 3 seconds (the CRC token:
Those simple relays just give an instant 200 response.
So I am back to:
1- receive all the activities and risk to trigger many times the workflow (not scaleable)
2- find a tool that filters only specific activities (like DM) and can handle the Challenge response check
Who is the bright mind that will help me out with this one?