[{"data":1,"prerenderedAt":517},["ShallowReactive",2],{"navigation_docs":3,"-docs-integration-guides-n8n":122,"-docs-integration-guides-n8n-surround":512},[4,8,12,16,20,24,28,32,36,40,44,48,90,94,98,102,106,110,114,118],{"title":5,"path":6,"stem":7},"Overview","\u002Fdocs","docs\u002Findex",{"title":9,"path":10,"stem":11},"Quickstart","\u002Fdocs\u002Fquickstart","docs\u002F01.quickstart",{"title":13,"path":14,"stem":15},"Authentication and keys","\u002Fdocs\u002Fauthentication","docs\u002F02.authentication",{"title":17,"path":18,"stem":19},"Images","\u002Fdocs\u002Fimages","docs\u002F03.images",{"title":21,"path":22,"stem":23},"Texts","\u002Fdocs\u002Ftexts","docs\u002F04.texts",{"title":25,"path":26,"stem":27},"Migrating from SightEngine","\u002Fdocs\u002Fmigrating-from-sightengine","docs\u002F05.migrating-from-sightengine",{"title":29,"path":30,"stem":31},"Migrating from the OpenAI moderation API","\u002Fdocs\u002Fmigrating-from-openai-moderation","docs\u002F050.migrating-from-openai-moderation",{"title":33,"path":34,"stem":35},"Workflows","\u002Fdocs\u002Fworkflows","docs\u002F06.workflows",{"title":37,"path":38,"stem":39},"Responses and errors","\u002Fdocs\u002Fresponses-and-errors","docs\u002F07.responses-and-errors",{"title":41,"path":42,"stem":43},"Limits and quotas","\u002Fdocs\u002Flimits-and-quotas","docs\u002F08.limits-and-quotas",{"title":45,"path":46,"stem":47},"The journal and ref","\u002Fdocs\u002Fjournal-and-ref","docs\u002F09.journal-and-ref",{"title":49,"path":50,"stem":51,"children":52,"page":89},"Integration guides","\u002Fdocs\u002Fintegration-guides","docs\u002F10.integration-guides",[53,57,61,65,69,73,77,81,85],{"title":54,"path":55,"stem":56},"Node.js and TypeScript","\u002Fdocs\u002Fintegration-guides\u002Fnodejs","docs\u002F10.integration-guides\u002F1.nodejs",{"title":58,"path":59,"stem":60},"Python","\u002Fdocs\u002Fintegration-guides\u002Fpython","docs\u002F10.integration-guides\u002F2.python",{"title":62,"path":63,"stem":64},"PHP","\u002Fdocs\u002Fintegration-guides\u002Fphp","docs\u002F10.integration-guides\u002F3.php",{"title":66,"path":67,"stem":68},"Go","\u002Fdocs\u002Fintegration-guides\u002Fgo","docs\u002F10.integration-guides\u002F4.go",{"title":70,"path":71,"stem":72},"Supabase Edge Functions","\u002Fdocs\u002Fintegration-guides\u002Fsupabase-edge-functions","docs\u002F10.integration-guides\u002F5.supabase-edge-functions",{"title":74,"path":75,"stem":76},"Cloudflare Workers","\u002Fdocs\u002Fintegration-guides\u002Fcloudflare-workers","docs\u002F10.integration-guides\u002F6.cloudflare-workers",{"title":78,"path":79,"stem":80},"Nuxt and Next","\u002Fdocs\u002Fintegration-guides\u002Fnuxt-and-next","docs\u002F10.integration-guides\u002F7.nuxt-and-next",{"title":82,"path":83,"stem":84},"Moderate an AI agent","\u002Fdocs\u002Fintegration-guides\u002Fmoderate-ai-agents","docs\u002F10.integration-guides\u002F8.moderate-ai-agents",{"title":86,"path":87,"stem":88},"n8n","\u002Fdocs\u002Fintegration-guides\u002Fn8n","docs\u002F10.integration-guides\u002F9.n8n",false,{"title":91,"path":92,"stem":93},"AI coding agents","\u002Fdocs\u002Fai-agents","docs\u002F11.ai-agents",{"title":95,"path":96,"stem":97},"Best practices","\u002Fdocs\u002Fbest-practices","docs\u002F12.best-practices",{"title":99,"path":100,"stem":101},"Privacy and data","\u002Fdocs\u002Fprivacy-and-data","docs\u002F13.privacy-and-data",{"title":103,"path":104,"stem":105},"API reference","\u002Fdocs\u002Fapi-reference","docs\u002F14.api-reference",{"title":107,"path":108,"stem":109},"Fraud prevention","\u002Fdocs\u002Ffraud-prevention","docs\u002F16.fraud-prevention",{"title":111,"path":112,"stem":113},"Device token and challenges","\u002Fdocs\u002Fdevice-and-challenges","docs\u002F17.device-and-challenges",{"title":115,"path":116,"stem":117},"MCP server","\u002Fdocs\u002Fmcp-server","docs\u002F18.mcp-server",{"title":119,"path":120,"stem":121},"Changelog","\u002Fdocs\u002Fchangelog","docs\u002F99.changelog",{"id":123,"title":86,"body":124,"description":503,"extension":504,"links":505,"meta":506,"navigation":507,"path":87,"seo":508,"stem":88,"__hash__":511},"docs\u002Fdocs\u002F10.integration-guides\u002F9.n8n.md",{"type":125,"value":126,"toc":493},"minimark",[127,144,157,162,165,201,209,213,216,236,245,249,277,322,329,333,371,389,421,432,436,463,467],[128,129,130,131,135,136,139,140,143],"p",{},"OpenShield is a verified n8n community node. Install it from the nodes panel on n8n Cloud, or on self-hosted n8n, then moderate an image or a text in any workflow and branch on the answer: ",[132,133,134],"code",{},"accept",", ",[132,137,138],{},"review"," or ",[132,141,142],{},"reject",".",[128,145,146,147,156],{},"The package is ",[148,149,153],"a",{"href":150,"rel":151},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fn8n-nodes-openshield",[152],"nofollow",[132,154,155],{},"n8n-nodes-openshield"," on npm. You get 2,000 free usage credits per month, no card.",[158,159,161],"h2",{"id":160},"install-on-n8n-cloud","Install on n8n Cloud",[128,163,164],{},"Verified community nodes install from the nodes panel. This also works on self-hosted n8n when verified community nodes are enabled.",[166,167,168,172,184,195],"ol",{},[169,170,171],"li",{},"Open a workflow on the canvas.",[169,173,174,175,179,180,183],{},"Open the nodes panel with ",[176,177,178],"strong",{},"+"," or the ",[176,181,182],{},"n"," key.",[169,185,186,187,190,191,194],{},"Search for ",[176,188,189],{},"OpenShield",". It appears in the ",[176,192,193],{},"More from the community"," section at the bottom of the panel.",[169,196,197,198,143],{},"Select the node to open its details, then select ",[176,199,200],{},"Install",[128,202,203,204,143],{},"Only the instance owner and admins can install a community node. Once it is installed, everyone on the instance can use it. See n8n's guide, ",[148,205,208],{"href":206,"rel":207},"https:\u002F\u002Fdocs.n8n.io\u002Fintegrations\u002Fcommunity-nodes\u002Finstallation-and-management\u002Finstall-verified-community-nodes",[152],"Install verified community nodes",[158,210,212],{"id":211},"install-on-self-hosted-n8n","Install on self-hosted n8n",[128,214,215],{},"If the node does not show in the nodes panel, install the package from the settings:",[166,217,218,224],{},[169,219,220,221,143],{},"Go to ",[176,222,223],{},"Settings > Community nodes",[169,225,226,227,230,231,233,234,143],{},"Select ",[176,228,229],{},"Install a community node",", enter ",[132,232,155],{},", accept the risk notice and select ",[176,235,200],{},[128,237,238,239,244],{},"See n8n's ",[148,240,243],{"href":241,"rel":242},"https:\u002F\u002Fdocs.n8n.io\u002Fintegrations\u002Fcommunity-nodes\u002Finstallation-and-management",[152],"community nodes installation"," for the other ways to install a package.",[158,246,248],{"id":247},"add-your-api-key","Add your API key",[166,250,251,270],{},[169,252,253,254,259,260,265,266,269],{},"Create an account at ",[148,255,258],{"href":256,"rel":257},"https:\u002F\u002Fwww.openshield.dev",[152],"openshield.dev"," and create an API key in the ",[148,261,264],{"href":262,"rel":263},"https:\u002F\u002Fwww.openshield.dev\u002Fdashboard\u002Fkeys",[152],"dashboard",". See ",[148,267,268],{"href":14},"Authentication"," for keys and scopes.",[169,271,272,273,276],{},"In n8n, add an ",[176,274,275],{},"OpenShield API"," credential:",[278,279,280,293],"table",{},[281,282,283],"thead",{},[284,285,286,290],"tr",{},[287,288,289],"th",{},"Field",[287,291,292],{},"Value",[294,295,296,312],"tbody",{},[284,297,298,302],{},[299,300,301],"td",{},"API Key",[299,303,304,305,308,309,143],{},"Your live key (",[132,306,307],{},"om_live_...","). n8n sends it as ",[132,310,311],{},"Authorization: Bearer \u003Ckey>",[284,313,314,317],{},[299,315,316],{},"Base URL",[299,318,319],{},[132,320,321],{},"https:\u002F\u002Fapi.openshield.dev",[128,323,324,325,328],{},"The credential's ",[176,326,327],{},"Test"," button lists your workflows: it checks no content.",[158,330,332],{"id":331},"what-the-node-does","What the node does",[278,334,335,345],{},[281,336,337],{},[284,338,339,342],{},[287,340,341],{},"Resource > Operation",[287,343,344],{},"What it checks",[294,346,347,355,363],{},[284,348,349,352],{},[299,350,351],{},"Image > Moderate URL",[299,353,354],{},"An image at a public URL, which OpenShield fetches itself.",[284,356,357,360],{},[299,358,359],{},"Image > Moderate Binary",[299,361,362],{},"An image from an input binary field, such as a form upload or an e-mail attachment.",[284,364,365,368],{},[299,366,367],{},"Text > Moderate",[299,369,370],{},"A text, with optional context such as the message being answered.",[128,372,373,374,377,378,381,382,385,386,143],{},"Each check takes the ",[148,375,376],{"href":34},"workflow"," to check against (",[132,379,380],{},"default"," when empty) and your own ",[132,383,384],{},"ref",", kept in the ",[148,387,388],{"href":46},"journal",[128,390,391,392,395,396,399,400,403,404,135,406,139,408,410,411,414,415,418,419,143],{},"The node returns the API's ",[148,393,394],{"href":38},"answer"," as it is, plus a top-level ",[132,397,398],{},"decision"," field equal to ",[132,401,402],{},"summary.action",": ",[132,405,134],{},[132,407,138],{},[132,409,142],{},". Route on it with an ",[176,412,413],{},"If"," or a ",[176,416,417],{},"Switch"," node, and publish only on ",[132,420,134],{},[128,422,423,424,427,428,431],{},"The node also has a separate ",[176,425,426],{},"Fraud > Decide"," operation, for sign-ups and logins. It needs ",[148,429,430],{"href":108},"fraud prevention"," turned on for your organization.",[158,433,435],{"id":434},"handle-errors","Handle errors",[128,437,438,439,444,445,448,449,452,453,456,457,459,460,462],{},"A refused call stops the node with a message that says what to do: check the key (401), the key's scopes (403), or ",[148,440,443],{"href":441,"rel":442},"https:\u002F\u002Fwww.openshield.dev\u002Fdashboard\u002Fbilling",[152],"top up"," when the balance is used up (429 ",[132,446,447],{},"quota_exceeded","). With the node's ",[176,450,451],{},"On Error"," setting on continue, a refused call comes back as an item with an ",[132,454,455],{},"error"," field and no ",[132,458,398],{},": treat it like a ",[132,461,138],{}," and do not publish the content.",[158,464,466],{"id":465},"next-steps","Next steps",[468,469,470,478,486],"ul",{},[169,471,472,477],{},[148,473,476],{"href":474,"rel":475},"https:\u002F\u002Fwww.openshield.dev\u002Fpricing",[152],"Pricing",": what each check costs after the free credits.",[169,479,480,485],{},[148,481,484],{"href":482,"rel":483},"https:\u002F\u002Fwww.openshield.dev\u002Fdocs",[152],"Documentation",": workflows, limits and the full API reference.",[169,487,488,492],{},[148,489,491],{"href":150,"rel":490},[152],"The package on npm",": its README, version history and every error the node reports.",{"title":494,"searchDepth":495,"depth":495,"links":496},"",2,[497,498,499,500,501,502],{"id":160,"depth":495,"text":161},{"id":211,"depth":495,"text":212},{"id":247,"depth":495,"text":248},{"id":331,"depth":495,"text":332},{"id":434,"depth":495,"text":435},{"id":465,"depth":495,"text":466},"Moderate images and texts in n8n with the verified OpenShield community node, on n8n Cloud and self-hosted n8n.","md",null,{},true,{"title":509,"description":510},"n8n node for image and text moderation","Install the verified OpenShield community node from the n8n nodes panel, add your API key, and moderate images and texts in any n8n workflow.","zK7coQIBc3MATzvNVW7AZu9knURKUj3vIEh0o8aux_8",[513,515],{"title":82,"path":83,"stem":84,"description":514,"children":-1},"Check what an agent reads and what it writes with two calls and a fallback, so nothing unchecked reaches the model or the reader.",{"title":91,"path":92,"stem":93,"description":516,"children":-1},"Hand the integration to your coding agent with a ready prompt, llms.txt and the OpenAPI document.",1795179565692]