Duyetbot Agent
Advanced

Use Cases

duyetbot as personal AI assistant for CLI, GitHub, Telegram, research, automation, and development workflows

Related: Getting Started | Architecture | API Reference | Deployment

duyetbot is your personal AI assistant that helps automate daily workflows across CLI, GitHub, and Telegram.


CLI & Terminal

Interactive Chat

duyetbot chat
> Help me debug this error in my code
> Explain what this regex does: ^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$

One-shot Questions

duyetbot ask "What's the best way to implement rate limiting in Node.js?"
duyetbot ask "Generate a SQL query to find duplicate emails"

Code Generation

duyetbot run "Create a TypeScript function to validate credit card numbers"
duyetbot run "Write unit tests for the UserService class"

Research & Analysis

duyetbot run "Compare React vs Vue vs Svelte for my next project"
duyetbot run "What's new in TypeScript 5.4?"

GitHub Integration

Code Review

@duyetbot review this PR
@duyetbot check for security issues
@duyetbot suggest improvements for performance
@duyetbot review focusing on error handling

PR Management

@duyetbot merge this PR when CI passes
@duyetbot rebase and merge
@duyetbot squash and merge with message "feat: add user authentication"
@duyetbot close this PR with reason

Issue Management

@duyetbot triage this issue
@duyetbot add labels bug, high-priority
@duyetbot assign to @duyet
@duyetbot create subtasks for this feature request
@duyetbot find related issues

Code Analysis

@duyetbot explain this code
@duyetbot find where this function is called
@duyetbot what would break if I change this interface?
@duyetbot generate documentation for this module

Testing & CI

@duyetbot analyze why tests are failing
@duyetbot suggest tests for this function
@duyetbot check test coverage for this PR
@duyetbot run benchmarks and compare with master

Release Management

@duyetbot generate changelog for this release
@duyetbot create release notes from recent PRs
@duyetbot bump version and create tag
@duyetbot deploy to staging

Telegram Bot

Quick Queries

/chat What time is it in Tokyo?
/chat Convert 100 USD to EUR
/chat What's the weather forecast for tomorrow?

Development Help

/chat How do I fix "cannot read property of undefined"?
/chat Best practices for Docker multi-stage builds
/chat Explain OAuth 2.0 flow

Status & Monitoring

/status Check if my servers are up
/status Show recent deployments
/status Any failed CI builds?

Notifications

  • Get notified when PR is approved
  • Alert on deployment failures
  • Daily summary of GitHub activity
  • Reminder for stale PRs

Automation & Proactive Tasks

Auto-merge PRs

@duyetbot auto-merge when:
- All CI checks pass
- At least 1 approval
- No unresolved comments

Morning Briefing

Every morning at 8am:
- Summary of overnight GitHub activity
- Important emails/messages
- Calendar events for the day
- Tech news highlights
- Weather forecast

Code Quality

@duyetbot setup:
- Auto-review all PRs for security issues
- Flag PRs with large diffs
- Suggest breaking into smaller PRs
- Check for missing tests

Dependency Management

@duyetbot weekly:
- Check for outdated dependencies
- Create PRs for security updates
- Summarize breaking changes

Documentation

@duyetbot on PR merge:
- Update API documentation
- Generate changelog entry
- Update README if needed

Research & Information

Tech Research

duyetbot run "Compare different vector databases for my RAG system"
duyetbot run "What are the trade-offs of microservices vs monolith?"
duyetbot run "Best practices for Kubernetes security"

Learning

duyetbot run "Explain event sourcing with examples"
duyetbot run "How does the V8 garbage collector work?"
duyetbot run "Tutorial on building a language server"

News & Updates

duyetbot run "What's new in the JavaScript ecosystem this week?"
duyetbot run "Latest security vulnerabilities in npm packages"
duyetbot run "AI/ML news summary for today"

Development Workflow

Project Setup

duyetbot run "Setup a new TypeScript project with ESLint, Prettier, and Vitest"
duyetbot run "Create a Dockerfile for this Node.js app"
duyetbot run "Generate GitHub Actions workflow for CI/CD"

Debugging

@duyetbot analyze this error log and suggest fixes
@duyetbot why is this test flaky?
@duyetbot profile this function for performance issues

Refactoring

@duyetbot refactor this function to be more readable
@duyetbot extract this into a reusable utility
@duyetbot convert this callback to async/await
@duyetbot apply SOLID principles to this class

Database

duyetbot run "Generate migration for adding user roles"
duyetbot run "Optimize this SQL query"
duyetbot run "Create indexes for this table based on query patterns"

Personal Assistant

Task Management

/chat Add "Review PR #123" to my todo list
/chat What's on my agenda today?
/chat Remind me to deploy at 5pm

Communication

@duyetbot draft a response to this issue
@duyetbot summarize this long discussion
@duyetbot translate this to Japanese

Organization

duyetbot run "Organize my notes on Kubernetes"
duyetbot run "Create a mind map for this feature"
duyetbot run "Summarize this meeting transcript"

Example Workflows

Morning Routine

  1. Check Telegram for morning briefing
  2. Review overnight PRs flagged by @duyetbot
  3. Address any critical issues
  4. Ask about daily schedule

PR Review Flow

  1. Open PR -> @duyetbot auto-reviews
  2. @duyetbot suggests improvements
  3. Author addresses feedback
  4. @duyetbot approves and auto-merges

Research Flow

  1. Ask @duyetbot to research a topic
  2. Review summary and sources
  3. Ask follow-up questions
  4. Generate documentation from findings

Incident Response

  1. Alert received via Telegram
  2. @duyetbot analyzes logs and suggests cause
  3. Create issue with findings
  4. @duyetbot monitors fix deployment

Configuration Examples

Auto-review all PRs

{
  "github": {
    "autoReview": {
      "enabled": true,
      "focus": ["security", "performance", "tests"]
    }
  }
}

Morning briefing schedule

{
  "schedules": [
    {
      "name": "morning-briefing",
      "cron": "0 8 * * *",
      "task": "Generate morning summary with: GitHub activity, calendar, weather, news"
    }
  ]
}

Auto-merge rules

{
  "github": {
    "autoMerge": {
      "enabled": true,
      "conditions": {
        "ciPassing": true,
        "minApprovals": 1,
        "noUnresolved": true,
        "labels": ["auto-merge"]
      }
    }
  }
}

Coming Soon

  • Voice interface via Telegram
  • Slack/Discord integration
  • Custom tool creation
  • Multi-agent workflows
  • Memory search across all conversations
  • Calendar integration
  • Email management

Next Steps