> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect your app to Inngest

> Connect your app to Inngest to add background jobs, scheduled tasks, and durable workflows to your Lovable apps using your own Inngest account.

export const connector_0 = "Inngest"

[Inngest](https://www.inngest.com/) is a workflow and background job platform that lets you run durable functions, scheduled tasks, and event-driven workflows. The Inngest app connector lets your Lovable apps call Inngest from your workspace using a managed workspace-level connection.

Each Inngest connection uses your own Inngest credentials. After it is connected, projects in your workspace can use the connection to trigger and manage background workflows through your Inngest account.

Use the Inngest connector when your app needs to run work outside of a user request, such as sending delayed notifications, processing data on a schedule, or orchestrating multi-step workflows with automatic retries.

Use another path when:

* You only need simple, one-off API calls that complete within a single request. In that case, a direct Supabase Edge Function may be sufficient.
* You need each end user to connect their own Inngest account separately. App connectors are workspace-level, not per-end-user connections.

## Common use cases and example apps

| Example app                 | Example prompt                                                                                                             | Description                                                                |
| :-------------------------- | :------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------- |
| Scheduled report generator  | *Run a function every Monday at 9am that generates a weekly summary and emails it to the team.*                            | Automate recurring tasks on a schedule without managing infrastructure.    |
| Post-signup onboarding flow | *When a user signs up, send a welcome email immediately, then a follow-up email 3 days later.*                             | Orchestrate multi-step delayed workflows triggered by app events.          |
| Data sync pipeline          | *Every hour, pull new records from an external API and upsert them into the database.*                                     | Run periodic background syncs that retry automatically on failure.         |
| Processing pipeline         | *When a user submits a description, create a base image, fan out to create multiple sizes, save them and email when done.* | Fan out heavy/slow/unreliable processing to improve speed and reliability. |

## How Inngest connections work

Each Inngest connection uses one Inngest Event Key and one Signing Key.

Within your Lovable workspace:

* You can create multiple Inngest connections.
* Each connection is a separate credential setup.
* Multiple projects can use the same connection.

This helps you separate environments, such as staging and production.

## How to connect Inngest

Workspace **admins** and **owners** can connect Inngest.

When a connection is created, Inngest becomes available across all projects in the workspace.

### Prerequisites

* **Connector roles:** workspace admins and owners can create and manage Inngest connections
* **Additional admin controls:** on Business and Enterprise plans, workspace admins and owners can enable or disable app connector availability at the workspace level
* **Prerequisites:** an Inngest account with an Event Key and Signing Key
* **Recommended for production:** use separate Inngest environments for staging and production

<Note>
  Inngest usage and pricing are owned by your Inngest account. Charges for
  function runs are billed by Inngest, not by Lovable.
</Note>

<Warning>
  App connector connections are workspace-level. Anyone in the workspace who
  can use connected projects can use the Inngest connection in those projects.
</Warning>

### Set up your Inngest connection

<Steps>
  <Step title="Open the connector">
    Open **Connectors** → **App connectors** and select **Inngest**.
  </Step>

  <Step title="Add a connection">
    Click **Add connection**.
  </Step>

  <Step title="Name the connection">
    In **Display name**, enter a clear name, for example `Inngest Prod` or `Inngest Staging`.
  </Step>

  <Step title="Enter credentials">
    Paste your Inngest Event Key and Signing Key in the authentication fields. You can find these in the Inngest dashboard under **Settings -> Keys**.
  </Step>

  <Step title="Create the connection">
    Click **Create**.
  </Step>

  <Step title="Use it in your app">
    Prompt Lovable to add background jobs or scheduled workflows that use Inngest, then test by triggering an event and checking the Inngest dashboard for function runs.
  </Step>
</Steps>

## FAQ

<AccordionGroup>
  <Accordion title="Do I need an Inngest account to use this connector?">
    Yes. You need your own Inngest account and API keys to create an Inngest
    connection in Lovable.
  </Accordion>

  <Accordion title="Who pays for function runs with this connector?">
    Function runs through this connector are billed by Inngest, based on your
    Inngest plan and usage.
  </Accordion>

  <Accordion title="Can I create multiple Inngest connections?">
    Yes. You can create multiple connections, for example to separate staging
    and production environments.
  </Accordion>

  <Accordion title="Can end users connect their own Inngest accounts inside my app?">
    Not through this app connector flow. App connectors are configured at
    workspace level.
  </Accordion>

  <Accordion title="What should I check first if functions are not running?">
    Verify your Event Key and Signing Key, confirm the function is registered in
    the Inngest dashboard, and check the Inngest function logs for errors or
    failed runs.
  </Accordion>

  <Accordion title="Can I use Inngest for cron-style scheduled tasks?">
    Yes. Inngest supports cron expressions for scheduling functions on recurring
    intervals, such as every hour or every weekday at a specific time.
  </Accordion>
</AccordionGroup>

## Limitations

* An Inngest app connector is a workspace-level credential, not a per-user connection flow.
* Functions are managed and monitored through the Inngest dashboard, not within Lovable.
* If a connected project stops triggering events after connector changes, open the connection and confirm it is still linked to the project.

## How to unlink projects from a {connector_0} connection

Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects.

To unlink projects:

<Steps>
  <Step title="Open Connectors">
    Open **Connectors**, then go to **App connectors**, and select **{connector_0}**.
  </Step>

  <Step title="Open the connection">
    Open the connection you want to manage.
  </Step>

  <Step title="Select projects">
    Under **Linked projects**, check the projects you want to unlink.
  </Step>

  <Step title="Confirm">
    Click **Unlink projects** and confirm.
  </Step>
</Steps>

When unlinked, those projects will no longer have access to {connector_0} through this connection. If a project needs {connector_0} again, you can link it to any available connection.

## How to delete a {connector_0} connection

Workspace admins and owners can delete {connector_0} connections.

<Warning>
  Deleting a connection is permanent and cannot be undone. It will remove the credentials from all linked projects, and any apps using this connection will stop working until a new connection is added.
</Warning>

Before deleting, review the **Linked projects** section to see which projects are currently using the connection.

To delete a connection:

<Steps>
  <Step title="Open Connectors">
    Open **Connectors**, then go to **App connectors**, and select **{connector_0}**.
  </Step>

  <Step title="Open the connection">
    Open the connection you want to remove.
  </Step>

  <Step title="Review linked projects">
    Review the **Linked projects** section.
  </Step>

  <Step title="Delete">
    Under **Delete this connection**, click **Delete** and confirm.
  </Step>
</Steps>
