How do I add custom business logic so PromptQL can take actions?
Hey, @tariq_ahmad — this is covered in our custom business logic docs. You can also see an end-to-end example in our quickstart where we “rent” a movie on behalf of a user.
Broadly though, you’ll create your own functions in your language-of-choice (i.e., TS, Python, or Go) and then expose these functions in your application. PromptQL will be able to use these depending on the context of your conversation and take action on behalf of the user.
Once you get going with it, it’s a pretty easy pattern to follow. Do let us know if there’s more questions, though!