> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useconquest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Discourse Integration

> Connect and manage your Discourse community data with Conquest.

The Conquest Discourse integration enables you to access and manage community data from your Discourse workspace. Gain insights into member activities, topics, replies, and engagement metrics, all in one place.

<Note>
  We only collect data from the last 90 days.
</Note>

## Data Collection

The integration collects information about:

### Members

* **Full Name**
* **Username**
* **Email**
* **Job Title** if provided
* **Avatar**
* **Locale** if provided
* **Tags**
* **User Fields**
* **Joined Date**

### Community Activity

* **Topics** from all categories
* **Replies** to topics
* **Reactions** on posts
* **Replies marked as solved**
* **Invitations**

## Activity Types

When you connect your Discourse workspace, activity types are automatically generated and integrated.

<Tip>
  Activity weights can be customized to fit your community's scoring system.
</Tip>

* **Invitation**
* **Post marked as solved**
* **Write a topic**
* **Reply to topic**
* **Join Discourse community**
* **Add reaction**
* **Login**

## Real-Time Updates

Once connected and webhook is configured, Conquest syncs the following events in real-time:

* **Members joining the workspace**
* **Members updates**
* **Members deleted**
* **Categories, created, updated and deleted**
* **Topics, edited, deleted and recovered**
* **Posts, edited, deleted and recovered**
* **Reactions added**
* **Badges granted and revoked**
* **Accept / unaccept post as solution**

## Setup Guide

<Steps>
  <Step title="Connect Your Community">
    1. Navigate to **Settings** > **Integrations**

    2. Select **Discourse**

    3. Click **"Enable"** to start the connection process

    <Frame>
      <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/enable.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=a32c4d11f5e21da70923725adc612baf" alt="Discourse Connection" width="1794" height="546" data-path="images/discourse/enable.png" />
    </Frame>
  </Step>

  <Step title="Configure API / Webhook">
    Complete the API / Webhook configuration process on Discourse.

    <Tip>
      You must be an admin of the Discourse community.
    </Tip>

    ### API

    <ParamField path="Api Key">
      You can create an API key by navigating to **Admin** > **Advanced** > **API Keys** > **Add API Key**.
      Add a description to avoid revoking it.
    </ParamField>

    <ParamField path="User Level">
      Select **"All users"**
    </ParamField>

    <ParamField path="Scope">
      Select **"Read Only"**
    </ParamField>

    <ParamField path="User Fields">
      If you have custom user fields, you can add them here.
      Add\*\*".json"\*\* to the end of your community URL, eg:"[https://your-discourse-community/admin/config/user-fields.json](https://your-discourse-community/admin/config/user-fields.json)".

      You will get a JSON response like this:

      <Frame>
        <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/user-fields.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=3a8927ba05cc55fa3f2332cd2e1ac0c9" alt="Discourse User Fields" width="937" height="615" data-path="images/discourse/user-fields.png" />
      </Frame>

      Add the ID and name from the JSON response into the form fields.

      <Frame>
        <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/field.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=1576e1f39a0b4c1381f14fe25ff5e8a8" alt="Discourse User Fields" width="1694" height="246" data-path="images/discourse/field.png" />
      </Frame>

      You can add multiple custom fields by clicking the "Add field" button and repeating this process.

      <Frame>
        <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/form.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=f06a18a7595508ccc21c503d43d13165" alt="Discourse API" width="1810" height="2696" data-path="images/discourse/form.png" />
      </Frame>
    </ParamField>

    ### Webhook

    You can create a webhook by navigating to **Admin** > **Advanced** > **Webhooks** > **Add Webhook**

    <ParamField path="Payload URL">
      Add the following URL: `https://app.useconquest.com/webhook/discourse`
    </ParamField>

    <ParamField path="Content Type">
      Select **"application/json"**
    </ParamField>

    <ParamField path="Secret">
      Add a secret provided by Conquest. (It is used to verify the webhook)
      <Warning>This signature is essential for webhook authentication. Without it, we cannot create activities and sync your community in real-time.</Warning>
    </ParamField>

    <ParamField path="Events">
      Select **"Send me everything"**
    </ParamField>

    <ParamField path="Active">
      Select **"Active"**
    </ParamField>

    Then click on **"Create"**
  </Step>

  <Step title="Data Collection">
    Conquest will begin importing historical data.

    <Note>
      We only collect data from the last 365 days.
    </Note>
  </Step>

  <Step title="Select Channels">
    Once authorized, you'll be redirected to Conquest to select public channels for data collection.

    1. Select the channels you want to collect data from

    <Frame>
      <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/channels.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=fe3e577f8a972749c2bdc2b6a98cc9b6" alt="Discourse Collect" width="1790" height="1242" data-path="images/discourse/channels.png" />
    </Frame>

    ### Missing channels?

    Verify that the category has security group set on "everyone"

    <Frame>
      <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/security.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=9bad327372ef7302c20feeb354781125" alt="Discourse Collect" width="882" height="346" data-path="images/discourse/security.png" />
    </Frame>
  </Step>

  <Step title="Configure Activity Types">
    Conquest will automatically generates activity types based on the data collected.
    You can add conditions on specific channels to fit your community's scoring system.

    <Frame>
      <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/activity-types.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=774413c4d973d163e46d58ffe0300c02" alt="Discourse activity types" width="1786" height="1456" data-path="images/discourse/activity-types.png" />
    </Frame>

    <br />

    <Frame>
      <img src="https://mintcdn.com/conquest/Md3nLvlurOsFMNO0/images/discourse/condition.png?fit=max&auto=format&n=Md3nLvlurOsFMNO0&q=85&s=af45e031920fe32d35799f71836eb20d" alt="Discourse activity types" width="1082" height="1504" data-path="images/discourse/condition.png" />
    </Frame>
  </Step>
</Steps>

<Warning>
  The data collection duration depends on your community size and can take from a few minutes to several hours to complete.
</Warning>

## FAQ

<AccordionGroup>
  <Accordion title="Why my community updates are not showing in Conquest?">
    If you are not seeing your community updates in Conquest, the most common cause is an incorrect webhook configuration. Please verify that:

    * You've added the correct secret key provided by Conquest
    * The webhook URL is exactly `https://app.useconquest.com/webhook/discourse`
    * Content type is set to "application/json"
    * All events are selected ("Send me everything")
    * Verify that the webhook is active

    Without proper webhook configuration, especially the secret key, we cannot authenticate and process real-time updates from your community.
  </Accordion>
</AccordionGroup>

## Need Help?

<Card title="Contact Support" icon="envelope">
  For any issues with your integration, our support team is here to help:
  [support@useconquest.com](mailto:support@useconquest.com).
</Card>

<Card title="Join the Community" icon="slack">
  Get additional support and answers by connecting with other Conquest users in our community:
  [Slack](https://join.slack.com/t/useconquest/shared_invite/zt-2x4fg4fut-7k0G3_D649TkfPc5WIPdgA).
</Card>
