We're trying to build a Zendesk/phone integration.
I've set up an Api request chain in our React app that does the following:
1. When agent picks up it'll search for an existing user with the caller's phone number
2. This will call: "/api/v2/search.json?query=role:end-user phone:*+1234567890
3. The result will go through in a .then() that creats a ticket.
4. Creating a ticket I fill the "requester" object with
{
ticket: {
subject: phoneNumber,
comment: { {{ some body we cooked up }} },
requester_id: zendeskUser.id <-- do you add this???
requester: { <-- OR do we add this???
id: zendeskUser.id,
requester_id: zendeskUser.id <-- should this be here???
name: zendeskUser.name
},
tags: ['inbound'],
priority: 'normal'
}
}
Why?
an
Is the phone number on the end-user's profile set as a direct line?