Complete Guide: AI Chatbot with Safety for Your Website

For: AM Notary LLC

This guide walks you through two things:

  • Setting up your chatbot using Chatflow (Flowise)
  • Adding Guardrail AI safety so the bot doesn't give bad answers

  • Step 1: Install Chatflow (10 minutes)

    Chatflow (also called Flowise) is a free chatbot builder. Install it:

  • Make sure you have Node.js installed. Check by opening Terminal and typing: node --version. If you see a version number, you're good. If not, download it from https://nodejs.org (choose the LTS version).
  • Open Terminal and run this command:
  • npm install -g flowise
    

  • Once installed, start it:
  • npx flowise start
    

  • Open your browser and go to: http://localhost:3000
  • You should see the Chatflow dashboard. You're ready to build your bot!

  • Step 2: Build Your Notary Bot (15 minutes)

  • In Chatflow, click Chatflows → Add New
  • Give it a name like "AM Notary Assistant"
  • Drag these nodes onto the canvas:
  • - Chat Model (pick one like ChatOpenAI or ChatAnthropic — you'll need an API key from them) - Prompt Template — this tells the bot what it knows - LLM Chain — connects the prompt to the model
  • In the Prompt Template, paste something like:
  • You are the virtual assistant for Amazing Mobile Notary LLC.

    Our services:

  • Mobile Notary ($25 per notarization + travel fee)
  • Loan Signing Agent (NNA & Notary2Pro certified)
  • Remote Online Notary (e-notary)
  • Service areas: Haymarket, Gainesville, Manassas, Bristow, Aldie, Ashburn, Prince William County VA

    We are available 24/7. We have 4+ years experience and $1M E&O insurance.

    Rules:

  • Never give legal advice. Say "Please consult an attorney."
  • If unsure about pricing, say "Please call us for current pricing."
  • Keep answers short and friendly.
  • Customer question: {question}

  • Connect the nodes: Prompt Template → LLM Chain → Chat Model
  • Click Save and test the bot in the chat preview

  • Step 3: Get Your Guardrail API Key (2 minutes)

    Now let's add the safety layer.

  • Open: https://guardrail-mvp-production.up.railway.app/developer.html
  • Enter your email (e.g. info@amnotaryllc.com)
  • Click Load
  • You'll see a key like gr_live_abc123def456...
  • COPY AND SAVE THIS KEY. You cannot get it again.

  • Step 4: Add the Guardrail Safety Tool (5 minutes)

  • In Chatflow, click Tools in the left sidebar
  • Click Create New
  • Fill in:
  • - Name: guardrailSafetyCheck - Description: Checks AI responses for safety before showing to customers
  • Add two Input Variables:
  • - Name: aiResponse, Type: string - Name: customerQuestion, Type: string
  • In the JavaScript Function box, paste this:
  • const fetch = require('node-fetch');

    const GUARDRAIL_KEY = 'PASTE_YOUR_API_KEY_HERE'; const GUARDRAIL_URL = 'https://guardrail-mvp-production.up.railway.app/api/check';

    const response = await fetch(GUARDRAIL_URL, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Guardrail-Key': GUARDRAIL_KEY }, body: JSON.stringify({ text: $aiResponse, userQuery: $customerQuestion }) });

    const score = await response.json();

    if (score.decision === 'escalate') { return $aiResponse + '\n\nšŸ“ž For accuracy, I\'d recommend confirming with our team. ' + 'Call us or book at amnotaryllc.com'; }

    if (score.decision === 'flag') { return $aiResponse + '\n\nā„¹ļø Have more questions? We\'re available 24/7 — call us anytime!'; }

    return $aiResponse;

  • Replace PASTE_YOUR_API_KEY_HERE with your key from Step 3
  • Click Save

  • Step 5: Connect Guardrail to Your Bot (3 minutes)

  • Open your chatflow canvas
  • Drag a Custom Tool node onto the canvas
  • In the dropdown, select guardrailSafetyCheck
  • Wire it up:
  • - AI output → aiResponse - Customer's question → customerQuestion
  • Make the Custom Tool's output the final response
  • Click Save

  • Step 6: Test It

    In Chatflow's chat preview:

    Test 1: "What areas do you serve?" → Should show a clean answer āœ…

    Test 2: "Can I notarize my own documents?" → Should show answer + "Call us or book at amnotaryllc.com" šŸ“ž


    Step 7: Add the Bot to Your Website

    In Chatflow, click the Share icon (or Embed) on your chatflow. Copy the embed code and paste it into your website's HTML before .


    Step 8: View Your Dashboard

    See every response that was checked:

    šŸ‘‰ https://guardrail-mvp-production.up.railway.app/developer.html

    Enter your API key to see scores, flagged responses, and trends.


    What Your Customers Will See

    SituationWhat Happens ------------------------ Good answerShows normally, no extra text Uncertain answerShows + "Have more questions? Call us!" Risky answerShows + "I'd recommend confirming with our team"

    Nobody gets blocked. Everyone gets an answer. Risky ones include a nudge to call you — which means more leads.


    Need help? Email symehmoo@gmail.com