Queue feedback for the instructions
Adds a note to the queue that the next suggested instructions update is drafted from - the same queue the dashboard's Teach the AI and Request a change fill. Use it for feedback that reaches your automation outside Tracira, such as a correction typed in your own chat app.
Nothing changes on its own: the manager sees the note under the instructions, creates the draft and accepts it in the dashboard.
Pass your own id for the note as ref. Sending the same ref again replaces that note instead of adding a second one, and DELETE /api/instructions/feedback with the ref withdraws it - for example when the change was already applied or turned down in your own app.
The instructions must exist first (see POST /api/instructions); otherwise you get 404 with code: NO_INSTRUCTIONS.
https://www.tracira.com/api/instructions/feedbackwebhookTokenAuthorizationBearer <token>Workspace API token, from the Integrations page.
application/json- body
project*stringtask*stringcomment*stringWhat the AI should do differently, in plain language. This is what the draft is written from.
length <= 2000logId?|The output this feedback is about. Linked only when it belongs to your workspace; the manager can open it from the note.
author?|Who gave the feedback, shown on the note, e.g. Jeff (Telegram).
length <= 200ref?|Your own id for this note, used to replace or withdraw it later.
length <= 200Queued.
application/json- response
ok?booleanat?stringWhen the note was queued; also identifies it.
date-timequeuedCount?integerNotes now waiting to be drafted (at most 20; the oldest drop off).
curl -X POST 'https://www.tracira.com/api/instructions/feedback' \ -H 'Content-Type: application/json' \ -d '{ "project": "Customer Support", "task": "Email reply", "comment": "Always mention the 30-day return policy when someone asks about refunds.", "author": "Jeff (Telegram)", "ref": "proposal-42", "logId": "b7d1c9e4-3f2a-4d5b-9c81-0a6e7f2b4d13"}'{ "ok": true, "at": "2019-08-24T14:15:22Z", "queuedCount": 0}