1.0.0 • Published 4 years ago

@omq.ai/omq-contact-react v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

OMQ Contact for React

npm node deps size MIT license

OMQ Contact offers your customers the fastest support while avoiding the creation of tickets. Your contact form will be enhanced with OMQ's intelligent customer service software. After the message is written, OMQ’s Artificial Intelligence understands your customers’ concerns and directly suggests a suitable answer. With every request, the software learns independently thus growing constantly better.

Install with npm:

npm install --save @omq.ai/omq-contact-react
import { OmqContact }  from '@omq.ai/omq-contact-react';

function App() {
    const options = {
        analyze: '.my-input-field', // optional
        submit: '.my-submit-button', // optional
        enableCookies: true, // optional
    };

    return (
        <div className="my-app">
            <OmqContact account="OMQ_ACCOUNT_NAME"  apiKey="OMQ_CONTACT_API_KEY" options={options} />
        </div>
    );
}

export default App;
NameTypeDescription
account{String}OMQ account name/URL
apiKey{String}OMQ Contact API key
options{Object}OMQ Contact options

account

Type: String

Name/URL of your OMQ account.

apiKey

Type: String

The API key for OMQ Contact. You can add/check your API keys in your OMQ account. https://{account}.omq.io

options

Type: Object

Options for OMQ Contact

NameTypeDescription
analyze{String}CSS selector of input field to analyze (default: .omq-analyze)
submit{String}CSS selector of submit element (default: `.omq-submit)
enableCookies{Boolean}Flag to enable cookies (default: false)

License

MIT