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
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)
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:
Analyse your description.
Propose a set of resources (endpoints, tables, functions, events).
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.
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).
---
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.
---
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.
Workspace Basics
In Twidget, a workspace serves as a dedicated environment for creating resources that contribute to an API's development. An organization can have multiple workspaces, each capable of creating a single API. Within a workspace, you can create the following resources: - [Endpoints](/docs/api/endpoint-...
Organization Basics
Organizations provide a space where multiple workspaces and APIs can be created. Users have the flexibility to belong to multiple organizations, allowing them to segregate development efforts for various teams or companies. Each organization operates independently, and resources are not shared betwe...
Twidget Dashboard
The Dashboard on Twidget is designed to provide a comprehensive overview of your API usage, storage consumption, and easy access to various resources. Below are the key features of the dashboard: Analytics Graph. You can view detailed analytics regarding the requests made to your API. The graph can ...