Aller au contenu

Référence des outils

Action

Agir sur les sources et les règles. 8 outils, avec leurs paramètres et des exemples d’appel.

Outils d’action de l’agent Piqline. Dans le chat, chacun demande une confirmation. Par l’API, l’appel direct avec le scope act vaut confirmation : n’appelez ces outils qu’après l’accord de la personne concernée.

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.

subscribeSource#

S’abonne à une nouvelle source. Lance une vraie collecte (jobs de lecture, quotas des plateformes).

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
platforminstagram | tiktok | youtube | twitter | x | threads | linkedin | reddit | …Oui
targetstringNonHandle, URL, mot-clé Marketplace, ou communauté. Une recherche LinkedIn peut s’appuyer sur query.
titlestringNon
facebookKindpage | group | marketplaceNonFacebook : page publique, groupe public, ou recherche Marketplace.
tiktokKindprofile | liveNonTikTok only. live = /v1/tiktok/user/live probe, not profile posts.
linkedinKindcompany | searchNonLinkedIn only. search = recurring public-post search on query.
locationstringNonMarketplace : ville ou zone.
latnumberNon
lngnumberNon
radiusKmnumberNon
minPricenumberNon
maxPricenumberNon
sortBystringNon
conditionstringNon
dateListedstringNon
categoryIdstringNon
deliverystringNon
availabilitystringNon
datePostedlast-hour | last-day | last-week | last-month | last-yearNonLinkedIn search only. Window of each run, default last-week.
querystringNonMarketplace keyword or LinkedIn search query.
intentstringNonLinkedIn search: the user's ask, kept on the source.
detectionEventhiring | funding | launch | expansion | reorg | open_to_work | leaving | interested_comment | …Non
detectionRoundsarray<pre_seed | seed | series_a | series_b | series_c | series_d | bridge | extension | …>Non
detectionSectorsarray<string>Non
detectionGeosarray<string>Non
detectionVocabularyarray<string>Non
investigationobjectNonLot 7: pass the investigation object from probeLinkedinWatch unchanged.
trackItemVariationsbooleanNonMarketplace / listing only. True only if the user explicitly asked to follow price, text or presence on the same item (T8). Default false: new items only.
enrichFromUrlbooleanNonListing / web only. Open each item URL to read the page text. Default false. One credit per opened page. Set true only if the user explicitly asked.
curl -s https://piqline.com/api/v1/tools/subscribeSource \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"instagram"}'

subscribeSources#

S’abonne à plusieurs sources en un appel et renvoie un résultat par source.

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
sourcesarray<object>Oui
curl -s https://piqline.com/api/v1/tools/subscribeSources \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sources":[{"platform":"instagram"}]}'

unsubscribeSource#

Arrête le suivi d’une source. Les items déjà collectés restent dans le corpus.

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
sourceIdstringOui
labelstringNonNom lisible de la source (celui de listSources). Obligatoire pour la carte de confirmation.
curl -s https://piqline.com/api/v1/tools/unsubscribeSource \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sourceId":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70"}'

setHomeDashboard#

Définit un board enregistré comme accueil du workspace.

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
dashboardIdstringOui
titlestringNonTitre du tableau, pour la carte de confirmation. Jamais l’identifiant seul.
curl -s https://piqline.com/api/v1/tools/setHomeDashboard \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dashboardId":"5a0e9c1f-2b7d-4e63-8f14-d3c8a6b92e70"}'

upsertSignalRule#

Crée ou met à jour une règle de signal de persistance : elle se déclenche quand un item reste en ligne plus longtemps que le seuil.

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
ruleIdstringNon
thresholdDaysintegerNon
staleGraceDaysintegerNon
itemTypesarray<post | video | article | listing | job_offer>Non
enabledbooleanNon
curl -s https://piqline.com/api/v1/tools/upsertSignalRule \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

upsertQuestionRule#

Crée ou met à jour une question permanente : une phrase en langage courant que Jev pose sur chaque nouvel item des sources du workspace. Le seuil de probabilité fait le signal.

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
ruleIdstringNon
questionstringOui
minProbabilitynumberNon
itemTypesarray<post | video | article | listing | job_offer>Non
enabledbooleanNon
curl -s https://piqline.com/api/v1/tools/upsertQuestionRule \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question":"texte"}'

startInvestigation#

Met en file une enquête Edge en arrière-plan pour ce workspace (owner ou admin).

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

Type : Action. Scopes : act.

ParamètreTypeRequisDescription
intentstringOuiNeed in one sentence, from sujets / zones / langues already noted
perimeterobjectNonOptional sectors, geos, accounts, seed URLs from the need profile
curl -s https://piqline.com/api/v1/tools/startInvestigation \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"intent":"texte"}'

startAdCollection#

Lance une collecte publicitaire sur un annonceur (nom ou domaine) ou un mot-clé : lit Meta, TikTok, Google et LinkedIn, met chaque annonce au même format, puis lit l’angle, l’offre, l’audience et le ton. Dépense des crédits (une page par bibliothèque, plus la résolution de l’annonceur) ; confirmation dans le chat, owner ou admin.

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

Type : Action. Scopes : act, write, explore.

ParamètreTypeRequisDescription
querystringOuiNom ou domaine de l'annonceur (kind advertiser), ou mot-clé (kind keyword).
kindadvertiser | keywordNon
librariesarray<meta | tiktok | google | linkedin>NonBibliothèques à lire. Google ne cherche pas par mot-clé.
countrystringNonCode pays ISO. Restreint Meta et LinkedIn, choisit l'entité annonceur de Google (FR par défaut). Courants : FR, BE, CH, LU, DE, ES, IT, NL, GB, IE, US, CA, MA, SN, CI, AU, BR, JP.
depthapercu | largeNonapercu : une page par bibliothèque. large : jusqu'à quatre pages (plus long).
curl -s https://piqline.com/api/v1/tools/startAdCollection \
  -H "Authorization: Bearer $PIQLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"levée de fonds"}'

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