Prompt Templates


Execute

Execute a prompt template from the library with some user input.

1. POST /prompt_templates/execute

Request Body

  • system_name - System name of the Prompt Template
  • user_message - User’s Question

Example Request

1. {

2. "system_name": "DETECT_LANGUAGE",

3. "user_message": "What is the service fee for paying an invoice in online banking?"

4. }

Example Response

1. {

2. "content": "English"

3. }