WHEN TO PRIORITISE JSON KEYS

Use JSON Keys to instruct your Chatbot to favour attributes in it's response, like page URLs, product prices, promo codes, or event dates. Prioritising specific JSON Keys can be a useful prompting method in larger Knowledge Bases.

JSON key can be used to instruct the AI to target certain information and give preference to those items when relevant to it's response. Rather than you having to write complex prompts, your MOBLE Chatbots have a prompt builder tool behind the scenes that let's you instruct the AI which Knowledge Bases to use, and in what priority order, and even which specific JSON Keys to target with AI Tags.

WHAT IT DOES

If you're new to JSON, think of all the Pages and Files in your Knowledge Base as Rows in a spreadsheet. Think of JSON Keys as the Columns e.g. "Page Name", "Page Content", "Page URL" etc.

By prioritising JSON Keys, you tell your Chatbot to emphasise particular columns or fields in your Knowledge Base in your Chatbot’s responses—for example, "Page URL", "Product Price", or "Event Date". This helps the AI deliver more targeted answers, especially in large or multi-faceted Knowledge Bases.

EXAMPLES

1. Website Search Chatbot:

  • Select "Page URL" to ensure the Chatbot returns clickable links in each relevant answer.

2. Event Chatbot:

  • Include "Page Display Date" so the Chatbot always shows the date for upcoming events.

3. Online Shop Chatbot:

  • Choose "Product Price", "Product Colour", "Product Size" to give users direct info in each product result.

3. Promotional Chatbot:

  • Choose "Product Promo Code" to mark it as a priority key so the Chatbot frequently references sales or discounts.

TOP TIP:

  • For even finer control, combine JSON Keys with AI Tags—like “RED DRESSES” or “END OF LINE”—to spotlight specific items. 
  • To learn more about AI Tags read the Configure your Chatbot Knowledge Bases.

WHAT IT IS

1. Your Knowledge Base is in JSON Format

  • Each Page, Product, or File is a “row,” while keys (e.g., "Page Name", "Page Content") are “columns.”

2. Priority JSON Keys

  • Telling the Chatbot “use "Product Promo Code"” means the AI tries to display promo codes if relevant.
  • Similarly, adding "Page URL" as a priority key for a website search bot ensures it always attempts to show link(s) in its answers.

3. Less Complex Prompting

  • Instead of writing detailed AI instructions, you rely on MOBLE’s prompt builder to guide your Chatbot. This behind-the-scenes tool merges your Knowledge Base selections and JSON Key priorities into a coherent Chatbot prompt.

WHEN TO USE

Large Knowledge Bases:

  • If you have hundreds of pages or products, highlighting certain columns can reduce irrelevant or repetitive answers.

Specialised Chatbots:

  • A Quote Chatbot or Event Chatbot benefits from always returning price or date fields, respectively.

Push Key Data:

  • If you want to emphasise certain fields (e.g., “Promo Code”) or partial text (like a PDF’s “File URL”), prioritising that key ensures the Chatbot tries to show it.

BEST PRACTICES

1. Be Selective

  • Only choose the keys you truly want to appear. Too many can clutter responses.

2. Stay Consistent

  • Verify your actual JSON data uses matching key names (case-sensitive).

3. Combine With AI Tags

  • Filter by tag (“BLACK FRIDAY”) and show “Product Price” or “Promo Code” for a potent, targeted approach.

4. Test Thoroughly

  • Ask your Chatbot various questions to see if it references these keys correctly.

70 Award
Winning AI Themes

Start your AI Website now
Start your AI Agency now

GETTING AROUND

GET A QUOTE

A Web Builder for Design. A CMS for Business. We serve all businesses from SME's to Enterprise. Talk with us for AI development, custom website design, website development, ecommerce websites, directories, intranets and social networks.