You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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;
Activity
[-]Discord:[/-][+]Kaapi Server: Automate traffic messages[/+][-]Kaapi Server: Automate traffic messages[/-][+]Discord: Automate traffic messages[/+][-]Discord: Automate traffic messages[/-][+]Discord: Automate stats messages[/+]Prajna1999 commentedon May 22, 2026
Summary stats SQL query
github-actions commentedon Aug 26, 2026
🎉 This issue has been resolved in version 1.5.0-main.10 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀