#!/usr/bin/env ptbk
- URL
https://promptbook.studio/examples/chat.book
- FORMFACTOR
Chat
- INPUT PARAMETER
{previousTitle}
Previous title of the conversation - INPUT PARAMETER
{previousConversationSummary}
Previous conversation summary - INPUT PARAMETER
{userMessage}
User message - OUTPUT PARAMETER
{title}
Title of the conversation - OUTPUT PARAMETER
{conversationSummary}
Summary of the conversation - OUTPUT PARAMETER
{chatbotResponse}
Chatbot response
- PERSONA John, creative brainstormer
Write reply to the user message in the chat:
> {userMessage}
**Rules**
- Write just the reply, nothing else
- Keep language of the user
**Previous conversation**
> {previousConversationSummary}
-> {chatbotResponse}
Summarize the conversation {previousTitle}.
**User asked**
> {userMessage}
**Chatbot replied**
> {chatbotResponse}
**Previous conversation**
> {previousConversationSummary}
**Rules**
- Write just the reply, nothing else
- Keep language of the user
-> {conversationSummary}
- JOKER
{previousTitle}
- EXPECT MIN 1 Word
- EXPECT MAX 1 Line
Make title of the conversation.
**User asked**
> {userMessage}
**Chatbot replied**
> {chatbotResponse}
**Rules**
- Write just the title, nothing else
- Keep language of the conversation
- The title should be catchy
- Maximum 5 words long
-> {title}