Tool-Referenz
Schreiben
Im Workspace schreiben. 12 Tools, mit ihren Parametern und Aufrufbeispielen.
Tools des Piqline-Agenten, die Objekte des Workspace erstellen oder ändern. Sie verlangen den Scope write.
Jeder Aufruf ist eine POST-Anfrage mit dem Schlüssel in Authorization: Bearer. Der JSON-Body ist die Eingabe des Tools, und die Antwort hat die Form { "tool": "nom", "output": … }. Die Beispiele enthalten nur die erforderlichen Parameter. Die Parameterbeschreibungen sind die, die die Agenten lesen.
updateWorkspaceProfile#
Speichert das Bedarfsprofil des Workspace: Ziele, Themen, Entitäten, Sprachen, Regionen, Niveau, Rhythmus.
POSThttps://piqline.com/api/v1/tools/updateWorkspaceProfile
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
needs | object | Nein | |
stage | string | Nein | |
onboarding_status | not_started | in_progress | done | skipped | Nein | |
summary | string | Nein |
curl -s https://piqline.com/api/v1/tools/updateWorkspaceProfile \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch("https://piqline.com/api/v1/tools/updateWorkspaceProfile", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/updateWorkspaceProfile",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={},
)
output = response.json()["output"]followEntity#
Folgt einem Unternehmen, einer Marke oder einem öffentlichen Konto (nie einer Privatperson), um seine Items und Erwähnungen zu verknüpfen.
POSThttps://piqline.com/api/v1/tools/followEntity
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
name | string | Ja | |
kind | company | brand | account | Nein | |
siren | string | Nein | |
domain | string | Nein | |
handles | array<object> | Nein | |
role | self | competitor | client | target | other | Nein | |
aliases | array<string> | Nein |
curl -s https://piqline.com/api/v1/tools/followEntity \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"texte"}'const response = await fetch("https://piqline.com/api/v1/tools/followEntity", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "texte"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/followEntity",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"name": "texte",
},
)
output = response.json()["output"]unfollowEntity#
Beendet das Folgen einer Entität. Ihre bestehenden Verknüpfungen bleiben.
POSThttps://piqline.com/api/v1/tools/unfollowEntity
Typ: Löschen. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
entityId | string | Ja |
curl -s https://piqline.com/api/v1/tools/unfollowEntity \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entityId":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70"}'const response = await fetch("https://piqline.com/api/v1/tools/unfollowEntity", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"entityId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/unfollowEntity",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"entityId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
},
)
output = response.json()["output"]saveBookmark#
Speichert ein Lesezeichen im Tresor des Workspace. Eine http(s)-URL wird zum Lesen, Archivieren und Vektorisieren eingereiht.
POSThttps://piqline.com/api/v1/tools/saveBookmark
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
title | string | Ja | |
href | string | Ja | |
kind | item | source | signal | graph | search | document | board | chat | Nein | |
subtitle | string | Nein | |
note | string | Nein | |
tags | array<string> | Nein | |
origin | dashboard | api | slack | whatsapp | mail | other | Nein | |
originRef | string | Nein |
curl -s https://piqline.com/api/v1/tools/saveBookmark \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"texte","href":"texte"}'const response = await fetch("https://piqline.com/api/v1/tools/saveBookmark", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"title": "texte",
"href": "texte"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/saveBookmark",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"title": "texte",
"href": "texte",
},
)
output = response.json()["output"]setWatchContract#
Setzt einen Watch-Vertrag auf eine Quelle: Die Watch-Seite zeigt dann nur noch die passenden Items. Deterministisch, ohne Modell.
POSThttps://piqline.com/api/v1/tools/setWatchContract
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
sourceId | string | Ja | |
intent | string | Ja | What this workspace watches on the source, in the person's words. |
include | array<string> | Nein | Keep an item only if it contains at least one of these terms (whole word, any case or accent). |
exclude | array<string> | Nein | Drop an item containing any of these terms. |
event | hiring | funding | launch | expansion | reorg | open_to_work | leaving | interested_comment | … | Nein | Business event the item must announce (hiring, funding, launch…), read from its text. |
sectors | array<string> | Nein |
curl -s https://piqline.com/api/v1/tools/setWatchContract \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sourceId":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70","intent":"texte"}'const response = await fetch("https://piqline.com/api/v1/tools/setWatchContract", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"sourceId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"intent": "texte"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/setWatchContract",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"sourceId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"intent": "texte",
},
)
output = response.json()["output"]removeWatchContract#
Entfernt den Watch-Vertrag einer Quelle: Alle Items erscheinen wieder.
POSThttps://piqline.com/api/v1/tools/removeWatchContract
Typ: Löschen. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
sourceId | string | Ja |
curl -s https://piqline.com/api/v1/tools/removeWatchContract \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sourceId":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70"}'const response = await fetch("https://piqline.com/api/v1/tools/removeWatchContract", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"sourceId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/removeWatchContract",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"sourceId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
},
)
output = response.json()["output"]initReaderInterview#
Speichert die zwei Antworten des Lese-Interviews (Wesentliches oder Detail, Hauptabsicht) im Leseprofil.
POSThttps://piqline.com/api/v1/tools/initReaderInterview
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
density | essentiel | detail | Ja | |
intent | read-arrivals | spot-change | watch-entities | compare | measure-coverage | control-sources | analyze-market | prepare-output | … | Ja |
curl -s https://piqline.com/api/v1/tools/initReaderInterview \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"density":"essentiel","intent":"read-arrivals"}'const response = await fetch("https://piqline.com/api/v1/tools/initReaderInterview", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"density": "essentiel",
"intent": "read-arrivals"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/initReaderInterview",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"density": "essentiel",
"intent": "read-arrivals",
},
)
output = response.json()["output"]applyBoardChange#
Wendet bereits freigegebene Änderungen auf ein Board an.
POSThttps://piqline.com/api/v1/tools/applyBoardChange
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
dashboardId | string | Nein | |
changes | array<object> | Ja |
curl -s https://piqline.com/api/v1/tools/applyBoardChange \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"changes":[{"id":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70","kind":"add","widgetId":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70","reason":"texte","title":"texte"}]}'const response = await fetch("https://piqline.com/api/v1/tools/applyBoardChange", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"changes": [
{
"id": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"kind": "add",
"widgetId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"reason": "texte",
"title": "texte"
}
]
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/applyBoardChange",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"changes": [
{
"id": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"kind": "add",
"widgetId": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"reason": "texte",
"title": "texte",
},
],
},
)
output = response.json()["output"]buildDashboard#
Baut ein Board direkt, ohne den Widget-Picker.
POSThttps://piqline.com/api/v1/tools/buildDashboard
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
spec | object | Ja | |
save | boolean | Nein | Persist the board when the user is owner/admin. |
curl -s https://piqline.com/api/v1/tools/buildDashboard \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"spec":{"version":1,"title":"texte","description":"texte","period":"1h","widgets":[{"kind":"texte","title":"texte"}]}}'const response = await fetch("https://piqline.com/api/v1/tools/buildDashboard", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"spec": {
"version": 1,
"title": "texte",
"description": "texte",
"period": "1h",
"widgets": [
{
"kind": "texte",
"title": "texte"
}
]
}
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/buildDashboard",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"spec": {
"version": 1,
"title": "texte",
"description": "texte",
"period": "1h",
"widgets": [
{
"kind": "texte",
"title": "texte",
},
],
},
},
)
output = response.json()["output"]saveWorkspaceTable#
Erstellt eine Workspace-Tabelle, gefüllt mit den nützlichen Spalten.
POSThttps://piqline.com/api/v1/tools/saveWorkspaceTable
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
name | string | Ja | |
comment | string | Ja | |
columns | array<object> | Ja | |
rows | array<object> | Ja |
curl -s https://piqline.com/api/v1/tools/saveWorkspaceTable \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"texte","comment":"texte","columns":[{"id":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70","name":"texte","type":"text"}],"rows":[{}]}'const response = await fetch("https://piqline.com/api/v1/tools/saveWorkspaceTable", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "texte",
"comment": "texte",
"columns": [
{
"id": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"name": "texte",
"type": "text"
}
],
"rows": [
{}
]
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/saveWorkspaceTable",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"name": "texte",
"comment": "texte",
"columns": [
{
"id": "5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70",
"name": "texte",
"type": "text",
},
],
"rows": [
{},
],
},
)
output = response.json()["output"]writeFromWatch#
Schreibt einen Text aus den Items der Beobachtungen des Workspace (Artikel, LinkedIn-Beitrag, X-Thread, Instagram-Bildunterschrift, Newsletter, Videoskript, Pressemitteilung, SEO-Artikel, E-Mail, Zusammenfassung), in neun Sprachen, jede Tatsache mit [n] auf ihre Quelle belegt; der Text kommt zu den Entwürfen. Verbraucht einige Credits.
POSThttps://piqline.com/api/v1/tools/writeFromWatch
Typ: Schreiben. Scopes: write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
instruction | string | Ja | What to write and for whom, in plain words, e.g. « Le post de la semaine sur ce qui a bougé dans la cosmétique ». |
example | string | Nein | Optional sample text whose style to follow. |
scope | object | Nein | Which items of the workspace watches to write from: sources, topics, keywords, platforms, item types or item ids, period and depth. Default: the last 7 days, 15 items. |
pen | object | Nein | Format (article, linkedin, x_thread, instagram, newsletter, video_script, press_release, seo_brief, email, summary), goal, tone, framework, length, voice, language (fr, en, es, de, it, pt, nl, he, ar), creativity, variants and options. |
save | boolean | Nein | Keep the text in the workspace drafts (default). false: return it only. |
curl -s https://piqline.com/api/v1/tools/writeFromWatch \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"instruction":"texte"}'const response = await fetch("https://piqline.com/api/v1/tools/writeFromWatch", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"instruction": "texte"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/writeFromWatch",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"instruction": "texte",
},
)
output = response.json()["output"]setTableFeed#
Erweckt eine Tabelle zum Leben: Sobald ein Item des Korpus zur Regel passt, wird es nach Bestätigung hinzugefügt. status=paused stoppt das Füllen.
POSThttps://piqline.com/api/v1/tools/setTableFeed
Typ: Aktion. Scopes: act, write.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
schema | string | Nein | |
name | string | Ja | |
status | live | paused | Nein | |
prompt | string | Ja | The person's words, unchanged. |
summary | string | Ja | What you understood, in plain French, one sentence. |
sourceIds | array<string> | Nein | |
sourceLabels | array<string> | Nein | |
query | string | Nein | |
platform | string | Nein | |
itemType | post | video | article | listing | job_offer | Nein | |
alreadyMatching | integer | Nein | How many items searchItems found just now. |
curl -s https://piqline.com/api/v1/tools/setTableFeed \
-H "Authorization: Bearer $PIQLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"texte","prompt":"texte","summary":"texte"}'const response = await fetch("https://piqline.com/api/v1/tools/setTableFeed", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.PIQLINE_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "texte",
"prompt": "texte",
"summary": "texte"
}),
});
const { output } = await response.json();import os
import requests
response = requests.post(
"https://piqline.com/api/v1/tools/setTableFeed",
headers={"Authorization": "Bearer " + os.environ["PIQLINE_API_KEY"]},
json={
"name": "texte",
"prompt": "texte",
"summary": "texte",
},
)
output = response.json()["output"]