How to pass a string to an empty .txt file in the knowledge bank

Original Discord Post by yahyaamin1997 | 2024-09-16 13:53:52

Hello everyone, I want to store the information of some users who consent to it. When they consent to storing their information, my script triggers through narrative design and I store their details in a variable within the script

My question is: How do I pass that variable to an empty .txt file in the knowledge bank. I have created the empty .txt file but how to append information from my script variable to it?

Any help regarding this would be greatly appreciated :sweat_smile:

Reply by k3kalinix | 2024-09-17 14:53:58

Hello <@1270648993868943371>,

Reply by k3kalinix | 2024-09-17 14:56:07

You cannot update Knowledge Bank in Runtime.

But you can try to update the backstory.

Documentation

Embedded Content:
Character API | API Docs
All the relevant APIs needed to create your own intelligent AI characters with Convai.
Link: Character Base API | Documentation

Reply by yahyaamin1997 | 2024-09-17 16:05:54

Oh ok, I just wanna ask iss there any API to update it after running. Or nothing of that type yet for the knowledge bank yet

Reply by k3kalinix | 2024-09-20 09:22:19

Unfortunately, no.

This conversation happened on the Convai Discord Server, so this post will be closed.