slugify (importer/byo.py)

backlot · backlot/importer/byo.py · python · Apache-2.0
crm, CRM / Leads

Utility to load a BYO corpus from JSONL into Backlot DB, validating and inserting records.

# Source: https://github.com/brekkylab/backlot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Load a Bring-Your-Own (BYO) corpus from JSONL into Backlot DB.

Serve *any* document set through every vendor API Backlot speaks.
Each line is one document:

    {
      "source_type": "confluence",        # required: one of the served source types
                                          #   (slack|msteams|gmail|google_drive|github|jira|
                                          #    confluence|notion|s3|hubspot|linear|fireflies)
      "title": "Onboarding guide",         # required (slack/msteams have none; a hubspot note has none)
      "content": "Full text...",            # requi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key