hey! i have a question regarding mapping my webhook data to variables in a flow. i can only seem to map one input to one flow variable but i need to map multiple (firstname, lastname, email, phone and a few more)
is this possible?
hello @Tim
For storage, you donāt need to save individual values. You can store the entire object in the FLOW variable and use it as needed.
If required, you can use a Set nodeāeither after the step or within a Code Block nodeāto extract and assign specific variables in a cleaner way in the next node.
hey @Sahil thanks for your answer but i still cannot seem to get it work, can you please explain where i'm going wrong here?
i drop my very simple setup here, i cannot seem to get any data at all (even when i include sessionid and create a new session beforehand and use sessionid as the mapping var)
To execute a webhook within an existing chat session, you need to pass the session ID and associate it with the webhook. This ensures that the flow is triggered inside the same session.
For storage-related details, you can refer to the screens shared above.
@Sahil I see I got it to work thanks a lot! My problem mainly was using only the studio to emulate it and it never showed the vars but when published it, it worked. Is there a way to do this without starting a session first?
This would require some rather big changes in our existing setup which we used with bird.com
Also is there a way to set a wait step for far more than 10 seconds? I need 7 days at least! Thanks for your help
Could you please share your use case for thisāspecifically how you plan to execute the chat without a session? From my understanding, flows need an active chat session to be executed.
Also, could you clarify your use case for having a wait time of several days? I can share this with the team for further review.
@Saleh Ahmad sure so first the sessions:
so we send whatsapp templates and emails proactively so the user can respond to it so we can initiate conversations without waiting for the user to make a move after he sends us a lead or triggers an event in our database.
then we will initiate a whatsapp template instantly.
there is also a problem i just found out: even with starting a session and sending a template this way the message doesnt show up in the conversation (see screenshots)
regarding waiting time:
after some triggers we will initiate wait times from 2-7 days, making API requests to see for example if the user bought a product and send them templates accordingly for example a reminder