To send user-specific data collected within a Pushwoosh Journey to your own system via a Webhook, you can use Tags and Dynamic Content. Here’s how:
- Create Tags: For each piece of information you want to capture (like an answer to a specific quiz question), create a corresponding Tag in your Pushwoosh account.
- Store Responses using 'Update User Profile': Within your Journey flow, immediately after a user provides a response you want to capture, add an "Update User Profile" element. Configure this element to set the value of the Tag you created in step 1 with the user's specific response. Repeat this for every piece of data you need to collect.
- Add a Webhook Element: Place a Webhook element in your Journey at the point where you want to send the collected data to your system (e.g., after the user completes the quiz or section).
-
Configure the Webhook Payload: In the configuration settings for the Webhook element, define the payload (body) you want to send to your external URL. Use Dynamic Content syntax to insert the Tag values you stored earlier. For example, if you created a Tag named
quiz_answer_1
, you can include it in your JSON payload like this:{ "userId": "{{user.id}}", "answer1": "{{user.tags.quiz_answer_1}}", "answer2": "{{user.tags.quiz_answer_2}}" // Add other data and tags as needed }
- Send Data: When a user reaches the Webhook element in the Journey, Pushwoosh will replace the Dynamic Content placeholders with the actual Tag values stored for that user and send the complete payload to the URL you specified.
This allows you to capture dynamic, user-specific data during a Journey and forward it to your external applications or databases for further processing.
For more details on configuring the Webhook element and using Dynamic Content, please refer to the Journey Elements documentation (see step 7 for Dynamic Content examples).
Comments
0 comments
Article is closed for comments.