https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> can i create custom functio...
# ❓・ai-evy-support
g
@AI Evy can i create custom functions with the api ?
a
Thanks for tagging me @gab.letuz. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Custom Function]() * [Integrate Function Calling]() * [Integrate any system with custom function]() * [Discord message from @itschrisjames on 2024-10-21]() -----------------------------
### Answer Yes, you can create custom functions via the API. Based on a Discord conversation, here's the structure you should use for creating a custom function [(1)]() :
Copy code
javascript
{
  "execution_message_description": "The message you will say to user when calling this tool. Make sure it fits into the conversation smoothly. Do not use a question. Use everyday language.",
  "speak_after_execution": true,
  "name": "send_SMS",
  "description": "sends signup link to caller",
  "type": "custom",
  "speak_during_execution": true,
  "url": "<your-endpoint-url>"
}
A few important things to note: - The type should be set to "custom" - The parameters section must contain a valid JSON schema [(2)]() - The name should be unique and separated with underscore [(3)]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.