# jotform_chatbot

> By importing one react component `JotChat`, you can use it as chatbot in your projects.

Latest version **0.0.19** (published 2019-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install jotform_chatbot
pnpm add jotform_chatbot
yarn add jotform_chatbot
bun add jotform_chatbot
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.19 |
| Published | 2019-09-13 |
| First published | 2019-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 5.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | semihozden |
| Maintainers | semihozden |
| Keywords | jotform, chatbot, fulfill form interactively |

## Links

- npm: https://www.npmjs.com/package/jotform_chatbot
- Repository: https://github.com/SemihOzden/jot_chat_2
- Homepage: https://github.com/SemihOzden/jot_chat_2#readme
- Issues: https://github.com/SemihOzden/jot_chat_2/issues
- npm.io page: https://npm.io/package/jotform_chatbot

## Dependencies (8)

- [react](https://npm.io/package/react.md) ^16.8.6
- [redux](https://npm.io/package/redux.md) ^4.0.4
- [react-dom](https://npm.io/package/react-dom.md) ^16.8.6
- [react-redux](https://npm.io/package/react-redux.md) ^7.1.0
- [react-scripts](https://npm.io/package/react-scripts.md) 3.0.1
- [immutability-helper](https://npm.io/package/immutability-helper.md) ^3.0.1
- [react-addons-update](https://npm.io/package/react-addons-update.md) ^15.6.2
- [react-addons-css-transition-group](https://npm.io/package/react-addons-css-transition-group.md) ^15.6.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.19 (latest) — 2019-09-13
- 0.0.18 — 2019-09-12
- 0.0.17 — 2019-09-12
- 0.0.16 — 2019-09-12
- 0.0.15 — 2019-09-12
- 0.0.14 — 2019-09-12
- 0.0.13 — 2019-09-11
- 0.0.12 — 2019-09-11
- 0.0.11 — 2019-09-11
- 0.0.10 — 2019-09-11
- 0.0.9 — 2019-09-11
- 0.0.8 — 2019-09-11
- 0.0.7 — 2019-09-10
- 0.0.6 — 2019-09-10
- 0.0.5 — 2019-09-10
- … 4 more at https://npm.io/package/jotform_chatbot/versions

## README

# Jotform Chatbot

By importing one react component `JotChat`, you can use it as chatbot in your projects.

This is proof of concept. If you want to use this, you need proxy server.

## Install

`npm install jotform_chatbot`

or

` yarn add jotform_chatbot `

## Usage

1.  Include jotform javascript api into your main html page.
``` javascript
<script src="https://js.jotform.com/JotForm.js"></script>
 ```
2.  Include following bootstrap and scripts into your main html page between `<head>` tags.

``` javascript
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" type="text/css"
    rel="stylesheet"
>
```

3.  You should import ` node_modules/jot_chat_2/lib/cjs/index.css ` from your node modules. It is my css file.

### Example usage
``` javascript
import React from 'react';
import JotChat from 'jotform_chatbot';
import '../node_modules/jot_chat_2/lib/cjs/index.css'

function App() {

  const initialState = {
    formId: 'Your_jotform_form_id',
    apiKey: 'your_jotform_apiKey'
  };
  return (
    <div className="App">
      <JotChat initialState={initialState}/>
    </div>
  );
}

export default App;

```
## [Live Demo](https://semihozden.github.io/npm_jotform_tester/)


## Properties

You should use following properties to use this jotform_chatbot properly.

| Properties        | Type           | Required  | Default value | Description |
| -------------     |:-------------: | -----:    | -----:        | ---------------------------------------------:
| formId            | string         |   yes     |   not         | Related form Id from your jotform forms|
| apiKey            | string         |   yes     |   not         | Special key defined in your jotform profile |

## Specificially used jotform question types

I have been using 7 different question types in my `jotform_chatbot` project.


| Question Types        |
| -------------     |
| control_name |
| control_email |
| control_dropdown |
| control_textarea |
| control_datetime (dd-mm-yyyy) |
| control_radio |
| control_checkbox           |

Other question types will be added. They are in the progress.

## Contributing
Feel free to send pull request.

## Licence

MIT [semihOzden](https://github.com/SemihOzden)

---
_Source: https://npm.io/package/jotform_chatbot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
