Custom Functions empower your AI Agent to execute advanced workflows by integrating with external data sources and APIs.
Custom Functions enable your AI agent to perform tasks such as:
These functions are similar to creating a custom GPT function call.
Note: Available for Full SaaS Mode users only.
python
@app.route('/get_user_data', methods=['POST'])
def get_user_data():
name = request.json.get('name')
css
I want to create a custom function that retrieves [describe data] using [API or database]. It should accept [input_type] and return [output_type]. Provide complete Flask app code and JSON parameters.
json
{
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the user to look up in the Google Sheet."
}
},
"required": ["name"]
}
}
python
schedule_appointment(email="user@example.com", desired_time_rfc3339="2024-11-04T09:30:00-08:00")
Use ReqBin or Postman to test your API endpoint before connecting it to the AI.
Example test endpoint:
arduino
https://your-replit-url/get_user_data
Pro Tip: Once connected, your AI agent can fetch live data during conversations.