Generate LangGPT prompt
generate_langgpt_structureExpand a brief idea into a strict LangGPT Markdown system prompt with Role, Profile, Goals, Rules, Workflow, and OutputFormat sections, validating that each reference points to an existing section.
Instructions
Expand a brief idea into a strict LangGPT Markdown system prompt. Default style 'v2' follows the current LangGPT spec (Role, Profile, Background, Goal with Outcome/Done Criteria/Non-Goals, Skill-N subsections, Rules, Workflow, OutputFormat, optional Commands/Reminder/Examples, Initialization); 'classic' uses Goals/Constraints/Skills lists. With an LLM configured the content is domain-specific (the model fills a validated JSON spec; Markdown is rendered deterministically, so structure is guaranteed). Checks that every points to an existing section. 1 API call (0 with strategy=template).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idea | Yes | Brief description of the assistant/prompt you want | |
| role | No | Explicit role name; inferred if omitted | |
| style | No | v2 | |
| author | No | ||
| skills | No | ||
| audience | No | ||
| language | No | auto | |
| strategy | No | auto = LLM if configured, else deterministic template | auto |
| constraints | No | Rules that must appear verbatim | |
| targetModel | No | weak = shorter, flatter prompt for small models | strong |
| outputFormat | No | Required response format | |
| includeCommands | No | Add a LangGPT ## Commands section (/help, /continue, /improve) | |
| includeReminder | No | Add a ## Reminder section for long conversations |