My app receives webhooks from Slack. Annoyingly they send all webhooks to the same URL but the structure of the data they send changes depending on the triggering event. The main issue is that one webhook might send the property ‘user’ as text:
user: name
And a different webhook might send user as an array:
user: {id: 1234, name: name, age: 30}
As a result I have to choose one structure to initialize my workflow with and lose any data that arrives in the other structure. Is there a way to…
- Pass request data from one bubble workflow to another? That way I could set up a secondary workflow to expect ‘user’ in an array format perhaps?
- Save request data to the database so that I can extract what I need from there instead?
- Any other approach that will let me separate out my range of webhook payloads based on the event that triggered them?
This is a really big issue for me at the moment so any help would be amazing!