Hello Guys , I need help! I have created a chatbot...
# 🌎general
d
Hello Guys , I need help! I have created a chatbot with execute code card . This execute code connects with external API and reply user question. But the probelm is it consumes AI Spend of botpress as well as tokens of external API.. means I am being charged twice. Is there any way to resolve the issue ?
c
@famous-jewelry-85388 anything you'd recommend to @damp-angle-14040 ?
d
Thank you , Since I am just using external API for Q&A , I have turn off the summary agent and personality agents to reduce the token spend.
f
Hey @damp-angle-14040 , Can you tell me more? How did you know that you are being charged twice? I am not challenging you, I just want to understand more, that will help me understand the root cause of the issue/challenge, then I work with our team to either enhance the experience (documentation, videos, etc.) or by fixing the issue.
Just a side note, AI spend is only consumed when we use cards that make calls to out AI backend
d
I am using only execute code card , it has a code which connects with external API which charges me for nos of messages. Now when I run the execute code , the log says I am charged for so many tokens. So what I did is I have disables all the agents , Personality agent , knowledge base , summary agents etc , now I am not being charged for tokens within botpress. Is there any other way to make AI Spend zero ?
I have also disabled the translate agent also..
f
As per my knowledge, no. You did what was needed.
3 Views