Captivate Chat
  • 📚Overview
  • 💻Components
  • 📕Changelog
  • 🚀Get Started
  • DASHBOARD
    • Homepage
      • Setup
        • My AI Chatbots
        • Chat Flows
      • Transcripts
      • Tokens
      • Settings
        • Edit Profile
        • Manage Plan
        • Account Details
        • Referrals
  • START CREATING
    • Create an AI Chatbot
      • Setting Up
      • Import Your Own Information
        • URL Crawler
      • Select Type
      • Train your AI Chatbot
      • Select Integration
      • Finishing Touches
      • Modify your AI Chatbots
    • Create a Chat Flow
      • Setting Up
      • AI Chatbots
      • Select Channel
        • Channel: Web Chat
          • Preview your Web Widget
        • Channel: Facebook
        • Channel: Instagram
        • Channel: WhatsApp
          • Setting up WhatsApp
          • Submit your first WhatsApp Sender
          • Setting up more WhatsApp Senders
          • Configure the Endpoint for Integration
        • Channel: Full Chat
          • Preview Full Chat Channel
        • Channel: Custom Channel
          • JavaScript Socket API
          • Socket API
          • Socket Conversation Testing
      • Select Live Chat Vendor
      • Modify your Chat Flow
    • Connect a Live Chat
      • Microsoft Teams
        • Set up the Captivate Chat MS Teams App
          • MS Teams App Chat Prompts
        • Connect your Captivate Chat account
        • Connect your Chat Flow
        • MS Teams App Chats
        • Test your Microsoft Teams integration
    • Create a Custom Component
  • 💬SUPPORT
Powered by GitBook
On this page
  • Socket Conversation Testing
  • Open Socket Connection
  • Test with Client Actions
  • Client Actions

Was this helpful?

  1. START CREATING
  2. Create a Chat Flow
  3. Select Channel
  4. Channel: Custom Channel

Socket Conversation Testing

Test the functionality of your Custom Channel with our Socket Tester.

PreviousSocket APINextSelect Live Chat Vendor

Last updated 3 months ago

Was this helpful?

We created a Socket Conversation Testing environment where you can plug in your existing Custom Channel and test Endpoints if they are currently working as intended.

You may access the Socket Conversation Testing site .

REMINDER

These WebSocket Endpoints are advisable to be used by developers familiar with the product or service you want to transform into a Custom Channel.

Please provide this page to them so they can conduct proper testing with the Custom Channel you want to create.


Socket Conversation Testing

This is the Socket Conversation Testing website that is accessible via the URL above. It reveals a simple webpage where developers can test their existing Custom Channel's functionalities.

It is comprised of three sections:

  • Instructions: The left side contains instructions on how to use this webpage.

  • Choose an Action: This is the active testing area. It has these components:

    • WSS URL: This is the unique URL of your Custom Channel. It contains your API key.

    • Enter your JSON here...: This textbox is where you will plug in WebSocket Endpoints listed in the Instructions to test your Custom Channel.

  • Response Area: This is the white area below the Send Message button where your Custom Channel should respond.


Open Socket Connection

Before you can use the Socket Conversation Testing page, you need to plug in your Custom Channel first. You do this within the WSS URL textbox below Choose an Action.

You have to copy a WSS URL into the text box.

If you're using it for production:

wss://channel.wss.captivatechat.ai/dev?apiKey=API_KEY

If you're using it for development:

wss://channel-dev.wss.captivatechat.ai/dev?apiKey=API_KEY

Take note that API_KEY here corresponds to the API Key you will receive when you create a Custom Channel in Channel: Custom Channel

After doing so, click Open Socket Connection. If your Custom Channel is working, you should get a socket_connected event.


Test with Client Actions

After you connected your WSS URL, your Custom Channel will be responsive to your events. You can test them by plugging them into the "Enter your JSON here..." textbox, customizing its parameters, and clicking Send Message.

When the empty box below the "Enter your JSON here..." textbox returns a response appropriate to your event, then it is working as intended.


Client Actions

The Socket Conversation Testing webpage has a list of Client Actions you can copy and paste into the "Enter your JSON here..." textbox for testing. You can customize its parameters before clicking "Send Message."

The response in the white box below will determine if your Custom Channel is working properly.

here
Opening the Socket Conversation Testing webpage reveals this webpage. It has instructions on how to use this testing environment. The section to the right is where users can plug in their WSS URL with the API Key to access their Custom Channel, a JSON textbox for their WebSocket Endpoints, and Send Message to test them. There is an empty box below that will be filled with the Chatbot's response.
This "Enter your JSON here..." textbox in the Socket Conversation Testing is where you have to input events in JSON format. When you click "Send Message", you should receive a response appropriate to the expected outcome as indicated in the "Instructions" segment of the Socket Conversation Testing page.
The empty box below the "Enter your JSON here..." textbox will return a response after you click "Send Message."
An example of a Client Action listed in the Socket Conversation Testing webpage. Plug them into the "Enter your JSON here..." textbox, customize its parameters, and click "Send Message" to check if your Custom Channel can interpret it properly.
Opening the Socket Conversation Testing webpage reveals this webpage. It has instructions on how to use this testing environment. The section to the right is where users can plug in their WSS URL with the API Key to access their Custom Channel, a JSON textbox for their WebSocket Endpoints, and Send Message to test them. There is an empty box below that will be filled with the Chatbot's response.
This "Enter your JSON here..." textbox in the Socket Conversation Testing  is where you have to input events in JSON format. When you click "Send Message", you should receive a response appropriate to the expected outcome as indicated in the "Instructions" segment of the Socket Conversation Testing page.
The empty box below the "Enter your JSON here..." textbox will return a response after you click "Send Message."
An example of a Client Action listed in the Socket Conversation Testing webpage. Plug them into the "Enter your JSON here..." textbox, customize its parameters, and click "Send Message" to check if your Custom Channel can interpret it properly.