자연어로 모니터 해석
curl --request POST \
--url https://api.pubrio.com/monitors/interpret \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"query": "monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time"
}
'import requests
url = "https://api.pubrio.com/monitors/interpret"
payload = { "query": "monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time" }
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time'
})
};
fetch('https://api.pubrio.com/monitors/interpret', 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://api.pubrio.com/monitors/interpret",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-api-key: <api-key>"
],
]);
$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://api.pubrio.com/monitors/interpret"
payload := strings.NewReader("{\n \"query\": \"monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-api-key", "<api-key>")
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.post("https://api.pubrio.com/monitors/interpret")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/monitors/interpret")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"intent": "create_monitor",
"no_intent": false,
"config": {
"detection_mode": "signal_first",
"signal_types": [
"expansions"
],
"signal_filters": [
{
"signal_type": "expansions",
"filters": {
"tos": [
"JP"
],
"stage_slug_list": [
"exploring",
"committing"
]
}
}
],
"company_filters": {},
"companies": [],
"is_company_enrichment": false,
"is_people_enrichment": true,
"people_enrichment_configs": [
{
"max_people_to_return": 5,
"filters": {
"management_levels": [
"c_suite"
]
},
"people_contact_types": [
"email-work"
]
}
],
"name": "Expansion signals → JP",
"destination_type": "email",
"destination_config": {
"emails": [
"[email protected]"
]
},
"frequency_minute": 5,
"status": "draft"
},
"missing_fields": [],
"requires_confirmation": false,
"preview": null,
"interpretation": {
"signal_types": [
"expansions"
],
"tos": [
"JP"
],
"management_levels": [
"c_suite"
],
"people_contact_types": [
"email-work"
],
"destination_email": "[email protected]",
"is_realtime": true
}
}
}모니터
모니터 해석
모니터를 만들기 전에 미리 볼 수 있습니다. 자연어 요청(어떤 언어든)을 검증된 초안 구성으로 변환하여 검토·조정한 뒤 모니터 생성에 제출할 수 있습니다. 얼마든지 안전하게 호출할 수 있습니다. 초안만 생성할 뿐 모니터를 저장하거나 알림을 보내거나 크레딧을 소모하지 않습니다. intent로 동작을 지정하며, 생략하면 영어 키워드 추론이 적용되고 인식되지 않으면 create_monitor가 기본값입니다.
POST
/
monitors
/
interpret
자연어로 모니터 해석
curl --request POST \
--url https://api.pubrio.com/monitors/interpret \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"query": "monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time"
}
'import requests
url = "https://api.pubrio.com/monitors/interpret"
payload = { "query": "monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time" }
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time'
})
};
fetch('https://api.pubrio.com/monitors/interpret', 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://api.pubrio.com/monitors/interpret",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-api-key: <api-key>"
],
]);
$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://api.pubrio.com/monitors/interpret"
payload := strings.NewReader("{\n \"query\": \"monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-api-key", "<api-key>")
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.post("https://api.pubrio.com/monitors/interpret")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/monitors/interpret")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"monitor companies expanding into Japan, get C-level people with their work email, and email alerts to [email protected] in real time\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"intent": "create_monitor",
"no_intent": false,
"config": {
"detection_mode": "signal_first",
"signal_types": [
"expansions"
],
"signal_filters": [
{
"signal_type": "expansions",
"filters": {
"tos": [
"JP"
],
"stage_slug_list": [
"exploring",
"committing"
]
}
}
],
"company_filters": {},
"companies": [],
"is_company_enrichment": false,
"is_people_enrichment": true,
"people_enrichment_configs": [
{
"max_people_to_return": 5,
"filters": {
"management_levels": [
"c_suite"
]
},
"people_contact_types": [
"email-work"
]
}
],
"name": "Expansion signals → JP",
"destination_type": "email",
"destination_config": {
"emails": [
"[email protected]"
]
},
"frequency_minute": 5,
"status": "draft"
},
"missing_fields": [],
"requires_confirmation": false,
"preview": null,
"interpretation": {
"signal_types": [
"expansions"
],
"tos": [
"JP"
],
"management_levels": [
"c_suite"
],
"people_contact_types": [
"email-work"
],
"destination_email": "[email protected]",
"is_realtime": true
}
}
}본문
application/json
자연어 요청(모든 언어). 예: "일본에 진출하는 기업을 모니터링하고 C-레벨 인물의 업무용 이메일을 받아 [email protected]으로 실시간 알림 전송". 최대 2000자.
Maximum string length:
2000수행할 동작(언어 무관). create_monitor(기본): 초안 구성 반환. dry_test: 초안과 현재 일치하는 시그널 수의 읽기 전용 카운트. execute: 초안과 미리보기를 반환하고 확인 대기로 표시(자동 활성화 안 함). analyze(예: "싱가포르 vs 일본?"): 모니터를 만들지 않고 확장 분석 에이전트가 답변. 생략 시 영어 키워드 추론 사용, 인식 불가 시 create_monitor가 기본값.
사용 가능한 옵션:
create_monitor, dry_test, execute, analyze 정확도를 높이는 리플렉션 패스 실행(기본 true, 지연 약 2배). false로 설정하면 단일 패스로 더 빠르게 해석합니다.
응답
200 - application/json
해석된 초안입니다. 아무것도 저장되지 않습니다.
Show child attributes
Show child attributes
⌘I

