Hi everyone,
I’m building a WhatsApp automation that processes multiple contact cards (vCards) sent via Twilio. Here’s how my flow is set up:
Scenario Flow:
-
Webhook: Receives incoming WhatsApp messages via Twilio.
-
OpenAI Module: Extracts up to 10
MediaUrlfields from the webhook (vCard URLs), outputs a JSON object like this:
json
{ "contacts": [ { "url": "https://api.twilio.com/.../Media/ME123" }, { "url": "https://api.twilio.com/.../Media/ME456" }, { "url": "https://api.twilio.com/.../Media/ME789" } ], "count": 3 }
-
JSON Parser: Parses the OpenAI response.
-
Repeater: Uses
Array = {{2.contacts}} -
HTTP module (inside the repeater): Calls
{{3.url}}to retrieve the vCard.
Problem:
Even though the JSON shows 3 valid contacts with unique URLs, the HTTP module runs count times, but always with the same first contact URL. So instead of fetching 3 different vCards, it fetches the first one 3 times.
What I’ve tried:
-
Confirmed that the JSON array has distinct URLs.
-
Verified that the repeater is correctly reading the count from the json parser
-
HTTP module is set to use
{{3.url}}from the json parser
What I’m looking for:
-
Why is the HTTP module reusing the same value instead of iterating properly?
-
How do I correctly fetch all unique vCards using the repeater?
Any help or insight would be greatly appreciated!
Thanks,
Bibi