{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":24622,"path":"intelligent-experiences/wfs-ply-playbook-activity-context-agent-ai-agent.md","title":"Playbook activity context AI agent","bundle":null,"doc_type":null,"release":"australia","body":"\n# Playbook activity context AI agent\n\nThis ServiceNow Otto for Creator agent helps users complete ServiceNow forms by fetching form fields, automatically matching pre-filled field values, and prompting for any missing required information. The agent saves the summary of what it has done.\n\n## Workflow\n\n1.  Pull the form's field definitions \\(formFields\\), including each field's type, label, constraints, and reference/choice details.\n2.  Extract the most relevant available data for each field, matching field type. Leave fields empty when no relevant data exists rather than guessing.\n3.  Compress or truncate any value that exceeds its field's character limit before assigning it.\n4.  Package all filled fields into the required schema, along with a summary of the activity and separate success/failure variants of that summary.\n5.  Execute the slot-filling script with the completed fields and summary.\n6.  If the JSON output is malformed \\(not if data is simply missing or wrong\\), regenerate it one time; otherwise accept the result as final.\n\n<table><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nAllow third party to access this AI agent\n\n</td><td>\n\nWhen enabled, third-party AI agents can use this agent. This value is off \\(false\\) by default. This setting is defined in the AI Agent configs \\[sn\\_aia\\_agent\\_config\\] table on the External discoverable field.\n\n</td></tr><tr><td>\n\nAllow AI specialists to access this AI agent\n\n</td><td>\n\nWhen enabled, AI specialists can use this agent. This value is off \\(false\\) by default. When set to true, more configuration options for tools become available so that an AI specialist can map inputs and response templates to tool outputs. This setting is defined in the AI Agent configs \\[sn\\_aia\\_agent\\_config\\] table on the Specialist enabled field.\n\n</td></tr><tr><td>\n\nManage long-term memory\n\n</td><td>\n\nWhen enabled, all previous user interactions are used as context for the LLM. This value is off \\(false\\) by default. This setting is defined by the **sn\\_aia.ltm.enable\\_long\\_term\\_memory** system property. For more information, see [ServiceNow Otto AI agents reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/na-aia-reference.md).\n\n</td></tr><tr><td>\n\nTools\n\n</td><td>\n\n-   **Script**\n\nPlaybook Slot Filling Script\n\n\n</td></tr><tr><td>\n\nAllowed user roles The specific user roles that can access this AI agent.\n\n</td><td>\n\nplaybook.agent\\_user\n\n</td></tr><tr><td>\n\nData access roles The specific user identity roles that determine which data the AI agent can access and what actions it can take.\n\n</td><td>\n\nNot defined.\n\n</td></tr><tr><td>\n\nTriggers\n\n</td><td>\n\nOptional. None defined by default. An admin can specify triggers if desired. For more information, see [Add a trigger to an AI agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/add-trigger-aia.md).\n\n</td></tr><tr><td>\n\nChannels\n\n</td><td>\n\nConfigure an assistant for Virtual Agent or ServiceNow Otto panel using [Assistant Designer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/configure-now-assist-va.md).\n\n</td></tr><tr><td>\n\nUsed in agentic workflows\n\n</td><td>\n\nPlaybook Activity Assist\n\n</td></tr></tbody>\n</table>Learn more about ServiceNow Otto for Creator at [ServiceNow Otto for Creator](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/application-development/now-assist-for-creator-landing.md).\n\n**Parent Topic:**[ServiceNow Otto for Creator AI agents](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/platform-creator-ai-agents-overview.md)\n\n"}}