What is your goal?
I am building an automated support workflow for my e-commerce business (car trailer spare parts) to handle incoming emails more efficiently. My goal is to use Gemini AI to classify incoming Gmail messages into four categories (Business, Private, Trash, Unknown) and then automatically prepare response drafts in Gmail based on system data retrieved from PlentyONE.
What is the problem?
As I am new to Make.com, this scenario is currently exceeding my experience level. I am struggling with:
Data Mapping Reliability: I am unsure how to best handle cases where the PlentyONE API search returns incomplete, multiple, or no results. I want to prevent the system from saving drafts with empty variables or broken data.
Stability: How can I ensure the Gemini prompts remain robust so that the AI output always strictly adheres to the requested JSON format without breaking the flow?
Logic Structure: I want to ensure that my router logic is considered “best practice” and that I am not overlooking any common pitfalls in this type of automation.
What have you tried so far?
I have already created a working basic structure using Gmail modules, two Gemini AI modules (one for initial classification and one for the business logic), and a router to handle the different categories. I also implemented a JSON Parser to process the AI output. I have successfully connected PlentyONE to the flow, but I am finding it difficult to manage the data mapping and error handling properly when the API response varies.
I have attached my blueprint below (with all private API keys and connections removed). I would greatly appreciate any feedback on the logic, the mapping robustness, and the overall design.
