For the complete documentation index, see llms.txt. This page is also available as Markdown.

iai macros create

Create a macro

Synopsis

Create a new macro in an InteractiveAI project.

Content is provided via a text or markdown file using the --file flag.

No schema validation is applied — any text content is accepted.

Example

**Disclaimer:** This is not financial advice. Consult a professional.

Examples

  iai macros create disclaimer --file disclaimer.md
  iai macros create disclaimer --file disclaimer.md --labels staging
  iai macros create disclaimer --file disclaimer.md --tags legal

Options

      --file string             Path to the file containing the prompt content
  -h, --help                    help for create
      --labels strings          Labels for the prompt version (comma-separated)
  -o, --organization string     Organization name that owns the project
  -p, --project string          Project name that owns the prompts
      --schema-version string   Schema version to validate against (defaults to latest stable)
      --tags strings            Tags for the prompt (comma-separated)

Options inherited from parent commands

SEE ALSO

  • iai macros - Pre-approved response templates used in routines

Last updated

Was this helpful?