Discussions

Ask a Question

Send email when ticket created

Hi there. When creating a ticket via the API, how do I make it email the message from the ticket to the customer? Thanks, Danny

Catch the submission event on my gorgias contact form to push event on dataLayer

Hi everyone, I’m trying to catch the submission event on my gorgias contact form, embedded on my Shopify store, to collect it on my tag manager. I couldn’t get the event directly via GTM and I’m struggling to get it via JS. Do you know if there is a way to do that? I asked to Gorgias support but they told me to ask here for help. Thanks in advance.

Upload File and Attach to Ticket

I'm using /api/upload to upload files, and using the response to submit attachments on a new ticket (api/tickets). The upload works, the ticket gets created, and the attachment is present in the dashboard, but the image url's return a 403, and appear as a broken img in the dashboard. I also included public: true inside the attachment object with no luck - I think true is the default anyway according to the docs. Any ideas?

Do the API requests support CORS?

I am building an integration to Gorgias and have encountered a CORS policy error response to the preflight request stating that "No 'Access-Control-Allow-Origin' header is present on the requested resource". How can we enable CORS on the Gorgias API requests?

Calculate replied tickets from the ticket object

Hello, I am trying to calculate the count of replied tickets - as the metric in the Support Performance overview page in Gorgias app - from the Ticket object of your API. However, there is no column named replied ticket, count of replies, or similar. Hence, I would like to know what is the logic behind the calculation of the "Ticket replied" metric available in the Gorgias app stats. Thanks.

Advanced chat customization events not triggering

I'm following the instructions in [the Gorgias documentation](https://docs.gorgias.com/en-US/advanced-customization-new-chat-81792) to customize a chat widget using the Gorgias customization API. My intention is to programmatically open a chat widget and then run some custom code after it has been opened. According to the documentation, the `widget:opened` event should fire anytime the widget is opened. Unfortunately, it appears that programmatically opening the widget using `GorgiasChat.open()` does *not* fire this event. I am able to observe that the `widget:opened` event *is* properly firing if I manually click the Gorgias button. So how can I go about running code on my widget when the Gorgias Chat window opens programmatically? I need to run custom CSS on the widget itself, so need a way of programmatically knowing when it opens so I can run the javascript code to do so. ``` GorgiasChat.init().then(function() { GorgiasChat.on('widget:opened', function() { // this only fires when manually opening the widget, and is not firing when programmatically opening it like below console.log("widget opened"); }); GorgiasChat.open(); }) ```

I am struggling to get the widgets I add to display in the sidebar

Is there a simple JSON script I can use to test that the functionality is working for my integration?

Mobile SDK

Hi, Is there any way to embed the chat into mobile app (iOS and Android) via React Native ?

How can I filter for timestamps in my queries?

How can I filter for or exclude timestamps in my queries? For example, if I wanted to pull a list of Tickets that were updated or received a new message in the past 7 days or after a particular date . . .

How to calculate metric

Hi Team, How shall i calculate following metric Total number of tickets ? is it created tickets + closed tickets Total Number of resolve tickets - Value is not available on dashboard. Average first reply time and Average Full resolution time? Is it Total time / Total number of resolve tickets Again we don't have values to compare on dashboard. Just Need your help to get understand how can i calculate above metric or how can i verify it. Thank You Shital