Skip to main content

Custom Connectors Overview

A custom connector is a private component that your developers write in TypeScript to connect Prismatic to an outside service, such as your own app's API or a third-party API in your industry, or to accomplish a specific task. Connectors you build are proprietary to your organization and private to it.

Get startedCustom connector basics

Build a basic custom connector by hand, from project setup through actions, authentication, and publishing.

Get startedBuild a custom connector with AI

Use Prismatic's agent skills to wrap a full API in a custom connector with OAuth 2.0, data sources, and actions.

GuideSet up your dev environment

Install Node.js, a package manager, an IDE, and the Prism CLI.

GuidePublish a custom connector

Publish with prism components:publish, manage versions, and publish from a CI/CD pipeline.

What a connector contains​

Connectors are Node.js/TypeScript projects. A connector can include:

  • Connections, which contain information such as passwords, API keys, or OAuth 2.0 connection information. Your customers fill in their authentication information for connections when they deploy your integration.
  • Actions, which are purpose-built functions that you can use in your integration. You might build "Create Widget" or "List Gadgets" actions in a custom connector, and each action can be used as a step within an integration.
  • Triggers, which determine when an integration should run and how it should handle requests. You might create a custom trigger that configures webhooks in a third-party application when a customer configures an instance of your integration and responds to webhook requests from the third-party appropriately.
  • Data sources, which fetch data dynamically during the config wizard experience. For example, you might create a data source that fetches a list of projects in a CMS and presents the projects as a dropdown menu in the config wizard.

Use the component authoring guidelines to make your actions easy to configure and their outputs easy to understand and use. Sample connector code is referenced throughout these docs.

Custom connector library​

Spectral NPM version

Prismatic provides a Node.js package, @prismatic-io/spectral, which provides TypeScript typing and some utility functions. Source code for Spectral is available on GitHub.

Node.js Version Support: While many versions of Node.js may work for connector development, we recommend using the latest LTS (long-term support) version of Node.js. You can find the latest LTS version on the Node.js download page.

Connector vs Component

The terms connector and component are used interchangeably in the Prismatic platform. Generally, if a component connects to a third-party API, we call it a connector. But, not all components connect to external APIs. The Change Data Format component, for example, converts data between common formats (JSON, XML, etc), and the Math component provides a variety of math utility functions, but neither component makes a network request to a third-party app.

Customer users and custom components​

If you use the embedded workflow builder, your customers may want to build their own custom components and use them in their workflows. These private components are scoped to the customer and are not visible to other customers. This is beneficial when customers need to build custom components specific to their business (for example, to wrap their own API).

The development of customer-scoped custom components follows the same process as organization-wide custom components.

Customer users must be able to log in to Prismatic

For a customer user to publish a custom component, you must create a customer user account and assign them the "Admin" role. The customer user must be able to log into Prismatic to authenticate the Prism CLI tool for publishing custom components. A customer user cannot use a signed JWT to publish custom components.

Once a customer user has logged into Prismatic, they can authenticate the Prism CLI tool by running prism login and then publish a component scoped to their customer with prism components:publish, as an organization team member would.

To publish a component as an organization team member for a specific customer, run prism components:publish --customer <CUSTOMER ID> using an ID that you can fetch by running prism customers:list --columns "id,name".