Conn2Flow
Docs navigation

Reference / Modules

admin-prompts-ia module

AI prompt library by target and language.

Path in the Gestor modulos/admin-prompts-ia/

This module maintains reusable prompts for AI targets. Each record has a name, slug, target, language, text, and default flag; the target is chosen from alvos_ia records.

How to use

Open admin-prompts-ia/, create at admin-prompts-ia/adicionar/, and edit at admin-prompts-ia/editar/?id=<slug>. Choose a target, write the prompt in CodeMirror, and mark it as default if appropriate. All three routes exist in pt-br and en. The shared interface supplies listing, status, and deletion.

Technical reference

The main switch handles adicionar and editar; AJAX opcao/verificar-padrao counts active prompts with padrao=1 for a target. JavaScript only configures CodeMirror in Markdown mode. Creation stores the operator's id_usuarios. hook_apply_filters('admin-prompts-ia', 'padrao.update.where', ...) can restrict the UPDATE clearing a default; module JSON declares no hooks.api, widget, or own template.

The prompts_ia migration creates id_prompts_ia, nome, id, language, alvo, padrao, MEDIUMTEXT prompt, status, versao, dates, file_version, and checksum, with unique (id, language); a later migration adds id_usuarios. alvos_ia defines target choices by language.

Confirmed limitations

See also

The Future is Hybrid: Human + AI.

Conn2Flow is the tool. If you need the Architect to design your company's strategy using this technology...

Hire Specialized Consulting