Discussions
See how long an agent spent handling a particular message
How can I see the time it took an agent from opening the customer message to sending their response?
Posted by Sydney Chestler about 2 months ago
Retrieve all ticket IDs
How do I retrieve all the ticket IDs ? The API allows for only 100 maximum using the API call documentation
fetch('[https://somnee.gorgias.com/api/tickets?limit=100&order_by=created_datetime%3Adesc](https://somnee.gorgias.com/api/tickets?limit=30&order_by=created_datetime%3Adesc)
Posted by Rohit Bhapkar 2 months ago
How to retreive a TicketMessage from an Event ?
If I use the request 'List events' with the parameter 'types: ticket-message-created', I will receive a list of 'Event' objects that include a property called 'object_id', which is the ID of the message.
To retrieve my TicketMessage, I will need to use the 'Retrieve a message' request with the Message ID. However, I will also need the ID of the ticket to perform this request.
The question is, how can I find the Ticket ID? Or is there something that I am missing?
Posted by b.audoin 2 months ago
Can you access the helpcentre via the rest API?
We are trying to understand if you can access the helpcentre via the API?
Posted by David 2 months ago
[feature request] Add Large Delete Button next to Close Button
There are times when we just want delete a ticket instead of close it. The current 3-step process would be made much more intuitive and reduce storage data if a large red "Delete" button was added to right of the "Close" button. The clicks that button, gets a prompt to confirm, and the ticket goes into the trash where it lives for 30 days before it's permanently deleted.
Posted by Darnell Jackson 3 months ago
Adding customize macros
How can we send styled HTML macros by adding HTML?
Posted by Sandeep vaid 3 months ago
How to Get Salesforce Info Into a Widget
There is a development project which is very important to me, but I am running into problems when I try implementing it.
I will describe to you what I need, and I am hoping you can help me make this happen.
I keep information about my customers and about their interactions with our reps in software called Salesforce.
I would like for that information to be visible in a widget associated with any ticket belonging to that customer.
You have detailed instructions for how to do that in two places - in your dev docs you show how to do it using the api and also in your non-dev docs where you show how to do it with Zapier. In both places, the first step is to access the data in the third party app using Gorgias's HTTP integrations.
Here's my problem:
The HTTP integrating tool that comes with Gorgias is only configured to work using basic authentication. I can't get information from Salesforce using basic authentication. I need to use OAuth. Therefore, I cannot do that through Gorgias. I have to do it on my own. Supposing I have a way to access that information on my own, through Zapier or otherwise... how do I then get that information into Gorgias without using your out-of-the box HTTP integration?
Posted by Elimelech 3 months ago
LiveChat integration to automate responses
Hi my name is Rem from ResolveAI
I have a client who is using Gorgias Live Chat, but wants to automate responses using ResolveAI AI chatbots. Curious if you provide Live Chat integration API where our chatbots can "listen" and "reply" to communications through your live chat?
Thanks,
Rem
Posted by Rem 4 months ago
Duplicate tags from using the POST /api/tickets endpoint
Hello,
When using the POST /api/tickets and adding the tags object (just the name) sometimes for the same name a new tag is created, even if in the account a tag with that name already exists. Why does this happen?
Posted by Antonia Biro 4 months ago
How do I get the phone numbers (and CustomerChannels generally) that are a part of a customer object?
I need a way to get the phone numbers (and CustomerChannels generally) that are in a customer object.
The high level view of the whole thing I am trying to do is that on our website we are going to have a contact us/schedule a call form for our customers to use to get in touch with us. I know you guys have a contact us form type thing out of the box, but we need one that has a specific, possibly required, phone number field so we’re looking into making a custom one. Once the customer has inputted all the necessary information there are a few things I need to do in Gorgias. First I need to see if a customer exists under the email they gave (https://developers.gorgias.com/reference/get_api-customers). If there isn’t a customer I need to make one (https://developers.gorgias.com/reference/post_api-customers). Second I need to add the phone number that they inputted into that Gorgias customer object (https://developers.gorgias.com/reference/put_api-customers-id). Third I need to make a ticket with all the information that was given in the custom form (https://developers.gorgias.com/reference/post_api-tickets). The phone number needs to be in the customer object and not just a part of the ticket text so that the support agent can then call the customer from inside Gorgias.
The second step is where I think the main problem is. From what I can tell, I have no way to know if that given phone number is already a part of that Gorgias customer. If I try to just blindly update the Gorgias customer with the phone number (https://developers.gorgias.com/reference/put_api-customers-id), two problems could occur. The first problem is if the phone number was already a part of the Gorgias customer object the PUT request returns a 400 error and the message “phone number is already associated with another user” which is very unhelpful. The error message is just false. The phone number isn’t associated with another user, but with this user. The PUT returning an error code also seems a bit misleading, because there wasn’t error. Nothing was updated in the customer object, which since there was nothing to update is a success. The second problem with blindly sending a PUT request with the phone number to the customer object is that it will override all the preexisting CustomerChannels. If the customer already has two email addresses and a phone number in their customer object and I blindly make a PUT request with the new phone number being the only CustomerChannel in the request, those other email addresses and phone numbers are going to be deleted. There is no way to see which CustomerChannels are already in the customer object so that I can include them in the PUT request.
Posted by Colton Belfils 5 months ago