LiveHelperChat / GoogleBusinessMessage

GoogleBusinessMessage integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starting point

Register your project here https://business-communications.cloud.google.com/console/

Preparing

  • Upload the files to your lhc_web/extension/googlebusinessmessage folder
  • if your folder contain lower and Upper cases, rename it to lowercase googlebusinessmessage

Export Service account

  • Go to https://business-communications.cloud.google.com/console/
  • Click Create Partner Account on the Business Messages
  • Then Fill the necessery details and Click Create
  • Click Patrner account settings on top right corner (Gear Icon)
  • Click Service account
  • Create key and download json file.
  • Copy extension/googlebusinessmessage/settings/google_service.json.default.php to extension/googlebusinessmessage/settings/google_service.json.php
  • Modify file and put json file content in dedicated place in settings/google_service.json.php file.

Truncated sample file

image

Installation

  • Execute extension/googlebusinessmessage/doc/install.sql or just execute from command line
php cron.php -s site_admin -e googlebusinessmessage -c cron/update_structure

Install dependencies using composer

cd extension/googlebusinessmessage && composer install

Activate extension in main settings file lhc_web/settings/settings.ini.php extension section googlebusinessmessage by Adding lines:

'extensions' =>  array (  ,'googlebusinessmessage'  ),

If you don't see this in Module, check your lhc_web/settings/settings.ini.php and also click Clean Cache from back office

Configuration

  • Click Modules then click Google Business
  • Then Click Install/Update (Colour will change from Red to Green )
  • Then Click Agents and fill the requred field
    • Brand ID and Agent ID can be found in your Google Business Communications page
    • Put random string on Client Token
    • copy Callback URL for Google Business Message value to your clipboard and click save
  • Go to your Google Business Communications page and click on Intergration
  • Then Enable Webhook
  • Put your Webhook EndPoint URL and Client Token
  • Click Verify

Hierarchy

  • Partner
  • Agent
  • Service Account export

Usefull links

About

GoogleBusinessMessage integration

License:MIT License


Languages

Language:PHP 100.0%