Simple RAG Consumption with Microsoft Teams AI Agent > Using the Simple RAG Consumption with Microsoft Teams AI Agent recipe > Step 6. Create webhooks in Microsoft Teams
  

Step 6. Create webhooks in Microsoft Teams

You can configure webhooks to communicate between systems when an event occurs.
To create a webhook in Microsoft Teams, perform the following steps:
  1. 1Go to Team > Manage team > Apps > Create an outgoing webhook.
  2. The following image shows the steps to create an outgoing webhook in the Teams app:
    The image shows the steps to create an outgoing webhhook in the Teams app.
  3. 2Enter the webhook name, the service URL that you get after publishing the process, and the description, and then click Create as shown in the following image:
  4. This image shows the Create an outgoing webhook dialog box.
The process is triggered by a message containing the @<Webhook_Name> in the Teams channel where the webhook is deployed as shown in the following image:
It converts the user input into a vector using the Gemini Embeddings action. This vector is then sent to Pinecone, which finds the best matches in the index vector collection based on the TopK value. The process returns an object with vectors, scores, and metadata. It filters the results using cutoff values and prepares a request to the Gemini LLM, providing context from the Pinecone database. The response is parsed, and the answer is posted back to the same Teams channel.