Setting Up Discourse Forum Integration
Connect OpenPawz to your Discourse forum and let your agents manage topics, posts, users, and more.
Prerequisites
- A Discourse forum (self-hosted or hosted)
- Admin access to create an API key
Step 1: Create a Discourse API Key
- Go to your Discourse admin panel:
https://yourforum.com/admin/api/keys - Click New API Key
- Configure:
- Description: OpenPawz Integration
- User Level: Single User
- User: Select your bot account (or
systemfor full admin access) - Scope: Global (all endpoints) β or limit to specific endpoints
- Click Save and copy the API key
Important: The API Username must be an actual Discourse username (like
systemor your bot account), not the key description.
Step 2: Configure in OpenPawz
- Open Settings β Integrations
- Find Discourse and click Configure
- Enter:
- Forum URL:
https://yourforum.com(no trailing slash) - API Key: The key you created
- API Username:
systemor your bot username
- Forum URL:
- Click Test Connection to verify
Step 3: Test the Connection
Ask your agent:
Test the Discourse connection
The discourse_test_connection tool runs a 3-step diagnostic:
- Reachability β can we reach the forum?
- Authentication β is the API key valid?
- Functional β can we list categories?
Available Tools (51 total)
Topics (12 tools)
discourse_list_topicsβ List topics with filtersdiscourse_get_topicβ Read a topic and its postsdiscourse_create_topicβ Create a new topicdiscourse_update_topicβ Edit title, category, tagsdiscourse_close_topic/discourse_open_topicdiscourse_pin_topic/discourse_unpin_topicdiscourse_archive_topicdiscourse_delete_topicdiscourse_invite_to_topicdiscourse_set_topic_timer
Posts (8 tools)
discourse_replyβ Reply to a topicdiscourse_edit_postβ Edit post contentdiscourse_delete_postdiscourse_like_post/discourse_unlike_postdiscourse_get_postdiscourse_post_revisionsβ View edit historydiscourse_wiki_postβ Toggle wiki mode
Categories (5 tools)
discourse_list_categoriesdiscourse_get_categorydiscourse_create_categorydiscourse_edit_categorydiscourse_delete_category
Users (12 tools)
discourse_list_usersβ Filter by active/new/staff/suspendeddiscourse_get_userβ Profile infodiscourse_create_userdiscourse_suspend_user/discourse_unsuspend_userdiscourse_silence_user/discourse_unsilence_userdiscourse_set_trust_leveldiscourse_add_to_group/discourse_remove_from_groupdiscourse_list_groupsdiscourse_send_pmβ Private messages
Search & Tags (5 tools)
discourse_searchβ Full-text search with filtersdiscourse_list_tagsdiscourse_tag_topicdiscourse_create_tagdiscourse_list_tag_groups
Admin (14 tools)
discourse_site_settings/discourse_update_settingdiscourse_site_statsdiscourse_list_badges/discourse_create_badge/discourse_grant_badge/discourse_revoke_badgediscourse_list_pluginsdiscourse_list_backups/discourse_create_backupdiscourse_list_reportsdiscourse_set_site_textdiscourse_create_group/discourse_update_group
Example Prompts
Read recent topics:
What are the latest topics on the forum?
Create a topic:
Create a new topic in Announcements titled "Weekly Update" with a summary of this week's changes
Moderate:
Close topic #42 and pin topic #15 globally
User management:
Set user johndoe to trust level 2
Troubleshooting
403 Forbidden
- API Username must be a real Discourse username, not the key description
- Check the API key scope includes the endpoint youβre calling
404 Not Found
- Verify the forum URL is correct (no trailing slash)
- The endpoint may not exist on older Discourse versions
429 Too Many Requests
- Rate limiting active β the tools automatically retry with backoff
Questions? Ask in Questions or check the Discourse API docs.