https://discord.gg/botpress logo
Autonomous node - can it read and write to table r...
# 🤝help
b
Can the autonomous node be given instructions to write to a table within its knowledge base during a conversation?
p
Yes, it can. It isn't always the most straightforward approach though.
b
That's cool, yes I've got it to successfully update a record which is super useful as it means my bot will be able to learn from its interactions with students across multiple conversations - but it seems a bit hit and miss. What might the workflow look like (or is there a video or walkthrough already) to avoid doing it through the autonomous node?
Or some templates within the interface to use as starting points for experimenting with different workflows would be awesome.
n
Yes
p
The steps would roughly be: 1. Create a new workflow 2. Use the get, update or create records cards 3. Create variables for the information passed or queried from/to your tables 4. toggle those variables on the entry node of your workflow 5. Go back to your other (main) workflow and add the sub-workflow to your AN, it will automatically capture the information to pass to the input variables of the sub-workflow 6. Improve your AN instructions to clearly indicate what info to capture from the conversation and when to route to the workflow. (Btw on the lives I often demonstrate how this works)
b
Thank you, I'll give that a go! Yes I will try to join now I've seen that you do livestreams.
p
Awesome, Happy to help!
2 Views