Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Les routines de l'Assistant Google exécutent plusieurs actions avec une seule commande, ce qui est idéal pour les moments où les utilisateurs se réveillent le matin, sortent de la maison, se préparent à aller se coucher ou effectuent de nombreuses autres tâches de la journée. Lorsqu'une personne interagit avec votre action, proposez une suggestion de routine qui permet aux utilisateurs de l'ajouter à leurs routines.
Configurer des suggestions de routines
Pour configurer l'un des intents de votre action pour les suggestions de routines, procédez comme suit:
Préparer un intent de déclenchement
Configurez l'un des intents de votre action en tant qu'intent déclencheur. Cet intent est ajouté aux routines des utilisateurs lorsqu'ils suivent votre suggestion. Lorsqu'un utilisateur exécute sa routine, l'intent se déclenche et la routine se poursuit à partir de là.
Le traitement de votre intent de déclenchement doit fournir la réponse, puis mettre fin à la conversation sans aucune interaction supplémentaire de l'utilisateur. Lorsque vous appelez un intent dans le cadre d'une routine, l'Assistant coupe automatiquement sa réponse pour mettre fin à la conversation.
Pour définir un intent de déclenchement dans Dialogflow, procédez comme suit:
Sélectionnez votre intent de déclenchement. Si votre intent ne figure pas dans la liste, assurez-vous qu'il est configuré en tant qu'intent déclencheur et que l'intégration de l'Assistant de Dialogflow est configurée pour prévisualiser automatiquement les modifications.
Faites défiler la page vers le bas jusqu'à la section Engagement des utilisateurs et activez l'option Voulez-vous proposer des suggestions de routine aux utilisateurs.
Saisissez un titre de contenu.
Cliquez sur Enregistrer.
Vous avez maintenant configuré votre action pour suggérer votre intent pour une routine.
Tester les suggestions de routines
Pour tester vos suggestions de routines à l'aide d'un appareil mobile avec Assistant Google intégré, procédez comme suit:
Assurez-vous d'utiliser le compte Google que vous avez utilisé pour créer votre action.
Appelez votre action.
Interagissez avec votre action, puis mettez fin à la conversation.
Sélectionnez le chip de suggestion Routine. Si ce chip ne s'affiche pas, testez à nouveau votre action, mais appelez différents intents tout au long de la conversation.
Suivez les instructions pour ajouter l'action à une routine.
Démarrez la routine sur votre appareil et assurez-vous que votre action est appelée.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eGoogle Assistant Routines let users execute multiple Actions with a single command, streamlining daily tasks.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can set up Routine suggestions to encourage users to add their Action to their Routines for increased engagement.\u003c/p\u003e\n"],["\u003cp\u003eRoutine suggestions are currently limited to the en-US locale and require a specific triggering intent configured in Dialogflow and the Actions console.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should thoroughly test their Routine suggestions on a Google Assistant-enabled device to ensure proper functionality.\u003c/p\u003e\n"]]],["Google Assistant Routines enable users to execute multiple actions with a single command. To suggest your Action for inclusion in users' Routines, configure a \"triggering intent\" in Dialogflow or the Actions SDK. In Dialogflow's Google Assistant integration, add the intent under \"Implicit invocation\" and enable auto-preview. In the Actions console, turn on \"routine suggestions\" for the intent and add a title. Test suggestions by invoking and interacting with the Action, then add it to a Routine.\n"],null,["# Routine suggestions\n\n| **Note:** Routines are only supported in Dialogflow.\n\nGoogle Assistant Routines execute multiple Actions\nwith a single command, perfect for those times when users wake up in the morning,\nhead out of the house, get ready for bed or many of the other tasks they perform\nthroughout the day. After someone engages with your\nAction, offer a Routine suggestion that lets users add your Action to their Routines.\n| **Note:** Routine suggestions are currently only available for Google Assistant users in the [en-US locale](/assistant/console/languages-locales).\n\nSet up Routine suggestions\n--------------------------\n\nTo configure one of your Action's intents for Routine suggestions, follow these\ninstructions:\n\n### Prepare a triggering intent\n\nConfigure one of your Action's intents as a triggering intent. This intent\nis added to users' Routines when they follow your suggestion. When a user runs\ntheir Routine, the intent triggers and the Routine\ncontinues from there.\n\nYour triggering intent's fulfillment should provide the response and then end\nthe conversation without any additional user interaction. When calling an\nintent as part of a Routine, Assistant automatically trims its response\nto end the conversation.\n\nTo define a triggering intent in Dialogflow, follow these steps:\n\n1. In the [Dialogflow Console](https://console.dialogflow.com), click on **Integrations**.\n2. Under the **Google Assistant** section, click on **Integration Settings**.\n3. Under **Discovery \\\u003e Implicit invocation** , click on **Add intent** and select your triggering intent if it's not already there.\n4. Turn on **Auto-preview** changes if it's not already enabled.\n5. Click **Close**.\n\nIn the Actions SDK, define your triggering intent in the\nAction package.\n\n### Enable updates\n\nTo turn on Routine suggestions for your triggering intent, follow these steps:\n\n1. In the [Actions console](https://console.actions.google.com), navigate to **Develop \\\u003e Actions**.\n2. Select your triggering intent. If your intent doesn't appear in the list, make sure it's configured as a triggering intent and Dialogflow's Assistant integration is set to auto-preview changes.\n3. Scroll down to the **User engagement** section and turn on **Would you like to offer routine suggestions to users**.\n4. Enter a **Content title**.\n5. Click **Save**.\n\nYou've now configured your Action to suggest your intent for a Routine.\n\nTest Routine suggestions\n------------------------\n\nTo test your Routine suggestions using a Google Assistant-enabled mobile device,\nfollow these steps:\n\n1. Make sure you're using the Google account that you used to build your Action.\n2. Invoke your Action.\n3. Interact with your Action; then, end the conversation.\n4. Select the **Routine** suggestion chip. If you don't see this chip, test your Action again, but invoke different intents throughout the conversation.\n5. Follow the prompts to add the Action to a Routine.\n6. Start the Routine on your device, and make sure your Action is invoked.\n\n| **Note:** You can also test daily updates using the Actions simulator, but not all functionality is available."]]