---
title: "Returns the system and user prompt templates for the given llm task in all supported languages"
method: POST
path: "/llm/create_prompt_templates"
tags: ["llm"]
---

# Returns the system and user prompt templates for the given llm task in all supported languages

`POST /llm/create_prompt_templates`

## Query parameters

- `approach_type` 'LLM_ZERO_SHOT' | 'LLM_FEW_SHOT', required

## Request body

- BodyLlmCreatePromptTemplates
  - `llm_job_params` LLMJobParameters, required
    - `project_id` integer, required — Project ID associated with the job
    - `llm_job_type` 'TAGGING' | 'METADATA_EXTRACTION' | 'ANNOTATION' | 'SENTENCE_ANNOTATION', required
    - `specific_task_parameters` union, required — Specific parameters for the LLMJob w.r.t it's type
      - TaggingParams
        - `llm_job_type` 'TAGGING', required
        - `sdoc_ids` integer[], required — IDs of the source documents to analyse
        - `tag_ids` integer[], required — IDs of the tags to use for the document tagging
      - MetadataExtractionParams
        - `llm_job_type` 'METADATA_EXTRACTION', required
        - `sdoc_ids` integer[], required — IDs of the source documents to analyse
        - `project_metadata_ids` integer[], required — IDs of the project metadata to use for the metadata extraction
      - AnnotationParams
        - `llm_job_type` 'ANNOTATION', required
        - `sdoc_ids` integer[], required — IDs of the source documents to analyse
        - `code_ids` integer[], required — IDs of the codes to use for the annotation
        - `delete_existing_annotations` boolean — Delete existing annotations before creating new ones
      - SentenceAnnotationParams
        - `llm_job_type` 'SENTENCE_ANNOTATION', required
        - `sdoc_ids` integer[], required — IDs of the source documents to analyse
        - `code_ids` integer[], required — IDs of the codes to use for the sentence annotation
        - `delete_existing_annotations` boolean — Delete existing annotations before creating new ones
  - `example_ids` integer[], nullable

## Response `200`

Successful Response

- LLMPromptTemplates[]
  - `language` string, required — The language of the prompt template
  - `system_prompt` string, required — The system prompt to use for the job
  - `user_prompt` string, required — The user prompt to use for the job

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/6b22366ce2d1/schema)
