自然言語からモニターを解析
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(例:「シンガポールと日本のどちら?」): モニターを作らず、拡張分析エージェントが回答。省略時は英語キーワードによる推定を使用し、判別できない場合は create_monitor。
利用可能なオプション:
create_monitor, dry_test, execute, analyze 精度向上のためにリフレクション処理を実行(既定 true。レイテンシは約 2 倍)。false にすると単一パスで高速に解析します。
レスポンス
200 - application/json
解析された下書き。何も保存されません。
Show child attributes
Show child attributes
⌘I

