Docs / Sources

Bettermode

Import Bettermode members, posts and replies. Signed webhooks provide live reactions and space changes.

Matches onUnverified email
HistoryMembers, posts and replies
Also doesLive updates by webhook
You'll needAn installed Bettermode app

Connect Bettermode

Datum reads Bettermode through an app on your network. You start the import of historical records. Signed webhooks supply new activity. The connector has no scheduled sync.

  1. Prepare the app

    Create an app with Bettermode’s app guide. Publish the app. Install it on your network. Record its client ID, client secret and signing secret. Record your network ID and region: US or EU.

  2. Open Sources

    Open Sources → Connect a source → Bettermode. Enter Bettermode network ID. Set API region (us or eu). Enter App client ID. Enter App client secret. Enter App signing secret.

    Press Verify.

    List space IDs in Optional post space scope (JSON array) to limit which spaces supply posts. Datum imports every visible member regardless of this scope.

  3. Register the webhook

    Open the Bettermode row’s menu on Sources. Select Webhook URL. Add that URL to your Bettermode app’s webhooks. Subscribe to member.created, member.verified, member.updated, post.published, reaction.added, reaction.removed, space_membership.created and space_membership.deleted.

  4. Import history

    Press Run now on the source’s page. Alternatively, run the following command from your terminal or agent:

    ocmgr ingest <connectionId>

    Datum reads members first, followed by posts, replies and people who reacted. An interrupted import resumes from its last position.

  5. Check the result

    Check that Verify reports successful network and read queries. Check Members after the import.

    The verification result also reports that tenant coverage remains pending. Verification checks API access, not your network’s member visibility or completeness.

Data Datum imports

Members Name, username, email address, profile link and join date
Activity Joins, published posts and replies, with the post each reply belongs to
Live only Reactions added and removed, and members joining or leaving spaces
Not collected Post text and titles, drafts, anonymous posts, deleted posts, views and custom fields

Replies keep their parent and thread references. The network view does not show Bettermode activity, because the connector cannot prove that all of the community can see it. Some webhook post links point to the containing space, as supplied by Bettermode.

Datum treats every address as unverified. Bettermode’s account and verification status do not prove ownership of the current address. An address contributes to matching but cannot link accounts alone. Uncertain matches enter your review queue.

Change the space scope

Open the source’s Settings tab. Enter Space IDs, one per line, under Space scope. Leave the field blank to include all spaces the installed app can read. Press Save scope. Press Restart import to read the new scope from the beginning.

The scope limits posts, replies, reactions and space-membership webhooks. Member imports still cover the network. Narrowing the scope does not remove existing history. Saving does not start an import or change app permissions.

When thread tone is on, Datum reads each post’s text once. Datum never stores the text.

Troubleshooting

“Bettermode scope changed; explicitly restart with a null cursor.”

The page size or space scope changed during an import. Review the new scope. Restart the import from the beginning:

ocmgr ingest <connectionId> --cursor null

Datum rejects webhook deliveries

Datum checks X-Bettermode-Signature against the app’s signing secret. Datum refuses deliveries with timestamps more than 15 minutes from the current time. Datum does not accept the X-Tribe-Signature header from older Bettermode guides.

Check the headers your network sends. Check that the connection’s signing secret belongs to the same app.

Some reactors are missing

A large network can exceed the limit for queued work in one import. Datum removes the oldest reaction lookups first. The run’s warning reports how many it removed.

Narrow Optional post space scope (JSON array). Run the import again to include the missing reactions.

From your terminal or agent

ocmgr connection create --kind bettermode --config '{"networkId":"<network-id>","region":"us"}' \
  --secret clientId=<client-id> --secret clientSecret=<client-secret> \
  --secret signingSecret=<signing-secret> --json
ocmgr connection verify <connectionId> --json
ocmgr connection webhook <connectionId> --json
ocmgr ingest <connectionId> --pages 1 --json

See create_connection, prepare_connection_webhook and run_backfill for every parameter.

FAQ

Why do historical reactions have no dates?

Bettermode lists who reacted to a post without giving reaction times. Datum adds those people to the graph without creating historical reaction activity. Webhook reactions retain their actual times.

Does Bettermode sync on its own?

No. Webhooks supply new activity. Run the import again to reconcile with Bettermode, for example after a webhook outage.

Can I point the connection at another network?

No. The connection keeps its original network ID and region because its accounts belong to that network. Create another connection for a different network or region.