API pentru asistentul AI personalizat Online
Propriul tău asistent AI, care răspunde pe baza conținutului TĂU și a datelor NOASTRE live despre frontieră. Dă-ne fișierele tale markdown sau indică paginile pe care le preluăm noi — le indexăm și răspundem din ele. Alege ce surse de date ale noastre poate folosi (cozi, prognoză, puncte alternative, carburanți, restricții pentru camioane, sărbători, starea drumurilor…), alege nivelul modelului (el stabilește prețul), scrie-ți propriile instrucțiuni cu substituenți {{feed.slug}} care spun exact unde apar datele noastre în răspuns și adaugă o propoziție finală proprie, atașată fiecărui răspuns. Construiește-l și testează-l la /{lang}/developers/studio, apoi apelează-l aici. Prețul unui răspuns = unitățile nivelului de model + 1 unitate pentru fiecare sursă activată (afișat în studio și în antetul X-Devapi-Units).
GET https://nakordoni.eu/api/v2/data/assistant-custom
— clasă de cotă: heavy
| Parametru | Descriere |
|---|---|
assistant_id | Your assistant id from Developers → AI Studio (required) |
q | The end-user question, plain text, max 1000 chars (required) |
lang | Answer language code — overrides the assistant default (optional) |
ppid | Checkpoint context for queue/forecast/alternatives feeds, e.g. id_13 (optional) |
origin | Origin country code for the border feed (optional) |
destination | Destination country code for the border feed (optional) |
crossing_type | Vehicle type for border/alternatives feeds: 4=car, 6=bus, 8=truck (Freight Transport), 9=truck up to 7.5 t (optional) |
country | Country context for fuel / truck-bans / holidays / road-conditions feeds (optional) |
lat | Latitude for the POI feed (optional) |
lon | Longitude for the POI feed (optional) |
Câmpurile răspunsului — în interiorul obiectului data din plicul răspunsului. [] marchează o listă, deci data.items[].name este câmpul name al fiecărui element. Un câmp este null, lipsește sau este o listă goală atunci când nu avem o valoare — niciodată un substitut.
| Câmp | Descriere |
|---|---|
data.assistant_id | Which of your assistants answered, with assistant — its name. |
data.question | The question as asked, with lang. |
data.answer | The answer, grounded on your indexed content plus the feeds you enabled. |
data.model_tier | Model tier that ran — this is what sets the price, together with the feed count. |
data.sources | Your content chunks the answer drew on, so you can cite them. |
data.feeds | Our live feeds that were actually used in this answer. |
data.feeds_skipped | Feeds enabled on the assistant but skipped because the request lacked their context — each value names the parameters to pass next time. |
data.ms | How long the answer took to generate. |
curl "https://nakordoni.eu/api/v2/data/assistant-custom?assistant_id=1&q=Should I cross tonight or in the morning?&ppid=id_13&lang=uk" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
Actualizat