house-lights 1.2.1 → 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.
Files changed (68) hide show
  1. package/package.json +1 -1
  2. package/skills/cast-list/assets/map.html +80 -33
  3. package/skills/cast-list/examples/agents/bodega-cupons/actions/AbrirChamadoERP.mcs.yml +15 -0
  4. package/skills/cast-list/examples/agents/bodega-cupons/actions/ConsultarCuponsAtivos.mcs.yml +1 -1
  5. package/skills/cast-list/examples/agents/bodega-cupons/actions/EnviarCupomEmail.mcs.yml +1 -1
  6. package/skills/cast-list/examples/agents/bodega-cupons/actions/PromocoesMCP.mcs.yml +1 -1
  7. package/skills/cast-list/examples/agents/bodega-cupons/agent.mcs.yml +12 -0
  8. package/skills/cast-list/examples/agents/bodega-cupons/connectionreferences.mcs.yml +7 -7
  9. package/skills/cast-list/examples/agents/bodega-cupons/topics/ConsultarRegulamentoCupons.topic.mcs.yml +3 -3
  10. package/skills/cast-list/examples/agents/bodega-cupons/topics/Escalate.topic.mcs.yml +1 -1
  11. package/skills/cast-list/examples/agents/bodega-cupons/topics/Fallback.topic.mcs.yml +5 -5
  12. package/skills/cast-list/examples/agents/bodega-cupons/topics/Greeting.topic.mcs.yml +1 -1
  13. package/skills/cast-list/examples/agents/bodega-cupons/topics/OnError.topic.mcs.yml +7 -7
  14. package/skills/cast-list/examples/agents/bodega-cupons/topics/RecebimentoOrquestrador.topic.mcs.yml +1 -1
  15. package/skills/cast-list/examples/agents/bodega-cupons/workflows/AbrirChamadoERP-7d1c2a4e/metadata.yml +3 -0
  16. package/skills/cast-list/examples/agents/bodega-cupons/workflows/AbrirChamadoERP-7d1c2a4e/workflow.json +41 -0
  17. package/skills/cast-list/examples/agents/bodega-devolucoes/actions/AbrirChamadoERP.mcs.yml +15 -0
  18. package/skills/cast-list/examples/agents/bodega-devolucoes/actions/AbrirSolicitacaoDevolucao.mcs.yml +1 -1
  19. package/skills/cast-list/examples/agents/bodega-devolucoes/agent.mcs.yml +13 -0
  20. package/skills/cast-list/examples/agents/bodega-devolucoes/connectionreferences.mcs.yml +2 -2
  21. package/skills/cast-list/examples/agents/bodega-devolucoes/topics/ConsultarPoliticaDevolucoes.topic.mcs.yml +3 -3
  22. package/skills/cast-list/examples/agents/bodega-devolucoes/topics/Escalate.topic.mcs.yml +1 -1
  23. package/skills/cast-list/examples/agents/bodega-devolucoes/topics/Fallback.topic.mcs.yml +5 -5
  24. package/skills/cast-list/examples/agents/bodega-devolucoes/topics/Greeting.topic.mcs.yml +1 -1
  25. package/skills/cast-list/examples/agents/bodega-devolucoes/topics/OnError.topic.mcs.yml +7 -7
  26. package/skills/cast-list/examples/agents/bodega-devolucoes/topics/RecebimentoOrquestrador.topic.mcs.yml +1 -1
  27. package/skills/cast-list/examples/agents/bodega-devolucoes/workflows/AbrirChamadoERP-7d1c2a4e/metadata.yml +3 -0
  28. package/skills/cast-list/examples/agents/bodega-devolucoes/workflows/AbrirChamadoERP-7d1c2a4e/workflow.json +56 -0
  29. package/skills/cast-list/examples/agents/bodega-frete/actions/EnviarOpcoesFrete.mcs.yml +1 -1
  30. package/skills/cast-list/examples/agents/bodega-frete/agent.mcs.yml +7 -0
  31. package/skills/cast-list/examples/agents/bodega-frete/connectionreferences.mcs.yml +2 -2
  32. package/skills/cast-list/examples/agents/bodega-frete/topics/ConsultarTabelaFrete.topic.mcs.yml +3 -3
  33. package/skills/cast-list/examples/agents/bodega-frete/topics/Desambiguar.topic.mcs.yml +11 -0
  34. package/skills/cast-list/examples/agents/bodega-frete/topics/Fallback.topic.mcs.yml +5 -5
  35. package/skills/cast-list/examples/agents/bodega-frete/topics/Greeting.topic.mcs.yml +1 -1
  36. package/skills/cast-list/examples/agents/bodega-frete/topics/OnError.topic.mcs.yml +7 -7
  37. package/skills/cast-list/examples/agents/bodega-frete/topics/RecebimentoOrquestrador.topic.mcs.yml +1 -1
  38. package/skills/cast-list/examples/agents/bodega-frete/variables/PreferenciaAntiga.mcs.yml +9 -0
  39. package/skills/cast-list/examples/agents/bodega-loja-fisica/actions/EnviarInstrucoesRetirada.mcs.yml +1 -1
  40. package/skills/cast-list/examples/agents/bodega-loja-fisica/agent.mcs.yml +12 -0
  41. package/skills/cast-list/examples/agents/bodega-loja-fisica/connectionreferences.mcs.yml +2 -2
  42. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/AvisoAntigo.topic.mcs.yml +12 -0
  43. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/ConsultarGuiaLojaFisica.topic.mcs.yml +3 -3
  44. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/Escalate.topic.mcs.yml +1 -1
  45. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/Fallback.topic.mcs.yml +5 -5
  46. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/Greeting.topic.mcs.yml +1 -1
  47. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/OnError.topic.mcs.yml +6 -6
  48. package/skills/cast-list/examples/agents/bodega-loja-fisica/topics/RecebimentoOrquestrador.topic.mcs.yml +1 -1
  49. package/skills/cast-list/examples/agents/bodega-loja-fisica/workflows/ListarLojas-3f2a9c1d/metadata.yml +3 -0
  50. package/skills/cast-list/examples/agents/bodega-loja-fisica/workflows/ListarLojas-3f2a9c1d/workflow.json +56 -0
  51. package/skills/cast-list/examples/agents/bodega-orquestrador/actions/AgenteCupons.mcs.yml +1 -1
  52. package/skills/cast-list/examples/agents/bodega-orquestrador/actions/AgenteFidelidade.mcs.yml +24 -0
  53. package/skills/cast-list/examples/agents/bodega-orquestrador/actions/AgenteFrete.mcs.yml +2 -14
  54. package/skills/cast-list/examples/agents/bodega-orquestrador/agent.mcs.yml +2 -0
  55. package/skills/cast-list/examples/agents/bodega-pedidos/actions/AbrirChamadoERP.mcs.yml +15 -0
  56. package/skills/cast-list/examples/agents/bodega-pedidos/actions/EnviarResumoPedido.mcs.yml +1 -1
  57. package/skills/cast-list/examples/agents/bodega-pedidos/agent.mcs.yml +10 -0
  58. package/skills/cast-list/examples/agents/bodega-pedidos/connectionreferences.mcs.yml +2 -2
  59. package/skills/cast-list/examples/agents/bodega-pedidos/topics/ConsultarPoliticasPedidos Copy.topic.mcs.yml +56 -0
  60. package/skills/cast-list/examples/agents/bodega-pedidos/topics/Escalate.topic.mcs.yml +5 -0
  61. package/skills/cast-list/examples/agents/bodega-pedidos/workflows/AbrirChamadoERP-7d1c2a4e/metadata.yml +3 -0
  62. package/skills/cast-list/examples/agents/bodega-pedidos/workflows/AbrirChamadoERP-7d1c2a4e/workflow.json +56 -0
  63. package/skills/cast-list/examples/profile.cast.yaml +28 -0
  64. package/skills/cast-list/references/format.md +30 -3
  65. package/skills/cast-list/references/keys.md +26 -0
  66. package/skills/cast-list/references/profile.md +35 -0
  67. package/skills/cast-list/scripts/build.mjs +6 -4
  68. package/skills/cast-list/scripts/engine.mjs +128 -124
@@ -7,7 +7,7 @@ beginDialog:
7
7
  id: main
8
8
  actions:
9
9
  - kind: SendActivity
10
- id: sendMessage_6Zd2DS
10
+ id: sendMessage_mhcyPf
11
11
  activity:
12
12
  text:
13
13
  - "Olá! Eu sou o {System.Bot.Name}. Quer validar um cupom ou ver as promoções da semana?"
@@ -8,18 +8,18 @@ beginDialog:
8
8
  id: main
9
9
  actions:
10
10
  - kind: SetVariable
11
- id: setVariable_0mZW81
11
+ id: setVariable_j6CkQN
12
12
  variable: init:Topic.CurrentTime
13
13
  value: =Text(Now(), DateTimeFormat.UTC)
14
14
 
15
15
  - kind: ConditionGroup
16
- id: conditionGroup_SZFWPc
16
+ id: conditionGroup_nfrYnK
17
17
  conditions:
18
- - id: conditionItem_foENj6
18
+ - id: conditionItem_KAIAko
19
19
  condition: =System.Conversation.InTestMode = true
20
20
  actions:
21
21
  - kind: SendActivity
22
- id: sendMessage_CkQNnf
22
+ id: sendMessage_myVBJo
23
23
  activity: |-
24
24
  Mensagem de erro: {System.Error.Message}
25
25
  Código do erro: {System.Error.Code}
@@ -28,7 +28,7 @@ beginDialog:
28
28
 
29
29
  elseActions:
30
30
  - kind: SendActivity
31
- id: sendMessage_rYnKKA
31
+ id: sendMessage_9uJ5Bv
32
32
  activity:
33
33
  text:
34
34
  - |-
@@ -40,9 +40,9 @@ beginDialog:
40
40
  - Ocorreu um erro, por favor tente novamente.
41
41
 
42
42
  - kind: LogCustomTelemetryEvent
43
- id: logTelemetry_5nw9Bl
43
+ id: logTelemetry_PcfoEN
44
44
  eventName: BodegaCupons_OnError
45
45
  properties: "={Agente: \"bodega-cupons\", ErrorMessage: System.Error.Message, ErrorCode: System.Error.Code, TimeUTC: Topic.CurrentTime, ConversationId: System.Conversation.Id}"
46
46
 
47
47
  - kind: CancelAllDialogs
48
- id: cancelAllDialogs_IAkomy
48
+ id: cancelAllDialogs_7DG56T
@@ -8,7 +8,7 @@ beginDialog:
8
8
  id: main
9
9
  actions:
10
10
  - kind: SetVariable
11
- id: setVariable_VBJo9u
11
+ id: setVariable_tev0bS
12
12
  variable: Global.CategoriaSolicitacao
13
13
  value: =System.Activity.Value.CategoriaSolicitacao
14
14
 
@@ -0,0 +1,3 @@
1
+ displayName: Abrir chamado no ERP
2
+ workflowId: 7d1c2a4e-3b5f-4c6d-8e9f-0a1b2c3d4e5f
3
+ jsonFileName: workflow.json
@@ -0,0 +1,41 @@
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
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,15 @@
1
+ mcs.metadata:
2
+ componentName: Abrir chamado no ERP
3
+ description: Abre um chamado no ERP da Bodega Azul pelo fluxo da solução.
4
+ kind: TaskDialog
5
+ inputs:
6
+ - kind: AutomaticTaskInput
7
+ propertyName: resumo
8
+ description: Resumo do pedido do cliente, em uma frase.
9
+ shouldPromptUser: false
10
+
11
+ modelDisplayName: Abrir chamado no ERP
12
+ modelDescription: Abre um chamado no ERP quando o cliente pede uma ação que a loja precisa executar (troca, cancelamento, reembolso).
13
+ action:
14
+ kind: InvokeFlowTaskAction
15
+ flowId: 7d1c2a4e-3b5f-4c6d-8e9f-0a1b2c3d4e5f
@@ -23,7 +23,7 @@ modelDisplayName: Abrir solicitação de devolução
23
23
  modelDescription: "Envia pelo Outlook um e-mail para a equipe de logística reversa com número do pedido, produto e motivo da devolução. Use depois de confirmar esses dados com o cliente."
24
24
  action:
25
25
  kind: InvokeConnectorTaskAction
26
- connectionReference: cr7b2_bodegaDevolucoes.shared_office365.shared-office365-9c9a0063-d62b-4056-b58f-da8e8813aef2
26
+ connectionReference: cr7b2_bodegaDevolucoes.shared_office365.shared-office365-664433e6-6640-4087-b712-5b0b91b59b30
27
27
  connectionProperties:
28
28
  mode: Maker
29
29
 
@@ -14,6 +14,18 @@ instructions: |
14
14
  - Responda sempre em português do Brasil, com empatia e objetividade
15
15
  - Confirme o número do pedido e o motivo antes de abrir a solicitação
16
16
  - Não prometa reembolso antes da análise do produto
17
+
18
+ Links:
19
+ - Formate links assim: [título](url), nunca a URL crua.
20
+ - Um link de ação vai no topo; o link da base de ajuda vai no fim.
21
+ - Nunca escreva as palavras «clique aqui».
22
+ - No máximo 3 links por resposta.
23
+
24
+ Responda em no máximo 3 bullets.
25
+
26
+ Não use emojis.
27
+
28
+ Responda somente com base no conhecimento publicado.
17
29
  conversationStarters:
18
30
  - title: "Trocar produto"
19
31
  text: "Quero trocar um produto que comprei"
@@ -22,5 +34,6 @@ conversationStarters:
22
34
  text: "Qual o prazo para devolver uma compra?"
23
35
 
24
36
  aISettings:
37
+ useModelKnowledge: true
25
38
  model:
26
39
  modelNameHint: GPT5Chat
@@ -1,6 +1,6 @@
1
1
  kind: ConnectionReferencesSourceFile
2
2
  connectionReferences:
3
- - id: 5ff46c55-f76a-450e-b6f7-c801536740df
4
- connectionReferenceLogicalName: cr7b2_bodegaDevolucoes.shared_office365.shared-office365-9c9a0063-d62b-4056-b58f-da8e8813aef2
3
+ - id: b247aa90-ae45-45a4-b55c-b71ab8c960a1
4
+ connectionReferenceLogicalName: cr7b2_bodegaDevolucoes.shared_office365.shared-office365-664433e6-6640-4087-b712-5b0b91b59b30
5
5
  connectorId: /providers/Microsoft.PowerApps/apis/shared_office365
6
6
  displayName: Office 365 Outlook
@@ -15,12 +15,12 @@ beginDialog:
15
15
  intent: {}
16
16
  actions:
17
17
  - kind: CreateSearchQuery
18
- id: createSearchQuery_F3Bce0
18
+ id: createSearchQuery_I91Nu9
19
19
  userInput: =Topic.PerguntaCliente
20
20
  result: Topic.SearchQuery
21
21
 
22
22
  - kind: SearchAndSummarizeContent
23
- id: searchContent_aJ4s5W
23
+ id: searchContent_9xWTCj
24
24
  autoSend: false
25
25
  variable: Topic.SearchResult
26
26
  userInput: =Topic.SearchQuery.SearchQuery
@@ -37,7 +37,7 @@ beginDialog:
37
37
  responseCaptureType: FullResponse
38
38
 
39
39
  - kind: SetVariable
40
- id: setVariable_YkGk0j
40
+ id: setVariable_w9sFTC
41
41
  variable: Topic.Resposta
42
42
  value: =Topic.SearchResult.Text.Content
43
43
 
@@ -16,5 +16,5 @@ beginDialog:
16
16
 
17
17
  actions:
18
18
  - kind: SendActivity
19
- id: sendMessage_RBGXtS
19
+ id: sendMessage_O4ttWg
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 devolucoes@bodegaazul.example, de segunda a sábado, das 9h às 18h."
@@ -8,13 +8,13 @@ beginDialog:
8
8
  priority: -1
9
9
  actions:
10
10
  - kind: ConditionGroup
11
- id: conditionGroup_TPCw06
11
+ id: conditionGroup_RBGXtS
12
12
  conditions:
13
- - id: conditionItem_ryGn7S
13
+ - id: conditionItem_nm7LSz
14
14
  condition: =System.FallbackCount < 3
15
15
  actions:
16
16
  - kind: SendActivity
17
- id: sendMessage_05PvFg
17
+ id: sendMessage_9HZrxS
18
18
  activity:
19
19
  text:
20
20
  - "Desculpe, não entendi. Pode reformular a sua pergunta?"
@@ -22,11 +22,11 @@ beginDialog:
22
22
 
23
23
  elseActions:
24
24
  - kind: SendActivity
25
- id: sendMessage_lXT8aK
25
+ id: sendMessage_ryGn7S
26
26
  activity:
27
27
  text:
28
28
  - "Estou com dificuldade para entender o seu pedido. Vou te encaminhar para alguém da equipe Bodega Azul."
29
29
 
30
30
  - kind: BeginDialog
31
- id: beginDialog_u0NZwL
31
+ id: beginDialog_05PvFg
32
32
  dialog: cr7b2_bodegaDevolucoes.topic.Escalate
@@ -7,7 +7,7 @@ beginDialog:
7
7
  id: main
8
8
  actions:
9
9
  - kind: SendActivity
10
- id: sendMessage_ySobf4
10
+ id: sendMessage_TPCw06
11
11
  activity:
12
12
  text:
13
13
  - "Olá! Eu sou o {System.Bot.Name}. Vamos resolver a sua troca ou devolução?"
@@ -8,18 +8,18 @@ beginDialog:
8
8
  id: main
9
9
  actions:
10
10
  - kind: SetVariable
11
- id: setVariable_9HZrxS
11
+ id: setVariable_oUQQmg
12
12
  variable: init:Topic.CurrentTime
13
13
  value: =Text(Now(), DateTimeFormat.UTC)
14
14
 
15
15
  - kind: ConditionGroup
16
- id: conditionGroup_O4ttWg
16
+ id: conditionGroup_Dld8CV
17
17
  conditions:
18
- - id: conditionItem_s0jOv1
18
+ - id: conditionItem_OwdxDv
19
19
  condition: =System.Conversation.InTestMode = true
20
20
  actions:
21
21
  - kind: SendActivity
22
- id: sendMessage_oUQQmg
22
+ id: sendMessage_62USMu
23
23
  activity: |-
24
24
  Mensagem de erro: {System.Error.Message}
25
25
  Código do erro: {System.Error.Code}
@@ -28,7 +28,7 @@ beginDialog:
28
28
 
29
29
  elseActions:
30
30
  - kind: SendActivity
31
- id: sendMessage_Dld8CV
31
+ id: sendMessage_F3Bce0
32
32
  activity:
33
33
  text:
34
34
  - |-
@@ -40,9 +40,9 @@ beginDialog:
40
40
  - Ocorreu um erro, por favor tente novamente.
41
41
 
42
42
  - kind: LogCustomTelemetryEvent
43
- id: logTelemetry_nm7LSz
43
+ id: logTelemetry_s0jOv1
44
44
  eventName: BodegaDevolucoes_OnError
45
45
  properties: "={Agente: \"bodega-devolucoes\", ErrorMessage: System.Error.Message, ErrorCode: System.Error.Code, TimeUTC: Topic.CurrentTime, ConversationId: System.Conversation.Id}"
46
46
 
47
47
  - kind: CancelAllDialogs
48
- id: cancelAllDialogs_OwdxDv
48
+ id: cancelAllDialogs_aJ4s5W
@@ -8,7 +8,7 @@ beginDialog:
8
8
  id: main
9
9
  actions:
10
10
  - kind: SetVariable
11
- id: setVariable_62USMu
11
+ id: setVariable_YkGk0j
12
12
  variable: Global.CategoriaSolicitacao
13
13
  value: =System.Activity.Value.CategoriaSolicitacao
14
14
 
@@ -0,0 +1,3 @@
1
+ displayName: Abrir chamado no ERP
2
+ workflowId: 7d1c2a4e-3b5f-4c6d-8e9f-0a1b2c3d4e5f
3
+ jsonFileName: workflow.json
@@ -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
+ }
@@ -25,7 +25,7 @@ modelDisplayName: Enviar opções de frete por e-mail
25
25
  modelDescription: "Envia ao cliente, pelo Outlook, um e-mail com as modalidades e prazos de frete consultados na conversa. Use somente quando o cliente pedir."
26
26
  action:
27
27
  kind: InvokeConnectorTaskAction
28
- connectionReference: cr7b2_bodegaFrete.shared_office365.shared-office365-b0f8e217-f0b5-4043-a162-176b58113675
28
+ connectionReference: cr7b2_bodegaFrete.shared_office365.shared-office365-87a66c95-f84e-4a65-a761-64ce01dc8c2e
29
29
  connectionProperties:
30
30
  mode: Maker
31
31
 
@@ -14,6 +14,13 @@ instructions: |
14
14
  - Responda sempre em português do Brasil
15
15
  - Prazos são sempre em dias úteis; deixe isso claro
16
16
  - Não calcule valores de frete de cabeça: use apenas o que está na base
17
+
18
+ Links:
19
+ - Formate links assim: [título](url), nunca a URL crua.
20
+ - Nunca escreva as palavras «clique aqui».
21
+ - No máximo 5 links por resposta.
22
+
23
+ Não use emojis.
17
24
  conversationStarters:
18
25
  - title: "Prazo de entrega"
19
26
  text: "Quanto tempo demora a entrega para o Nordeste?"
@@ -1,6 +1,6 @@
1
1
  kind: ConnectionReferencesSourceFile
2
2
  connectionReferences:
3
- - id: 2061116b-9466-499f-9a95-3845b3c68aef
4
- connectionReferenceLogicalName: cr7b2_bodegaFrete.shared_office365.shared-office365-b0f8e217-f0b5-4043-a162-176b58113675
3
+ - id: 2683e4c0-ea95-46c4-918a-b896ff983b3f
4
+ connectionReferenceLogicalName: cr7b2_bodegaFrete.shared_office365.shared-office365-87a66c95-f84e-4a65-a761-64ce01dc8c2e
5
5
  connectorId: /providers/Microsoft.PowerApps/apis/shared_office365
6
6
  displayName: Office 365 Outlook
@@ -15,12 +15,12 @@ beginDialog:
15
15
  intent: {}
16
16
  actions:
17
17
  - kind: CreateSearchQuery
18
- id: createSearchQuery_RpdnNx
18
+ id: createSearchQuery_w48SSg
19
19
  userInput: =Topic.PerguntaCliente
20
20
  result: Topic.SearchQuery
21
21
 
22
22
  - kind: SearchAndSummarizeContent
23
- id: searchContent_2fpaCR
23
+ id: searchContent_Li6Zd2
24
24
  autoSend: false
25
25
  variable: Topic.SearchResult
26
26
  userInput: =Topic.SearchQuery.SearchQuery
@@ -37,7 +37,7 @@ beginDialog:
37
37
  responseCaptureType: FullResponse
38
38
 
39
39
  - kind: SetVariable
40
- id: setVariable_QoCKRT
40
+ id: setVariable_DSOy9A
41
41
  variable: Topic.Resposta
42
42
  value: =Topic.SearchResult.Text.Content
43
43
 
@@ -0,0 +1,11 @@
1
+ mcs.metadata:
2
+ componentName: Desambiguar
3
+ description: Pergunta ao cliente qual assunto ele quis dizer quando mais de um tópico serve.
4
+ kind: AdaptiveDialog
5
+ beginDialog:
6
+ kind: OnSelectIntent
7
+ id: main
8
+ actions:
9
+ - kind: SendActivity
10
+ id: sendMessage_tRiAg3
11
+ activity: Sobre qual destes assuntos você quer falar?
@@ -8,13 +8,13 @@ beginDialog:
8
8
  priority: -1
9
9
  actions:
10
10
  - kind: ConditionGroup
11
- id: conditionGroup_ABgTWB
11
+ id: conditionGroup_GO3Bil
12
12
  conditions:
13
- - id: conditionItem_6esZ2m
13
+ - id: conditionItem_cAN26v
14
14
  condition: =System.FallbackCount < 3
15
15
  actions:
16
16
  - kind: SendActivity
17
- id: sendMessage_BIJUhV
17
+ id: sendMessage_i5aTx4
18
18
  activity:
19
19
  text:
20
20
  - "Desculpe, não entendi. Pode reformular a sua pergunta?"
@@ -22,10 +22,10 @@ beginDialog:
22
22
 
23
23
  elseActions:
24
24
  - kind: SendActivity
25
- id: sendMessage_sFTCKn
25
+ id: sendMessage_6esZ2m
26
26
  activity:
27
27
  text:
28
28
  - "Não consegui entender a sua solicitação. Você pode escrever para atendimento@bodegaazul.example que a nossa equipe responde em até 1 dia útil."
29
29
 
30
30
  - kind: CancelAllDialogs
31
- id: cancelAllDialogs_zzUTRS
31
+ id: cancelAllDialogs_BIJUhV
@@ -7,7 +7,7 @@ beginDialog:
7
7
  id: main
8
8
  actions:
9
9
  - kind: SendActivity
10
- id: sendMessage_WTCjw9
10
+ id: sendMessage_ABgTWB
11
11
  activity:
12
12
  text:
13
13
  - "Olá! Eu sou o {System.Bot.Name}. Quer saber sobre prazos e valores de entrega?"
@@ -8,18 +8,18 @@ beginDialog:
8
8
  id: main
9
9
  actions:
10
10
  - kind: SetVariable
11
- id: setVariable_cAN26v
11
+ id: setVariable_zATTmv
12
12
  variable: init:Topic.CurrentTime
13
13
  value: =Text(Now(), DateTimeFormat.UTC)
14
14
 
15
15
  - kind: ConditionGroup
16
- id: conditionGroup_i5aTx4
16
+ id: conditionGroup_tT7GmP
17
17
  conditions:
18
- - id: conditionItem_QOqZrK
18
+ - id: conditionItem_pOGTUv
19
19
  condition: =System.Conversation.InTestMode = true
20
20
  actions:
21
21
  - kind: SendActivity
22
- id: sendMessage_zATTmv
22
+ id: sendMessage_4KQSvY
23
23
  activity: |-
24
24
  Mensagem de erro: {System.Error.Message}
25
25
  Código do erro: {System.Error.Code}
@@ -28,7 +28,7 @@ beginDialog:
28
28
 
29
29
  elseActions:
30
30
  - kind: SendActivity
31
- id: sendMessage_tT7GmP
31
+ id: sendMessage_RpdnNx
32
32
  activity:
33
33
  text:
34
34
  - |-
@@ -40,9 +40,9 @@ beginDialog:
40
40
  - Ocorreu um erro, por favor tente novamente.
41
41
 
42
42
  - kind: LogCustomTelemetryEvent
43
- id: logTelemetry_GO3Bil
43
+ id: logTelemetry_QOqZrK
44
44
  eventName: BodegaFrete_OnError
45
45
  properties: "={Agente: \"bodega-frete\", ErrorMessage: System.Error.Message, ErrorCode: System.Error.Code, TimeUTC: Topic.CurrentTime, ConversationId: System.Conversation.Id}"
46
46
 
47
47
  - kind: CancelAllDialogs
48
- id: cancelAllDialogs_pOGTUv
48
+ id: cancelAllDialogs_2fpaCR
@@ -8,7 +8,7 @@ beginDialog:
8
8
  id: main
9
9
  actions:
10
10
  - kind: SetVariable
11
- id: setVariable_4KQSvY
11
+ id: setVariable_QoCKRT
12
12
  variable: Global.CategoriaSolicitacao
13
13
  value: =System.Activity.Value.CategoriaSolicitacao
14
14
 
@@ -0,0 +1,9 @@
1
+ # Name: Preferência antiga
2
+ # Preferência de contato que ninguém usa mais.
3
+ name: PreferenciaAntiga
4
+ aIVisibility: UseInAIContext
5
+ scope: Conversation
6
+ description: Preferência de contato que ninguém usa mais.
7
+ schemaName: cr7b2_bodegaFrete.globalvariable.PreferenciaAntiga
8
+ kind: GlobalVariableComponent
9
+ defaultValue: =Blank()
@@ -25,7 +25,7 @@ modelDisplayName: Enviar instruções de retirada por e-mail
25
25
  modelDescription: "Envia ao cliente, pelo Outlook, um e-mail com endereço, horário e documentos necessários para retirar o pedido na loja física. Use somente quando o cliente pedir."
26
26
  action:
27
27
  kind: InvokeConnectorTaskAction
28
- connectionReference: cr7b2_bodegaLojaFisica.shared_office365.shared-office365-7954b623-6f24-4af3-b282-fa9c83913992
28
+ connectionReference: cr7b2_bodegaLojaFisica.shared_office365.shared-office365-f0fdb545-532d-4d56-a81b-286eb298a1e7
29
29
  connectionProperties:
30
30
  mode: Maker
31
31
 
@@ -15,6 +15,18 @@ instructions: |
15
15
  - Responda sempre em português do Brasil
16
16
  - Confirme o número do pedido antes de dar instruções de retirada
17
17
  - Horários especiais de feriado só valem se estiverem no guia
18
+
19
+ Links:
20
+ - Formate links assim: [título](url), nunca a URL crua.
21
+ - Um link de ação vai no topo; o link da base de ajuda vai no fim.
22
+ - Nunca escreva as palavras «clique aqui».
23
+ - No máximo 3 links por resposta.
24
+
25
+ Responda em no máximo 3 bullets.
26
+
27
+ Para dúvidas gerais, indique https://ajuda.bodega-azul.example/atendimento.
28
+
29
+ Use no máximo 5 frases por resposta.
18
30
  conversationStarters:
19
31
  - title: "Horário da loja"
20
32
  text: "Qual o horário de funcionamento da loja física?"
@@ -1,6 +1,6 @@
1
1
  kind: ConnectionReferencesSourceFile
2
2
  connectionReferences:
3
- - id: 7990f5d8-cba3-42ae-a84d-01f7850fca85
4
- connectionReferenceLogicalName: cr7b2_bodegaLojaFisica.shared_office365.shared-office365-7954b623-6f24-4af3-b282-fa9c83913992
3
+ - id: 5ff8574b-35b4-4aed-afda-88d178151c9b
4
+ connectionReferenceLogicalName: cr7b2_bodegaLojaFisica.shared_office365.shared-office365-f0fdb545-532d-4d56-a81b-286eb298a1e7
5
5
  connectorId: /providers/Microsoft.PowerApps/apis/shared_office365
6
6
  displayName: Office 365 Outlook
@@ -0,0 +1,12 @@
1
+ mcs.metadata:
2
+ componentName: Aviso antigo
3
+ description: Aviso de horário especial de um feriado que já passou.
4
+ kind: AdaptiveDialog
5
+ beginDialog:
6
+ kind: OnRecognizedIntent
7
+ id: main
8
+ intent: {}
9
+ actions:
10
+ - kind: SendActivity
11
+ id: sendMessage_9Q79Ll
12
+ activity: "No feriado de carnaval a loja fecha às 14h."
@@ -15,12 +15,12 @@ beginDialog:
15
15
  intent: {}
16
16
  actions:
17
17
  - kind: CreateSearchQuery
18
- id: createSearchQuery_XKzVC7
18
+ id: createSearchQuery_8WzjG8
19
19
  userInput: =Topic.PerguntaCliente
20
20
  result: Topic.SearchQuery
21
21
 
22
22
  - kind: SearchAndSummarizeContent
23
- id: searchContent_EnqfPO
23
+ id: searchContent_BEHQYE
24
24
  autoSend: false
25
25
  variable: Topic.SearchResult
26
26
  userInput: =Topic.SearchQuery.SearchQuery
@@ -37,7 +37,7 @@ beginDialog:
37
37
  responseCaptureType: FullResponse
38
38
 
39
39
  - kind: SetVariable
40
- id: setVariable_Hb8Wzj
40
+ id: setVariable_E3NIoo
41
41
  variable: Topic.Resposta
42
42
  value: =Topic.SearchResult.Text.Content
43
43
 
@@ -16,5 +16,5 @@ beginDialog:
16
16
 
17
17
  actions:
18
18
  - kind: SendActivity
19
- id: sendMessage_OGouQR
19
+ id: sendMessage_SyKagb
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 loja@bodegaazul.example, de segunda a sábado, das 9h às 18h."