Update Freshdesk settings
curl --request PATCH \
--url http://localhost:8080/integrations/freshdesk/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"auto_handle_all_incoming_chats": true,
"default_group_id": "<string>",
"handoff_agent_id": "<string>",
"handoff_group_id": "<string>",
"handoff_marker_property_name": "<string>",
"assist_mode_footer_message": "<string>",
"ai_agent_ids": [
"<string>"
]
}
'import requests
url = "http://localhost:8080/integrations/freshdesk/settings"
payload = {
"auto_handle_all_incoming_chats": True,
"default_group_id": "<string>",
"handoff_agent_id": "<string>",
"handoff_group_id": "<string>",
"handoff_marker_property_name": "<string>",
"assist_mode_footer_message": "<string>",
"ai_agent_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
auto_handle_all_incoming_chats: true,
default_group_id: '<string>',
handoff_agent_id: '<string>',
handoff_group_id: '<string>',
handoff_marker_property_name: '<string>',
assist_mode_footer_message: '<string>',
ai_agent_ids: ['<string>']
})
};
fetch('http://localhost:8080/integrations/freshdesk/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/integrations/freshdesk/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'auto_handle_all_incoming_chats' => true,
'default_group_id' => '<string>',
'handoff_agent_id' => '<string>',
'handoff_group_id' => '<string>',
'handoff_marker_property_name' => '<string>',
'assist_mode_footer_message' => '<string>',
'ai_agent_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/integrations/freshdesk/settings"
payload := strings.NewReader("{\n \"auto_handle_all_incoming_chats\": true,\n \"default_group_id\": \"<string>\",\n \"handoff_agent_id\": \"<string>\",\n \"handoff_group_id\": \"<string>\",\n \"handoff_marker_property_name\": \"<string>\",\n \"assist_mode_footer_message\": \"<string>\",\n \"ai_agent_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8080/integrations/freshdesk/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"auto_handle_all_incoming_chats\": true,\n \"default_group_id\": \"<string>\",\n \"handoff_agent_id\": \"<string>\",\n \"handoff_group_id\": \"<string>\",\n \"handoff_marker_property_name\": \"<string>\",\n \"assist_mode_footer_message\": \"<string>\",\n \"ai_agent_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/freshdesk/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"auto_handle_all_incoming_chats\": true,\n \"default_group_id\": \"<string>\",\n \"handoff_agent_id\": \"<string>\",\n \"handoff_group_id\": \"<string>\",\n \"handoff_marker_property_name\": \"<string>\",\n \"assist_mode_footer_message\": \"<string>\",\n \"ai_agent_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"id": "<string>",
"org_id": "<string>",
"domain": "<string>",
"agent_id": "<string>",
"enabled": true,
"auto_handle_all_incoming_chats": true,
"default_group_id": "<string>",
"handoff_behavior": "unassign",
"handoff_agent_id": "<string>",
"handoff_group_id": "<string>",
"handoff_marker_property_name": "<string>",
"assist_mode_footer_message": "<string>",
"ai_agent_ids": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"warnings": [
"<string>"
]
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Freshdesk Integration
Update Freshdesk settings
Change Freshdesk ticket intake, handoff routing and marker field, extra AI agents, or the note footer. Omitted fields keep their value.
PATCH
/
integrations
/
freshdesk
/
settings
Update Freshdesk settings
curl --request PATCH \
--url http://localhost:8080/integrations/freshdesk/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"auto_handle_all_incoming_chats": true,
"default_group_id": "<string>",
"handoff_agent_id": "<string>",
"handoff_group_id": "<string>",
"handoff_marker_property_name": "<string>",
"assist_mode_footer_message": "<string>",
"ai_agent_ids": [
"<string>"
]
}
'import requests
url = "http://localhost:8080/integrations/freshdesk/settings"
payload = {
"auto_handle_all_incoming_chats": True,
"default_group_id": "<string>",
"handoff_agent_id": "<string>",
"handoff_group_id": "<string>",
"handoff_marker_property_name": "<string>",
"assist_mode_footer_message": "<string>",
"ai_agent_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
auto_handle_all_incoming_chats: true,
default_group_id: '<string>',
handoff_agent_id: '<string>',
handoff_group_id: '<string>',
handoff_marker_property_name: '<string>',
assist_mode_footer_message: '<string>',
ai_agent_ids: ['<string>']
})
};
fetch('http://localhost:8080/integrations/freshdesk/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/integrations/freshdesk/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'auto_handle_all_incoming_chats' => true,
'default_group_id' => '<string>',
'handoff_agent_id' => '<string>',
'handoff_group_id' => '<string>',
'handoff_marker_property_name' => '<string>',
'assist_mode_footer_message' => '<string>',
'ai_agent_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/integrations/freshdesk/settings"
payload := strings.NewReader("{\n \"auto_handle_all_incoming_chats\": true,\n \"default_group_id\": \"<string>\",\n \"handoff_agent_id\": \"<string>\",\n \"handoff_group_id\": \"<string>\",\n \"handoff_marker_property_name\": \"<string>\",\n \"assist_mode_footer_message\": \"<string>\",\n \"ai_agent_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8080/integrations/freshdesk/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"auto_handle_all_incoming_chats\": true,\n \"default_group_id\": \"<string>\",\n \"handoff_agent_id\": \"<string>\",\n \"handoff_group_id\": \"<string>\",\n \"handoff_marker_property_name\": \"<string>\",\n \"assist_mode_footer_message\": \"<string>\",\n \"ai_agent_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/integrations/freshdesk/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"auto_handle_all_incoming_chats\": true,\n \"default_group_id\": \"<string>\",\n \"handoff_agent_id\": \"<string>\",\n \"handoff_group_id\": \"<string>\",\n \"handoff_marker_property_name\": \"<string>\",\n \"assist_mode_footer_message\": \"<string>\",\n \"ai_agent_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"connected": true,
"settings": {
"id": "<string>",
"org_id": "<string>",
"domain": "<string>",
"agent_id": "<string>",
"enabled": true,
"auto_handle_all_incoming_chats": true,
"default_group_id": "<string>",
"handoff_behavior": "unassign",
"handoff_agent_id": "<string>",
"handoff_group_id": "<string>",
"handoff_marker_property_name": "<string>",
"assist_mode_footer_message": "<string>",
"ai_agent_ids": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"warnings": [
"<string>"
]
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Handle every incoming ticket, not only those assigned to the AI agent or default group
Group whose tickets the AI handles when not handling all tickets
Minimum string length:
1Where a ticket goes when the AI hands off: unassign, freshdesk_automation, assign_to_agent, assign_to_group
Available options:
unassign, freshdesk_automation, assign_to_agent, assign_to_group Minimum string length:
1Minimum string length:
1Custom ticket checkbox field (cf_ name) set to true on handoff
Minimum string length:
1Footer appended to assist-mode private notes
Additional Freshdesk agent ids the AI acts as; replaces the list
Maximum array length:
25Pattern:
^\d+$Was this page helpful?