AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How Enterprise Knowledge Teams Configure Dust Sync Intervals, Webhooks, and Stale Document Purges

Annika Bernklau · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

When employees report that an internal AI assistant is quoting an expired 2023 travel policy, citing obsolete API endpoints, or giving customers discontinued contract terms, IT and knowledge management leads usually rush to hit "Resync." That impulse is understandable. It is also usually a mistake.

At 365Finds, we look at enterprise knowledge infrastructure through an operational lens: the problem is rarely vector embedding capacity. The real breakdown is almost always knowledge lifecycle hygiene. In Dust, connecting Google Drive, Notion, GitHub, and Slack to custom assistants turns the workspace into a shared cognitive engine. But if your team treats Dust as a static storage bin, you quickly run straight into two opposing traps: API rate limit choking from aggressive re-scraping on one end, and zombie knowledge hallucination from silent sync drift on the other.

To build a reliable dynamic knowledge pipeline, enterprise knowledge teams must master Dust’s native connector cadence, establish second-level webhook hot-update pipelines for mission-critical documents, and implement an automated stale document purge mechanism.


1. Under the Hood: Native Connector Sync Lifecycles and Latency Realities

Dust does not sync all external data sources the same way. The connectors microservice relies on Temporal workflows to orchestrate distributed jobs, manage retries, and handle rate-limiting backoff. In our analysis at 365Finds, enterprise sources fall into two completely distinct synchronization paradigms: event-pushed vs. delta-polled.

+-----------------------------------------------------------------------------------+
|                        Enterprise Knowledge Sources                               |
+--------------------------+------------------------------+-------------------------+
                           |                              |
         [Event Push]      |      [Delta Polling]         |     [Webhook Hot-Path]
     GitHub / Slack        |   Google Drive / Notion      |  CI/CD & Custom CMS Docs
           |               |              |               |            |
           v               |              v               |            v
    Immediate Webhooks     |  Changes API / Edit Tokens   |   Dust Document API
     (Seconds Latency)     |    (5 to 60 Min Latency)     |   (Immediate Embeddings)
           |               |              |               |            |
           +---------------+--------------+---------------+------------+
                                          |
                                          v
                           +------------------------------+
                           |   Dust Temporal Workflows    |
                           +------------------------------+
                                          |
                                          v
                           +------------------------------+
                           | Chunking & Vector Indexing   |
                           +------------------------------+

The Fast Lane: GitHub and Slack (Event Push)

The Polling Reality: Google Drive and Notion (Delta Polling)

Sync Behavior Across Primary Enterprise Connectors

ConnectorMechanismNominal Sync LatencyDeletion / Archive HandlingCritical Constraint
Google DriveDelta Polling via Changes API5–15 minutesHandled during delta sync; trashed files flagged removed: true2MB extracted text limit; native Excel files skipped unless converted to GSheets
NotionDelta Polling via last_edited_timeMinutes (child pages); up to 24h (new top pages)Reflected on sync loop; unlinked permissions drop to Orphaned ResourcesStrict 3 req/sec API rate limit; multi-source databases unsupported
GitHubPush Webhooks (GitHub App)Seconds to <1 minuteCommits, branch deletions, and PR status handled automaticallyOnly tracks monitored branches and repos; binary blobs skipped
SlackPush Events APINear real-time (<30 seconds)Edited/deleted messages updated via webhook eventsPublic/private channel authorization scopes strictly bounded
Web CrawlerPeriodic Site CrawlingConfigurable schedule (hours to days)Replaces or prunes missing pages during scheduled recrawlSubject to robots.txt, dynamic JS execution limits, and crawl depth

At 365Finds, we strongly advise knowledge teams against spamming manual sync requests on Notion or Google Drive when documents are updated. Doing so resets polling cursors, exhausts third-party API quotas, and creates Temporal queue backlog that delays updates across the entire workspace.


2. Second-Level Freshness: Configuring Webhook Triggers and Direct API Push

When an incident response team updates an emergency runbook, or sales leadership changes pricing tiers on Monday morning, waiting 15 to 45 minutes for connector polling is unacceptable. If an employee queries an assistant during that window, the model responds with obsolete parameters.

Enterprise teams solve this latency gap in Dust through two targeted hot-update paths: Agent Webhook Triggers and Direct Data Source API Upserts.

Strategy A: Custom Webhook Triggers for Autonomous Workflows

Dust allows administrators to register webhook endpoints that trigger autonomous agent executions when external systems fire HTTP events.

  1. Register the Webhook Source: Navigate to Spaces > Triggers > Add source. Choose Custom Webhook. Dust generates a dedicated intake URL:
    https://dust.tt/api/v1/w/{wId}/triggers/hooks/{webhookSourceId}
    
  2. Enforce Cryptographic Signatures: Never leave an enterprise webhook open to anonymous POST requests. Dust supports sha1, sha256, and sha512 HMAC signatures. Configure your external service (e.g., your CMS, GitHub Actions, or internal knowledge platform) to send an X-Hub-Signature-256 header calculated with a shared secret. Dust will reject any unverified payload immediately.
  3. Filter Payloads with Strict Expressions: By default, webhook triggers run at most 42 times per 24 hours on a rolling sliding window. Incoming requests arriving after that ceiling is hit are dropped, not queued. To prevent burning through this allowance on irrelevant edits, configure rule expressions using dot-notation JSON filtering:
    (and 
      (eq "event" "document_published") 
      (eq "metadata.department" "pricing") 
      (eq "metadata.environment" "production")
    )
    
  4. Trigger Agent Action: When fired, Dust spins up an isolated conversation passing the webhook payload into the agent's context, allowing specialized maintenance agents to cross-validate or notify operational channels.
+-----------------------------------------------------------------------------------+
|                        High-Velocity Knowledge Pipeline                          |
+-----------------------------------------------------------------------------------+
                                        |
                 [Core Policy / Pricing Updated in Source CMS]
                                        |
                 +----------------------+----------------------+
                 |                                             |
                 v                                             v
     [Custom Webhook Trigger]                        [Dust Document API Upsert]
  /triggers/hooks/{webhookSourceId}            /data_sources/{dsId}/documents/{docId}
                 |                                             |
      HMAC SHA-256 Verified                         Replaces Document Chunks
                 |                                             |
   Expression Filter: status=published             Generates Fresh Vector Embeddings
                 |                                             |
   Spawns Dedicated Agent Run                      Available for RAG in Seconds

Strategy B: Direct Document API Upserts (The 365Finds Recommended Hot-Path)

For static, high-stakes documents, relying on connector polling is the wrong architectural design. Instead, configure a Custom Data Source in Dust and push updates directly from your CI/CD pipeline or document management system via the Dust REST API.

When you issue a POST request to Dust's document endpoint, Dust immediately handles preprocessing, chunking, and vector indexing:

curl --request POST \
  --url https://dust.tt/api/v1/w/${DUST_WORKSPACE_ID}/spaces/${SPACE_ID}/data_sources/${DATA_SOURCE_ID}/documents/${DOCUMENT_ID} \
  --header "Authorization: Bearer ${DUST_API_KEY}" \
  --header "Content-Type: application/json" \
  --data '{
    "text": "# 2026 Enterprise Pricing & Discount Matrix\n\nEffective November 2026...",
    "source_url": "https://wiki.corp.internal/pricing/2026-v4",
    "tags": [
      "dept:finance",
      "tier:confidential",
      "status:active",
      "version:2026.4"
    ]
  }'

By upserting with a persistent DOCUMENT_ID, Dust overwrites previous content atomically. The old chunks are invalidated, and new vector embeddings are queryable by your assistants in seconds.


3. Eliminating Zombie Knowledge: Automated Stale Document Purges

The most insidious failure mode in enterprise Retrieval-Augmented Generation (RAG) is not an assistant failing to find an answer; it is an assistant finding two conflicting answers and picking the obsolete one because it has a closer lexical match to the user's prompt.

If a product manager archives "Project Apollo Spec v1" and publishes "Project Apollo Spec v2", both chunks often remain in the vector index. When an engineer asks, "What is Apollo's database sharding strategy?", the old document might rank higher simply because it repeated the keyword "sharding" five more times.

365Finds recommends establishing a strict, tripartite stale document governance pipeline.

1. Connector Hygiene and Disconnection Protocols

For native connectors (Google Drive and Notion), document removals and trashing are reflected automatically on the subsequent sync cycle. But operational mishaps routinely create ghost documents:

2. Automated Tombstone Purge Pipeline for Custom Data Sources

For Custom Data Sources managed via API, deletions in your primary system of record do not propagate to Dust unless explicitly ordered.

We advocate running a weekly reconciliation script that pulls the active document inventory from Dust, compares it against your enterprise Single Source of Truth (SSOT), and purges obsolete documents via the DELETE API:

import os
import requests

DUST_WORKSPACE_ID = os.environ["DUST_WORKSPACE_ID"]
SPACE_ID = os.environ["DUST_SPACE_ID"]
DATA_SOURCE_ID = os.environ["DUST_DATA_SOURCE_ID"]
API_KEY = os.environ["DUST_API_KEY"]

BASE_URL = f"https://dust.tt/api/v1/w/{DUST_WORKSPACE_ID}/spaces/{SPACE_ID}/data_sources/{DATA_SOURCE_ID}"
HEADERS = {
    "Authorization": f"Bearer {API_KEY}",
    "Accept": "application/json"
}

def get_all_dust_documents():
    """Paginate through all documents currently indexed in Dust."""
    documents = []
    limit = 100
    offset = 0
    while True:
        res = requests.get(
            f"{BASE_URL}/documents",
            headers=HEADERS,
            params={"limit": limit, "offset": offset}
        )
        res.raise_for_status()
        batch = res.json().get("documents", [])
        if not batch:
            break
        documents.extend(batch)
        offset += limit
    return documents

def purge_stale_documents(active_enterprise_doc_ids):
    """Purge any Dust document that no longer exists in corporate SSOT."""
    dust_docs = get_all_dust_documents()
    for doc in dust_docs:
        doc_id = doc["document_id"]
        if doc_id not in active_enterprise_doc_ids:
            print(f"Purging stale document: {doc_id}")
            delete_res = requests.delete(
                f"{BASE_URL}/documents/{doc_id}",
                headers=HEADERS
            )
            delete_res.raise_for_status()

# Example: active IDs from production CMS / Git repository
production_active_ids = {"policy-travel-2026", "sop-security-incident-v3"}
purge_stale_documents(production_active_ids)

Calling DELETE on a document removes the document entity, its hierarchical sections, and every associated embedding chunk immediately from the search index.

3. Metadata Filtering and In-Prompt Freshness Fencing

Even with automated purges, there will always be brief transitional windows where deprecated material exists. You can prevent assistants from retrieving deprecated material by establishing tagging conventions:


4. Architectural Trade-offs: Choosing the Right Ingestion Path

No enterprise should route all company documentation through a single sync mechanism. 365Finds recommends segmenting your corporate corpus across three distinct tiers:

+-----------------------------------------------------------------------------------+
|                        Corp Knowledge Segmentation Matrix                         |
+--------------------------+------------------------------+-------------------------+
| Corpus Tier              | Recommended Channel          | Governance Cadence      |
+--------------------------+------------------------------+-------------------------+
| Broad Reference Corpus   | Native Connectors            | Automated Delta Sync    |
| (General Notion & Drive) | (Google Drive, Notion)       | (5 to 30 min latency)   |
+--------------------------+------------------------------+-------------------------+
| Event-Driven Workflows   | Webhook Triggers             | Event Execution         |
| (Linear, Zendesk, PRs)   | (Spaces > Triggers)          | (Capped at 42 runs/24h) |
+--------------------------+------------------------------+-------------------------+
| Zero-Tolerance Truth     | Custom Data Sources          | CI/CD Direct Upsert     |
| (Pricing, Security SOPs) | (Dust REST API Push)         | + Weekly Reconcile Purge|
+--------------------------+------------------------------+-------------------------+

365Finds Institutional Judgment

When a document reaches its end-of-life in your corporate repository, the DELETE API call to Dust is just as crucial as the POST call was on the day it was created.


References