Last updated: 2021-06-18
The Google Hangouts App: Part 2 - For Customers
Note: This feature is currently not available on Freshdesk Mint.
Your customers can initiate a hangout with your agents right from their ticket in the Freshdesk support portal. This way, your agents and customers can set up a time for a hangout session and troubleshoot problems easily.
Quick guide to set up a hangout widget on the end user portal
``` {% if portal.current_page == "ticket_view" %} {% assign email_flag = false %} {% if ticket.agent.email == null %} {% for ticket in portal.user.recent_tickets %} {% if ticket.agent.email != null %} {% assign agent_email = ticket.agent.email %} {% break %} {% endif %} {% if forloop.last %} {% assign email_flag = true %} {% endif %} {% endfor %} {% else %} {% assign agent_email = ticket.agent.email %} {% endif %}
{% if email_flag == false %} <style> .google_hangout{ margin-bottom: 15px; } .google_hangout h3{ margin-bottom: 10px; } </style>
<script type="text/javascript">
jQuery('body').append ('<div class="google_hangout" id="google_hangout">' + '<h3 class="heading">Google Hangout with agent</h3>' + '<div id="placeholder-div"></div>' + '</div>'); jQuery('#ticket-sidebar-details .lead').before(jQuery('#google_hangout'));
window.___gcfg = { lang: 'en-US' }; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js?onload=renderButtons'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();
function renderButtons(){ gapi.hangout.render('placeholder-div', { 'render': 'createhangout', 'invites' : "[{'id': '{{agent_email}}','invite_type': 'EMAIL'}]", 'initial_apps': "[{'app_id' : '184219133185', 'start_data' : 'dQw4w9WgXcQ', 'app_type' : 'ROOM_APP' }]", 'widget_size': 72 }); } </script> {% endif %}
{% endif %} ```

Learn how to set up a hangout widget in the tickets page for agent to initiate the hangout.
Requirements
Learn more on the features available in hangouts like screen sharing and remote assistance that your agents can use to troubleshoot.