There are 119 methods in total. The parameter definition file for each method is under {baseDir}/references/.
According to the different method names, the system will automatically select the corresponding agent interface:
_company will call the company_agent interfaceapp_agent/{appId} interfaceBefore calling the application agent interface, you need to get appId, you can get it through the following steps:
# 1. Call the team agent interface to get all application list
node {baseDir}/scripts/call.js company_agent _company_app_list
# 2. Find the target application ID from the returned result
# 3. Use the obtained appId to call the application agent interface
node {baseDir}/scripts/call.js app_agent <appId> _query_table_define --file params.json
Edit {baseDir}/scripts/.env:
host=https://ai.ainformat.com/
agentToken=<your-agent-token>
Before executing any creation or modification operation, you must first query the existing system structure to obtain the real ID. It is strictly forbidden to construct any ID or field name out of thin air.
Querying cannot stop at just the list, you must further query the complete field structure of each related table. Because when creating associated fields, you need the field ID of the target table, knowing only the table ID is not enough.
1. _company_app_list -> Get all existing applications, including unique application identifiers
1. _query_table_list_designer -> Get all existing tables and their IDs
2. Call separately for each table that may be associated
_query_table_define_designer -> Get the complete field list of the table (field ID, field type, option values, etc.)
This step cannot be omitted, because the associated field requires the field ID of the target table
3. cat {baseDir}/references/system_create_table_module.json -> Read parameter documentation
4. Construct parameters using the queried real table IDs and field IDs, create the new table
Why must query the field structure of each table:
1. _query_table_list_designer -> Get all table IDs
2. Call on the target data source table
_query_table_define_designer -> Get all field IDs and field types of the table
Without querying the field structure, you cannot correctly configure aggregation fields, grouping fields, filter conditions
3. _read_informat_dashboard_document -> Get dashboard documentation
4. cat {baseDir}/references/system_save_dashboard_prochart_card.json
or system_save_dashboard_number_card.json -> Read parameter documentation
5. Construct card parameters using the queried real field IDs
1. _query_app_define_designer -> Get module list, existing automation groups
2. _query_table_list_designer -> Get all table IDs
3. Call separately for each table involved in automation
_query_table_define_designer -> Get field IDs (field mapping and filter conditions in automation steps require real field IDs)
4. _automatic_doc -> Get automation documentation
5. cat {baseDir}/references/system_automatic_save_define.json -> Read parameter documentation
6. Construct automation steps using the queried real IDs
1. _query_app_define_designer -> Get module list
2. _query_table_list_designer + _query_table_define_designer -> Get tables and fields
3. _read_informat_expression_doc -> Get expression documentation (workflow extensively uses expressions)
4. Read the corresponding parameter documentation
5. Create in order: module -> process definition -> startup configuration -> node -> flow
1. _query_informat_script_list -> Get existing scripts and directories
2. _read_informat_script_sdk -> Get script SDK documentation
3. Create directory first if needed _create_informat_script_directory
4. Read cat {baseDir}/references/system_save_informat_script.json
5. Create or edit script (when editing, must pass the existing script ID, do not create repeatedly)
1. _query_table_list_designer -> Find the target table
2. _query_table_define_designer -> Get the complete field list of the table
3. _read_informat_expression_doc -> If you need to configure expressions
4. Read cat {baseDir}/references/system_edit_table_field.json
5. Operate with real tableId and fieldId
1. _query_all_table_list -> Get published table IDs (application side)
2. _query_table_define -> Get published field structure
3. Read the corresponding parameter documentation
4. Construct record data with real field IDs
cat {baseDir}/references/system_query_table_define.json
The file contains parameter types, required fields, enumeration values, and nested structures. Not reading and directly constructing parameters will cause the call to fail.
Write the parameters to a JSON file (you can choose the current working directory for the file location):
echo '{"tableId":"myTable"}' > params.json
# With parameters (passed via --file parameter file, avoid shell quote issues)
node {baseDir}/scripts/call.js _query_table_define --file params.json
# No parameters
node {baseDir}/scripts/call.js _get_current_time
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Team] | _company_app_list | Query application list | references/system_company_app_list.json MUST READ |
| [Team] | _company_app_create | Create application | references/system_company_app_create.json MUST READ |
| [Team] | _company_role_list | Query role list | references/system_company_role_list.json MUST READ |
> [Designer] = Draft environment. [Application] = Published environment. [User Operation] = Manual execution by user.
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _api_create_define | Create API definition | references/system_api_create_define.json MUST READ |
| [Designer] | _api_delete_define | Delete API definition (dangerous operation) | references/system_api_delete_define.json MUST READ |
| [Designer] | _api_doc | Query Informat API documentation | none |
| [Designer] | _api_query_define_designer | Query single API detailed definition | references/system_api_query_define_designer.json MUST READ |
| [Designer] | _api_query_define_list | Query API definition list under application | none |
| [Designer] | _api_update_define | Update API definition, updateFieldList declares the fields to be modified | references/system_api_update_define.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _app_check_setting | Validate draft configuration legality before publishing | none |
| [Designer] | _app_create_role | Create application role | references/system_app_create_role.json MUST READ |
| [Designer] | _app_delete_draft_define | Delete draft version Define (unrecoverable) | references/system_app_delete_draft_define.json MUST READ |
| [Designer] | _app_get_define_list | Get application definition object list | references/system_app_get_define_list.json MUST READ |
| [Designer] | _app_get_define_object | Get single definition object details | references/system_app_get_define_object.json MUST READ |
| [Designer] | _app_get_define_type | Get supported definition object types | none |
| [Designer] | _app_get_draft_define_count | Draft change count statistics | none |
| [Designer] | _app_get_draft_define_list | Draft object list | none |
| [Designer] | _app_get_web_url | Get application web root URL | none |
| [User Operation] | _app_publish | Publish application to production environment (AI should not call this, remind user to operate) | references/system_app_publish.json MUST READ |
| [Designer] | _app_save_define_object | Save definition object structure | references/system_app_save_define_object.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _query_app_define | Query published application configuration (module list, roles, API, etc.) | none |
| [Designer] | _query_app_define_designer | Query designer application configuration (module list, roles, API, automation groups, etc.) | none |
| [Application] | _query_app_user_list | Query account information (ID, email, superior, department) | references/system_query_app_user_list.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _create_table_module | Create data table (must query existing tables and field structure before creation) | references/system_create_table_module.json MUST READ |
| [Designer] | _create_table_field_group | Create data table field group | references/system_create_table_field_group.json MUST READ |
| [Designer] | _create_table_filter_condition | Generate data table filter | references/system_create_table_filter_condition.json MUST READ |
| [Designer] | _table_save_filter_condition | Set data table view filter condition | references/system_table_save_filter_condition.json MUST READ |
| [Designer] | _table_create_tool_bar_button | Create data table toolbar button | references/system_table_create_tool_bar_button.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _query_all_table_list | Query all published data tables (does not return table field structure) | none |
| [Application] | _query_table_define | Query field structure of published table (used for record operations) | references/system_query_table_define.json MUST READ |
| [Designer] | _query_table_list_designer | Query all tables in designer (including unpublished, does not return table field structure) | none |
| [Designer] | _query_table_define_designer | Query data table field structure in designer | references/system_query_table_define_designer.json MUST READ |
| [Designer] | _query_table_field_designer | Query detailed configuration of a single field in data table | references/system_query_table_field_designer.json MUST READ |
| [Application] | _query_table_record_list | Query data table records by conditions | references/system_query_table_record_list.json MUST READ |
| [Application] | _query_table_record_list_count | Count the number of records matching conditions | references/system_query_table_record_list_count.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _edit_table_field | Edit field (must query table structure first to get real ID before operation) | references/system_edit_table_field.json MUST READ |
| [Designer] | _edit_table_module | Modify data table module information | references/system_edit_table_module.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _table_record_batch_insert | Batch insert records (query table structure first to get field IDs) | references/system_table_record_batch_insert.json MUST READ |
| [Application] | _table_record_batch_update | Batch update records | references/system_table_record_batch_update.json MUST READ |
| [Application] | _table_record_batch_delete | Batch delete records (dangerous operation) | references/system_table_record_batch_delete.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _bpmn_create_module | Create workflow module | references/system_bpmn_create_module.json MUST READ |
| [Designer] | _bpmn_create_process_define | Create process definition | references/system_bpmn_create_process_define.json MUST READ |
| [Designer] | _bpmn_update_start_setting | Update process startup configuration | references/system_bpmn_update_start_setting.json MUST READ |
| [Designer] | _bpmn_create_or_update_node | Create/update process node | references/system_bpmn_create_or_update_node.json MUST READ |
| [Designer] | _bpmn_create_or_update_flow | Create/update sequence flow | references/system_bpmn_create_or_update_flow.json MUST READ |
| [Designer] | _bpmn_delete_node | Delete process node | references/system_bpmn_delete_node.json MUST READ |
| [Designer] | _bpmn_delete_flow | Delete sequence flow | references/system_bpmn_delete_flow.json MUST READ |
| [Designer] | _bpmn_query_process_define | Query process definition details | references/system_bpmn_query_process_define.json MUST READ |
| [Designer] | _bpmn_query_process_define_list | Query process definition list under module | references/system_bpmn_query_process_define_list.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _automatic_create_group | Create automation group (query _query_app_define_designer first to avoid duplication) | references/system_automatic_create_group.json MUST READ |
| [Designer] | _automatic_delete_group | Delete automation group | references/system_automatic_delete_group.json MUST READ |
| [Designer] | _automatic_update_group | Edit automation group | references/system_automatic_update_group.json MUST READ |
| [Designer] | _automatic_save_define | Save automation configuration (must query table structure to get field IDs before creation) | references/system_automatic_save_define.json MUST READ |
| [Designer] | _automatic_query_define | Query automation configuration | references/system_automatic_query_define.json MUST READ |
| [Designer] | _automatic_run_once | Execute automation immediately (high risk, confirm first) | references/system_automatic_run_once.json MUST READ |
| [Designer] | _automatic_doc | Read automation documentation | none |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _create_dashboard_module | Create dashboard module | references/system_create_dashboard_module.json MUST READ |
| [Designer] | _query_dashboard_list_designer | Query all dashboards | none |
| [Designer] | _query_dashboard_card_list | Query dashboard card list | references/system_query_dashboard_card_list.json MUST READ |
| [Designer] | _query_dashboard_card_detail | Query card details | references/system_query_dashboard_card_detail.json MUST READ |
| [Designer] | _save_dashboard_number_card | Create/edit number card (query table structure first to get field ID) | references/system_save_dashboard_number_card.json MUST READ |
| [Designer] | _save_dashboard_prochart_card | Create/edit chart card (query table structure first to get field ID) | references/system_save_dashboard_prochart_card.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _create_informat_script_directory | Create script directory | references/system_create_informat_script_directory.json MUST READ |
| [Designer] | _save_informat_script | Save script (must pass existing ID when editing) | references/system_save_informat_script.json MUST READ |
| [Designer] | _query_informat_script_list | Query script list | none |
| [Designer] | _query_informat_script_content | Query script content | references/system_query_informat_script_content.json MUST READ |
| [Application] | _execute_informat_script | Execute published script | references/system_execute_informat_script.json MUST READ |
| [Designer] | _execute_informat_script_designer | Execute script in designer | references/system_execute_informat_script_designer.json MUST READ |
| [Designer] | _generation_informat_script | Generate script via prompt | references/system_generation_informat_script.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _schedule_create_define | Create scheduled task | references/system_schedule_create_define.json MUST READ |
| [Designer] | _schedule_update_define | Update scheduled task | references/system_schedule_update_define.json MUST READ |
| [Designer] | _schedule_delete_define | Delete scheduled task | references/system_schedule_delete_define.json MUST READ |
| [Designer] | _schedule_query_define_designer | Query scheduled task details | references/system_schedule_query_define_designer.json MUST READ |
| [Designer] | _schedule_query_define_list | Query scheduled task list | none |
| [Designer] | _schedule_run_once | Trigger immediately once | references/system_schedule_run_once.json MUST READ |
| [Designer] | _schedule_doc | Query scheduled task documentation | none |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _i18n_query_define_designer | Query internationalization configuration | none |
| [Designer] | _i18n_save_define_designer | Save translation definition | references/system_i18n_save_define_designer.json MUST READ |
| [Designer] | _i18n_save_locale_designer | Save language list | references/system_i18n_save_locale_designer.json MUST READ |
| [Designer] | _i18n_set_app_name | Set application internationalization name | references/system_i18n_set_app_name.json MUST READ |
| [Designer] | _i18n_set_module_name | Set module internationalization name | references/system_i18n_set_module_name.json MUST READ |
| [Designer] | _i18n_set_table_field_name | Set field internationalization name | references/system_i18n_set_table_field_name.json MUST READ |
| [Designer] | _i18n_set_field_option_name | Set option value internationalization name | references/system_i18n_set_field_option_name.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _website_create_module | Create website module (query first to avoid duplication) | references/system_website_create_module.json MUST READ |
| [Designer] | _website_create_directory | Create resource directory | references/system_website_create_directory.json MUST READ |
| [Designer] | _website_save_resource | Create/edit resource (query ID first when editing) | references/system_website_save_resource.json MUST READ |
| [Designer] | _website_delete_resource | Delete resource | references/system_website_delete_resource.json MUST READ |
| [Designer] | _website_query_define_designer | Query website module details | references/system_website_query_define_designer.json MUST READ |
| [Designer] | _website_query_list_designer | Query all website modules | none |
| [Designer] | _website_query_resource | Query resource details | references/system_website_query_resource.json MUST READ |
| [Designer] | _website_read_informat_doc | Read website designer documentation | none |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _designer_get_app_info | Query application configuration | none |
| [Designer] | _designer_get_module_list | Query module list | none |
| [Designer] | _designer_get_module_info | Query module configuration | references/system_designer_get_module_info.json MUST READ |
| [Designer] | _designer_knowledge_database | Query knowledge base | references/system_designer_knowledge_database.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _create_module_group | Create module group | references/system_create_module_group.json MUST READ |
| [Designer] | _update_module_and_group_order | Update module sorting | references/system_update_module_and_group_order.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _get_current_time | Get current time | none |
| [Application] | _get_current_user | Get current user | none |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _read_informat_expression_doc | Informat expression documentation | none |
| [Designer] | _read_informat_script_sdk | Informat script SDK documentation | none |
| [Designer] | _read_informat_dashboard_document | Informat dashboard chart documentation | none |
| [Application] | _read_office_file | Read Office document content | references/system_read_office_file.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _query_all_textindex_list | Query search engine module list | none |
| [Application] | _textindex_search | Search engine keyword search | references/system_textindex_search.json MUST READ |
| [Application] | _knowledgebase_search | Knowledge base keyword search | references/system_knowledgebase_search.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _send_notification | Send notification | references/system_send_notification.json MUST READ |
| [Application] | _send_system_email | Send email | references/system_send_system_email.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Designer] | _survey_create_module | Create survey module | references/system_survey_create_module.json MUST READ |
| [Designer] | _survey_create_item | Create survey question | references/system_survey_create_item.json MUST READ |
| [Designer] | _survey_update_item | Update survey question | references/system_survey_update_item.json MUST READ |
| [Designer] | _survey_delete_item | Delete survey question | references/system_survey_delete_item.json MUST READ |
| [Designer] | _survey_query_define_designer | Query survey configuration | references/system_survey_query_define_designer.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _task_doc | Query task documentation | none |
| [Application] | _task_list | Query task list | references/system_task_list.json MUST READ |
| [Application] | _task_create | Create task | references/system_task_create.json MUST READ |
| [Application] | _task_finish | Finish task | references/system_task_finish.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _thread_create | Create thread | references/system_thread_create.json MUST READ |
| End | Method Name | Description | Parameter Document |
|---|---|---|---|
| ---- | -------- | ------ | ---------- |
| [Application] | _javascript_eval | Execute JavaScript code | references/system_javascript_eval.json MUST READ |
| [Application] | _render_html | Render HTML content | references/system_render_html.json MUST READ |
| [Application] | _web_content | Get web URL content | references/system_web_content.json MUST READ |
When calling the Informat API, you may encounter the following common errors:
```bash
# 1. Prepare parameter file
echo '{"name": "Project Management System", "appDefineId": "pms2026", "icon": "task", "color": "#1890ff"}' > create_app.json
# 2. Create application
node {baseDir}/scripts/call.js _company_app_create --file create_app.json
```
```bash
# 1. Prepare project table parameters
echo '{"id": "project", "name": "Project", "fields": [{"id": "projectName", "name": "Project Name", "type": "SingleText", "singleTextSetting": {"nullable": false}}]}' > create_project_table.json
# 2. Create project table
node {baseDir}/scripts/call.js _create_table_module
# 3. Prepare task table parameters
echo '{"id": "task", "name": "Task", "fields": [{"id": "taskName", "name": "Task Name", "type": "SingleText", "singleTextSetting": {"nullable": false}}]}' > create_task_table.json
# 4. Create task table
node {baseDir}/scripts/call.js _create_table_module
```
```bash
# 1. Prepare dashboard parameters
echo '{"id": "dashboard", "name": "Project Management Dashboard"}' > create_dashboard.json
# 2. Create dashboard
node {baseDir}/scripts/call.js _create_dashboard_module
```
A: This means the module ID is already in use, you need to use a different module ID.
A: The application may not be initialized, it is recommended to wait a while and retry, or check the application status.
A: Use the _designer_get_module_list method to query the module list of the application.
A: {host}/app/{appId}
共 1 个版本
暂无安全检测报告