Update AI agent settings
curl --request PATCH \
--url https://productlane.com/api/v2/settings/ai-agent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"welcome_message": "<string>",
"example_questions": [
"<string>"
],
"create_linear_issues": true,
"generate_weekly_summary": true,
"drafts_enabled": true,
"drafts_close_the_loop_enabled": true,
"routines_enabled": true,
"deploy_slack": true,
"deploy_teams": true,
"deploy_api": true,
"deploy_support_portal": true,
"deploy_feature_requests": true
}
'import requests
url = "https://productlane.com/api/v2/settings/ai-agent"
payload = {
"enabled": True,
"welcome_message": "<string>",
"example_questions": ["<string>"],
"create_linear_issues": True,
"generate_weekly_summary": True,
"drafts_enabled": True,
"drafts_close_the_loop_enabled": True,
"routines_enabled": True,
"deploy_slack": True,
"deploy_teams": True,
"deploy_api": True,
"deploy_support_portal": True,
"deploy_feature_requests": True
}
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({
enabled: true,
welcome_message: '<string>',
example_questions: ['<string>'],
create_linear_issues: true,
generate_weekly_summary: true,
drafts_enabled: true,
drafts_close_the_loop_enabled: true,
routines_enabled: true,
deploy_slack: true,
deploy_teams: true,
deploy_api: true,
deploy_support_portal: true,
deploy_feature_requests: true
})
};
fetch('https://productlane.com/api/v2/settings/ai-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://productlane.com/api/v2/settings/ai-agent",
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([
'enabled' => true,
'welcome_message' => '<string>',
'example_questions' => [
'<string>'
],
'create_linear_issues' => true,
'generate_weekly_summary' => true,
'drafts_enabled' => true,
'drafts_close_the_loop_enabled' => true,
'routines_enabled' => true,
'deploy_slack' => true,
'deploy_teams' => true,
'deploy_api' => true,
'deploy_support_portal' => true,
'deploy_feature_requests' => true
]),
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 := "https://productlane.com/api/v2/settings/ai-agent"
payload := strings.NewReader("{\n \"enabled\": true,\n \"welcome_message\": \"<string>\",\n \"example_questions\": [\n \"<string>\"\n ],\n \"create_linear_issues\": true,\n \"generate_weekly_summary\": true,\n \"drafts_enabled\": true,\n \"drafts_close_the_loop_enabled\": true,\n \"routines_enabled\": true,\n \"deploy_slack\": true,\n \"deploy_teams\": true,\n \"deploy_api\": true,\n \"deploy_support_portal\": true,\n \"deploy_feature_requests\": true\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("https://productlane.com/api/v2/settings/ai-agent")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"welcome_message\": \"<string>\",\n \"example_questions\": [\n \"<string>\"\n ],\n \"create_linear_issues\": true,\n \"generate_weekly_summary\": true,\n \"drafts_enabled\": true,\n \"drafts_close_the_loop_enabled\": true,\n \"routines_enabled\": true,\n \"deploy_slack\": true,\n \"deploy_teams\": true,\n \"deploy_api\": true,\n \"deploy_support_portal\": true,\n \"deploy_feature_requests\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://productlane.com/api/v2/settings/ai-agent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"welcome_message\": \"<string>\",\n \"example_questions\": [\n \"<string>\"\n ],\n \"create_linear_issues\": true,\n \"generate_weekly_summary\": true,\n \"drafts_enabled\": true,\n \"drafts_close_the_loop_enabled\": true,\n \"routines_enabled\": true,\n \"deploy_slack\": true,\n \"deploy_teams\": true,\n \"deploy_api\": true,\n \"deploy_support_portal\": true,\n \"deploy_feature_requests\": true\n}"
response = http.request(request)
puts response.read_body{
"enabled": true,
"welcome_message": "<string>",
"example_questions": [
"<string>"
],
"custom_instructions": "<string>",
"create_linear_issues": true,
"generate_weekly_summary": true,
"auto_replies_enabled": true,
"drafts_enabled": true,
"drafts_trigger": "<string>",
"drafts_close_the_loop_enabled": true,
"drafts_custom_prompt": "<string>",
"routines_enabled": true,
"routines_prompt": "<string>",
"deployed_on": {
"slack": true,
"teams": true,
"api": true,
"support_portal": true,
"feature_requests": true
},
"updated_at": "<string>"
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Settings
Update AI agent settings
Update the agent’s drafts, routines, and deployment surfaces. Enabling a surface makes the agent answer customers there. Instructions, prompts, and the auto-reply switch are read-only here. Requires the admin scope.
PATCH
/
settings
/
ai-agent
Update AI agent settings
curl --request PATCH \
--url https://productlane.com/api/v2/settings/ai-agent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"welcome_message": "<string>",
"example_questions": [
"<string>"
],
"create_linear_issues": true,
"generate_weekly_summary": true,
"drafts_enabled": true,
"drafts_close_the_loop_enabled": true,
"routines_enabled": true,
"deploy_slack": true,
"deploy_teams": true,
"deploy_api": true,
"deploy_support_portal": true,
"deploy_feature_requests": true
}
'import requests
url = "https://productlane.com/api/v2/settings/ai-agent"
payload = {
"enabled": True,
"welcome_message": "<string>",
"example_questions": ["<string>"],
"create_linear_issues": True,
"generate_weekly_summary": True,
"drafts_enabled": True,
"drafts_close_the_loop_enabled": True,
"routines_enabled": True,
"deploy_slack": True,
"deploy_teams": True,
"deploy_api": True,
"deploy_support_portal": True,
"deploy_feature_requests": True
}
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({
enabled: true,
welcome_message: '<string>',
example_questions: ['<string>'],
create_linear_issues: true,
generate_weekly_summary: true,
drafts_enabled: true,
drafts_close_the_loop_enabled: true,
routines_enabled: true,
deploy_slack: true,
deploy_teams: true,
deploy_api: true,
deploy_support_portal: true,
deploy_feature_requests: true
})
};
fetch('https://productlane.com/api/v2/settings/ai-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://productlane.com/api/v2/settings/ai-agent",
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([
'enabled' => true,
'welcome_message' => '<string>',
'example_questions' => [
'<string>'
],
'create_linear_issues' => true,
'generate_weekly_summary' => true,
'drafts_enabled' => true,
'drafts_close_the_loop_enabled' => true,
'routines_enabled' => true,
'deploy_slack' => true,
'deploy_teams' => true,
'deploy_api' => true,
'deploy_support_portal' => true,
'deploy_feature_requests' => true
]),
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 := "https://productlane.com/api/v2/settings/ai-agent"
payload := strings.NewReader("{\n \"enabled\": true,\n \"welcome_message\": \"<string>\",\n \"example_questions\": [\n \"<string>\"\n ],\n \"create_linear_issues\": true,\n \"generate_weekly_summary\": true,\n \"drafts_enabled\": true,\n \"drafts_close_the_loop_enabled\": true,\n \"routines_enabled\": true,\n \"deploy_slack\": true,\n \"deploy_teams\": true,\n \"deploy_api\": true,\n \"deploy_support_portal\": true,\n \"deploy_feature_requests\": true\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("https://productlane.com/api/v2/settings/ai-agent")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"welcome_message\": \"<string>\",\n \"example_questions\": [\n \"<string>\"\n ],\n \"create_linear_issues\": true,\n \"generate_weekly_summary\": true,\n \"drafts_enabled\": true,\n \"drafts_close_the_loop_enabled\": true,\n \"routines_enabled\": true,\n \"deploy_slack\": true,\n \"deploy_teams\": true,\n \"deploy_api\": true,\n \"deploy_support_portal\": true,\n \"deploy_feature_requests\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://productlane.com/api/v2/settings/ai-agent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"welcome_message\": \"<string>\",\n \"example_questions\": [\n \"<string>\"\n ],\n \"create_linear_issues\": true,\n \"generate_weekly_summary\": true,\n \"drafts_enabled\": true,\n \"drafts_close_the_loop_enabled\": true,\n \"routines_enabled\": true,\n \"deploy_slack\": true,\n \"deploy_teams\": true,\n \"deploy_api\": true,\n \"deploy_support_portal\": true,\n \"deploy_feature_requests\": true\n}"
response = http.request(request)
puts response.read_body{
"enabled": true,
"welcome_message": "<string>",
"example_questions": [
"<string>"
],
"custom_instructions": "<string>",
"create_linear_issues": true,
"generate_weekly_summary": true,
"auto_replies_enabled": true,
"drafts_enabled": true,
"drafts_trigger": "<string>",
"drafts_close_the_loop_enabled": true,
"drafts_custom_prompt": "<string>",
"routines_enabled": true,
"routines_prompt": "<string>",
"deployed_on": {
"slack": true,
"teams": true,
"api": true,
"support_portal": true,
"feature_requests": true
},
"updated_at": "<string>"
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Maximum string length:
2000Maximum array length:
10Maximum string length:
255Available options:
EVERY_INBOUND_MESSAGE, NEW_THREADS_ONLY Response
Successful response
One of EVERY_INBOUND_MESSAGE, FIRST_MESSAGE_ONLY, MANUAL.
Show child attributes
Show child attributes