{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4552,"path":"conversational-interfaces/advanced-work-assignment/product-context-example.md","title":"Create a queue for product issues","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a queue for product issues\n\nCreate a queue for the Chat service channel that routes product issues.\n\n## Before you begin\n\nRole required: awa\\_admin or admin\n\n## Procedure\n\n1.  Navigate to the queue settings through one of the following navigation paths:\n\n    -   **All** &gt; **Advanced Work Assignment** &gt; **Home**.\n\n        In the Essential settings section, select **Set up queues**.\n\n    -   **All** &gt; **Advanced Work Assignment** &gt; **Queues**.\n2.  Select **New**.\n\n3.  Enter the following information in the fields listed:\n\n    -   Name: Product Support\n    -   Service channel: Chat\n    -   Condition mode: Advanced\n4.  In the **Script** field, enter this script:\n\n    ```\n    (function executeCondition(/* glide record */ current) {  \n    \tvar contextTable = current.getValue('context_table');\n    \tvar interactionBlobRecord = new GlideRecord(contextTable);\n    \tinteractionBlobRecord.addQuery('sys_id',current.getValue('context_document'));\n    \tinteractionBlobRecord.query();\n    \n    \tif(interactionBlobRecord.next()){\n    \t\tvar jsonBlob = JSON.parse(interactionBlobRecord.getValue('value'));\n    \t\tif(jsonBlob.liveagent_csp_category == 'product')\n    \t\t\treturn true;\n    \t}\n    \treturn false;\n    })(current);\n    ```\n\n5.  Click **Submit**.\n\n\n"}}