GHL Agency Integration
Integrate your GHL Agency to manage Sub Accounts
Guni
Last Update il y a 5 mois
Guni provides you with agency connection facility which creates one to one connection of subaccounts in GHL with Guni Subaccounts created automatically by Guni on integration. You can provide SMS and MMS feature to your subaccounts along with Rebilling.
- Make sure you have logged in both GHL and Guni in same browser window.
- Don't connect GHL Agency account with a Guni Subaccount.
Step 1 - Connect GHL Agency account with your Guni Admin account
- Open GHL Agency Marketplace, search Guni.
- Click the app.

- Click "Install"

- Connection with agency is mandatory, however you can choose single/multiple subaccounts as per your requirement for install.
(Note - make sure to choose one at least, and you can install/uninstall for more of them later.) - Click Continue.

- Click Allow & Install.

- It will take some time authenticating and creating each of your subaccount connections according to the number of subaccounts.

- To view your connected subaccounts, click Connection Settings on integration page.

Step 2 - Set Guni as your Default SMS Provider
Note - You need to set Default Provider for every Subaccount connected.
- Go to your GHL subaccount - settings> Phone System> Additional settings > Telephony Providers.

- Select Guni SMS -Default SMS as your Telephony Provider and save it.
- Now, all the SMS will be sent from GuniSMS by default.
Step 3 - Purchase Dedicated Number (Sender ID)
- Click Buy Number & Alphanumeric Sender ID tab.
- Here you can buy Dedicated Number & request Business Names.

Step 4 - Assign Sender ID to your Subaccount
- Click on 'Connection Settings' from Integration page.

- Your GHL subaccounts will appear connected with Guni subaccount.
- Click on three dots > Assign Sender ID.

- Select one from the list of all available sender IDs displayed.
- Click Assign.

- You can only assign one sender ID per subaccount.
- You cannot assign same sender ID on multiple accounts.
- The sender ID you have assigned cannot be used by admin as well.
- You can change assigned sender ID to the subaccount similarly.
Step 5 - Import Rebilling Workflow Snapshot
- For SMS and MMS rebilling import -
Guni snapshot > https://affiliates.gohighlevel.com/?fp_ref=guni20&share=TnhLLBeG6FAlpi0fB6DA

- Your Snapshot will be imported in agency.
Step 6 - Load Snapshot in Sub account
- Visit subaccounts sections in agency.
- Click Manage Client for subaccount with all rebilling contacts saved (Location email must be saved as a contact).

- Click Actions > Load snapshot.

- Choose the imported Guni rebilling snapshot.
- Click Proceed.

- The snapshot include
- Custom fields -
- Sms_sent_cost_guni
- Mms_sent_cost_guni
- Workflow -
- Guni-rebilling-workflow
- Guni DN Rebilling
- Click proceed after verifying your import.

- Provide further confirmations for loading the snapshot in subaccount.

- You can continue with next step once your snapshot is loaded in subaccount.
Step 7 - Set up SMS/MMS Rebilling Settings from Guni
- Click on 'Rebilling Settings' tab.
- Enter the Webhook URL from imported GHL Workflow in SMS/MMS rebilling and Test Connection.
- Similarly for Dedicated Number rebilling and Test Connection.
Note - you will have two different workflows & webhooks for DN charge and SMS charge.

- Map you test connection data in your Rebilling automation.

- If you didn't change the mail in Internal Notification all the emails will be sent by GuniSMS email.
- You will find all the actions created and working if you have mapped the inbound webhook only.
- Save the Workflow and publish.
- Now, scroll down the rebilling section to set rebilling for each subaccount.
- Click on three dots and select 'Billing info'.

- Set billing information -
- Customer Stripe ID - Stripe ID you wish to send rebilling to.
- Frequency - The duration after which rebilling will be sent. You can send rebilling
- Daily – for getting daily billing (SMS usage will be sent for previous day)
- Weekly – for getting weekly billing (Updated every Monday for previous week Monday to Sunday).
- Monthly – for getting billing of last month.
- Never - for never sending rebilling to the subaccount.
- Cents per SMS - The amount you wish to charge on SMS.
- Cents per MMS - The amount you wish to charge on MMS.
- Dedicated Number Price - The amount you wish to charge on Dedicated Number. (set 0 for subaccounts with no DN assigned.)
- Custom Field - Add email address of the customer to be charged.

- Please make sure all the fields in workflow are imported right without any garbage or altered value than what webhook sends.
- Your subaccount will receive rebilling automatically on selected frequency.
Step 8 - Set Up DN Rebilling Workflow
- Open Guni DN Rebilling Workflow.
- Click on inbound webhook and copy the webhook.
- Paste in Dedicated Number Configuration in Guni Rebilling Section.
- Click 'Test Connection'.
- Map Reference in Ghl.
- Check that fields don't have any garbage values. If there are none please don't change any fields in workflow.

Manual Charge -
- Click on three dots in front of subaccount in Rebilling section.
- Click Manual Charge.
- Select message type (SMS/MMS/Both) and time duration for charging > click Next.

- Verify the charge displayed and send the Charge.

Dedicated Number Report -
You can Charge Sub Account for their Dedicated Number from here
- Click on three dots in front of subaccount in Rebilling section.
- Click Number Report.
- Verify Price and click Charge.

Activity Logs -
This section help you view the log data of every charge that has been sent.
- Click on three dots in front of subaccount in Rebilling section.
- Click Activity Logs.

Now your subaccounts can send messages through Guni, and rebilling will be sent automatically.
