I released the first AI summary plugin for Discourse some time before and even announced it here.
Btw my plugin waits for n posts (governed by a setting) and once this threshold is breached it generates a summary which it refreshes every n posts (also governed by a setting). Summaries are created by normal activity then, not on summary demand. Pick your poison.