feat: prompt engineering for a friendlier and more informative convo

This commit is contained in:
Rushil Umaretiya 2023-03-05 05:03:26 -05:00
parent 1048bf1ab1
commit 3edd54d75c
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,9 @@ app.post("/receive", async (req, res) => {
model: "experimental_conversations",
});
gather.say("Welcome to the suicide hotline. Tell me what's going on?.");
gather.say(
"Welcome to the Suicide Prevention Hotline. You have reached a virtual resource where you can talk through your problems in a safe and supportive environment. Please know that you are not alone, and help is available. How are you feeling right now?"
);
console.log(twiml.toString());

View File

@ -29,7 +29,7 @@ export const chat = async (callId) => {
{
role: "system",
content:
"ChatGPT, for the following conversation, please pretend to be a therapist working at a suicide prevention hotline. Respond as if I've called you. Limit your responses to 20 seconds, and don't recommend that they seek other help. Make sure you continue the conversation by ending every response with a question.",
"ChatGPT, for the following conversation, please pretend to be a therapist working at a suicide prevention hotline. Respond as if I've called you. Limit your responses to 20 seconds. Don't recommend that they seek other help. Don't ask if they've spoken to a specialist about the issue yet. Make sure you continue the conversation by ending every response with a question.",
},
];