# šŸ’»developers


03/04/2024, 2:59 PM
To go into more detail, in our current setup, we have a workflow that's triggered to perform an AI task, extracting customer data from emails sent to the endpoint. The goal is to have the knowledge base automatically queried when an email includes a question that the knowledge base is capable of answering. We then want to use the knowledge base's answer as a variable within the workflow. So far, everything in our setup is functioning smoothly except for the integration of the knowledge base query. The questions is how to trigger this query through a webhook in response to the email content, which is a bit of a unique situation compared to the usual user input triggers in the chat environment.