I have used it to generate diagrams of flows to show to other people. As far as I know, there isn't a good native way to get a visual representation of a flow out of Genesys Cloud. I exported the flow as YAML, handed that over to Gemini, then asked it if it could create a diagram of that. It used Mermaid to do it. It did a remarkably good job of understanding and showing what the flow was doing. I wasn't familiar with Mermaid before that, but now use it myself occasionally.
I also use it to figure out how to use some of the more complex APIs, or to get example Python code since the API Explorer won't give you that. This is a fairly simple example, but I might enter something like the following into Gemini:
Based on the info I see here: https://developer.genesys.cloud/
I think I should use the /api/v2/conversations/emails to create a new email interaction. Can you give me example syntax to create an inbound email interaction using flowId c2dd200f-4143-4c74-8068-593638eb5846 that has a body of "This is a test email"?
It then gives me back the JSON, cURL, and Python code to make that happen. Example Python code:
import requests
region = "mypurecloud.com" # Change to your region
access_token = "YOUR_ACCESS_TOKEN"
url = f"https://api.{region}/api/v2/conversations/emails"
headers = {
"Authorization": f"Bearer {access_token}",
"Content-Type": "application/json"
}
payload = {
"flowId": "c2dd200f-4143-4c74-8068-593638eb5846",
"fromAddress": "tester@example.com",
"fromName": "Test User",
"toAddress": "flow-trigger@yourorg.com",
"subject": "API Test",
"textBody": "This is a test email"
}
response = requests.post(url, headers=headers, json=payload)
if response.status_code == 200:
print("Success:", response.json()['id'])
else:
print("Error:", response.status_code, response.text)
------------------------------
Dave Halderman
Business Analyst
------------------------------