L'API Transactions verrà ritirata il 3 maggio 2023, prima della disattivazione delle azioni di conversazione il 13 giugno 2023. Per ulteriori informazioni, vedi
Ritiro di Azioni di conversazione.
Progettare conversazioni transazionali (Dialogflow)
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Progetta una conversazione per guidare gli utenti attraverso i tuoi flussi transazionali. Abbiamo fornito esempi di riferimento che puoi utilizzare come guida
per la progettazione delle tue azioni transazionali.
Esempi
Suggerimenti per il design
Assicurati che i dialoghi sembrino naturali e colloquiali, come farebbe una persona reale.
Il testo pronunciato dalla voce non deve corrispondere esattamente al testo visualizzato nelle bolle della chat. Funziona bene se le bolle della chat sono un sottoinsieme dei dialoghi vocali.
Saluta i visitatori e coinvolgili. Chiedi di cosa ha bisogno e offri alcuni chip di suggerimenti per aiutarli a iniziare.
Prima di invitare l'utente ad aggiungere articoli al carrello, esegui un controllo backend utilizzando actions.intent.TRANSACTION_REQUIREMENTS_CHECK
per verificare che l'utente abbia configurato i pagamenti per l'Assistente Google.
Preparati a rispondere con la voce agli stessi problemi riscontrati in altre esperienze web o su dispositivi mobili. Ad esempio, offri un articolo simile quando non vendi una taglia o un colore specifico oppure invita gli utenti a registrarsi per ricevere una notifica quando l'articolo sarà di nuovo disponibile.
Tieni presente che il riepilogo dell'ordine viene creato con i dati trasmessi tramite l'API. L'etichetta "Paga con Google" aiuta gli utenti a capire che il pagamento è stato facilitato da Google.
Quando chiedi informazioni ai tuoi utenti, ad esempio l'indirizzo, devi spiegare loro perché stai effettuando la richiesta e quali vantaggi otterranno.
Google mostrerà il metodo di autorizzazione di acquisto (senza autorizzazione, password o impronta) in base alle impostazioni dell'utente. A volte la nostra valutazione dei rischi dà inizio a un'ulteriore fase di autorizzazione, come la conferma del CVV per una carta.
Una volta completato il pagamento, assicurati di inviare una ricevuta e una conferma dell'ordine. È importante che gli utenti capiscano che sei il commerciante registrato e che forniscano tutti i dettagli relativi all'ordine, non a Google.
Per impostazione predefinita, le transazioni possono essere eseguite su una piattaforma dotata di schermo (ad esempio un telefono Android) o su una piattaforma con comandi vocali (ad esempio Google Home).
Per supportare al meglio le transazioni solo vocale, presta particolare attenzione a progettare una buona esperienza di conversazione che guidi gli utenti attraverso l'esperienza completa delle transazioni.
Tieni presente che alcuni intent di transazione potrebbero richiedere una schermata. La maggior parte di queste operazioni (ad es. aggiunta di un nuovo indirizzo di consegna, risoluzione dei problemi di pagamento, collegamento dell'account) viene trasferita automaticamente al telefono. Se ci sono aggiunte alla conversazione che sono meglio mostrate su uno schermo (ad esempio, la presentazione di risposte dettagliate per la creazione di schede, la visualizzazione di TdS o delle norme sulla privacy del commerciante), dovresti controllare se la piattaforma corrente supporta le funzionalità di SCREEN_OUTPUT
o WEB_BROWSER
e trasferire su una nuova piattaforma in caso contrario.
Se preferisci non supportare le transazioni solo vocale con l'Azione, puoi impostare il progetto Actions in modo che richieda una schermata andando su Esegui il deployment > Funzionalità di Surface nella Console di Actions e impostando Le azioni richiedono un output dello schermo su Sì.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eDesign conversational flows for transactional Actions, guiding users through the process similar to a real-world conversation.\u003c/p\u003e\n"],["\u003cp\u003eRefer to provided examples like Shoe store, Ticketing, and Flower Shop to understand transactional Action design.\u003c/p\u003e\n"],["\u003cp\u003eFollow design tips to ensure natural dialog, clear communication, and a smooth user experience, including pre-purchase checks and handling potential issues.\u003c/p\u003e\n"],["\u003cp\u003eTransactions can occur on screen and voice-only surfaces; optimize for both by crafting a comprehensive conversational experience and leveraging surface capabilities effectively.\u003c/p\u003e\n"],["\u003cp\u003eRemember to inform users about data requests, purchase authorization, and merchant responsibility for post-purchase communication.\u003c/p\u003e\n"]]],[],null,["# Designing Transactional Conversations (Dialogflow)\n\nDesign a conversation to guide users through your transactional\nflows. We've provided reference examples that you can use as a guide\nwhen designing your own transactional Actions.\n\nExamples\n--------\n\n[](https://docs.google.com/presentation/d/1Zw-Cg4ODJWpEViJJT_LugxvFv1VeOB7Hw54wNQemrfg) [Shoe store Example](https://docs.google.com/presentation/d/1Zw-Cg4ODJWpEViJJT_LugxvFv1VeOB7Hw54wNQemrfg) \n[](https://docs.google.com/presentation/d/1RBVzklC8n7nPU98lRt1CkzDSFcBlaQf5PWVtlr58OQQ) [Ticketing example](https://docs.google.com/presentation/d/1RBVzklC8n7nPU98lRt1CkzDSFcBlaQf5PWVtlr58OQQ) \n[](https://docs.google.com/presentation/d/1icd64B_mJvba6lmhlfmUy35sejy5n-LsYYkvPXzUXgA) [Flower Shop Example](https://docs.google.com/presentation/d/1icd64B_mJvba6lmhlfmUy35sejy5n-LsYYkvPXzUXgA)\n\nDesign Tips\n-----------\n\n- Make sure the dialogs [sound natural and conversational](/assistant/actions/design) --- the way a real person would talk.\n\n- The text spoken by your TTS/voice does not have to exactly match the text shown in your chat bubbles. It works well if the chat bubbles are a subset of the spoken dialog.\n\n- Greet your visitors and get them engaged. Ask what they need and offer a few suggestion chips to get them started.\n\n- Before inviting the user to add items to the cart, do a backend check using `actions.intent.TRANSACTION_REQUIREMENTS_CHECK` to confirm the user has payments set up for their Google Assistant.\n\n- Be prepared to respond to the same issues with voice as with other mobile or web experiences. For example, offer a similar item when you're out of a certain size or color, or invite users to sign up to be notified when the item is back in stock.\n\n- Note that the order summary is built with the data you pass via the API. The \"Pay with Google\" label helps users understand that Google facilitated the payment.\n\n- When requesting info from your users, like their address info, first let them know why you are making the request and how it will benefit them.\n\n- Google will present the purchase authorization method (either no auth required, password, or fingerprint) based on the user's settings. Sometimes our risk assessment will kick off an additional auth step like confirming CVV for a card.\n\n- After the payment is complete, be sure to send a receipt and an order confirmation. It's important that users understand that you are the merchant of record, and will follow up with all details about the order, not Google.\n\n- By default transactions can be performed on either a surface with a screen (such as an Android phone) or a voice-only surface (such as a Google Home).\n\n - To best support voice-only transactions, take extra care to design a [good conversational experience](/assistant/actions/design) that walks users through the full transaction experience.\n\n - Note that some transactions intents may require a screen. Most of these (e.g. adding a new delivery address, fixing payment issues, account linking) will be handed off to the phone automatically. If there are any additions to the conversation that are best displayed on a screen (e.g. presenting rich responses for card building, displaying a merchant ToS or privacy policy), you should check if the current surface supports the `SCREEN_OUTPUT` or `WEB_BROWSER` capabilities, and [transfer to a new surface](/assistant/df-asdk/surface-capabilities#multi-surface_conversations) if not.\n\n - If you would rather not support voice-only transactions with your Action, you can set your Actions project to require a screen by navigating to **Deploy \\\u003e Surface capabilities** in the [Actions Console](https://console.actions.google.com) and setting **Do your Actions require a screen output** to **Yes**."]]