khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.15k stars 704 forks source link

Support Scheduling Tasks (Reminders: Part 1) #695

Closed debanjum closed 6 months ago

debanjum commented 7 months ago

Minimal Process

  1. Detect when user intends to schedule a task, aka reminder
    • Support new reminder output mode to the response type chat actor
    • Show examples of selecting the reminder output mode to the response type chat actor
  2. Extract schedule time (as cron timestring) and inferred query to run from user message
  3. Use APScheduler to call chat with inferred query at scheduled time