+

Getting Started (3)

+

Ai Configuration (6)

+

Woocommerce Integration (5)

+

Customization (2)

+

Conversation Management (2)

+

Chatbot Menu Settings (4)

+

Security And Privacy (4)

Shortcode Integration

Reading Time: 3 minutes

Overview

The Shortcode Integration feature of WPiko AI Chatbot allows you to embed the chatbot directly into specific pages or posts on your WordPress site. This method provides flexibility in placement and enables you to integrate the chatbot seamlessly with your content.

Using the Shortcode

Basic Implementation

To add the chatbot to any page or post, simply insert the following shortcode:

[wpiko_chatbot]

Where to Use the Shortcode

You can use this shortcode in various locations:

  • Page or Post Content: Insert it directly in the content editor.
  • Text Widgets: Add it to sidebars or other widget areas.
  • Custom HTML Blocks: Use it within Gutenberg custom HTML blocks.

Configuring Shortcode Chatbot Settings

  1. Navigate to WPiko AI Chatbot > Shortcode Chatbot in your WordPress dashboard.
  2. Here you can adjust settings specific to the shortcode implementation.

Adjusting Chatbot Size

  • Locate “Chatbot Width (px)” and enter the desired maximum width in pixels.
  • Default: 1280px
  • Note: The chatbot will be responsive and adjust to fit smaller containers.
  • Set the “Chatbot Height (px)” to adjust the height of the messages area.
  • Default: 500px
  • Click “Save Shortcode Chatbot Settings” to apply changes.

Best Practices for Shortcode Implementation

Strategic Placement

  • Consider adding the chatbot to FAQ pages, product pages, or support sections.
  • Use it on landing pages to provide immediate assistance to potential customers.

Responsive Design

  • The shortcode chatbot is designed to be responsive, but ensure it fits well within your page layout.
  • Test on various screen sizes to verify proper display.

Content Integration

  • Introduce the chatbot with surrounding text to explain its purpose to visitors.
  • Example: “Have questions? Our AI assistant is here to help!”

Multiple Instances

  • You can use the shortcode multiple times on the same page if needed.
  • Be mindful of user experience when placing multiple chatbots.

Avoid Overuse

  • While versatile, avoid placing the chatbot on every page.
  • Use it where it adds the most value.

Customization Tips

  • The shortcode chatbot inherits styles set in the general Chatbot Style settings.
  • For page-specific customizations, you can wrap the shortcode in a div with custom CSS classes.
html
<div class="custom-chatbot-wrapper">
    [wpiko_chatbot]
</div>

Then, add custom CSS targeting .custom-chatbot-wrapper in your theme or custom CSS section.

Troubleshooting

If the chatbot doesn’t appear or function correctly:

  • Verify the shortcode is entered correctly with no extra spaces or characters.
  • Check if there are any JavaScript errors in the browser console.
  • Ensure the page/post is published and visible to the intended audience.
  • Verify that the WPiko AI Chatbot plugin is activated and properly configured.