Skip to content

feat: Chatbot State Management - #1301

Merged
Ayush8923 merged 13 commits into
feat/kaapi-chatbot-flow-v2from
feat/chatbot-state-management-v2
Oct 21, 2026
Merged

Ayush8923 merged 13 commits into
feat/kaapi-chatbot-flow-v2from
feat/chatbot-state-management-v2

Conversation

@Ayush8923

@Ayush8923 Ayush8923 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

Closes #1278

Summary

  • chatbot conversation history is now stored on the server, the caller doesn't need to send the full history every time
  • create a session once (POST /chatbot/sessions), you'll get a session_id
  • send every message using that session_id (POST /chatbot/sessions/{session_id}/message), the server tracks history itself
  • on sending a message the API immediately returns 202; the bot's reply is processed in the background and POSTed to the caller webhook_url.
  • system prompt and config get locked while creating the session, the same settings stay throughout the conversation

Checklist

Before submitting a pull request, please ensure that you mark these task.

  • Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.
  • If you've fixed a bug or added code that is tested and has test cases.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1
  • ready-for-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: ProjectTech4DevAI/kaapi-backend/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 838d839d-37bc-469a-8f55-aa73d11ebad4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Ayush8923 Ayush8923 changed the title Feat/chatbot state management v2 feat: Chatbot State Management- #1276 Oct 21, 2026
@Ayush8923 Ayush8923 changed the title feat: Chatbot State Management- #1276 feat: Chatbot State Management Oct 21, 2026
@Ayush8923
Ayush8923 marked this pull request as ready for review October 21, 2026 19:06
@Ayush8923 Ayush8923 self-assigned this Oct 21, 2026
@Ayush8923 Ayush8923 mentioned this pull request Oct 21, 2026
1 of 2 tasks
@Ayush8923 Ayush8923 linked an issue Oct 21, 2026 that may be closed by this pull request
4 tasks
@Ayush8923

Copy link
Copy Markdown
Collaborator Author

Merging this PR with base branch.

@Ayush8923
Ayush8923 merged commit e0130e8 into feat/kaapi-chatbot-flow-v2 Oct 21, 2026
1 of 4 checks passed
@Ayush8923
Ayush8923 deleted the feat/chatbot-state-management-v2 branch October 21, 2026 19:09
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.

Chabot: Server-side chatbot state management

1 participant