Introducing the Inngest TypeScript / JavaScript SDK

Add new users to external systems

Run a step function to add newly created users to all external systems at once

npx inngest-cli init --template
See more quickstarts
Explore the code

This function responds to an auth/account.created event sent when a new user signs up, then adds
the user to several external systems and sends a message in slack - in real-time.

graph LR Source[Your app] -->|"auth/account.created
'data': {...}"| Inngest(Inngest) Inngest -->|Triggers| Intercom(steps/add-to-intercom) Inngest -->|Triggers| Slack(steps/send-to-slack) Inngest -->|Triggers| Close(steps/add-to-close-io) classDef in fill:#4636f5,color:white,stroke:#4636f5; classDef inngest fill:white,color:black,stroke:#4636f5,stroke-width:3px; classDef out fill:white,color:black,stroke:#4636f5,stroke-dasharray: 5 5,stroke-width:3px; class Source in; class Inngest,Intercom,Slack,Close inngest; class Output out;
  1. When a user registers an account, the auth/account.created event is sent to Inngest
  2. Inngest runs each of the steps in parallel, adding the user to all external services.



Using step functions to add users to external systems (user federation) provides a few benefits:

  1. It happens in real time, vs relying on standard ETL processes. This means fewer issues for your users and team.
  2. If external APIs have errors we'll retry steps individually
  3. Functions are versioned and easily changed, so modifying this flow with future changes is simple
  4. It's decoupled from the sign-up flow, removing any risk of introducing sign-up bugs


Use this quickstart with a single CLI command to get started! The CLI will then guide you through running, testing, and deploying to Inngest Cloud.

Via the CLI:

inngest init --template

Via NPX:

npx inngest-cli init --template

With the function cloned, run inngest run to test the function locally.


This function has several steps within steps/. Each step runs in parallel independently of each

In this example, all steps are Typescript functions which implement 3rd party APIs for creating
users in external systems. You can use any language in steps and integrate any APIs you need.


Below is the annotated function definition (found at inngest.json) to show how the above is defined in config.

  "$schema": "",
  "name": "Add new users to external systems",
  "description": "Run a step function to add newly created users to all external systems at once",
  "tags": ["typescript", "auth", "step function"],
  "id": "gentle-katydid-de85f5",
  "triggers": [
      "event": "auth/account.created",
      "definition": {
        "format": "cue",
        "def": "file://events/auth-account-created.cue"
  "steps": {
    "add-to-intercom": {
      "id": "add-to-intercom",
      "path": "file://steps/add-to-intercom",
      "name": "Add to intercom",
      "runtime": { "type": "docker" },
      "after": [{ "step": "$trigger" }]
    "send-to-slack": {
      "id": "send-to-slack",
      "path": "file://steps/send-to-slack",
      "name": "Send to slack",
      "runtime": { "type": "docker" },
      "after": [{ "step": "$trigger" }]
    "add-to-close-io": {
      "id": "add-to-close-io",
      "path": "file://steps/add-to-close-io",
      "name": "Add to",
      "runtime": {
        "type": "docker"

More quickstarts

See all quickstarts