I am trying to create a chatbot that:
•Assists customers who do not recognize charges on their credit cards.
• Collects their card data, explains the charges, and is also able to offer refunds.
However depending on the message of the user and the chat history, sometimes instead of text-generation I want the chatbot to call a function that will go throw a database and return a message I created manually.
What is the best approach for this?
I tried assistant but it is not really good.
Any help is appreciated 🙏