Skip to content

Discord: Automate stats messages #825

Closed

Description

@AkhileshNegi

Is your feature request related to a problem?
We have set up a new Kaapi server and need to automate messages about yesterday's traffic in the "stats" channel. This feature is necessary to keep track of platform performance, similar to what Glific has already implemented.

Describe the solution you'd like
Send automated messages in the "stats" channel regarding yesterday's traffic including success and failure counts in the messages.

Image

Activity

  1. changed the title [-]Discord:[/-] [+]Kaapi Server: Automate traffic messages[/+] on May 11, 2026
  2. changed the title [-]Kaapi Server: Automate traffic messages[/-] [+]Discord: Automate traffic messages[/+] on May 11, 2026
  3. changed the title [-]Discord: Automate traffic messages[/-] [+]Discord: Automate stats messages[/+] on May 11, 2026
  4. Prajna1999 commented on May 22, 2026

    @Prajna1999
    Collaborator

    Summary stats SQL query

    SELECT
     o.name as "organization_name",
     l.model,
     SUM((l.usage->>'total_tokens')::INTEGER) AS "sum_total_tokens", 
     SUM((l.usage->>'input_tokens')::INTEGER) AS "sum_input_tokens", 
     SUM((l.usage->>'output_tokens')::INTEGER) AS "sum_output_tokens"
    FROM llm_call l
    INNER JOIN 
    	organization o on l.organization_id=o.id
    WHERE l.inserted_at BETWEEN '2026-03-15' AND '2026-05-15'
    GROUP BY
    	o.name,
    	l.model
    ORDER BY 
    	"sum_total_tokens" DESC;
    
  5. moved this from To Do to In Progress in Kaapi-devon May 22, 2026
  6. moved this from In Progress to To Do in Kaapi-devon Jul 3, 2026
  7. moved this from To Do to In Progress in Kaapi-devon Jul 10, 2026
  8. linked a pull request that will close this issueDiscord: Automate Stat Messages #1012on Jul 10, 2026
  9. moved this from In Progress to In Review in Kaapi-devon Jul 10, 2026
  10. moved this from In Review to In Progress in Kaapi-devon Jul 23, 2026
  11. moved this from In Progress to In Review in Kaapi-devon Jul 24, 2026
  12. moved this from In Review to In Progress in Kaapi-devon Jul 24, 2026
  13. moved this from In Progress to In Review in Kaapi-devon Jul 27, 2026
  14. moved this from In Review to Closed in Kaapi-devon Aug 26, 2026
  15. github-actions commented on Aug 26, 2026

    @github-actions

    🎉 This issue has been resolved in version 1.5.0-main.10 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions