Mastering Gemini Safety Settings: Set the Perfect Policy for Your Workflows
Hi Zenphi Community!
By now, you've probably seen just how powerful the Gemini actions are inside Zenphi. Whether you are extracting structured JSON from 350-page PDFs, analyzing customer sentiment, or automatically routing complex helpdesk tickets, Gemini is an absolute game-changer for automation.
But occasionally, you might build a perfect flow, run a test, and get a completely blank or null output.
Before you rewrite your prompts, check your Safety Settings.
Because Gemini is a powerful generative AI, it comes with strict, built-in guardrails to prevent the generation of harmful content. By default, Zenphi sets these safety thresholds to "Block some" across four specific categories: Harassment, Hate Speech, Sexually Explicit, and Dangerous Content.
While these defaults are great for general use, highly specific internal workflows can accidentally trip these filters (a "false positive"), causing Gemini to block the response entirely.
Here is why your legitimate workflows might be getting blocked:
Harassment: Are you building a workflow for Customer Success to analyze angry support tickets? Or an HR flow to summarize employee complaints? The AI might read the frustrated tone of the source text and flag it as harassment.
Hate Speech: If your legal team is automating the extraction of data from case files, or your community team is building an automated content moderation flow, the AI might block the output because it is analyzing flagged language.
Sexually Explicit: Building a flow for medical intake forms, biology curriculum, or health insurance claims? Anatomical terms and medical history can easily trigger this specific filter.
Dangerous Content: If your IT department uses Zenphi to summarize cybersecurity threat logs, penetration test results, or incident reports, Gemini might interpret the discussion of "exploits" and "attacks" as dangerous.
The Best Practice: Set a Company Policy
It can be tempting to just go into the action settings and switch everything to "Block none" so your flow works. But rather than guessing, the best practice is to talk to your compliance or security team and set a standard company policy for every flow.
Determine which types of workflows are allowed to bypass these filters. For example, your policy might be: "Internal HR and IT flows can have safety settings lowered to 'Block none,' but any workflow generating external customer-facing emails must remain on 'Block some.'"
How to adjust the settings:
Once you have your policy, adjusting the filters is easy.
Click on your Gemini action in the Zenphi builder.
Scroll down to the Safety Settings section.
Use the dropdowns to adjust the thresholds for the four categories based on your flow's specific context.
Understand your data, consult your team, and set the policy that works best for your organization.
Happy Automating!