ChatGpt Assistance Integration

Integrating ChatGpt in GHL using WAGHL

ChatGpt in GHL in less than 10 minutes. Just follow the steps given in the video.

Integrating ChatGpt in GHL using WAGHL

SOP: Connecting Chat GPT with WAGHL Services

Objective

To link WAGHL services with ChatGPT to create a automation or Chat GPT bot using WAGHL services for responding to user queries.

Key Steps

  1. Go to automations in your GHL sub-account and create a new workflow, choosing "From Scratch."

  2. Add a trigger (e.g., "Customer Replied") and set the Filter to "Reply Channel" as SMS. Save the trigger and enable Re-entry in Workflow Settings.

  3. Add an action as WebHook, set the method as POST, and paste the URL provided in the description link.

  4. Add two keys: Chat GPT Assistant ID and Chat GPT API Key, along with their respective values. Ensure the values are correct.

  5. Save the action, name the workflow (e.g., Chat GPT or Chatbot), and save and publish the workflow.

  6. Test the workflow by sending a message to the connected number to receive responses from Chat GPT.

Webhook URL

Webhook URLs may vary depending on the WhatsApp gateway you’re using.

To find the correct webhook URL for your GHL subaccounts, switch to the subaccount and navigate to...

Settings- Phone Numbers - Advanced Settings

Name
URL

WhatsApp Gateway

https://trigger.apimerger.com/chatgpt-assistant

WhatsApp Gateway 1

https://trigger1.apimerger.com/chatgpt-assistant

WA1 Connector

https://wa1.apimerger.com/chatgpt-assistant

WA2 Connector

https://wa2.apimerger.com/chatgpt-assistant

Custom Data Keys

Key
Value

chat_gpt_assistant_id

Chatbot assistant id

chat_gpt_api_key

ChatGpt api key

Optional Parameters

Key
Value

additional_instructions

additional instructions refer to extra directives you want to send to ChatGpt for that particular conversation.

thread_duration

Duration of how long a ChatGPT assistant retains the context of the conversation with a user. You can enter the thread duration in days, i.e. the value 1 means 1 day. You can set thread duration = 0 to delete threads.

custom_message

Override the customer's message so you can send a custom message to the ChatGPT assistant as per your requirements. For example, if you want to send a custom field etc. to ChatGpt

Note: This will not append anything to the customer message, this will override the customer message.

Capture ChatGpt's last response

To capture the last ChaGpt response under the contact custom field, create a custom field under the contact.

How to create the custom field for the contact

Go to Settings- Custom Fields- Add Fields

Select Input text as Multiline and in the field name put the below text

Chat Gpt Last Response

under group select Contact and click on Save

Cautionary Notes

  • Ensure correct values are entered for the Chat GPT Assistant ID and API Key.

  • Verify the webhook URL based on your default SMS provider - (WhatsApp Gateway, WhatsApp Gateway 1, or WA 1 Connector).

Tips for Efficiency

  • Keep the Chat GPT Assistant ID and API Key handy from your OpenAI platform.

  • Create a multi-line field named "Chat Gpt Last Response" in custom fields to capture and store the last response.

  • Regularly check and verify the last response captured in the GHL contacts to ensure the proper functioning of the integration.

Last updated

Was this helpful?