Chatbot Engine: Dynamic, configurable conversations
Mantenedores costumam responder em até 2 dias
@Ayush8923 já está trabalhando nisso.
Desde 5/10/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Describe the current behavior
As a first step (#1210), we built a read-only /agent endpoint: a single, static LangGraph agent that answers natural-language questions about a tenant own eval runs, datasets, etc. It is "static" in two senses:
- The graph itself is fixed in code, one
agent_node/tool_executor_nodeloop, hand-written, the same for every caller. - The toolset is a fixed, hand-written registry of read-only GET wrappers (
list_evaluation_runs,get_collection, etc.), the agent picks which of these to call and in what order, but the set of available tools and the conversation shape never change per request.
That's the right shape for "ask a question, get an answer" over existing data. It is not the right shape for the next use case below, where the conversation itself needs to be admin-configurable, stateful across many turns/days, and able to take write-side actions (set a reminder, etc.), not just read.
Describe the enhancement you'd like
We want to generalize from "one static read-only agent" to a dynamic, admin-configurable conversational bot flow engine, the foundation for use cases like NGO onboarding on Glific:
When an NGO onboards, today they fill out a static form. We want to replace this with a chatbot that asks a configurable sequence of questions one at a time, analyzes each answer, and, if the user doesn't answer a question, retries up to an admin-configured count before applying an admin-configured fallback (skip the question, end the conversation, escalate, etc.). The flow (questions, retry/skip rules, branching) must be fully dynamic/admin-authored, not hand-coded per bot. The bot also has access to an admin-selectable catalogue of tools (Recurring Reminder, One-off Reminder, Delete Reminder, etc.) that it can call autonomously, the same way #1210's agent calls read-only Kaapi endpoints.
we define the overall direction here at a high level, then detail only Stage 0. Later stages are scoped after learnings from the previous one, so we keep room to pivot.
| Stage | Description |
|---|---|
| Stage 0 | Config-driven question sequence, retry/skip logic, simple per-node tool selection from a fixed catalogue. |
| Stage 1 | TBD based on Stage 0 learnings. |
| Stage 2+ | TBD (scheduling, reminders, branching, admin UI). |
Stage 0: detailed spec
Goal: admin authors a flow as a linear sequence of nodes. The bot asks questions one at a time over WhatsApp/Glific, retries on non-answers, and at designated steps can call tools the admin selected when authoring that node. Session state is persisted across turns (conversations can span hours/days).
Example config blob
{
"nodes": [{
"id": "intake",
"type": "collector",
"goal": "Onboard a new beneficiary warmly; ask one thing at a time, in their language.",
"fields": [
{"key": "location", "description": "District and state", "type": "string", "required": true, "max_asks": 2, "on_exhausted": "skip"},
{"key": "occupation", "description": "Current work", "type": "string", "required": false, "max_asks": 2, "on_exhausted": "skip"},
{"key": "consent", "description": "Agrees to be contacted", "type": "boolean", "required": true, "max_asks": 2, "on_exhausted": "end_conversation"}
],
"tools": ["end_session"],
"llm": {"config_id": "...", "version": 3}
}],
"edges": []
}
Reference: Open Chat Studio (OCS)
- we looked at OCS (github.com/dimagi/open-chat-studio) as a reference
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 11
- Merge médio
- 3d 5h
- PRs com merge (30d)
- 10
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ProjectTech4DevAI/kaapi-backend
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Mantenedores costumam responder em até 2 dias
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ProjectTech4DevAI/kaapi-backend#269 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
API Management: Restrict Gemini API keysTalvez já em andamento @Prajna1999 assumiu hoje. Aberta
ProjectTech4DevAI/kaapi-backend#1239 · 1 responsável ·
Mantenedores costumam responder em até 2 dias
-
Migration: Update to Google Gen AITalvez já em andamento @Prajna1999 assumiu há 2 dias. Aberta
ProjectTech4DevAI/kaapi-backend#1238 · 1 responsável ·
Mantenedores costumam responder em até 2 dias
-
Deployment: Update AWS account configurationTalvez já em andamento @Ayush8923 assumiu há 2 dias. Abertainfrastructure
ProjectTech4DevAI/kaapi-backend#1236 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 2 dias
Todas as issues de ProjectTech4DevAI/kaapi-backend
Issues semelhantes
-
docs(types): update the collection binding note now that typed collections shipped in pycubrid 1.9.0Abertadocumentation priority: low size: S
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
cubrid-lab/sqlalchemy-cubrid#768 ·
Mantenedores costumam responder em até 1 dia
-
bug help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Broken link in index.rstAbertadocumentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
ansys/pydpf-core#3547 ·
Mantenedores costumam responder em até 1 dia
-
core
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
vectorize-io/hindsight#5457 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: LangChain drops OpenAI Responses text blocks from session recordingTalvez já em andamento @ktz03 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
volcengine/OpenViking#5806 ·
Mantenedores costumam responder em até 1 dia