# LogicDialog Chat Plugin

The LogicDialog Chat plugin is a small component that can add web chat functionality to any HTML site. Using a few simple lines of JavaScript you can instantly add new functionality that can help users get the answers to their queries, and all kinds of other questions.

![](https://1150867657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLPDn51qLkjQotu2oCbbt%2Fuploads%2FhTeGownl9biVZ9ZCri7w%2FScreenshot%202021-12-16%20at%2022.16.36.png?alt=media\&token=02cb18a0-4c8a-472b-8d6e-f59b2b2fb5a3)

The widget is very customisable to accommodate all kinds of different brands, colours, sizes and fonts. Information in this guide will help you setup the widget in the way you need.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chat-plugin.logicdialog.ai/logicdialog-chat-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
