### Windows Command-Line Installation Example Source: https://help.genesys.cloud/63204 Example of a quiet installation of the Genesys Cloud Windows desktop app using command-line switches. ```bash C:\Users\Administrator\Desktop>genesys-cloud-windows-2.1.582.exe /quiet ``` -------------------------------- ### Setup Wizard - Static IPv4 Configuration Source: https://help.genesys.cloud/articles/114880 Guides through setting up static IPv4 addresses for network ports. ```text Setup Wizard Proxy Port 1 (Wan) Set DHCPv4 Set Static IPv4 ``` -------------------------------- ### Example Guide Structure Source: https://help.genesys.cloud/articles/best-practices-for-writing-guides Illustrates a basic guide structure with introduction, main steps, substeps, and conditional logic using 'Go To Step'. Use this format to organize your AI agent's conversational flow. ```text Introduction - Say "Hello, I'm ACME's Router Connectivity assistant. What can I help you with?" Basic Checks - Ask "Let's start with some basic checks. First, please verify that your router is turned on and all cable connections are secure." - Store in {{Variable.router_on}} and {{Variable.cable_check}} - If cable connections are not secured - Then Go To Step Plug Cables - Else Go To Step Ask Power Status Lights Plug Cables - Ask "Please secure the cables. Has that resolved the issue?" - Store in {{Variable.cable_fixed}} - If cable connections are secured and it resolved the router issue - Then Go To Step Resolution - Else Go To Step Ask Power Status Lights Ask Power Status Lights ... ``` -------------------------------- ### Go To Command Example Source: https://help.genesys.cloud/379241 Use the Go To command to navigate to a different step in the guide. Ensure step names are matched correctly. ```text - Go To Email Collection ``` ```text - Go To Escalation ``` -------------------------------- ### Get User Information with Custom Header Source: https://help.genesys.cloud/225106 This example demonstrates how to retrieve user information using an HTTP GET request and includes a custom header. It targets the /api/v2/users/{userId} endpoint. ```Apex HttpResponse response = purecloud.SDK.Rest.get('/api/v2/users/6a50987a-f00c-4b10-b627-4a677f9f0263', new Map{'CustomHeaderValue' => 'Foo'}); ``` -------------------------------- ### Example: Events in Salesforce Classic Console App Source: https://help.genesys.cloud/77239 This example demonstrates how to use events within the Salesforce Classic Console App. It requires setup within Salesforce and understanding of the Salesforce Console Integration Toolkit. ```JavaScript /** * This is an example of how to use the Salesforce Console Integration Toolkit to * subscribe to and handle events within the Salesforce Classic Console. * It demonstrates basic event handling for interaction and status changes. */ // Assume 'pc' is the Genesys Cloud client object, and 'inin.salesforce.constants.consoleevent.pc' is the event prefix. // Subscribe to interaction events pc.on("inin.salesforce.constants.consoleevent.pc.interaction.created", function(data) { console.log("Interaction created:", data); // Handle new interaction logic here }); pc.on("inin.salesforce.constants.consoleevent.pc.interaction.ended", function(data) { console.log("Interaction ended:", data); // Handle interaction ended logic here }); // Subscribe to status events pc.on("inin.salesforce.constants.consoleevent.pc.agent.status.changed", function(data) { console.log("Agent status changed:", data); // Handle status change logic here }); // Example of firing an event (e.g., to add an association) pc.call("addAssociation", { "contact": { "id": "someContactId", "type": "SalesforceContact" }, "relation": { "id": "someTaskId", "type": "SalesforceTask" } }, function(result) { console.log("Association added:", result); }, function(error) { console.error("Failed to add association:", error); }); // Example of changing agent state pc.call("changeState", { "state": "Available" }, function(result) { console.log("State changed successfully:", result); }, function(error) { console.error("Failed to change state:", error); }); ```