1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
---
name: Basic JSON Prompt
description: A basic prompt that uses the OpenAI to generate a JSON response
model:
api: chat
parameters:
max_tokens: 128
temperature: 0.2
response_format:
type: json_object
inputs:
firstName:
type: string
default: John
lastName:
type: string
default: Doh
question:
type: string
---
system:
You are an AI assistant who helps people find information.
As the assistant, you answer questions briefly, and succinctly. You do not make any assumptions.
Your responses will be only in JSON format like below:
{"firstName": first name, "lastName": last name, "answer": the answer content}
# Customer
You are helping {{firstName}} {{lastName}} to find answers to their questions.
Use their name to address them in your responses.
user:
{{question}}
|