4.11.3 • Published 2 days ago

@cookbookdev/docsbot v4.11.3

Weekly downloads
-
License
-
Repository
-
Last release
2 days ago

How to integrate "Ask Cookbook" into your website

Step 1. Contact us to get an API Key

You likely already have one, but if you don't, please contact us at tyler@cookbook.dev

Step 2. Pick one of the integration methods below

Having troubles or need something custom? Contact us

Integration methods

Basic integration

Suitable for static websites, outlines the general idea of how to integrate the bot into your website. As long as you can directly edit the HTML of your website, you can use this method.

<!-- Somewhere in <head> -->
<script src="https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js" defer></script>

<!-- Somewhere in <body> -->
<div id="__cookbook" data-api-key="HERE_GOES_APIKEY"></div>

React integration

Install the package

yarn add @cookbookdev/docsbot

OR

npm install @cookbookdev/docsbot

OR

pnpm install @cookbookdev/docsbot

Import and add our component to something that wraps the content, for example in Next.js it could be _app.js or layout.js

import AskCookbook from "@cookbookdev/docsbot/react";

export default function App() {
  return (
    <>
      <AskCookbook apiKey="[HERE_GOES_YOUR_API_KEY]" alwaysOpen={false} noFastMode={false} />
      {/* Your content */}
    </>
  );
}

Webflow integration

  1. Go to the Dashboard
  2. Get to the "Site settings" (see picture below)
  3. Get to the "Custom code" tab (see picture below)
  4. Put the following code into the "Head code" text area
<script src="https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js" defer></script>
  1. Put the following code into the "Footer code" text area
<div id="__cookbook" data-api-key="[HERE_GOES_YOUR_API_KEY]"></div>
  1. Save both of them

image 7. Publish website

image

Gitbook Integration

The good news is that we know how to integrate the "Ask Cookbook" into Gitbook! The bad news is that we yet to write a guide on it. If you need it, please contact us

API of <div> element

<div
  id="__cookbook"
  data-always-open <!-- Optional. If you want to have modal always open, usually for the showcase purposes -->
  data-no-fast <!-- Optional. Disables fast mode switch, forces dosbot into the detailed mode -->
  data-api-key="API_KEY_GOES_HERE"
/>

API of React component

<AskCookbook
  apiKey="API_KEY_GOES_HERE"
  alwaysOpen={false} // Optional. If you want to have modal always open, usually for the showcase purposes
  noFastMode={false} // Optional. Disables fast mode switch, forces dosbot into the detailed mode
/>

4.11.0

2 days ago

4.11.1

2 days ago

4.11.2

2 days ago

4.11.3

2 days ago

4.10.6

2 days ago

4.10.5

4 days ago

4.10.2

5 days ago

4.10.3

5 days ago

4.10.4

4 days ago

4.10.1

6 days ago

4.10.0

6 days ago

4.9.17

11 days ago

4.9.16

14 days ago

4.9.15

15 days ago

4.9.9

22 days ago

4.9.11

21 days ago

4.9.10

21 days ago

4.9.13

21 days ago

4.9.12

21 days ago

4.9.14

21 days ago

4.9.8

24 days ago

4.9.7

24 days ago

4.9.6

24 days ago

4.9.4

27 days ago

4.9.3

28 days ago

4.9.5

27 days ago

4.9.0

28 days ago

4.9.2

28 days ago

4.9.1

28 days ago

4.7.9

1 month ago

4.7.6

1 month ago

4.7.5

1 month ago

4.7.8

1 month ago

4.7.7

1 month ago

4.7.2

1 month ago

4.7.1

1 month ago

4.7.4

1 month ago

4.7.3

1 month ago

4.7.12

1 month ago

4.7.13

1 month ago

4.7.10

1 month ago

4.7.11

1 month ago

4.7.16

1 month ago

4.7.14

1 month ago

4.7.15

1 month ago

4.8.8

30 days ago

4.8.5

1 month ago

4.8.4

1 month ago

4.8.7

30 days ago

4.8.6

30 days ago

4.8.1

1 month ago

4.8.0

1 month ago

4.8.3

1 month ago

4.8.2

1 month ago

4.7.0

1 month ago

4.6.0

1 month ago

4.5.2

1 month ago

4.5.1

1 month ago

4.4.4

1 month ago

4.5.0

1 month ago

4.4.1

1 month ago

4.4.0

1 month ago

4.4.3

1 month ago

4.4.2

1 month ago

4.1.3

1 month ago

4.1.0

1 month ago

4.3.0

1 month ago

4.2.1

1 month ago

4.1.2

1 month ago

4.2.0

1 month ago

4.1.1

1 month ago

4.0.7

1 month ago

4.0.6

1 month ago

4.0.5

1 month ago

4.0.4

1 month ago

4.0.3

2 months ago

4.0.2

2 months ago

4.0.1

2 months ago

4.0.0

2 months ago

0.0.1

2 months ago

3.0.3

2 months ago

3.0.2

2 months ago

3.0.1

2 months ago

3.0.0

2 months ago

2.0.0

3 months ago

1.0.18

4 months ago

1.0.17

4 months ago

1.0.16

4 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.12

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago