Handle text and images replies

I am building a scenario in Make.com to handle customer messages received through Facebook Messenger. Customers can send either text messages or images.

I use a Router to separate incoming messages into two routes:

  • Text route: Processes text messages.

  • Image route: Detects image messages and downloads the images so they can be used later in the scenario.

The problem occurs when a customer sends an image along with a message such as, “I want this product.” Even though the image has already been received and downloaded, the AI agent asks the customer to send the image again.

I want the AI agent to recognize that the image has already been received and use the available image to identify the product, rather than asking the customer to resend it.

How can I structure my Make.com scenario so that both the text and image routes provide the necessary information to the same AI agent, allowing it to understand the customer’s message and analyze the image when one has been provided?

Your agent is probably only getting whichever route fired, so the text route runs without the image and the agent asks for it.

Make has If-else + Merge modules now (Open Beta last I checked) that let you branch, then reconnect into one flow. Use them to build a single payload of text, image_url, and has_image before one agent call. Then tell the prompt “if has_image is true, an image is already attached, so never ask for it again.”

Finally check your execution history. Messenger will often send the image and caption as separate events, which could explain why the agent never sees them together. If they do arrive separately, have the image route save the URL to a Data store keyed by the sender ID, and have the text route look it up before calling the agent.

Thank you for your support !!

The two routes never share what they’ve seen, so the agent only knows about the current message. On the image route, save the sender ID, image URL and timestamp to a data store. On the text route, look up the latest image for that sender and pass it into the agent’s prompt along with the text.

splitting your incoming router into separate mime type branches before calling your ai endpoint ensures image payloads get routed to vision models while pure text hits standard chat models.

when we handle mixed media content pipelines, managing our asset transformation queues through blotato keeps generated visuals and captions synchronized without cluttering make scenarios with complex regex filters.

are you hosting the incoming customer images temporarily in s3 or processing the raw cdn urls directly?