Durante l'utilizzo dell'elemento domanda nel Bot Einstein, la scelta inserita dall'utente finale viene confrontata con l'indice delle scelte (come una matrice) e se la corrispondenza dell'indice non viene trovata, cerca l'etichetta corrispondente. Ciò può generare confusione soprattutto quando le scelte presentate sono numeri.
Per comprendere meglio questo concetto, creare un elemento domanda per scegliere un numero tra le seguenti opzioni:
0
1
2
3
Di seguito è illustrato come gli indici interni puntano a questi valori:
[1] -> 0
[2] -> 1
[3] -> 2
[4] -> 3
Ora, se un utente immette il valore 1, questo viene prima confrontato con l'indice di questi valori. Poiché l'indice corrisponde al valore 0, questo verrà restituito. Allo stesso modo, immettendo 2 verrà restituito il valore 1. Per 4, restituirà 3 e così via.
Ora, se inseriamo 0, significa che nella matrice non esiste alcun indice del genere, quindi verranno controllate le etichette. Quindi, l'etichetta 0 che si trova all'indice 1 verrà ora abbinata. Il funzionamento avviene come da progettazione.
000396914

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.