Created
April 26, 2021 20:36
-
-
Save Lotti/ec0b1480abb78febfd2a13794f1ce630 to your computer and use it in GitHub Desktop.
Skill Watson Assistant "Pizza a domicilio"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"intents": [ | |
{ | |
"intent": "capabilities", | |
"examples": [ | |
{ | |
"text": "che aiuto mi puoi dare?" | |
}, | |
{ | |
"text": "che suggerimenti puoi darmi?" | |
}, | |
{ | |
"text": "come puoi aiutarmi ?" | |
}, | |
{ | |
"text": "cosa puoi fare per me?" | |
}, | |
{ | |
"text": "cosa sei in grado di fare" | |
}, | |
{ | |
"text": "cosa ti posso chiedere?" | |
}, | |
{ | |
"text": "cosa ti posso domandare?" | |
} | |
] | |
}, | |
{ | |
"intent": "consegna", | |
"examples": [ | |
{ | |
"text": "abito fuori città, ci sono problemi per la consegna?" | |
}, | |
{ | |
"text": "abito in una zona isolata, consegnate comunque?" | |
}, | |
{ | |
"text": "come avviene la consegna" | |
}, | |
{ | |
"text": "consegnate in tutte le zone?" | |
}, | |
{ | |
"text": "in che zone consegnate" | |
} | |
] | |
}, | |
{ | |
"intent": "descrizione", | |
"examples": [ | |
{ | |
"text": "avete i suppli di riso?" | |
}, | |
{ | |
"text": "avete le crocchette di patate?" | |
}, | |
{ | |
"text": "cosa posso ordinare?" | |
}, | |
{ | |
"text": "cosa potete prepare?" | |
}, | |
{ | |
"text": "cosa preparate oltre le pizze?" | |
}, | |
{ | |
"text": "cosa siete in grado di preparare?" | |
}, | |
{ | |
"text": "fate anche suppli e crocchette" | |
}, | |
{ | |
"text": "fate tutti i tipi di pizza?" | |
}, | |
{ | |
"text": "posso sapere cosa avete di buono?" | |
} | |
] | |
}, | |
{ | |
"intent": "greetings", | |
"examples": [ | |
{ | |
"text": "buona sera" | |
}, | |
{ | |
"text": "buonasera" | |
}, | |
{ | |
"text": "buon pomeriggio" | |
}, | |
{ | |
"text": "ciao" | |
}, | |
{ | |
"text": "Hey, come va ?" | |
}, | |
{ | |
"text": "salve" | |
} | |
] | |
}, | |
{ | |
"intent": "orari", | |
"examples": [ | |
{ | |
"text": "che tempi ci sono per la consegna?" | |
}, | |
{ | |
"text": "consegnate subito?" | |
}, | |
{ | |
"text": "debbo aspettare molto" | |
}, | |
{ | |
"text": "entro quando riuscite a consegnare?" | |
}, | |
{ | |
"text": "per che ora potete consegnarle?" | |
}, | |
{ | |
"text": "quanto ci mettete a consegnare" | |
}, | |
{ | |
"text": "quanto debbo aspettare?" | |
}, | |
{ | |
"text": "Quanto passa fra l'ordine e la consegna" | |
} | |
] | |
}, | |
{ | |
"intent": "orario_consegna", | |
"examples": [ | |
{ | |
"text": "abbiamo bisogno delle pizze per le 22" | |
}, | |
{ | |
"text": "alle 20 arrivano i miei ospiti" | |
}, | |
{ | |
"text": "Le pizze devono essere a casa per le 21" | |
}, | |
{ | |
"text": "vorrei che le pizze arrivassero per le 23" | |
}, | |
{ | |
"text": "vorrei le pizze a casa per le 20" | |
} | |
] | |
}, | |
{ | |
"intent": "ordine", | |
"examples": [ | |
{ | |
"text": "benissimo. allora andiamo con le pizze" | |
}, | |
{ | |
"text": "debbo ordinare delle pizze" | |
}, | |
{ | |
"text": "direi che ordineremo delle pizze" | |
}, | |
{ | |
"text": "ok, vada per le pizze" | |
}, | |
{ | |
"text": "posso fare il mio ordine" | |
}, | |
{ | |
"text": "potete portarmi delle pizza a casa ?" | |
}, | |
{ | |
"text": "voglio fare una ordinazione" | |
}, | |
{ | |
"text": "vorrei ordinare" | |
}, | |
{ | |
"text": "vorrei ordinare una pizza" | |
}, | |
{ | |
"text": "vorremmo delle pizze per stasera" | |
} | |
] | |
}, | |
{ | |
"intent": "tipi_pizza", | |
"examples": [ | |
{ | |
"text": "che pizza ci sono?" | |
}, | |
{ | |
"text": "che pizze fate?" | |
}, | |
{ | |
"text": "che tipi di pizza preparate" | |
}, | |
{ | |
"text": "che tipo di pizze avete?" | |
}, | |
{ | |
"text": "è possibile aver un elenco delle vostre pizze?" | |
}, | |
{ | |
"text": "esiste un elenco delle pizze?" | |
}, | |
{ | |
"text": "fate pizze sia bianche che rosse?" | |
}, | |
{ | |
"text": "mi elencate i gusti delle pizze" | |
}, | |
{ | |
"text": "quali sono le pizze che potete preparare?" | |
}, | |
{ | |
"text": "quali sono le pizze disponibili?" | |
} | |
] | |
}, | |
{ | |
"intent": "topping", | |
"examples": [ | |
{ | |
"text": "desiderate fare qualche modifica" | |
}, | |
{ | |
"text": "posso aggiungere qualche alto ingrediente?" | |
}, | |
{ | |
"text": "si, vorrei aggiungere degli ingredienti" | |
}, | |
{ | |
"text": "vorrei aggiungere della rughetta su 2 pizze" | |
}, | |
{ | |
"text": "vorrei aggiungere qualcosa" | |
}, | |
{ | |
"text": "vorrei fare delle variazioni" | |
} | |
] | |
} | |
], | |
"entities": [ | |
{ | |
"entity": "Aggiunte", | |
"values": [ | |
{ | |
"type": "synonyms", | |
"value": "doppia mozzarella", | |
"synonyms": [] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "filetti di alice", | |
"synonyms": [ | |
"acciughe", | |
"alici" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "Origano", | |
"synonyms": [] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "prosciutto cotto", | |
"synonyms": [ | |
"cotto" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "prosciutto crudo", | |
"synonyms": [ | |
"crudo", | |
"parma", | |
"san daniele" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "rughetta", | |
"synonyms": [ | |
"rucola" | |
] | |
} | |
], | |
"fuzzy_match": true | |
}, | |
{ | |
"entity": "sys-currency", | |
"values": [] | |
}, | |
{ | |
"entity": "sys-date", | |
"values": [] | |
}, | |
{ | |
"entity": "sys-number", | |
"values": [] | |
}, | |
{ | |
"entity": "sys-percentage", | |
"values": [] | |
}, | |
{ | |
"entity": "sys-time", | |
"values": [] | |
}, | |
{ | |
"entity": "Tipo", | |
"values": [ | |
{ | |
"type": "synonyms", | |
"value": "Capricciosa", | |
"synonyms": [ | |
"Capricciose" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "Focaccia", | |
"synonyms": [ | |
"Focacce" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "Funghi", | |
"synonyms": [] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "Margherita", | |
"synonyms": [ | |
"Margherite" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "Marinara", | |
"synonyms": [ | |
"Marinare" | |
] | |
}, | |
{ | |
"type": "synonyms", | |
"value": "Napoli", | |
"synonyms": [ | |
"Napoli" | |
] | |
} | |
] | |
} | |
], | |
"metadata": { | |
"api_version": { | |
"major_version": "v2", | |
"minor_version": "2018-11-08" | |
} | |
}, | |
"dialog_nodes": [ | |
{ | |
"type": "event_handler", | |
"parent": "slot_11_1503995254569", | |
"context": { | |
"numpizze": "@sys-number" | |
}, | |
"conditions": "@sys-number", | |
"event_name": "input", | |
"dialog_node": "handler_12_1503995254569" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": "Quante pizze vuoi ordinare ?" | |
}, | |
"parent": "slot_11_1503995254569", | |
"event_name": "focus", | |
"dialog_node": "handler_13_1503995254569", | |
"previous_sibling": "handler_12_1503995254569" | |
}, | |
{ | |
"type": "event_handler", | |
"parent": "slot_16_1503999913193", | |
"context": { | |
"numvar": "@sys-number" | |
}, | |
"conditions": "@sys-number", | |
"event_name": "input", | |
"dialog_node": "handler_17_1503999913193" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": "Su quante pizze vuoi fare delle aggiunte" | |
}, | |
"parent": "slot_16_1503999913193", | |
"event_name": "focus", | |
"dialog_node": "handler_18_1503999913193", | |
"previous_sibling": "handler_17_1503999913193" | |
}, | |
{ | |
"type": "event_handler", | |
"parent": "slot_19_1504000091066", | |
"context": { | |
"aggiunte": "@Aggiunte" | |
}, | |
"conditions": "@Aggiunte", | |
"event_name": "input", | |
"dialog_node": "handler_20_1504000091066" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": "Cosa vuoi aggiungere?" | |
}, | |
"parent": "slot_19_1504000091066", | |
"event_name": "focus", | |
"dialog_node": "handler_21_1504000091066", | |
"previous_sibling": "handler_20_1504000091066" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": { | |
"values": [ | |
"Ottima scelta. Abbiamo le migliori $tipo della citta!" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"parent": "slot_7_1503994880521", | |
"conditions": "@Tipo:Margherita", | |
"event_name": "filled", | |
"dialog_node": "handler_22_1504002429787", | |
"previous_sibling": "handler_8_1503994880521" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": { | |
"values": [ | |
"Possiamo prepare delle ottime Margherite, Marinare, Napoli, Capricciose, Funghi e Focacce" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"parent": "node_1_1481272488324", | |
"conditions": "#tipi_pizza", | |
"event_name": "generic", | |
"dialog_node": "handler_24_1504010041386" | |
}, | |
{ | |
"type": "event_handler", | |
"parent": "slot_29_1504011208895", | |
"context": { | |
"orario_consegna": "@sys-time" | |
}, | |
"conditions": "@sys-time", | |
"event_name": "input", | |
"dialog_node": "handler_30_1504011208895" | |
}, | |
{ | |
"type": "event_handler", | |
"output": {}, | |
"parent": "slot_29_1504011208895", | |
"event_name": "focus", | |
"dialog_node": "handler_31_1504011208895", | |
"previous_sibling": "handler_30_1504011208895" | |
}, | |
{ | |
"type": "event_handler", | |
"parent": "slot_36_1504017361311", | |
"context": { | |
"orario_consegna": "@sys-time" | |
}, | |
"conditions": "@sys-time", | |
"event_name": "input", | |
"dialog_node": "handler_37_1504017361311" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": "Puoi specificare meglio l'orario di consegna?" | |
}, | |
"parent": "slot_36_1504017361311", | |
"event_name": "focus", | |
"dialog_node": "handler_38_1504017361311", | |
"previous_sibling": "handler_37_1504017361311" | |
}, | |
{ | |
"type": "event_handler", | |
"parent": "slot_7_1503994880521", | |
"context": { | |
"tipo": "@Tipo" | |
}, | |
"conditions": "@Tipo", | |
"event_name": "input", | |
"dialog_node": "handler_8_1503994880521", | |
"previous_sibling": "handler_9_1503994880521" | |
}, | |
{ | |
"type": "event_handler", | |
"output": { | |
"text": "Che pizze vorresti?" | |
}, | |
"parent": "slot_7_1503994880521", | |
"event_name": "focus", | |
"dialog_node": "handler_9_1503994880521" | |
}, | |
{ | |
"type": "standard", | |
"title": "Modalità di Consegna", | |
"output": { | |
"text": "Consegnamo dalle 18 alle 24 in tutta la città" | |
}, | |
"conditions": "#consegna", | |
"dialog_node": "node_1_1481112413302", | |
"previous_sibling": "node_35_1504017291970" | |
}, | |
{ | |
"type": "frame", | |
"title": "Gestione Ordine", | |
"output": {}, | |
"conditions": "#ordine", | |
"dialog_node": "node_1_1481272488324", | |
"previous_sibling": "node_15_1481279486660" | |
}, | |
{ | |
"type": "response_condition", | |
"output": { | |
"text": { | |
"values": [ | |
"<? intents ?> <?entities?>" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"parent": "node_39_1504018987216", | |
"conditions": "intents[0].confidence < 0.3", | |
"dialog_node": "node_1_1504021911589" | |
}, | |
{ | |
"type": "standard", | |
"title": "Richieste Chiarimenti Prodotti", | |
"output": { | |
"text": "abbiamo pizze di tutti i tipi, crocchette, supplì e bevande sempre fredde!" | |
}, | |
"conditions": "#descrizione", | |
"dialog_node": "node_14_1481279470911", | |
"previous_sibling": "node_35_1481624558269" | |
}, | |
{ | |
"type": "response_condition", | |
"output": { | |
"text": { | |
"values": [ | |
"Perfetto preparerò per te $numpizze pizze $tipo. Preferenze sull'orario di consegna?" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"parent": "node_1_1481272488324", | |
"conditions": "$orario_consegna == null", | |
"dialog_node": "node_14_1503995970516", | |
"previous_sibling": "handler_24_1504010041386" | |
}, | |
{ | |
"type": "standard", | |
"title": "Orario Consegna Ordine", | |
"output": { | |
"text": "garantiamo la consegna entro mezz'ora in tutta la città. Per che ora volete le pizze a casa?" | |
}, | |
"conditions": "#orari", | |
"dialog_node": "node_15_1481279486660", | |
"previous_sibling": "node_14_1481279470911" | |
}, | |
{ | |
"type": "frame", | |
"title": "Gestione Aggiunte", | |
"output": { | |
"text": { | |
"values": [ | |
"Perfetto prepareremo $numpizze meravigliose pizze $tipo, di cui $numvar con $aggiunte" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"conditions": "#topping", | |
"dialog_node": "node_15_1503999755233", | |
"previous_sibling": "node_1_1481272488324" | |
}, | |
{ | |
"type": "standard", | |
"title": "Default", | |
"output": { | |
"text": { | |
"values": [ | |
"Non sono ancora in grado di rispondere a questo tipo di domande" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"conditions": "anything_else", | |
"dialog_node": "node_2_1481112525850", | |
"previous_sibling": "node_1_1481112413302" | |
}, | |
{ | |
"type": "response_condition", | |
"output": { | |
"text": { | |
"values": [ | |
"Intent: <?intents[0].intent?>, Confidence: <?intents[0].confidence?>" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"parent": "node_39_1504018987216", | |
"dialog_node": "node_2_1504022433578", | |
"previous_sibling": "node_1_1504021911589" | |
}, | |
{ | |
"type": "standard", | |
"output": { | |
"text": "Ok, avrai le tue $numpizze pizze $tipo a casa per le @sys-time" | |
}, | |
"parent": "node_15_1481279486660", | |
"conditions": "@sys-time", | |
"dialog_node": "node_23_1481282151899" | |
}, | |
{ | |
"type": "standard", | |
"title": "conversation_start", | |
"output": {}, | |
"conditions": "conversation_start", | |
"dialog_node": "node_25_1504010395270" | |
}, | |
{ | |
"type": "response_condition", | |
"output": { | |
"text": { | |
"values": [ | |
"Perfetto, avrai le tue $numpizze pizze $tipo a casa entro le $orario_consegna. Qualche altra richiesta?", | |
"" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"parent": "node_1_1481272488324", | |
"conditions": "", | |
"dialog_node": "node_28_1504011006364", | |
"previous_sibling": "node_14_1503995970516" | |
}, | |
{ | |
"type": "standard", | |
"title": "Saluti iniziali", | |
"output": { | |
"text": { | |
"values": [ | |
"Ciao, cosa possiamo fare per te ?" | |
] | |
} | |
}, | |
"conditions": "#greetings", | |
"dialog_node": "node_3_1481273405988", | |
"previous_sibling": "node_39_1504018987216" | |
}, | |
{ | |
"type": "response_condition", | |
"output": { | |
"text": { | |
"values": [ | |
"Ciao. Benvenuto nel nostro negozio. Come possiamo aiutarti?", | |
"Ciao e benvenuto. Cosa possiamo preparare di buono per te?" | |
], | |
"selection_policy": "random" | |
} | |
}, | |
"parent": "node_25_1504010395270", | |
"context": { | |
"orario_consegna": null | |
}, | |
"dialog_node": "node_33_1504013990753" | |
}, | |
{ | |
"type": "standard", | |
"title": "Informazioni", | |
"output": { | |
"text": { | |
"values": [ | |
"Posso darti informazioni sulla nostra offerta di prodotti, modalità e luoghi di consegna ed aiutarti a scegliere le pizze più adatte ai tuoi gusti", | |
"" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"conditions": "#capabilities", | |
"dialog_node": "node_35_1481624558269", | |
"previous_sibling": "node_3_1481273405988" | |
}, | |
{ | |
"type": "frame", | |
"title": "Preferenze Orario Consegna", | |
"output": { | |
"text": { | |
"values": [ | |
"Ok, avrai le tue $numpizze pizze $tipo a casa tua verso le $orario_consegna" | |
], | |
"selection_policy": "sequential" | |
} | |
}, | |
"conditions": "#orario_consegna", | |
"dialog_node": "node_35_1504017291970", | |
"previous_sibling": "node_15_1503999755233" | |
}, | |
{ | |
"type": "standard", | |
"title": "Debug node", | |
"output": {}, | |
"conditions": "true", | |
"dialog_node": "node_39_1504018987216", | |
"previous_sibling": "node_25_1504010395270" | |
}, | |
{ | |
"type": "slot", | |
"parent": "node_1_1481272488324", | |
"variable": "$numpizze", | |
"dialog_node": "slot_11_1503995254569", | |
"previous_sibling": "slot_7_1503994880521" | |
}, | |
{ | |
"type": "slot", | |
"parent": "node_15_1503999755233", | |
"variable": "$numvar", | |
"dialog_node": "slot_16_1503999913193" | |
}, | |
{ | |
"type": "slot", | |
"parent": "node_15_1503999755233", | |
"variable": "$aggiunte", | |
"dialog_node": "slot_19_1504000091066", | |
"previous_sibling": "slot_16_1503999913193" | |
}, | |
{ | |
"type": "slot", | |
"parent": "node_1_1481272488324", | |
"variable": "$orario_consegna", | |
"dialog_node": "slot_29_1504011208895", | |
"previous_sibling": "slot_11_1503995254569" | |
}, | |
{ | |
"type": "slot", | |
"parent": "node_35_1504017291970", | |
"variable": "$orario_consegna", | |
"dialog_node": "slot_36_1504017361311" | |
}, | |
{ | |
"type": "slot", | |
"parent": "node_1_1481272488324", | |
"variable": "$tipo", | |
"dialog_node": "slot_7_1503994880521", | |
"previous_sibling": "node_28_1504011006364" | |
} | |
], | |
"counterexamples": [], | |
"learning_opt_out": false, | |
"name": "Pizza a domicilio", | |
"language": "it", | |
"description": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment