{% extends "base.html" %} {% block title %}Chatbot Knowledge Base{% endblock %} {% block content %}

Chatbot Knowledge Base

Curate what the AI support assistant knows about the app. Active entries are used on every chat.
Support Tickets Add Entry
{% if not groq_ready %}
The AI assistant is not configured (GROQ_API_KEY is not set), so these entries won't be used until it is enabled.
{% endif %}
{% if entries %}
{% for e in entries %} {% endfor %}
Order Topic / Question Answer (preview) Status
{{ e.sort_order }} {{ e.title }} {{ e.content[:120] }}{% if e.content|length > 120 %}…{% endif %} {% if e.active %} Active {% else %} Inactive {% endif %}
{% else %}
No knowledge entries yet. Add your first one to teach the chatbot about your app.
{% endif %}

Tip: write each entry as a clear topic and a concise, factual answer (steps work well). Keep entries accurate — the assistant treats them as authoritative.

{% endblock %}