Lecca.io LogoLecca.io
Apps

Create App

Create an app that will contain the actions and triggers available to your AI agents and workflow automations.

We are working on a CLI to make this easier

Create new folder

Locate the apps directory and add a new folder with your app name. E.g. your-new-app.

Create app file

Create a new file within your new app folder. Call it something like your-new-app.app.ts. Just make sure it ends with .app.ts.

Add your own values. We provided mock data to help initialize the process.

import { createApp } from "@lecca-io/toolkit";
 
export const yourNewApp = createApp({
  id: "your-new-app",
  name: "",
  description: "",
  logoUrl:
    "https://lecca-io.s3.us-east-2.amazonaws.com/assets/apps/your-new-app.svg",
  actions: [],
  triggers: [],
  connections: [],
});
  1. export const yourNewApp = createApp
  2. Add an id in kebab-case, e.g. your-new-app
  3. Add a name for the app: Your New App
  4. Add brief one sentence description.
  5. Array of actions
  6. Array of triggers
  7. Array of connections

Export your new app from the app's index.ts file

index.ts

Export it as a named export and add it to the apps export object.

packages/apps/src/index.ts
 
//Add it to this object
const apps: Record<string, ReturnType<typeof createApp>> = {
  [ai.id]: ai,
  [anthropic.id]: anthropic,
  [apify.id]: apify,
  ...
  [youtube.id]: youtube,
  [yourNewApp.id]: yourNewApp, 
  ...
};
 
//And add it to the named exports
export {
  ai,
  anthropic,
  apify,
  ...
  youtube,
  yourNewApp, 
  ...
}
 

Add Actions and Triggers

View the following guides to add actions and triggers

On this page