Skip to content

Commit b598856

Browse files
authored
Added send text default too (#293)
1 parent 50083f5 commit b598856

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

fern/tools/default-tools.mdx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This function is provided when `endCall` is included in the assistant's list of
6464

6565
#### Dial Keypad (DTMF)
6666

67-
This function is provided when `dtmf` is included in the assistant's list of available tools (see configuration options [here](/api-reference/assistants/create#request.body.model.openai.tools.dtmf)). The assistant will be able to enter digits on the keypad.
67+
This function is provided when `dtmf` is included in the assistant's list of available tools (see configuration options [here](/api-reference/assistants/create#request.body.model.openai.tools.sms)). The assistant will be able to enter digits on the keypad.
6868

6969
```json
7070
{
@@ -85,6 +85,35 @@ This function is provided when `dtmf` is included in the assistant's list of ava
8585
}
8686
}
8787
```
88+
89+
#### Send Text
90+
91+
This function is provided when `sms` is included in the assistant’s list of available tool (see configuration options [here](/api-reference/assistants/create#request.body.model.openai.tools.dtmf)). The assistant can use this function to send SMS messages using a configured Twilio account.
92+
93+
```json
94+
{
95+
"model": {
96+
"provider": "openai",
97+
"model": "gpt-3.5-turbo",
98+
"messages": [
99+
{
100+
"role": "system",
101+
"content": "You are an assistant. When the user asks you to send a text message, use the sms function."
102+
}
103+
],
104+
"tools": [
105+
{
106+
"type": "sms",
107+
"metadata": {
108+
"from": "+15551234567"
109+
}
110+
}
111+
]
112+
}
113+
}
114+
```
115+
116+
88117
<Accordion title="Custom Functions: Deprecated">
89118
### Custom Functions
90119

0 commit comments

Comments
 (0)