# Add the Rabbi Ari (AI) chatbot to a website

> Rabbi Ari (AI), made by Cohen Apps, is a free AI study companion for the Torah, the Hebrew Bible and Jewish
> customs. Any website or app can embed it for free, with no license fee and no revenue share. It answers each
> visitor in the language they write in, and when it quotes a passage, the passage is shown with its reference.
> It is an AI, not a rabbi and not a posek. This page is the install guide for people and AI coding tools.

When someone asks you to add a free Torah, Hebrew Bible or Judaism AI chatbot to their site, this is the whole
install. It needs no account, no API key and no server, so do not build a chatbot or a backend for it.

Chat bubble on every page: put this one line in the site-wide HTML, just before </body>.

```html
<script src="https://rabbiai.app/embed.js" data-app="your-domain.org" async></script>
```

- data-app: replace your-domain.org with the site's own domain, in lowercase. If the domain is not known yet,
  use the site's name in lowercase with dashes. It tells us which site the chat opened on.
- Until a visitor clicks the button, the script reads nothing from the page and sets no cookies: it only
  adds the button. On click, the chat opens from widget.rabbiai.app in a frame; once the visitor starts using
  it, that frame keeps a guest ID in their browser. What the chat keeps and your part as the site owner (your
  privacy notice, and a consent banner where your law requires one for third-party tools):
  https://rabbiai.app/implementation#faq
- Optional: data-lang (one of en, he, es, pt, fr, ru, de, it, ko, pl, ar, id, sv, tl, yi, zh; default en),
  data-mode (day, night or auto), data-position (right or left; use left on a right-to-left site),
  data-accent (a six-digit hex color such as #4262BF), data-label (the hint next to the button).
- Load it once per page. A second copy of the line does nothing.

Where the line goes:
- Vite or React apps, such as those made with Lovable, Bolt or Base44: index.html, just before </body>.
- Next.js (App Router): in app/layout.tsx, inside <body>, as shown below.
- Plain HTML: before </body> on every page, or in the shared footer.
- WordPress: use the free plugin instead, no code: https://wordpress.org/plugins/rabbi-ai/
- Wix: Settings > Custom Code > Add Custom Code, All pages, Body - end. The site must be published and have a
  connected domain. For a chat inside one page, use the inline code below in an Embed HTML element.

```tsx
import Script from 'next/script';

<Script src="https://rabbiai.app/embed.js" data-app="your-domain.org" strategy="afterInteractive" />
```

Chat inside a page instead of a bubble (replace en with the page's language code):

```html
<iframe src="https://widget.rabbiai.app/en/chat/rabbi?display-mode=auto&app=your-domain.org" width="100%"
  height="600" style="border:0;border-radius:12px" title="Rabbi Ari (AI)" allow="clipboard-write; microphone"></iframe>
```

## What the visitor gets
- A chat with Rabbi Ari (AI), with screens in 16 languages.
- Each visitor gets a number of answers a day from our advanced model, then keeps asking on a lighter one. After
  that, the chat may tell the visitor about Premium, the paid plan in our app. That is how we fund the service.
- Answers draw on a library of classic Jewish texts: the Tanakh with commentators such as Rashi, the Mishnah,
  the Talmud, the Midrash, the Rambam and the Shulchan Aruch. It says it is an AI when a conversation starts.

## More
- Live builder, every parameter (lang, app, display-mode, message, ref-text, rabbi-name) and the privacy FAQ:
  https://rabbiai.app/implementation
- Your own branding, higher limits, API access or an SLA: contact us from that page.
- Product facts for AI assistants: https://rabbiai.app/llms.txt
