Sign Up

AI Resource Generation & Editing

Twidget includes AI tools that help you generate and edit backend resources by describing what you want in plain language.

You can use AI to work with:

  • Endpoints

  • Database tables

  • Reusable functions

  • Events

AI Resource Generator

The AI Generator creates new resources from a text description of your business logic.

Describe what you want the backend to do, and Twidget will propose:

  • New endpoints

  • New tables

  • New reusable functions

  • New events (e.g. scheduled jobs)

Example Requests

You can ask the AI generator things like:

  • "Generate an API that creates users and updates existing users."

  • "Make endpoints for creating tasks, marking them as done, and listing tasks for a given user. Also create a scheduled event that archives tasks older than 30 days."

  • "Build APIs for order management: placing orders, updating order status, cancelling orders, and retrieving orders by user."

After you submit your request, the AI will:

  1. Analyse your description.

  2. Propose a set of resources (endpoints, tables, functions, events).

  3. Show you a plan and the resources it will create.

You can then review these resources before anything is saved.

🔹 The generator can only create endpoints, database tables, reusable functions, and events.

AI Editor (Editing Existing Resources)

The AI Editor lets you update an existing resource from within its own page.

You can:

  • Open an endpoint, event, or reusable function.

  • Describe the change you want.

  • Let the AI update the currently open resource to match your request.

Example usage:

  • “Make this endpoint validate input before saving.”

  • “Update this event to run once per day instead of every hour.”

  • “Refactor this function to be more efficient.”

The AI only edits the resource you have open (the current endpoint, event, or function).

---

Reviewing & Approving Changes

For both the AI Generator and AI Editor:

  • The AI will first show a plan or preview of changes.

  • You can view the new resources or edits in detail.

  • You decide whether to accept or decline.

No changes are applied until you confirm them.

---

Credits & Billing

Both AI tools require AI credits:

  • AI Generator → uses credits when generating new resource plan.

  • AI Editor → uses credits when creating edit plan for existing resources.

You can purchase additional credits from the Billing page in Twidget.

Related Topics