Aller au contenu

Référence des outils

Écriture

Écrire dans le workspace. 11 outils, avec leurs paramètres et des exemples d’appel.

Outils de l’agent Piqline qui créent ou modifient des objets du workspace. Ils demandent le scope write.

Chaque appel est une requête POST avec la clé en Authorization: Bearer. Le corps JSON est l’entrée de l’outil, et la réponse a la forme { "tool": "nom", "output": … }. Les exemples ne portent que les paramètres requis. Les descriptions des paramètres sont celles que lisent les agents, en anglais.

updateWorkspaceProfile#

Enregistre le profil de besoin du workspace : objectifs, sujets, entités, langues, zones, niveau, rythme.

POSThttps://piqline.com/api/v1/tools/updateWorkspaceProfile

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
needsobjectNon
stagestringNon
onboarding_statusnot_started | in_progress | done | skippedNon
summarystringNon
curl -s https://piqline.com/api/v1/tools/updateWorkspaceProfile \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

followEntity#

Suit une entreprise, une marque ou un compte public (jamais une personne privée) pour lier ses items et ses mentions.

POSThttps://piqline.com/api/v1/tools/followEntity

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
namestringOui
kindcompany | brand | accountNon
sirenstringNon
domainstringNon
handlesarray<object>Non
roleself | competitor | client | target | otherNon
aliasesarray<string>Non
curl -s https://piqline.com/api/v1/tools/followEntity \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"texte"}'

unfollowEntity#

Arrête de suivre une entité. Ses liens existants restent.

POSThttps://piqline.com/api/v1/tools/unfollowEntity

Type : Suppression. Scopes : write.

ParamètreTypeRequisDescription
entityIdstringOui
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"}'

saveBookmark#

Enregistre un signet dans le coffre du workspace. Une URL http(s) est mise en file pour lecture, persistance et vectorisation.

POSThttps://piqline.com/api/v1/tools/saveBookmark

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
titlestringOui
hrefstringOui
kinditem | source | signal | graph | search | document | board | chatNon
subtitlestringNon
notestringNon
tagsarray<string>Non
origindashboard | api | slack | whatsapp | mail | otherNon
originRefstringNon
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"}'

setWatchContract#

Pose un contrat de veille sur une source : la page de veille n’affiche plus que les items qui correspondent. Déterministe, sans modèle.

POSThttps://piqline.com/api/v1/tools/setWatchContract

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
sourceIdstringOui
intentstringOuiWhat this workspace watches on the source, in the person's words.
includearray<string>NonKeep an item only if it contains at least one of these terms (whole word, any case or accent).
excludearray<string>NonDrop an item containing any of these terms.
eventhiring | funding | launch | expansion | reorg | open_to_work | leaving | interested_comment | …NonBusiness event the item must announce (hiring, funding, launch…), read from its text.
sectorsarray<string>Non
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"}'

removeWatchContract#

Retire le contrat de veille d’une source : tous les items réapparaissent.

POSThttps://piqline.com/api/v1/tools/removeWatchContract

Type : Suppression. Scopes : write.

ParamètreTypeRequisDescription
sourceIdstringOui
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"}'

initReaderInterview#

Enregistre les deux réponses de l’entretien de lecture (essentiel ou détail, intention principale) sur le profil de lecture.

POSThttps://piqline.com/api/v1/tools/initReaderInterview

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
densityessentiel | detailOui
intentread-arrivals | spot-change | watch-entities | compare | measure-coverage | control-sources | analyze-market | prepare-output | …Oui
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"}'

applyBoardChange#

Applique à un board des modifications déjà validées.

POSThttps://piqline.com/api/v1/tools/applyBoardChange

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
dashboardIdstringNon
changesarray<object>Oui
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"}]}'

buildDashboard#

Assemble un board directement, sans passer par le panneau de choix de widgets.

POSThttps://piqline.com/api/v1/tools/buildDashboard

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
specobjectOui
savebooleanNonPersist 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"}]}}'

saveWorkspaceTable#

Crée une table du workspace, remplie des colonnes utiles.

POSThttps://piqline.com/api/v1/tools/saveWorkspaceTable

Type : Écriture. Scopes : write.

ParamètreTypeRequisDescription
namestringOui
commentstringOui
columnsarray<object>Oui
rowsarray<object>Oui
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":[{}]}'

setTableFeed#

Fait vivre une table : dès qu’un item du corpus correspond à la règle, il s’ajoute, après confirmation. status=paused arrête le remplissage.

POSThttps://piqline.com/api/v1/tools/setTableFeed

Type : Action. Scopes : act, write.

ParamètreTypeRequisDescription
schemastringNon
namestringOui
statuslive | pausedNon
promptstringOuiThe person's words, unchanged.
summarystringOuiWhat you understood, in plain French, one sentence.
sourceIdsarray<string>Non
sourceLabelsarray<string>Non
querystringNon
platformstringNon
itemTypepost | video | article | listing | job_offerNon
alreadyMatchingintegerNonHow 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"}'

Une question sur l’API, ou une erreur dans cette page ? Écrivez-nous.