diff --git a/.github/workflows/discord-summary.yml b/.github/workflows/discord-summary.yml index 08d1e36..22e296d 100644 --- a/.github/workflows/discord-summary.yml +++ b/.github/workflows/discord-summary.yml @@ -20,13 +20,17 @@ jobs: echo "Generated conversation ID: $CONV_ID" - name: Trigger Discord Summary Agent + env: + TPMJS_API_KEY: ${{ secrets.TPMJS_API_KEY }} run: | echo "Triggering agent with conversation: ${{ steps.conv-id.outputs.conv_id }}" # POST to the agent conversation endpoint # Agent ID: Discord Daily Summary agent on tpmjs.com + # Requires API key with agent:chat scope RESPONSE=$(curl -s -X POST \ "https://tpmjs.com/api/agents/cmk9utpvg0001kz04csbisvf5/conversation/${{ steps.conv-id.outputs.conv_id }}" \ + -H "Authorization: Bearer $TPMJS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "message": "Read the Discord server (guild ID 1349727923434815519) for the past 24 hours, excluding bots. Then post a detailed summary with an embed to channel 1442666515425132644. Include key discussions, announcements, and any action items."