How to Use AI Magic to Create Custom Data Models?
AI Magic is a function in the Custom Data module that allows creating or editing models using a text description in natural language. Instead of manually adding fields, you can describe the data structure, and AI will automatically create the model with needed fields.
When Needed
- You need to quickly create a model with many fields without manually adding each field.
- You need to change the structure of an existing model by adding new fields.
- You need to simplify the model creation process for inexperienced users.
What's Important to Know
- AI Magic — function that uses OpenAI to analyze text description and create models.
- If the OpenAI token is set in the FastLine module, it will be pulled automatically.
- Can be used for creating new models or editing existing ones.
- AI analyzes your request and automatically creates the model with needed fields and types.
Prerequisites
You are logged in with administrator or integrator rights. You have navigated to the Custom Datamodule viaApps -> Custom Data.You have an OpenAI Token (if the token is set in the FastLine module, it will be pulled automatically).
Step-by-Step Instructions
Creating New Model
- In the
Custom Datamodule, go to the "Create/Update" tab. - Click the "Create Model" button or find the "AI Magic" option.
- If needed, add the OpenAI Token (if the token is set in the FastLine module, it will be pulled automatically).
- In the description field, enter a text description of the data structure you need to create.
Description example:
Add the ability to enter insurance contracts and counterparties. Counterparties are companies (legal entities) with all standard fields for legal entities:
- legal entity name
- responsible manager for the legal entity
- contact emails (can be many)
- EDRPOU (registration number)
Insurance contracts:
- signing date
- expiration date
- counterparty
- contract number (text)
- Click the button to generate the model.
- AI analyzes your request and automatically creates the model with needed fields.
- Review the created model and make corrections if needed.
- Save the model.
Editing Existing Model
- In the
Custom Datamodule, go to the "Create/Update" tab. - Select the model that needs to be edited.
- Activate edit mode.
- Find the "AI Magic" option or similar function.
- Describe what needs to be changed or added to the model.
- AI will make changes to the model structure according to your description.
- Review changes and save the model.
What Happens After
AI analyzes your description and automatically creates or updates the model with needed fields, data types, and settings. The model becomes available for use in Custom Data and bot scenarios.
How to Verify It Worked
- Check that the model is created or updated with correct fields.
- Make sure field types match your description.
- Create a test record and check that all fields work correctly.
- Check that AI correctly interpreted your description.