Detect hallucinations using specialised Ollama model bespoke-minicheck
Build a summary This is useful to run it in an agentic workflow. You may remove the summary part and return the raw array with the found issues.
Integrations Used (4)
Prerequisites
Required Credentials (1)
Ollama
Used by: Ollama Chat Model, Ollama Model
Complexity
Advanced features used. Requires n8n experience.
When to Use This Workflow
AI-Powered Content Creation
Automate content generation, summarization, or analysis using AI capabilities.
Save hours of manual work while maintaining quality and consistency.
Real-time Response
React instantly when events happen - new orders, form submissions, or API calls.
Zero delay between trigger and action for time-sensitive workflows.
Error Reduction
Eliminate human error from routine processes with consistent automation.
Improve accuracy and reliability across your workflows.
{
"meta": {
"instanceId": "6e361bfcd1e8378c9b07774b22409c7eaea7080f01d5248da45077c0c6108b99",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "cbc036f7-b0e1-4eb4-94c3-7571c67a1efe",
"name": "Code",
"type": "n8n-nodes-base.code",
"position": [
-120,
40
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "// Get the input text\nconst text = $input.item.json.text;\n\n// Ensure text is not null or undefined\nif (!text) {\n throw new Error('Input text is empty');\n}\n\n// Function to split text into sentences while preserving dates and list items\nfunction splitIntoSentences(text) {\n const monthNames = '(?:Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)';\n const datePattern = `(?:\\\\d{1,2}\\\\.\\\\s*(?:${monthNames}|\\\\d{1,2}\\\\.)\\\\s*\\\\d{2,4})`;\n \n // Split by sentence-ending punctuation, but not within dates or list items\n const regex = new RegExp(`(?<=[.!?])\\\\s+(?=[A-ZÄÖÜ]|$)(?!${datePattern}|\\\\s*[-•]\\\\s)`, 'g');\n \n return text.split(regex)\n .map(sentence => sentence.trim())\n .filter(sentence => sentence !== '');\n}\n\n// Split the text into sentences\nconst sentences = splitIntoSentences(text);\n\n// Output a single object with an array of sentences\nreturn { json: { sentences: sentences } };"
},
"typeVersion": 2
},
...Related Workflows
Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o3
2. Ask Clarifying Questions [Read more about form nodes](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-b...
Chat with local LLMs using n8n and Ollama
Chat with local LLMs using n8n and Ollama This n8n workflow allows you to seamlessly interact with your self-hosted Larg...
Enrich FAQ sections on your website pages at scale with AI
🚨 Set Destination Folders Here
Extract personal data with a self-hosted LLM Mistral NeMo
Update data source When you change the data source, remember to update the Prompt Source (User Message) setting in the B...
Calendar_scheduling
Check if incoming email is about appointment We use LLM to check subject and body of the email and determine if it's an...
🐋DeepSeek V3 Chat & R1 Reasoning Quick Start
DeepSeek using HTTP Request DeepSeek Reasoner R1 https://api-docs.deepseek.com/ Raw Body