Troubleshooting: Getting an empty/null output from Gemini? Check your Safety Settings!
Hi everyone,
If you’ve ever built a workflow with a Gemini action, tested your prompt, and received a completely blank or null output, you aren't alone! Before you spend hours rewriting your prompt or checking your mapping, there is a quick setting you should check first.
Why is my output empty?
Gemini has strict, built-in safety filters designed to prevent the generation of harmful content. By default, Zenphi's Gemini actions are set to "Block some".
However, if you are processing sensitive or complex internal documents, you might accidentally trip these filters (a false positive), causing Gemini to block the response entirely. This frequently happens if your data contains:
Medical or Health Data: Forms containing symptoms, diagnoses, or intake records (like camper health profiles).
HR & Legal Documents: Incident reports, employee complaints, or legal case files (which the AI might misinterpret as "Harassment" or "Hate Speech").
PII (Personally Identifiable Information): Large lists of names, birthdates, and contact info, particularly involving minors/students.
Security Reports: IT incident logs or cybersecurity audits (which the AI might flag as "Dangerous Content").
How to fix it:
If your use case is legitimate but your outputs are coming back empty, you can easily adjust the threshold for these filters inside the action.
Open the settings for your Gemini action in the workflow builder.
Scroll down to the Safety Settings section.
Change the threshold dropdowns from "Block some" to "Block none" (or adjust them individually based on your needs).
Once you save and run the flow again, Gemini will process the text without heavily filtering the output, and your data should populate correctly!
⚠️ Important Disclaimer: Changing these settings to "Block none" removes Gemini's guardrails. Please make sure you are fully complying with your organization's internal data privacy policies, compliance rules (like HIPAA or GDPR), and security standards before bypassing these safety filters.
Hope this saves someone a bit of troubleshooting time! Let me know if you have any questions below.