https://discord.gg/botpress logo
#🤝help
Can I make the information split across multiple lines?
# 🤝help
q

quiet-kite-63878

07/24/2023, 10:36 AM
Hey! The AI's response is always one line. Can I make the AI split the answer into several lines?

https://cdn.discordapp.com/attachments/1132984712122617927/1132984712315539597/image.png

a

acceptable-kangaroo-64719

07/24/2023, 10:39 AM
You could try formatting it using code in an execute code card. ChatGPT could probably write that code for you 😅 . It might also work if you put it through an AI task with a prompt asking for better formatting, too.
q

quiet-kite-63878

07/24/2023, 10:40 AM
Do you have any prompt templates? 👀
Already tried a few, doesn't work
a

acceptable-kangaroo-64719

07/24/2023, 10:43 AM
What prompt are you using now? I can offer some tips
q

quiet-kite-63878

07/24/2023, 10:47 AM
btw I have this problem

https://cdn.discordapp.com/attachments/1132984712122617927/1132987370355040266/image.png

Make the format easy to read. Break the text into several different lines. Use the format of this database.
a

acceptable-kangaroo-64719

07/24/2023, 10:48 AM
The
@nextAssistantMessage
thing is due to rate limits from OpenAI. We're working on getting them to give us more API access but it's a process
For you prompt, you could try getting more specific like:
Copy code
Format the message contained in `messgeVar` into a schedule. Each activity should use the following format:
{day of the week}
{start time} - {end time} : {activity description}
q

quiet-kite-63878

07/24/2023, 11:59 AM
it didn't work
😦
a

acceptable-kangaroo-64719

07/24/2023, 12:10 PM
Have you tried putting an example in the "Task example" part of the AI task?

https://cdn.discordapp.com/attachments/1132984712122617927/1133008274074124399/image.png

q

quiet-kite-63878

07/24/2023, 12:41 PM
Should I write only the question or I can add the desired answer?
a

acceptable-kangaroo-64719

07/24/2023, 12:42 PM
the desired answer
q

quiet-kite-63878

07/24/2023, 1:01 PM
I can use only one row here, so it didn't work

https://cdn.discordapp.com/attachments/1132984712122617927/1133021233047408707/image.png

a

acceptable-kangaroo-64719

07/24/2023, 1:02 PM
huh, that seems like a bug. I'll file soemthing internally. You can also use an escape char
\n
for newlines
q

quiet-kite-63878

07/24/2023, 1:02 PM
got it, thanks
2 Views