Skip to content

[DERCBOT-1904] Add bot business rules configuration API#2050

Draft
scezen wants to merge 8 commits into
theopenconversationkit:masterfrom
CreditMutuelArkea:feature/lexicon-and-topics/DERCBOT-1904
Draft

[DERCBOT-1904] Add bot business rules configuration API#2050
scezen wants to merge 8 commits into
theopenconversationkit:masterfrom
CreditMutuelArkea:feature/lexicon-and-topics/DERCBOT-1904

Conversation

@scezen
Copy link
Copy Markdown
Member

@scezen scezen commented May 18, 2026

Ticket : DERCBOT-1904

Goal

Add backend storage, APIs, and RAG prompt injection for bot business rules used by GenAI/RAG configuration.

Details

  • Add a new Mongo collection for business rules, indexed by namespace and botId
  • Store covered topics, excluded topics, and lexicon groups per bot
  • Add a GET endpoint: /gen-ai/bots/:botId/configuration/business-rules
  • Add a POST endpoint for create/update on the same path
  • Use POST as a full replacement of the business rules configuration
  • Clean up the business rules configuration when deleting an application
  • Load and cache business rules configuration like the other GenAI bot configs
  • Refresh the cached business rules when the Mongo configuration changes
  • Inject covered_topics and excluded_topics into the RAG question-answering prompt inputs

@scezen scezen changed the title Add bot business rules configuration API [DERCBOT-1904] Add bot business rules configuration API May 18, 2026
@scezen scezen marked this pull request as ready for review May 19, 2026 07:28
@scezen scezen marked this pull request as draft May 21, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants