house-lights 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/cast-list/assets/map.html +53 -32
- package/skills/cast-list/examples/agents/bodega-cupons/workflows/AbrirChamadoERP-7d1c2a4e/metadata.yml +3 -0
- package/skills/cast-list/examples/agents/bodega-cupons/workflows/AbrirChamadoERP-7d1c2a4e/workflow.json +41 -0
- package/skills/cast-list/examples/agents/bodega-devolucoes/workflows/AbrirChamadoERP-7d1c2a4e/metadata.yml +3 -0
- package/skills/cast-list/examples/agents/bodega-devolucoes/workflows/AbrirChamadoERP-7d1c2a4e/workflow.json +56 -0
- package/skills/cast-list/examples/agents/bodega-frete/variables/PreferenciaAntiga.mcs.yml +9 -0
- package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/AvisoAntigo.topic.mcs.yml +12 -0
- package/skills/cast-list/examples/agents/bodega-loja-fisica/workflows/ListarLojas-3f2a9c1d/metadata.yml +3 -0
- package/skills/cast-list/examples/agents/bodega-loja-fisica/workflows/ListarLojas-3f2a9c1d/workflow.json +56 -0
- package/skills/cast-list/examples/agents/bodega-orquestrador/actions/AgenteCupons.mcs.yml +1 -1
- package/skills/cast-list/examples/agents/bodega-orquestrador/actions/AgenteFidelidade.mcs.yml +24 -0
- package/skills/cast-list/examples/agents/bodega-orquestrador/actions/AgenteFrete.mcs.yml +2 -14
- package/skills/cast-list/examples/agents/bodega-pedidos/topics/Escalate.topic.mcs.yml +5 -0
- package/skills/cast-list/examples/agents/bodega-pedidos/workflows/AbrirChamadoERP-7d1c2a4e/metadata.yml +3 -0
- package/skills/cast-list/examples/agents/bodega-pedidos/workflows/AbrirChamadoERP-7d1c2a4e/workflow.json +56 -0
- package/skills/cast-list/references/format.md +20 -0
- package/skills/cast-list/references/keys.md +14 -0
- package/skills/cast-list/scripts/engine.mjs +111 -110
|
@@ -2,23 +2,11 @@ mcs.metadata:
|
|
|
2
2
|
componentName: Agente Frete
|
|
3
3
|
description: Agente conectado Bodega Azul - Frete.
|
|
4
4
|
kind: TaskDialog
|
|
5
|
-
inputs:
|
|
6
|
-
- kind: ManualTaskInput
|
|
7
|
-
propertyName: CategoriaSolicitacao
|
|
8
|
-
value: =Global.CategoriaSolicitacao
|
|
9
|
-
|
|
10
5
|
modelDisplayName: Bodega Azul - Frete
|
|
11
6
|
modelDescription: "Agente especialista em frete e entregas: modalidades, prazos por região e frete grátis. Use quando a categoria for Frete."
|
|
12
7
|
action:
|
|
13
8
|
kind: InvokeConnectedAgentTaskAction
|
|
14
|
-
inputType:
|
|
15
|
-
properties:
|
|
16
|
-
CategoriaSolicitacao:
|
|
17
|
-
displayName: CategoriaSolicitacao
|
|
18
|
-
description: Categoria da solicitação definida pelo orquestrador.
|
|
19
|
-
isRequired: true
|
|
20
|
-
type: String
|
|
21
|
-
|
|
9
|
+
inputType: {}
|
|
22
10
|
botSchemaName: cr7b2_bodegaFrete
|
|
23
11
|
historyType:
|
|
24
|
-
kind:
|
|
12
|
+
kind: NoHistory
|
|
@@ -18,3 +18,8 @@ beginDialog:
|
|
|
18
18
|
- kind: SendActivity
|
|
19
19
|
id: sendMessage_X7qDFG
|
|
20
20
|
activity: "A transferência para um atendente ainda não está disponível neste canal. Fale com a nossa equipe pelo e-mail pedidos@bodegaazul.example, de segunda a sábado, das 9h às 18h."
|
|
21
|
+
|
|
22
|
+
- kind: SendActivity
|
|
23
|
+
id: sendMessage_kDOncS
|
|
24
|
+
disabled: true
|
|
25
|
+
activity: "Aguarde, estamos transferindo você para um atendente."
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"displayName": "Abrir chamado no ERP",
|
|
4
|
+
"connectionReferences": {},
|
|
5
|
+
"definition": {
|
|
6
|
+
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
|
|
7
|
+
"contentVersion": "1.0.0.0",
|
|
8
|
+
"triggers": {
|
|
9
|
+
"manual": {
|
|
10
|
+
"type": "Request",
|
|
11
|
+
"kind": "Skills",
|
|
12
|
+
"inputs": {
|
|
13
|
+
"schema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"resumo": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"actions": {
|
|
25
|
+
"Abrir_chamado": {
|
|
26
|
+
"type": "Scope",
|
|
27
|
+
"actions": {
|
|
28
|
+
"Chamar_ERP": {
|
|
29
|
+
"type": "Http",
|
|
30
|
+
"inputs": {
|
|
31
|
+
"method": "POST",
|
|
32
|
+
"uri": "https://erp.bodega-azul.example/chamados",
|
|
33
|
+
"body": "@triggerBody()"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"Responder": {
|
|
39
|
+
"type": "Response",
|
|
40
|
+
"kind": "Skills",
|
|
41
|
+
"runAfter": {
|
|
42
|
+
"Abrir_chamado": [
|
|
43
|
+
"Succeeded"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"inputs": {
|
|
47
|
+
"statusCode": 200,
|
|
48
|
+
"body": {
|
|
49
|
+
"resultado": "@outputs('Resultado')"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -55,3 +55,23 @@ A line deleted or a decision cleared is a change too.
|
|
|
55
55
|
"facts": { "trigger:OnUnknownIntent": [ { "file": "topics/Fallback.topic.mcs.yml", "line": 7 } ] },
|
|
56
56
|
"children": [], "unknown": [] } ] }
|
|
57
57
|
```
|
|
58
|
+
|
|
59
|
+
An orchestrator's agent also has `contract` — a line per connected-agent action: `calls` (the schema name it calls),
|
|
60
|
+
`name` (the action's name for it), `history` (it passes the conversation history), `inputs`, `description` (the
|
|
61
|
+
routing description), `file` and `line` — and every agent has `flows`: `id` (the `workflowId`), `name`, `folder`,
|
|
62
|
+
`uses` (`http:<host>`, `connector:<api>`, `operation:<api>/<op>`, `child-flow`), `returns`, `called` and `file`.
|
|
63
|
+
|
|
64
|
+
## The facts of the contract, the flows and what nobody uses
|
|
65
|
+
|
|
66
|
+
| Key | On which agent | From |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| `called-with:history` | the one called | the orchestrator's action has `historyType: ConversationHistory` |
|
|
69
|
+
| `called-with:input:<name>` | the one called | each input the orchestrator's action passes |
|
|
70
|
+
| `routing:described` | the one called | the action has a `modelDescription` |
|
|
71
|
+
| `flow-uses:http:<host>`, `flow-uses:connector:<api>`, `flow-uses:operation:<api>/<op>`, `flow-uses:child-flow` | the one whose node calls the flow | the actions of `workflow.json`, at any depth |
|
|
72
|
+
| `flow-returns` | the same | the flow has a `Response` action |
|
|
73
|
+
| `orphan:topic:<name>`, `orphan:action:<name>`, `orphan:variable:<name>`, `orphan:flow:<name>` | the one that has it | nothing can reach it (see SKILL.md, step 2) |
|
|
74
|
+
| `disabled:node:<kind>`, `disabled:<topic\|action\|variable\|knowledge>:<name>` | the one that has it | `disabled: true` on a node; `state` or `status: Inactive` on a component |
|
|
75
|
+
|
|
76
|
+
The contract's facts cite the orchestrator's file (`<orchestrator>/actions/X.mcs.yml`). `orphan:` and `disabled:` are
|
|
77
|
+
never a pattern nor a solo, and what an unused flow calls is not a fact.
|
|
@@ -30,6 +30,11 @@ Every fact cast-list finds is a key. The keys below have a name; any other key k
|
|
|
30
30
|
|
|
31
31
|
| Key | Name | Nome |
|
|
32
32
|
|---|---|---|
|
|
33
|
+
| `flow-returns` | The flow returns an answer | O fluxo devolve uma resposta |
|
|
34
|
+
| `flow-uses:child-flow` | The flow calls another flow | O fluxo chama outro fluxo |
|
|
35
|
+
| `flow-uses:http:<value>` | Flow calls <value> | Fluxo chama <valor> |
|
|
36
|
+
| `flow-uses:connector:<value>` | Flow uses the connector <value> | Fluxo usa o conector <valor> |
|
|
37
|
+
| `flow-uses:operation:<value>` | Flow uses the operation <value> | Fluxo usa a operação <valor> |
|
|
33
38
|
| `connector:<value>` | Connector <value> | Conector <valor> |
|
|
34
39
|
| `operation:<value>` | Operation <value> | Operação <valor> |
|
|
35
40
|
| `connref:<value>` | Connection reference <value> | Referência de conexão <valor> |
|
|
@@ -58,6 +63,9 @@ Every fact cast-list finds is a key. The keys below have a name; any other key k
|
|
|
58
63
|
| `trigger:OnRedirect` | Takes a call from the orchestrator | Recebe chamada do orquestrador |
|
|
59
64
|
| `trigger:OnToolSelected` | Child chosen as a tool | Filho escolhido como ferramenta |
|
|
60
65
|
| `setting:connectable` | Can be called by an orchestrator | Pode ser chamado por um orquestrador |
|
|
66
|
+
| `called-with:history` | Receives the conversation history | Recebe o histórico da conversa |
|
|
67
|
+
| `routing:described` | Has a routing description | Tem descrição de roteamento |
|
|
68
|
+
| `called-with:input:<value>` | Receives <value> from the orchestrator <value> | Recebe <valor> do orquestrador <valor> |
|
|
61
69
|
| `calls:<value>` | Calls <value> | Chama <valor> |
|
|
62
70
|
| `child:<value>` | Child <value> | Filho <valor> |
|
|
63
71
|
| `var-in:<value>` | Receives from the orchestrator <value> | Recebe do orquestrador <valor> |
|
|
@@ -72,6 +80,12 @@ Every fact cast-list finds is a key. The keys below have a name; any other key k
|
|
|
72
80
|
| `instructions:present` | Has instructions | Tem instruções |
|
|
73
81
|
| `node:LogCustomTelemetryEvent` | Logs telemetry | Registra telemetria |
|
|
74
82
|
| `node:CSATQuestion` | Asks for satisfaction (CSAT) | Pergunta a satisfação (CSAT) |
|
|
83
|
+
| `orphan:topic:<value>` | Topic nobody calls <value> | Tópico que ninguém chama <valor> |
|
|
84
|
+
| `orphan:action:<value>` | Tool nobody can choose <value> | Ferramenta que ninguém escolhe <valor> |
|
|
85
|
+
| `orphan:variable:<value>` | Variable nobody uses <value> | Variável que ninguém usa <valor> |
|
|
86
|
+
| `orphan:flow:<value>` | Flow nobody calls <value> | Fluxo que ninguém chama <valor> |
|
|
87
|
+
| `disabled:node:<value>` | Switched-off node <value> | Nó desligado <valor> |
|
|
88
|
+
| `disabled:<value>` | Switched off <value> | Desligado <valor> |
|
|
75
89
|
| `node:<value>` | Node <value> | Nó <valor> |
|
|
76
90
|
| `model:<value>` | Model <value> | Modelo <valor> |
|
|
77
91
|
| `auth:<value>` | Sign-in <value> | Login <valor> |
|