{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":20552,"path":"integrate-applications/create-activity-now-assist.md","title":"Create an activity with AI","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create an activity with AI\n\nCreate activities from text instructions and preview options by using AI. Activities provide modularity to an automation project in RPA Desktop Design Studio.\n\n## Before you begin\n\nSet up the RPA Desktop Design Studio application and add the ServiceNow instance details. For more information, see [Set up RPA Desktop Design Studio](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/set-up-rpa-studio.md).\n\nTo access the AI features in RPA Desktop Design Studio, perform the following steps:\n\n-   Install the ServiceNow Otto for RPA Hub application to add the generative AI capability. For more information, see [Install ServiceNow Otto for RPA Hub](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/configure-now-assist-rpa-hub.md).\n-   Turn on the RPA bot generation skill to use the generative AI capability. For more information, see [Turn on the RPA bot generation skill](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/turn-rpa-bot-generation-skill.md).\n-   After activating the RPA bot generation skill, relaunch the RPA Desktop Design Studio application to apply the modified settings.\n\nIf you skip these steps, the ServiceNow Otto for RPA Hub feature doesn’t appear in RPA Desktop Design Studio.\n\nFamiliarize yourself with the RPA bot generation skill concepts. For more information, see [Robotic Process Automation \\(RPA\\) bot generation skill](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/rpa-bot-generation.md), [Limitations of ServiceNow Otto for RPA Hub](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/limitations-rpa-bot-gen-skill.md), and [Example instructions for ServiceNow Otto for RPA Hub](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/example-instructions-rpa.md).\n\nRole required: sn\\_rpa\\_fdn.rpa\\_developer or sn\\_rpa\\_fdn.rpa\\_admin\n\n## About this task\n\nActivities are a reusable set of instructions that are designed for an automation on the Design surface of RPA Desktop Design Studio. Activities are used to segregate the entire automation into smaller chunks for easier comprehension of the automation logic.\n\nYou can design automation workflows in an activity on the Design surface by using various components.\n\nEach activity contains two components by default: Start and End. These components can't be deleted because they’re the starting and ending points of the activity.\n\nYou can reuse each activity multiple times within the same automation project by dragging the activity to the Design surface. You can also import activities in different automation projects.\n\nTo create an activity manually, see [Create an activity manually in RPA Desktop Design Studio](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/configure-activity-rpa-studio.md).\n\n## Procedure\n\n1.  In the Project Explorer pane of RPA Desktop Design Studio, navigate to **Activities**.\n\n    The Activities section lists all the activities that are created in each project. By default, a Main activity is created when a new project is initiated. The automation execution starts from the startup activity, in this case, Main activity, as shown in the following example.\n\n    \\[Omitted image \"example-activity-screen.png\"\\] Alt text: Main activity is displayed in the RPA Desktop Design Studio when a new project is initiated.\n\n2.  In the Project Explorer pane, right-click **Activities** and select **New activity using AI**.\n\n    \\[Omitted image \"create-activity-now-assist-rpa.png\"\\] Alt text: RPA Desktop Design Studio user interface that shows the New activity using the Now Assist option.\n\n3.  In the New activity window, enter the AI instructions.\n\n    The instruction text is used by the RPA bot generation skill to create your automation. Use short, direct, and clear sentences to describe the expected actions. Be specific and provide detailed descriptions of the automation logic. Avoid jargon and abbreviations.\n\n    \\[Omitted image \"new-activity-directions.png\"\\] Alt text: New activity window that shows the instructions that are used by AI to generate an automation workflow.\n\n    **Note:**\n\n    For more information on example AI instructions and general guidelines, see [Robotic Process Automation \\(RPA\\) bot generation skill](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/rpa-bot-generation.md). For more information about the limitations of the RPA bot generation skill, see [Limitations of ServiceNow Otto for RPA Hub](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/limitations-rpa-bot-gen-skill.md).\n\n4.  Select **Generate preview**.\n\n5.  In the New Activity window, regenerate a preview, clear a workflow, cancel an automation, or add an activity.\n\n    **Note:**\n\n    You can't make any changes In the Activity preview screen because it's read-only. You can maximize it and use scroll options to view the entire generated automation workflow.\n\n    If your instruction generates a workflow with components that aren’t compatible with the current project type, those components show up as unknown in the generated workflow. For example, if your workflow includes a GracefulStop component and if the current project is attended automation, the GracefulStop component appears as unknown because it’s not supported in the attended automations.\n\n    \\[Omitted image \"new-activity-options.png\"\\] Alt text: New activity window displays the options to regenerate a preview, clear a workflow, cancel an automation, or add an activity.\n\n<table id=\"choicetable_tkm_2nn_4dc\"><thead><tr><th align=\"left\" id=\"d366582e352\">\n\nOption\n\n</th><th align=\"left\" id=\"d366582e355\">\n\nProcedure\n\n</th></tr></thead><tbody><tr><td id=\"d366582e361\">\n\n**Regenerate preview**\n\n</td><td>\n\nIf the generated automation preview doesn’t meet your needs, you can update the AI instructions, and select **Regenerate preview**.Each time you build or rebuild an automation, the operation counts as an assist tracked by your AI subscription. To track your AI usage, see [Monitoring Now Assist usage in Subscription Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/monitoring-now-assist-usage.md).\n\n</td></tr><tr><td id=\"d366582e379\">\n\n**Clear**\n\n</td><td>\n\nIf you want to clear the workflow that was created by the AI instructions, select **Clear** and then select **Yes** in the Confirm clear automation window.\n\n</td></tr><tr><td id=\"d366582e394\">\n\n**Cancel**\n\n</td><td>\n\nIf you want to stop creating an automation and return to the design surface, select **Cancel**. In the Confirm cancel window, select **Yes** to return to the previous screen.The added content isn’t saved.\n\n</td></tr><tr><td id=\"d366582e411\">\n\n**Add activity**\n\n</td><td>\n\nIf the automation preview looks good, select **Add activity**.**Important:** The automation is generated by AI. Be sure to check it for accuracy and make any edits before running.\n\nClose the displayed message for a clearer view.\n\n\\[Omitted image \"activity-now-assist-last-screen.png\"\\] Alt text: Generated automation workflow that is displayed on the design surface.\n\n</td></tr></tbody>\n</table>\n## Result\n\nThe automation flow is added as a New Activity in Activities.\n\n## What to do next\n\nFor more actions on the activity, see [Create an activity manually in RPA Desktop Design Studio](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/configure-activity-rpa-studio.md).\n\n**Parent Topic:**[Building automations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/rpa-studio-build.md)\n\n"}}