Accessing botpress via api and consuming the response back


Hey all,
I am very new to botpress but I have a important topic.
I have a complex scenario with the following steps. I kindly request you all to guide me if Botpress is the right choice.

I have a web application front end built on react. Now I want to have a chatbot on this where I ask questions and then take the information to provide some result.

So I want to be able to post the info I collect from the UI to the botpress api using my api like this .

and then from the botpress api trigger a proper query to another api which gives me search results and then I want to provide this back to the UI.

In this setup the conversation might include selectboxes, checkboxes, etc.

Can someone please guide me if we can achieve this using botpress?

Thanks in advance