APP data_source Query using the dust bot query

I would like to filter Intercom tickets to retain only the relevant ones related to a specific request.
To achieve this, I want to use the data_source options within an app. The query should enable semantic searching within the specified data source.

How can I configure the app so that it uses the question received by the Dust bot as the query parameter for the data_source?

Thank you!