{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4535,"path":"conversational-interfaces/advanced-work-assignment/create-payload-extrnl-provider.md","title":"Create a payload for external third-party providers","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a payload for external third-party providers\n\nCreate a payload for external third-party providers to send your work items to the external queue.\n\n## Before you begin\n\nRole required: admin\n\n## Procedure\n\n1.  On your ServiceNow instance, navigate to **All** &gt; **Advanced Work Assignment** &gt; **Queues**.\n\n2.  Create a queue enabling External Routing.\n\n    For more information about creating a queue with external routing, see [Enable external routing for queues](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/advanced-work-assignment/enable-awa-external-routing.md).\n\n3.  Open the provider record, select the subflow that you created, and select **Save**.\n\n    For more information about creating a subflow, see [Create a subflow](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/advanced-work-assignment/create-subflow-extrnl-route.md).\\[Omitted image \"subflow-extrnl-routing.png\"\\] Alt text: Select subflow for external routing of the AWA queue item.\n\n4.  In the External Event definition section, create a definition form or modify the existing demo data records by changing the provider name you created.\n\n    \\[Omitted image \"select-provider-extrnl-route.png\"\\] Alt text: Select the provider for your work item to be routed to the external queue.\n\n    The payload script in the External event definition \\[awa\\_external\\_event\\_definition\\] table has the event type and payload information that you send to the third-party providers. Therefore, it is required for you to change all the events' provider to the provider you created.\n\n    \\[Omitted image \"payload-extrnl-route.png\"\\] Alt text: Payload script for the third-party provider.\n\n    In the payload script:\n\n    -   `current` refers to the work item glideRecord associated with the queue. You can access all the workitem records from the glideRecord current.\n    -   `queueObj` is the glideRecord for the existing awa\\_queue record.\n    -   `additionalParams` refers to the parameters from the document table.\n    **Note:** Before saving the script, verify that you have the required data.\n\n5.  Select **Update**.\n\n\n"}}