### Answer
Yes, you can connect to SharePoint (or any external API) using custom functions in Retell AI.
Custom functions allow you to extend your agent's capabilities by integrating external APIs, providing additional knowledge, or implementing custom logic. [(1) ](
)
When a custom function is called, Retell sends a request (POST, GET, PUT, PATCH, DELETE) to your specified URL with the function name and parameters.
How it works:
1. Create a custom function in your agent configuration [(2) ](
)
2. Select the appropriate HTTP method (e.g., PATCH or PUT for updating SharePoint items) [(1) ](
)
3. Add your SharePoint API endpoint URL
4. Set request headers (e.g., your SharePoint authentication token)
5. Define the parameters the LLM should extract from the conversation
Your custom function endpoint would receive the request from Retell and then make the actual call to the SharePoint API to update items.
For the integration, you'd typically set up a webhook/endpoint that:
- Receives the request from Retell
- Authenticates with SharePoint
- Performs the update operation
- Returns the result back to Retell [(2) ](
)