Skip to main content

No project description provided

Project description

Relevance Connect

Open connector to add integrations to Relevance AI.

Getting Started

Prerequisites

Install the Relevance Connect CLI:

pip install relevance_connect

For local development, you can install the package from the source:

pip install -e .

Login to your Relevance AI account: Walkthrough:

relevance-connect login

Creating a New Integration

Checkout the example for a complete example.

Follow these steps to create and submit a new integration:

1. Set Up Your Integration Folder

Create a new folder for your integration and navigate to it.

2. Create the Metadata File

Create a metadata.json file that defines your integration's configuration:

{
    "name": "Firecrawl",
    "description": "Firecrawl is a tool that allows you to run firecrawl.",
    "inputs": [
        {
            "input_name": "website_url",
            "type": "string",
            "title": "Website URL",
            "description": "The URL of the website to crawl.",
            "default": "https://www.firecrawl.dev"
        },
        {
            "input_name": "firecrawl",
            "type": "string",
            "title": "Firecrawl API Key",
            "description": "The API key for firecrawl.",
            "metadata": {
                "content_type": "api_key",
                "is_fixed_param": true
            }
        }
    ],
    "required": ["website_url", "firecrawl"],
    "requirements": ["firecrawl"],
    "icon": "https://firecrawl.dev/favicon.ico",
    "long_output_mode": true,
    "timeout": 300
}

Metadata Fields

  • name: Name of the integration
  • description: Description of what the integration does
  • inputs: Array of input configurations for the integration
  • required: Array of required input field names
  • requirements: (Optional) Python packages required by the integration
  • icon: (Optional) URL to an icon for the integration
  • long_output_mode: (Optional) Set to true if your code returns output greater than 10 million characters
  • timeout: (Optional) Timeout in seconds (default: 300)

📖 For detailed information about all available input types and their schemas, see INPUTS.md.

3. Create the Main Script

Create a main.py file containing your integration logic:

from firecrawl import FirecrawlApp

# Initialize the FirecrawlApp with API key from secrets
app = FirecrawlApp(api_key="{{secrets.chains_firecrawl}}")

# Use the website URL from the params
scrape_status = app.scrape_url(params['website_url'])

# Return the scraped content
return scrape_status.markdown

Important Notes

  • Single file only: The entire integration must be in one main.py file
  • Return statement required: Your script must end with a return statement
  • Access inputs: Use the params dictionary to access inputs (e.g., params["website_url"])
  • API keys: Reference API key inputs using the pattern {{secrets.chains_XXX}} where XXX is the input name

4. Test Your Integration

Create Test Inputs

Create an inputs.json file with test data:

{
    "website_url": "https://www.example.com",
    "firecrawl": "your-test-api-key"
}

Run the Test

Execute your integration locally:

relevance-connect run

[Optional] Save the Integration

If you want to save the integration to your Relevance AI account, you can do so with the following command:

relevance-connect save

5. Submit Your Integration

Once your integration is working correctly, submit it to Relevance AI!

Other Commands

Logout

relevance-connect logout

Run javascript integration

Javascript is also supported. For javascript, packages are not supported. Checkout the js_example for an example.

relevance-connect run-js

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

relevance_connect-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

relevance_connect-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file relevance_connect-0.1.0.tar.gz.

File metadata

  • Download URL: relevance_connect-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for relevance_connect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96a100700ddea76bf4847a730218deb7a13d87c378e80d78ea26e8a6a8a13517
MD5 b792e6cfa4bc42ecf8707ea74d455b85
BLAKE2b-256 8bf18daa44c61db2a2b11a5dcf555010e7ddfd50669c77f5f0c533895f897f89

See more details on using hashes here.

File details

Details for the file relevance_connect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for relevance_connect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 170c4af112cbc6118a5a973ca4aab2664383d37b9346d8e5d53834269ea48233
MD5 233fe7e6e77917698f8acb05ba68a4f5
BLAKE2b-256 0d2986c1c6a23918f37a7b0a0c132b875860e79b13b128969d18863c2b148f51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page