Centrex blog
Create a queue in Genesys Cloud with Claude, step by step
How to create a queue in Genesys Cloud by asking Claude: Centrex finds the API operation, shows a plan with the payload, and writes only after you approve.
Creating one queue in the Genesys Cloud™ admin screens takes a minute. Creating it the same way in three orgs, or having someone look at it before it exists, takes longer. This article follows one request, “create a queue”, from the sentence you type in Claude Code to the queue in your org, and shows the one moment where you decide.
Claude reaches your org through Centrex, an MCP server for Genesys Cloud. Centrex gives Claude six actions. Four of them only look things up, one prepares a change without making it, and one makes the change after you approve it.
What you need
- Claude Code connected to your org through Centrex: follow the step-by-step guide.
- An OAuth client whose role has the permissions
routing:queue:viewandrouting:queue:add. Claude can do only what that role allows.
1. Ask in your own words
In Claude Code, in the folder where you added Centrex:
Create a queue called "Weekend Support" with the description "Callers outside office hours".
First check that no queue with that name exists.
You do not name an API operation or write JSON. Finding them is Claude’s part.
2. Claude finds the operation
Claude calls the search action with words from your request. Among the first results Centrex returns for
“create queue” is this one:
{
"kind": "operation",
"id": "postRoutingQueues",
"verb": "post",
"path": "/api/v2/routing/queues",
"summary": "Create a queue"
}
The same search in Spanish, “crear cola”, returns the same operation. Nothing has touched your org yet:
search reads a catalog that ships inside Centrex.
3. Claude checks what the operation needs
Next comes describe, which also reads only the catalog. For postRoutingQueues it says, among other things:
{
"id": "postRoutingQueues",
"summary": "Create a queue",
"classification": "write",
"permissions": {
"type": "ANY",
"permissions": ["routing:queue:add"]
}
}
Three facts matter here. The operation is a write, so it cannot run directly. It needs the permission
routing:queue:add. And of the 43 fields a queue can take, only one is required: name. Everything you do not
set keeps the default Genesys Cloud gives a new queue.
4. Claude reads your org
You asked for a check, and reading is allowed without a plan. Claude calls execute with the read operation
getRoutingQueues, filtered by name. execute runs reads only: if Claude tried to create the queue with it,
Centrex would refuse.
If a queue called “Weekend Support” already exists, this is where you find out, before anything is created.
5. Claude prepares a plan
Now the write. Claude calls plan with the operation and the payload:
{
"name": "Weekend Support",
"description": "Callers outside office hours"
}
plan creates nothing. For a new resource it checks the payload against what the operation accepts (required
fields, types, allowed values) and refuses a bad one, naming each wrong field. Then it shows the payload that
would be sent and the permissions the operation needs, and gives the plan an id.
Claude shows you that plan. This is the moment to read it: the name, the description, and nothing you did not ask for.
6. You approve, and only then it is created
To make the change Claude has to call apply with the plan’s id, and Claude Code asks for your permission
first. That prompt is your approval. Allow it, and Centrex:
- creates the queue;
- reads it back by the id Genesys Cloud returned, to confirm it exists;
- adds one line to a log file on your machine with what was written.
Refuse it, and nothing happens. The plan can be applied once and expires 30 minutes after it was made.
Never put apply in the list of tools Claude may call without asking. That prompt is the only moment a
person approves a write. Safe writes explains why and how to set the permissions.
The same from a terminal
Centrex is also a command, so you can do every step yourself:
centrex search "create queue"
centrex describe postRoutingQueues
centrex exec getRoutingQueues --params '{"query":{"name":"Weekend Support"}}'
centrex plan postRoutingQueues --params '{"body":{"name":"Weekend Support","description":"Callers outside office hours"}}'
centrex apply <planId>
What to ask next
A queue with no one in it answers nothing. From the same conversation you can go on:
- “Add Ana and Luis to Weekend Support.” Claude plans a change to the queue’s members.
- “Give Weekend Support the wrap-up codes of the Support queue.” Claude reads one queue and plans the change to the other.
- “Show me every queue with no members.” A read: no plan and no approval needed.
Each change is again a plan you see and an apply you approve.