Hi everyone! I have a website chat where a bot communicates with users. The bot receives messages via a webhook on n8n, processes the response, and forwards it to the website chat. The bot receives text and photo messages. Each chat has own session ID.
The text format works fine, the agent’s AI memory accepts the session and responds to the message, but there is a problem with images. In my worklfow, after the webhook, there is a switch node that determines the message format. In the photo line the switch node is {{ Object.keys($input.first().binary).length > 0 }} is not empty. Text is {{ $json.body.text }} is not empty. I would set the URL input type in the AI Photo Analysis node, but the images are in binary format. How do I set this up correctly so that the session ID is transmitted correctly to the AI agent?
Hello! Look at my workflow, in debug node I don’t see the file name, only info like content-type
multipart/form-data; boundary=— I’m testing form-data in Postman, value “photo file.” How can I make the switch recognize it as a photo and correctly transmit it to the AI node along with the ID session of chat? I tried using Google Drive, but that doesn’t work either. Thanks for attention!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.