for newbie
if you a newbie for proconfig , you can try use pcc cli to help you generate your proconfig.
simply use python tool pip: pip install proconfig
then , use pcc init help you create a fully structured proconfig project.
afterwards, run pcc encode main.yaml , you can get a output.json , and directly put this json on myshell, it will works. 🙂
TLDR:
pip install proconfig
pip init
pip encode main.yaml
cat output.json
for senior users
debugging bot sometimes can be really hard, if you have too many states.
now using pcc , you can just run pcc draw your_proconfg.json , and then access your http://localhost:8050
you can see you proconfig state machine, you can try to move each node, zoom in,and zoom out. I've try to analysed April with Her , see picture attached.(I mean, this is the most complicated bot I've ever seen. can't believe it's written in bare json)
for who using code widget
some times , we need integrate several code together, and some times, need encode json into a single string.
with pcc, I've implement !include & !oneline macro.
!include is to include state from /state path
oneline is simple encoder to encode any thing into your json, which means you can use this !oneline to import json, or javascript or other structured file into you proconfig. and then debug your javascirpt or json separately.
or , you can just directly use the code https://github.com/cybernagle/proconfig-generator directly ,feel free to fork if you want impelment it your self. 🙂
with this repo, try to use pcc encode main.yaml, you can directly get the master promting bot's proConfig
https://app.myshell.ai/bot/nMNJNr/1713262101
myshell ProConfig generator. Contribute to cybernagle/proconfig-generator development by creating an account on GitHub.
Do you believe you've mastered the art of prompting? Dive into these levels and see if you can conquer them all!" Please contact with @cybernagle on discord if you are facing any issue. source code: https://github.com/cybernagle/proconfig-generator...