Skip to content
Feeding a scenario ...
 
Notifications
Clear all

Feeding a scenario with two distinct webhooks

1 Posts
1 Users
0 Reactions
4 Views
Manuel_Antunes
(@manuel_antunes)
Posts: 1
New Member
Topic starter
 

In Airtable, I have a form that populates a database. When a user submits the form, a new Airtable record is created with the submitted data (e.g., email, name).

I'm using callin.io to trigger two Stripe API calls: 1) to create a new account ID, and 2) to generate the account onboarding form URL.

The intended user journey is:

  1. The user clicks the submit button on the Airtable form.
  2. The user is redirected to the Stripe URL for account onboarding (Stripe step 2 mentioned above).

This has been successfully achieved with the following workflow:

Currently, I'm facing the following issues:

A) The webhook from the Airtable Form is basic and doesn't include any data (like email, name, etc.). To address this, I had to set up a separate webhook in Airtable Automations. This automation fires a second webhook, which carries the necessary data, whenever a new Airtable record is created. (This approach is similar to what's demonstrated in this video: https://www.youtube.com/watch?v=HZWpZ7lgEqs&ab_channel=BusinessAutomated! ). The data from this webhook (email, name, etc.) is then used in the Stripe flows.

B) After the Stripe flows are triggered by the Airtable Form's "Submit" button and populated with data from the Airtable Automations webhook, I need the output from the Stripe flows (the Account Onboarding URL) to be returned as a redirect response to the webhook triggered by the "Submit" button in the Form.

I'm having trouble integrating these two webhook instances within the same scenario and feeding them into a single Stripe module.

How can I merge the information from this second webhook into the existing flow and ensure the URL is outputted in the webhook response of the "Submit" button webhook?

 
Posted : 17/03/2024 9:33 am
Share: