<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Implementing a Pragmatically Adequate Chatbot in DialogFlow CX</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anna Dall'Acqua</string-name>
          <email>anna.dallacqua2@unibo.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabio Tamburini</string-name>
          <email>fabio.tamburini@unibo.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>. FICLIT, University of Bologna</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>. Injenia S.r.l.</institution>
          ,
          <addr-line>Bologna</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents work in progress concerning the implementation of a list of linguistic patterns developed in an original way to be pragmatically adequate. These patterns for Italian are strongly rooted in Conversation Analysis and are adaptable and portable into different domains. The platform used for the implementation is Dialogflow CX.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        Although the first dialogue systems began to
appear around the second half of the last century
        <xref ref-type="bibr" rid="ref29 ref8">(Weizenbaum, 1966; Colby et al., 1971)</xref>
        is it
especially in recent years that we have witnessed a
proliferation of these technologies in a wide
variety of fields
        <xref ref-type="bibr" rid="ref28 ref6 ref9">(Tsvetkova et al., 2017; Chaves et
al., 2019; Dale, 2016)</xref>
        . The numerous attempts
that have been made to classify them (Radziwill
a
        <xref ref-type="bibr" rid="ref21">nd Benton, 2017</xref>
        ; Følstad et al., 2019; Hussain et
al., 2019; Mathur a
        <xref ref-type="bibr" rid="ref2">nd Sing, 2018</xref>
        ) and the absence
of an unequivocal taxonomy
        <xref ref-type="bibr" rid="ref12 ref14 ref19 ref4">(Braun and Matthes,
2019)</xref>
        contribute to the lack of a methodological
approach for designing conversational agents.
      </p>
      <p>
        The recent technological developments have
led to the standardisation of the technical
frameworks: the main Natural Language
Understanding (NLU) platforms, both developed by
technology giants such as Google Dialogflow, IBM
Watson, and Microsoft Luis and those from the open
source community such as RASA, contributed to
the affirmation of the dominant paradigm based
on intents, entities and responses for building
conversational agents
        <xref ref-type="bibr" rid="ref1 ref12 ref14 ref19 ref4">(Adamopolou and
Moussiades, 2020; Moore and Arar, 2019)</xref>
        . The
existing flourishing literature about this aspect
(Ahmad et al., 2018; Adamopolou and Moussiades,
      </p>
      <p>
        Copyright © 2021 for this paper by its authors. Use
permitted under Creative Commons License Attribution 4.0
International (CC BY 4.0).
2020) has not been associated with equivalent
research on methods and linguistic theories that can
be pursued for the design phase of conversational
projects. During the survey of methodological
studies on conversation design, it became clear
that there is no shared standard and that various
methodological contributions of a practical nature
do not refer to a specific theoretical linguistic
perspective
        <xref ref-type="bibr" rid="ref11 ref13 ref20 ref7">(Dasgupta, 2018; Pearl, 2016; Cohen et
al., 2004; Hall, 2018)</xref>
        .
      </p>
      <p>In this work we embrace the Natural
Conversation Framework (NCF) whose validity has been
already demonstrated in Dall’Acqua and
Tamburini (in press); we select some of its most
representative patterns and we implemented them on
the newly released version of Google Dialogflow
CX. This paper is intended as a continuation of
the work presented in Dall’Acqua, Tamburini (in
press), which sets out the theoretical and
methodological assumptions on which this work is based.
2</p>
      <p>
        The Natural Conversation Framework
as a Theoretically Funded Approach
Among the linguistic approaches available to
analyse interactional exchanges, a pragmatic
perspective appears to be the most appropriate
        <xref ref-type="bibr" rid="ref3">(Bianchini
et al., 2017)</xref>
        , especially in its declination of
Conversation Analysis
        <xref ref-type="bibr" rid="ref22 ref24">(Schegloff et al., 1977; Sacks et
al., 1974)</xref>
        . For this reason, we claim that the
Natural Conversation Framework (NCF) identified by
Moore and Arar (2019), consisting of language
patterns structured into sequences in the
theoretical groove of Conversation Analysis, could be
a promising starting point for the definition of a
potentially generalisable and adaptable linguistic
methodology.
      </p>
      <p>Since we have already demonstrated the
theoretical validity of this approach and we have
included it in a practical and applicative
procedural workflow on Dialogflow ES (Dall’Acqua and
Tamburini, in press) this work aims to continue the
research by transposing some of the most
significant patterns on the new and very recent version
(Nov. 2020) of the platform.
3</p>
    </sec>
    <sec id="sec-2">
      <title>Dialogflow CX</title>
      <p>
        The renewed version of Dialogflow is linked to the
information-based approach
        <xref ref-type="bibr" rid="ref16 ref27">(Larsson and Traum,
2000; Traum and Larsson, 2003)</xref>
        and opens to
more dynamic scenarios: since it is structured
as a finite-state machine, it allows the users to
build more flexible, reusable and adaptable
patterns. The level of dialogues complexity that can
potentially be created is enhanced by the wider
range of features that the new tool has to offer:
it allows the transition from one state of the
conversation to another to be visualized through the
creation of pages, which are the states of the
underlying state machine, configured to collect
enduser information relevant to that state of the
conversation1. The conversational flow itself is
therefore made of pages, connectors between the pages
(known as state handlers2) and flows , reciprocally
independent units of dialogues used to manage
more complex conversational agents.
4
      </p>
    </sec>
    <sec id="sec-3">
      <title>Conversational Architecture and</title>
    </sec>
    <sec id="sec-4">
      <title>Pattern Selection</title>
      <p>We enlarged the implementation started in our
previous work combining together in an original
way a selection of patterns identified by Moore
and Arar (2019) and trying to reproduce the most
representative, widespread and generalisable
usecases of an high-level conversational agent with
practical purposes roughly oriented to customer
care. Here, it is not relevant the precise use of the
demonstrated chatbot, as the main point is to show
and describe the potentialities of the proposed
approach. We have adapted patterns taken to all the
categories of the classification proposed by Moore
and Arar (2019) and suggest that they may also
be considered as a best-practice to be taken into
account in the summary roadmap towards the
implementation previously presented.</p>
      <p>In our work we have created three flows. As
Fig. 1 shows, they are all connected to the main
lfow (Default Start Flow) both in the initial and in
the final state of each flow. The three flows are:
1https://cloud.google.com/dialogflow/
cx/docs/concept/page</p>
      <p>
        2https://cloud.google.com/dialogflow/
cx/docs/concept/handler
• Registration (Registrazione): it reproduces an
online registration procedure. It aims to
generalise the use-case in which the user has to
provide some data (entities), divided into
mandatory data (without which the procedure cannot
succeed) and optional data (the registration can
take place correctly even without these data).
The procedure of extracting data from the user
(slot filling) is portable to multiple domains
        <xref ref-type="bibr" rid="ref18">(Mohamad Suhaili et al., 2021)</xref>
        (Fig. 2).
• App Download (Scaricare App): it supports the
user during a download procedure in multiple
steps. It aims to show the application of the
story-telling sequences
        <xref ref-type="bibr" rid="ref15">(Jefferson, 1978)</xref>
        used
to express a content that needs to be parcelled
out into smaller pieces of speech. Furthermore,
it offers a rudimentary troubleshooting
procedure in case of error during the download, that
can be actually used to diagnose and manage
also other typologies of errors. The widespread
of troubleshooting procedures in chatbots is
demo
        <xref ref-type="bibr" rid="ref21">nstrated in (Thorne, 2017</xref>
        ), which also
endorses the portability of this type of
conversational interactions into multiple domains (Fig.
3).
• Discounts (Sconti): this flow is dedicated to
typologies of discounts and promotions available
and it is used to show a combination of patterns
that allows to manage series of contextual
questions related to the same subject (Fig. 4).
      </p>
      <p>Now we are going to review the most
pragmatically relevant points of each created flow, aiming
to show the adaptability of the patterns also to the
Italian language and its suitability to multiple
context of use.
4.1</p>
      <sec id="sec-4-1">
        <title>Default Start Flow</title>
        <p>The Default Start Flow opens with a slightly
revisited version of the pattern C1.4 Opening Welfare
Check (Agent)3: if the NAME REQUEST in the
ifrst turn is for some reasons not satisfied, the
agent goes straight to the practical purposes of the
conversation, skipping the WELFARE CHECK, as
the following dialogues show:
1 A: CCioamo,estoincohiTaemoi,?il tuo assistente virtuale.
2 U: Anna, piacere.
3 A: Piacere di conoscerti, Anna. Come stai?</p>
        <p>3The complete list of all patterns is available in Moore
and Arar (2019) and on the website https://resear
cher.watson.ibm.com/researcher/view gro
up subpage.php?id=10182. The Appendix lists the
implemented patterns.
4 U: al top</p>
        <p>Ottimo, sono felice per te! Sono qui per darti
qualche informazione su alcuni semplici argomenti:
5 A: gli sconti e la procedura di scaricamento della
nostra app. Inoltre, posso aiutarti a registrarti sul nostro
sito, direttamente in chat. Di che cosa hai bisogno?
1 A: cChiiaaom,is?ono Teo, il tuo assistente virtuale. Come ti</p>
        <sec id="sec-4-1-1">
          <title>2 U: cavoli miei</title>
          <p>Ok, non importa, intanto sai gia` il mio :) Sono qui
per darti qualche informazione su alcuni semplici
3 A: adreglloamneonsttir:agalipspc.oInntoiletrlea,pprooscseoduairuatdaritsicaarriecgaimsteranrttoi
sul nostro sito, direttamente in chat. Di che cosa hai
bisogno?</p>
          <p>The agent’s reaction in the turn WELFARE
RECEIPT (NEUTRAL/POSITIVE/NEGATIVE)
is also conditioned by the user’s response. From
the page inizio.flusso.generico (generic starting
lfow) the intents that introduce the flows can be
activated, or the user can freely leave the
conversation if he/she is not interested in the proposed
subjects. In addition, we have also implemented a
new version of the pattern B4.2 Sequence closer
Appreciation (helped): instead of an admission
of not-knowing from the chatbot (NO ANSWER
ACCOUNT), we have collocated at one of the
initial pages, before that one flow has ever being
activated: this condition motivates the answer
provided in the following dialog after the thanks from
the user:
1 A: cChiiaaom,is?ono Teo, il tuo assistente virtuale. Come ti</p>
        </sec>
        <sec id="sec-4-1-2">
          <title>2 U: Ciao sono Francesco</title>
          <p>3 A: Piacere di conoscerti, Francesco. Come stai?
4 U: bene</p>
          <p>Bene. Sono qui per darti qualche informazione su
alcuni semplici argomenti: gli sconti e la procedura
5 A: di scaricamento della nostra app. Inoltre, posso
aiutarti a registrarti sul nostro sito, direttamente in chat.</p>
          <p>Di che cosa hai bisogno?
6 U: Grazie mille
7 A: Non mi pare di aver fatto molto. . . Tuttavia, prego!
The same pattern is handled differently in the other
lfows, if the agent actually provided help to the
user.
4.2</p>
          <p>Registration (Registrazione)
When the user directly types something like “I’d
like to register to the site” (Vorrei registrarmi sul
sito), the dedicated flow will be activated and the
data extraction procedure will be started. The most
appropriate patterns to extract data are: A2.6
Open Request Summary, A2.7 Warrant
Request &amp; Refusal, A2.11 Open Request Repairs
and B2.4. Paraphrase Request (elaboration)
combined in original way in order to manage both
mandatory and optional data to complete the
online registration. Similar patterns have been
already implemented in Dialogflow ES (Dall’Acqua
and Tamburini, in press), but the output on
Dialogflow CX is even more effective also in terms
of feasibility of the implementation. As the
following dialogue shows</p>
        </sec>
        <sec id="sec-4-1-3">
          <title>1 U: Volevo registrarmi al sito</title>
          <p>Per poterti registrare al sito e creare un tuo profilo
devo raccogliere qualche tuo dato. Avrei bisogno
2 A: di nome e cognome, come ad esempio: “Marco</p>
          <p>Rossi”.
3 U: Lucia Mondella
4 A: Qual e` il tuo numero di carta fedelta`?
5 U: Quale carta?</p>
          <p>La carta fedelta` e` una carta che ti permette di
raccogliere punti ad ogni tuo acquisto, in negozio e
6 A: online. Non e` obbligatoria, ma attivandola potrai
godere di sconti speciali su diversi nostri prodotti.</p>
          <p>Qual e` il tuo numero di carta fedelta`?
7 U: Quale numero ti devo dire?</p>
          <p>Il codice e` a 5 cifre e si trova sul retro della tua carta
8 A: fedelta`.</p>
        </sec>
        <sec id="sec-4-1-4">
          <title>9 U: non lo vedo</title>
          <p>Il codice di carta fedelta` e` a cinque cifre (es:
10 A: “12345”) e si trova sul retro della carta, in basso
a destra. Qual e` il tuo numero di carta fedelta`?
11 U: non ce l’ho</p>
          <p>Ok, non c’e` problema. In ogni caso, potrai
aggiornare questa sezione in ogni momento della
pag12 A: ina personale del tuo profilo. Per finire, ho bisogno
di un’ultima informazione. Qual e` la tua email?
13 U: luciamondella@libero.it</p>
          <p>Perfetto. Ricapitolando: avvio la procedura di
registrazione a nome di Lucia Mondella, numero di
14 A: carta non fornito, e invio un’email di conferma
all’indirizzo luciamondella@libero.it. E` tutto
corretto?
15 U: no, volevo inserire un dato
16 A: quale dato volevi inserire?
17 U: ho recuperato la carta.</p>
          <p>Certamente. Ridigita pure il numero della carta
18 A: fedelta`. Ti ricordo che e` un numero a cinque cifre e
si trova sul retro della carta.
19 U: 12345</p>
          <p>
            Perfetto. Ricapitolando: avvio la procedura di
registrazione a nome di Lucia Mondella, numero
20 A: di carta 12345, e invio un’email di conferma
all’indirizzo luciamondella@libero.it. E` tutto
corretto?
Ottimo, Lucia Mondella. Abbiamo finito. A breve,
riceverai una mail all’indirizzo che mi hai
indi21 U: cato per il completamento della registrazione. Hai
bisogno di altre informazioni su sconti, app o
registrazione?
22 A: no, son a posto
23 U: Va bene. Alla prossima!
we have adapted the selected patterns to the
situation, transposing them into questions related to
the topic “fidelity card” like “which card?” ( quale
carta?) and “which number should I say?” (quale
numero devo dire?) and a repair procedure with
“I can’t see it” (non lo vedo). It is noticeable
that in case of questions or repairs related to it
that are predictable, the agent reacts accordingly
paraphrasing what it has previously said or
providing additional information that may help the
user to supply the requested data, without
stopping to prompt him/her to move the conversation
forward (“Which is your fidelity’s card number?”
Qual e` il numero della tua carta fedelt a`?). The
main difference between the same conversational
lfow on the two versions of Dialogflow is the
effectiveness of the final summary, which is a
requirement for a correct data extraction procedure
            <xref ref-type="bibr" rid="ref12 ref14 ref19 ref4">(Moore and Arar, 2019)</xref>
            . Here the user can choose
to not provide an optional data such as the
fidelity card number, but if after the final summary
he/she chooses instead to insert it, the agent
allows the modification and shows the restored value
in the next REQUEST SUMMARY, asking again if
the summary is correct or not. If is it correct, this
lfow is going to an end and it proposes one of
rethe last pages of it, namely the final.check.
alised with the pattern C4.0 Last Topic Check
(Agent) in which the agent invites the user or to
transit from another flow, or to freely interrupt the
conversation. Another relevant ramification of the
lfow “Registrazione” shows the management of an
obligatory data, such as the name:
          </p>
        </sec>
        <sec id="sec-4-1-5">
          <title>1 A: Mi devo registrare al sito</title>
          <p>Per poterti registrare al sito e creare un tuo profilo
devo raccogliere qualche tuo dato. Avrei bisogno
2 U: di nome e cognome, come ad esempio: “Marco</p>
          <p>Rossi”.
3 U: perche´?</p>
          <p>Il nome e` un requisito essenziale per la
regis4 A: trazione. Non preoccuparti, sara` gestito come dato
personale e sara` visibile solo a te. Come ti chiami?
5 U: non voglio dire il mio nome ad un robot</p>
          <p>Capisco. Senza questo dato, per o`, non posso aiutarti
6 A: con la registrazione. Preferisci interrompere qui?
7 U: no va bene</p>
          <p>Va bene. Ripren
diamo allora da dove eravamo rimasti. Per poterti
8 A: registrare al sito e creare un tuo profilo devo
raccogliere qualche tuo dato. Avrei bisogno di nome e
cognome, come ad esempio: “Marco Rossi”.
9 U: Stupido robot</p>
          <p>Non serve a nulla reagire in modo aggressivo.
10 A: Come ti chiami?
11 U: cretino!</p>
          <p>In questo modo stai ferendo il mio povero cuore
12 A: metallico. Come ti chiami?
13 U: non te lo dico</p>
          <p>Capisco. Senza questo dato, per o`, non posso aiutarti
14 A: con la registrazione. Preferisci interrompere qui?
15 U: s`ı ciao
Also in this case we have provided a series of
specific question related to the topic such as “why?”
(perche´?), but if the user refuses to provide this
data, the chatbot suggests to interrupt the
procedure. Since the goal of this demo is to show the
potentialities of this methodology, we have stressed
the possibilities of the conversation making the
user going back to the previous procedure,
apparently willing to provide the name. But once
the data extraction procedure starts again, the user
starts to insult the robot, that reacts accordingly
to every insult but without stopping to ask for the
name, until the user communicates his/her will of
interrupting the procedure and the conversation.
4.3</p>
          <p>App Download (Scaricare App)
We have figured this flow out to show the
transponibility of patterns A3.0 Extended Telling
with Repair and A3.1 Extended Telling Abort,
that are normally used to expose a story, an
anecdote or a list of instructions that cannot be
achieved in one single conversational turn. This
lfow can be activated taping an expression
associated to the corresponding intent, such as “how
do I download the app?” (come scarico l’app?),
that leads to the first step of the explanation, with
an extra-prompt to the user (“Did you find it?”
L’hai trovata?) to move the conversation
forward. If the user claims he/she did not find it,
the agent provides additional information to make
the recognition easier, which may eventually end
up in troubleshooting procedure carried out by the
pages “app.non.trovata”, “app.non.trovata.2”,
“app.non.trovata.3”.</p>
        </sec>
        <sec id="sec-4-1-6">
          <title>1 U: come si scarica l’app?</title>
          <p>Prima di tutto, vai su App Store o su Playstore
2 A: reicdeirgciata. Cilons`ıomfaceednedloladnovorsetrsati cvaetdeenrae nlaelnlaosbtraarraapdpi.</p>
          <p>L’hai trovata?
3 U: Non la vedo</p>
          <p>L’app si chiama esattamente come la nostra catena
di negozi ed e` rappresentata da un triangolo di
col4 A: ore verde. Prova a uscire rientrare dall’App Store
che stai utilizzando e a digitare nuovamente il nome
nella barra di ricerca. Adesso l’hai trovata?
5 U: eccola
6 A: qPueraflecthteo,seacdoensdsoo. puoi scaricarla. Ci vorra` solo</p>
        </sec>
        <sec id="sec-4-1-7">
          <title>7 U: come si fa?</title>
          <p>8 A: cFaarceenl’daopptaspulstuuo“isnmstaarltlpa”hodnoev.resti riuscire a
scari9 U: ok</p>
          <p>A questo punto, una volta installata, ti basta inserire
10 A: laasstoucaiamreailla etuial atpupo anlutmuoerporodfiloelolanlcinaret,aagfegdioelrtna`arpeer
tutte le tue informazioni e poter fare acquisti.
11 U: grazie mille
12 A: aPprepgoo!reHgiasitrbaizsioognneo? di altre informazioni su sconti,</p>
          <p>The last two pages represent the final states of
troubleshooting, which therefore may not be
invoked if the user has solved the problem in the
previous states.</p>
          <p>
            The conversation is articulated in a sequence
of instructions: each following step in the
explanation is motivated by the CONTINUER tipped
by the user, that allows the agent to provide
another piece of information until the procedure is
ifnished
            <xref ref-type="bibr" rid="ref25">(Schegloff, 1982)</xref>
            . The conversational
turns in which the user simply reports that the
previous step has been received can be alternated
with repair procedures, in which the user asks
for explanations regarding a specific step
            <xref ref-type="bibr" rid="ref23">(Sacks
et al., 1992)</xref>
            , as shown in the dialogue above.
In every moment of the procedure, the user may
also notify that he/she has actually completed
the procedure through an intent categorised as
COMPLAINT/ABORT REQUEST and the agent
should therefore stop providing instructions. In
our flow the agent acknowledges the user’s request
(”Great!” Ottimo!) and steps forward to the page
ifnal.check. :
          </p>
        </sec>
        <sec id="sec-4-1-8">
          <title>1 U: come faccio a scaricare l’app?</title>
          <p>Prima di tutto, vai su App Store o su Playstore
2 A: reicdeirgciata. Cilons`ıomfaceednedloladnovorsetrsati cvaetdeenrae nlaelnlaosbtraarraapdpi.</p>
          <p>L’hai trovata?
3 U: s`ı
4 A: qPueraflecthteo,seacdoensdsoo. puoi scaricarla. Ci vorra` solo</p>
        </sec>
        <sec id="sec-4-1-9">
          <title>5 U: Ok basta ho risolto grazie</title>
          <p>6 A: rOetgtiismtroa!ziHonaei?bisogno di altro su sconti, app oppure
4.4</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>Discounts (Sconti)</title>
        <p>With this last flow we would like to demonstrate
the applicability of two more patterns, namely
the pattern A2.9 Open Request Incremental</p>
      </sec>
      <sec id="sec-4-3">
        <title>A2.10 Open Request Series, A2.4 Open Request</title>
        <p>Agent Detail Request. They are used to manage
situations in which the users asks a series of
questions related to a single topic or switches topic but
asks similar questions related to it. As the
following dialogue shows</p>
        <sec id="sec-4-3-1">
          <title>1 U: Che sconti avete?</title>
          <p>Esistono due principali tipologie di sconto: lo
2 A: sconto newsletter e lo sconto del mese. Su quale
di queste vorresti ricevere maggiori informazioni?
3 U: il primo</p>
          <p>Iscrivendoti alla nostra newsletter riceverai uno
4 A: sconto di del 10% utilizzabile una sola volta su una
spesa di almeno 30 euro, online o in negozio.
5 U: Posso usarlo anche per un acquisto online?
6 A: sNcoonnthoonecwapsilteot,tepr?uoi ripetere la tua domanda sullo
7 U: npeogssooziou?sare lo sconto newsletter sia online sia in
Puoi utilizzare lo sconto newsletter su tutti i tuoi
8 A: acquisti, sia online, sia in negozio.
9 U: Come funziona?</p>
          <p>Basta cliccare su “Iscrizione newsletter” in alto a
destra in ogni pagina del sito e inserire la tua email
nella tab che si apre. Presto arrivera` in posta un
10 A: codice sconto a sei cifre che potrai applicare ad un
acquisto online o in negozio a partire da 30 euro di
spesa.
11 U: ok</p>
          <p>Hai bisogno di altro sugli sconti, sulla procedura di
12 A: registrazione, o su come scaricare l’app?
13 U: volevo delle informazioni sullo sconto del mese</p>
          <p>Per il mese di gennaio, prevediamo una promozione
14 A: ssuugolginairtpicroodlioptteor ibnadmicbaitnoic,ocnonilusnimobsocloon“toCdheilld5”0s%ia
online sia in negozio.
15 U: Quando scade?</p>
          <p>Questo tipo di sconto si rinnova di mese in mese:
16 A: questo, ad esempio, sara` valido fino al 31 di
gennaio.
17 U: come si usa?</p>
          <p>Lo sconto verra` automaticamente applicato se il
prodotto scelto per l’acquisto e` oggetto della
promozione: se stai acquistando online, verra` applicato
18 A: il prezzo scontato indicato accanto al protocollo,
altrimenti ti verra` applicato lo sconto direttamente in
cassa.
19 U: ok grazie mille</p>
          <p>Prego! Hai bisogno di altro sugli sconti, sulla
pro20 A: cedura di registrazione, o su come scaricare l’app?
21 U: no grazie
22 A: Va bene. Alla prossima!
the conversation opens with a generic open
request from the user (“what kinds of discounts do
you have?” che sconti avete?) that is satisfied
by the agent with a request of more details: the
agent needs to know the specific type of discount
as additional detail to provide specific information
about it. Once the type of discount is defined, the
user can start asking specific question related to
it without always specifying the subject. Once
the user has satisfied his/her needs in relation to
newsletter discount, at the final.check page he/she
can switch the topic and start asking a series of
question related to the other one, until the user has
achieved all the needed information. Once the user
thanks the agent, this is perceived as an
acknowledgement of a successful conversation, so the
conversational flow can go away.
5</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusions and Future Directions of the Research</title>
      <p>We have demonstrated the applicability of this
method also on the new released version of one
of the most important Natural Language
Understanding platform, namely Dialogflow CX. Since
this version of Dialogflow has been released for
the Italian language only in November 2020, to
our knowledge this is the only study in which this
platform is used for Italian and for the realisation
of a conversational project with practical purposes.
This is therefore a further and more complete
implementation of the pragmatic adequateness of this
approach.</p>
      <p>
        In the future, we would like to evaluate the
effectiveness of this approach on a fully functional
prototype that can be adapted not only for
commercial purposes, but also for other important
application contexts, such as education. Due to the
variety of frameworks available for the evaluation
process
        <xref ref-type="bibr" rid="ref5">(Casas et al., 2020)</xref>
        , the question of the
most suitable evaluation method is still open for
further discussion.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>We would like to thank Injenia S.r.l. for
supporting this research. CRediT author statement; ADA:
Conceptualization, Methodology, Validation,
Formal Analysis, Investigation, Writing (Original
Draft), Writing (Review &amp; Editing); FT:
Conceptualization, Supervision, Project Administration,
Writing (Review &amp; Editing), Funding Acquisition.</p>
    </sec>
    <sec id="sec-7">
      <title>Appendix</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>E.</given-names>
            <surname>Adamopolou</surname>
          </string-name>
          and
          <string-name>
            <given-names>L.</given-names>
            <surname>Moussiades</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>An overview of chatbot technologies</article-title>
          .
          <source>Artificial Intelligence Applications and Innovations</source>
          ,
          <volume>584</volume>
          :
          <fpage>373</fpage>
          -
          <lpage>383</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>N. A.</given-names>
            <surname>Ahmad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. H.</given-names>
            <surname>Che</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zainal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A. R.</given-names>
            <surname>Fairuz</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Adnan</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Review of chatbots design techniques</article-title>
          .
          <source>International Journal of Computer Applications</source>
          ,
          <volume>181</volume>
          (
          <issue>8</issue>
          ):
          <fpage>7</fpage>
          -
          <lpage>10</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>A.</given-names>
            <surname>Bianchini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Tarasconi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ventaglio</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Guadalupi</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>“gimme the usual” - how handling of pragmatics improves chatbots</article-title>
          .
          <source>In Proceedings of the Fourth Italian Conference on Computational Linguistics</source>
          (CLiC-it
          <year>2017</year>
          ), pages
          <fpage>30</fpage>
          -
          <lpage>35</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>D.</given-names>
            <surname>Braun</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Matthes</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Towards a framework for classifying chatbots</article-title>
          .
          <source>In Proceedings of the 21st International Conference on Enterprise Information Systems (ICEIS</source>
          <year>2019</year>
          ), pages
          <fpage>484</fpage>
          -
          <lpage>489</lpage>
          . volume
          <volume>1</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>J.</given-names>
            <surname>Casas</surname>
          </string-name>
          , M.
          <article-title>-</article-title>
          <string-name>
            <surname>O. Tricot</surname>
            ,
            <given-names>O. Abou</given-names>
          </string-name>
          <string-name>
            <surname>Khaled</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Mugellini</surname>
            , and
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Cudre</surname>
          </string-name>
          ´-Mauroux.
          <year>2020</year>
          .
          <article-title>Trends &amp; methods in chatbot evaluation</article-title>
          .
          <source>In Companion Publication of the 2020 International Conference on Multimodal Interaction, page 280-286</source>
          , New York, NY, USA. Association for Computing Machinery.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>A. P.</given-names>
            <surname>Chaves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Doerry</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Egbert</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Gerosa</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>It's how you say it: Identifying appropriate register for chatbot language design</article-title>
          .
          <source>In Proceedings of the 7th International Conference on HumanAgent Interaction</source>
          , pages
          <fpage>102</fpage>
          -
          <lpage>109</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>M. H. Cohen</surname>
            ,
            <given-names>J. P.</given-names>
          </string-name>
          <string-name>
            <surname>Giangola</surname>
            , and
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Balogh</surname>
          </string-name>
          .
          <year>2004</year>
          .
          <article-title>Voice User Interface Design</article-title>
          . Addison Wesley.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>K. M. Colby</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Weber</surname>
            , and
            <given-names>F. D.</given-names>
          </string-name>
          <string-name>
            <surname>Hilf</surname>
          </string-name>
          .
          <year>1971</year>
          .
          <article-title>Artificial paranoia</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>2</volume>
          (
          <issue>1</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>25</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>R.</given-names>
            <surname>Dale</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Industry watch the return of chatbots</article-title>
          .
          <source>Natural Language Engineering</source>
          ,
          <volume>22</volume>
          (
          <issue>5</issue>
          ):
          <fpage>811</fpage>
          -
          <lpage>817</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>A.</given-names>
            <surname>Dall'Acqua</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Tamburini</surname>
          </string-name>
          . in press.
          <article-title>Toward a linguistically grounded dialog model for chatbot design</article-title>
          .
          <source>Italian Journal of Computational Linguistics</source>
          ,
          <volume>7</volume>
          (
          <issue>1</issue>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <given-names>R.</given-names>
            <surname>Dasgupta</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Voice User Interface Design. Moving from GUI to Mixed Modal Interaction</article-title>
          . Apress.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <given-names>A.</given-names>
            <surname>Følstad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Skjuve</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P. B.</given-names>
            <surname>Brandtzaeg</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Different chatbots for different purposes: Towards a typology of chatbots to understand interaction design</article-title>
          . In S. S. Bodrunova,
          <string-name>
            <given-names>O.</given-names>
            <surname>Koltsova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Følstad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Halpin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Kolozaridi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Yuldashev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Smoliarova</surname>
          </string-name>
          , and H. Niedermayer, editors,
          <source>Internet Science. INSCI 2018. Lecture Notes in Computer Science</source>
          , pages
          <fpage>145</fpage>
          -
          <lpage>156</lpage>
          . vol
          <volume>11551</volume>
          , Springer, Cham.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>E.</given-names>
            <surname>Hall</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Conversational design. A Book Apart</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <given-names>S.</given-names>
            <surname>Hussain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. Ameri</given-names>
            <surname>Sianaki</surname>
          </string-name>
          , and
          <string-name>
            <given-names>N.</given-names>
            <surname>Ababneh</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>A survey on conversational agents/chatbots classification and design techniques</article-title>
          . In L. Barolli,
          <string-name>
            <given-names>M.</given-names>
            <surname>Takizawa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Xhafa</surname>
          </string-name>
          , and T. Enokido, editors,
          <source>Web, Artificial Intelligence and Network Applications. WAINA 2019. Advances in Intelligent Systems and Computing</source>
          . vol
          <volume>927</volume>
          . Springer, Cham.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <given-names>G.</given-names>
            <surname>Jefferson</surname>
          </string-name>
          .
          <year>1978</year>
          .
          <article-title>Sequential aspects of storytelling in conversation</article-title>
          . In J. Schenkein, editor,
          <source>Studies in the Organization of Conversational Interaction</source>
          , pages
          <fpage>219</fpage>
          -
          <lpage>48</lpage>
          . Academic Press.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <given-names>S.</given-names>
            <surname>Larsson</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.R.</given-names>
            <surname>Traum</surname>
          </string-name>
          .
          <year>2000</year>
          .
          <article-title>Information state and dialogue management in the trindi dialogue move engine toolkit</article-title>
          .
          <source>Natural Language Engineering</source>
          ,
          <volume>6</volume>
          (
          <issue>3</issue>
          -4):
          <fpage>323</fpage>
          -
          <lpage>340</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <string-name>
            <given-names>V.</given-names>
            <surname>Mathur</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Sing</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>The rapidly changing landscape of conversational agents</article-title>
          .
          <source>arXiv</source>
          <year>1803</year>
          .08419v2, pages
          <fpage>1</fpage>
          -
          <lpage>14</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <string-name>
            <given-names>S.</given-names>
            <surname>Mohamad Suhaili</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Salim</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M. Nazim</given-names>
            <surname>Jambli</surname>
          </string-name>
          .
          <year>2021</year>
          .
          <article-title>Service chatbots: A systematic review</article-title>
          .
          <source>Expert Systems with Applications</source>
          ,
          <volume>184</volume>
          :
          <fpage>115461</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          <string-name>
            <given-names>R. J.</given-names>
            <surname>Moore</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Arar</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Conversational UX Design. A Practitioner's Guide to the Natural Conversation Framework</article-title>
          .
          <article-title>Association for Computing Machinery</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          <string-name>
            <given-names>C.</given-names>
            <surname>Pearl</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Designing Voice User Interfaces</article-title>
          .
          <source>Principles of Conversational Experiences. O'Reilly.</source>
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          <string-name>
            <given-names>N.</given-names>
            <surname>Radziwill</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Benton</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Evaluating quality of chatbots and intelligent conversational agents</article-title>
          .
          <source>arXiv 1704</source>
          .04579.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          <string-name>
            <given-names>H.</given-names>
            <surname>Sacks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Schegloff</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G.</given-names>
            <surname>Jefferson</surname>
          </string-name>
          .
          <year>1974</year>
          .
          <article-title>A simplest systematics for organization of turn-taking for conversation</article-title>
          .
          <source>Language</source>
          ,
          <volume>50</volume>
          :
          <fpage>696</fpage>
          -
          <lpage>735</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          <string-name>
            <given-names>H.</given-names>
            <surname>Sacks</surname>
          </string-name>
          , E. Schegloff, and
          <string-name>
            <given-names>G.</given-names>
            <surname>Jefferson</surname>
          </string-name>
          .
          <year>1992</year>
          . Lectures on Conversation, volume
          <string-name>
            <surname>I</surname>
          </string-name>
          , II. Blackwell.
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Schegloff</surname>
          </string-name>
          , G. Jefferson, and
          <string-name>
            <given-names>H.</given-names>
            <surname>Sacks</surname>
          </string-name>
          .
          <year>1977</year>
          .
          <article-title>The preference for self-correction in the organization of repair in conversation</article-title>
          .
          <source>Language</source>
          ,
          <volume>53</volume>
          (
          <issue>2</issue>
          ):
          <fpage>361</fpage>
          -
          <lpage>382</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          <string-name>
            <given-names>E.A.</given-names>
            <surname>Schegloff</surname>
          </string-name>
          .
          <year>1982</year>
          .
          <article-title>Discourse as an interactional achievement: Some uses of 'uh huh' and other things that come between sentences</article-title>
          . In D. Tannen, editor,
          <source>Analysing Discourse: Text and Talk</source>
          , page
          <volume>71</volume>
          -
          <fpage>93</fpage>
          . Washington DC, Georgetown University Press.
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          <string-name>
            <given-names>C.</given-names>
            <surname>Thorne</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Chatbots for troubleshooting: A survey</article-title>
          .
          <source>Language and Linguistics Compass</source>
          ,
          <volume>11</volume>
          (
          <issue>10</issue>
          ):
          <fpage>e12253</fpage>
          .
          <source>e12253 LNCO-0688.R1.</source>
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          <string-name>
            <given-names>D.R.</given-names>
            <surname>Traum</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Larsson</surname>
          </string-name>
          .
          <year>2003</year>
          .
          <article-title>The information state approach to dialogue management</article-title>
          . In J. van Kuppevelt and
          <string-name>
            <surname>R.W</surname>
          </string-name>
          . Smith, editors,
          <source>Current and New Directions in Discourse and Dialogue</source>
          , pages
          <fpage>325</fpage>
          -
          <lpage>353</lpage>
          . Springer Netherlands, Dordrecht.
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          <string-name>
            <given-names>M.</given-names>
            <surname>Tsvetkova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Garc</surname>
          </string-name>
          <article-title>´ıa-</article-title>
          <string-name>
            <surname>Gavilanes</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Floridi</surname>
            , and
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Yasseri</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Even good bots fight: The case of wikipedia</article-title>
          .
          <source>PLOS ONE</source>
          ,
          <volume>12</volume>
          (
          <issue>2</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>27</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          <string-name>
            <given-names>J.</given-names>
            <surname>Weizenbaum</surname>
          </string-name>
          .
          <year>1966</year>
          .
          <article-title>Eliza - a computer program for the study of natural language communication between man and machine</article-title>
          .
          <source>CACM</source>
          ,
          <volume>9</volume>
          (
          <issue>1</issue>
          ):
          <fpage>36</fpage>
          -
          <lpage>45</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>