Hi everyone,
I’m currently building an n8n flow that performs the following steps:
- Loop through a list of users (from Microsoft Graph API).
- For each user, analyze their profile picture using OpenAI’s “Analyze Image” module.
- Then, based on the result (e.g. no image or specific content), I want to send a Teams chat message to the user via Microsoft Graph API (
/chatsendpoint).
The problem:
When I use the Analyze Image module, the output from previous steps (especially the user’s id or mail) is lost. So when I try to build the request body to send the chat message, I get an error like:
csharp
Sao chépChỉnh sửa
'[email protected]' field is missing in the request.
I tried using a Merge node after Analyze Image to re-attach the user info, but I’m not sure if I’m using it correctly.
What is the best way to keep or merge the user info after calling Analyze Image, so that I can send a proper Teams chat message to that same user?
Any help or example would be appreciated!
Thanks ![]()
