Peteĩ tembiaporape peteĩha
Embojoapy peteĩ mapa workflows agent.json-pe. Peteĩteĩ clave ombohéra peteĩ tembiaporape; peteĩteĩ valor oguereko peteĩ mbopu'ãha ha tembiapo-kuéra.
{
"workflows": {
"morning-summary": {
"trigger": { "type": "schedule", "cron": "0 8 * * 1-5" },
"description": "Summarize yesterday's open conversations every weekday morning.",
"activities": [
{ "id": "summarize", "intent": "Summarize yesterday's open customer conversations and what each one is waiting on." }
]
}
}
} Ko tembiaporape omba'apo 08:00-pe ára tembiapo rehegua, bot aravo local-pe. Mba'apohára ojapo tembiapo ipersona, ikatupyry ha ijoaju tee ndive.
Tembiaporape kora
| Kora | He'iséva |
|---|---|
trigger | Tekotevẽ. Araka'épa omba'apo tembiaporape. Ehecha Mbopu'ãha-kuéra. |
description | Mba'erãpa tembiaporape. |
activities | Paso-kuéra. Ehecha Tembiapo-kuéra. |
connections | Ñembojoaju {from, to, label} ojapóva tembiapo-kuérape gráfico. __trigger__ ha'e ñepyrũ ha __emit__ paha. |
emit | Jehu ko tembiaporape omoherakuãva opa jave: peteĩ lista, térã peteĩ ñe'ẽjoaju coma rupi oñemboja'óva. Ehecha Jehu-kuéra. |
inputs | Valor oñemondóva opa jeporúpe. |
budget | {total_per_run, cost_estimate}. Peteĩ jeporu gráfico-pe, total_per_run omboguapy token osẽva; ndaupéichairõ mokõivéva ha'e ñemoha'ãnga. |
case | Ojapo tembiaporape peteĩ mba'e ipukúva peteĩteĩ yvypóra térã mba'épe g̃uarã. Ehecha Mba'e-kuéra. |
Peteĩ tembiaporape oguerekóva mbopu'ãha ha ndorekóiva tembiapo oiko porã. Peteĩ watch tembiapo'ỹre omondo ijehu ambue tembiaporápe añoite.
Mba'éichapa omba'apo peteĩ jeporu
connections'ỹre, tembiapo-kuéra omba'apo hendaitépe ha mba'apohára ojapo peteĩteĩ. Peteĩteĩ tembiapo rembiapokue oñemondo oúvape. Peteĩ tembiapo ndome'ẽiva mba'eve omohu'ã jeporu.
connections ndive, tembiapo-kuéra ojapo peteĩ gráfico. Rakã-kuéra omba'apo oñondive, ha poteĩ tembiapo mba'éichagua omba'apo modelo'ỹre: condition, loop, wait, http, command ha decide. Eiporu peteĩ gráfico tape ojeporavova'erã hekopete jave.
{
"trigger": { "type": "watch", "plugin": "mail", "event": "email.new" },
"activities": [
{ "id": "classify", "type": "decide",
"params": {
"questions": {
"kind": {
"type": "choice",
"instructions": "What kind of message is this?",
"criteria": { "invoice": "A bill from a vendor", "other": "Anything else" }
}
},
"default": { "kind": "other" }
} },
{ "id": "is-invoice", "type": "condition", "params": { "expression": "nodes.classify.kind.choice == invoice" } },
{ "id": "record", "intent": "Record the invoice in _watch_payload as a bill and note the due date." }
],
"connections": [
{ "from": "__trigger__", "to": "classify" },
{ "from": "classify", "to": "is-invoice" },
{ "from": "is-invoice", "to": "record", "label": "True" },
{ "from": "record", "to": "__emit__" }
],
"emit": ["invoice.recorded"]
} Mba'épa ohupyty peteĩ jeporu
Mba'apohára oguereko akóinte ipersona ha jára mbohovái iporandu inputs-pe. Peteĩ jeporu ohupyty avei ko'ã valor, imbopu'ãha rehe.
| Entrada | Oĩ jave |
|---|---|
_event_source, _event_payload, _event_origin | Peteĩ mbopu'ãha jehu rehegua ojehu. Payload 8 KB térã hetavéva oñemombyky ikora escalar-pe, oñeñongatúvo correo encabezado ha mba'e oñembojoajúva ñehechauka. |
_watch_payload | Peteĩ mbopu'ãha watch térã ñongatuha rehegua ojehu. Peteĩ tysýi ñangarekoha salida-gui, térã {files} peteĩ ñongatuhápe g̃uarã. |
inputs | Akóinte. Tembiaporape valor inputs tee. |
Mba'e-kuéra
Heta tembiapo ipuku heta ára: peteĩ cliente ikatúva oikotevẽ ñemoirũ, peteĩ mba'ejerure oha'arõva kuatia. Embojoapy case ha tembiaporape oñongatu peteĩ mba'e ipe'áva peteĩteĩ yvypóra térã mba'épe g̃uarã, oñepyrũ rangue pyahu jey jey.
| Kora | He'iséva |
|---|---|
key | Tekotevẽ. Rape punto reheguáva coma rupi oñemboja'óva mbopu'ãha datos-pe ohechaukáva máva rehepa, ha'eháicha contactEmail,email,phone. |
type | Mba'e mba'éichagua, ha'eháicha lead. Tembiaporape-kuéra mba'éichagua peteĩchaguáva oñemboja'o mba'e-kuéra. Ijypykuéva ha'e tembiaporape réra. |
default_wait | Mboy aravópa oha'arõta peteĩ jere ndombohéráiramo ñeha'arõ: 3d, 12h, 45m. Ijypykuéva mbohapy ára. |
Peteĩ mba'e peteĩteĩ jere ohu'ãva'erã peteĩ objeto JSON ndive ha mba'eve upe rire. result ha'e negocio estado; next he'i motor-pe wait térã close. Peteĩ aravo paha ha'e RFC 3339 térã peteĩ pa'ũ relativo. Ambue mba'e ha'e peteĩ jere ndoikóiva.
{"result": {"status": "awaiting_documents", "summary": "Requested two bank statements"},
"next": {"action": "wait", "on": "signal", "deadline": "3d", "reason": "documents"}} Ijapyra ha ñemoĩjey
- Peteĩteĩ tembiapo ikatu oipuru 50 jere modelo rehegua peve, ndaha'éiramo
params.maxIterationshe'i ambuéicha. - Peteĩ gráfico-pe, peteĩ tembiapo ikatu omba'apo 10.000 jey peve peteĩ jeporúpe.
- Jára gasto ijapyra mba'apohárape g̃uarã ombopyta peteĩ jeporu oñehupyty jave. Peteĩ tembiapo
token_budgetha'e peteĩ ñemoha'ãnga. - Peteĩ jeporu oñekytĩva peteĩ ñepyrũjey rupi oñemarka ñekytĩ ramo ha oñemoñepyrũjey peteĩ jey.
- Mba'apohára ikatu omohu'ã peteĩ jeporu voive tembiporu
exitrupive.
Emomba'apo ha eñangareko tembiaporape-kuéra rehe
Jára ikatu omomba'apo oimeraẽ tembiaporape ipópe. Mba'apoharakuéra oñangareko tembiaporape rehe run_workflow, workflow_status, list_workflow_runs, set_workflow_enabled ha ambue tembiporu tembiaporape rehegua ojehechaukáva Pytyvõhára ha Aty-kuéra-pe rupive.