> For the complete documentation index, see [llms.txt](https://docs.watzap.id/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.watzap.id/help/integrations/integrasi-dengan-n8n/cara-membuat-chatbot-ai-di-n8n-dengan-google-form.md).

# Cara Membuat Chatbot AI di n8n dengan Google Form

Membuat Chatbot AI kini semakin mudah berkat integrasi dengan n8n, Google Form, dan OpenAI. Sebelum membuat Chatbot AI, pastikan Kamu sudah [**setting Webhook URLs**](/help/integrations/integrasi-dengan-n8n/cara-mendapatkan-webhook-url-untuk-n8n.md) dan [**integrasi dengan WatZap di n8n**](/help/integrations/integrasi-dengan-n8n/cara-integrasi-watzap-dengan-n8n.md). Untuk cara membuat Chatbot AI nya seperti berikut.

Pertama dimulai dengan menyiapkan Google Form sebagai knowledge atau sumber informasi seputar produk atau layanan Kamu.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2F3THMkeTN2T3lIk5RoZB9%2Fimage.png?alt=media&amp;token=a346f3a9-179b-4b95-b681-e1047c42b10a" alt=""><figcaption></figcaption></figure>

Kemudian masuk ke dalam n8n dan tambahkan **node WatZap Triggers** dengan settingan seperti ini. Sesuaikan Number Key nya dengan nomor whatsapp yang terhubung di akun WatZap Kamu.&#x20;

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FY55AzlTWBN86cliLwycO%2Fimage.png?alt=media&amp;token=ebe0027c-88a7-4e1d-a5d5-567a90993782" alt=""><figcaption></figcaption></figure>

Selanjutnya gunakan **node IF** dengan settingan seperti ini. Node ini berguna untuk meminimalisir pesan Chatbot AI terkirim double.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FY6hwYDsBlscc85wmW5es%2Fimage.png?alt=media&amp;token=908f466a-8eee-491f-9bad-b3fdcf2a33c2" alt=""><figcaption></figcaption></figure>

Langkah selanjutnya gunakan **node AI Agent** dengan settingan seperti ini.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FgOrxTIUGfaKx8j4Hqu6O%2Fimage.png?alt=media&amp;token=6b2b1eae-9e5f-4d3c-a86e-1a5f9fc12bf0" alt=""><figcaption></figcaption></figure>

Lalu gunakan **node OpenAI** atau Gemini sebagai Chat Model.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FUj5pnX8o4V1BRFM9UoLz%2Fimage.png?alt=media&amp;token=d516fddd-e6e1-4628-819d-e7e3f8a3df76" alt=""><figcaption></figcaption></figure>

Kemudian gunakan **node Simple Memory**. Sesuaikan jumlah "Context Window Length" dengan kebutuhan Kamu.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FFxKKyhYImwAljxyFh7m3%2Fimage.png?alt=media&amp;token=b3162ed6-b081-45de-bc84-37ad7bd3e1ca" alt=""><figcaption></figcaption></figure>

Langkah berikutnya gunakan **node Google Docs** dengan settingan seperti ini. Copy & Paste link Google Docs yang isinya seputar informasi produk atau layanan Kamu.&#x20;

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FaA9uvUmTP0Brur9YZYeL%2Fimage.png?alt=media&amp;token=6113d5e1-be86-4224-976f-e33cb3c01e8f" alt=""><figcaption></figcaption></figure>

Terakhir gunakan **WatZap Node Actions** dengan settingan seperti ini.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FFqXY62Wi28Zmwub2RDqQ%2Fimage.png?alt=media&amp;token=71fbb4b1-9c6f-44dd-99b8-d137a4a750f4" alt=""><figcaption></figcaption></figure>

Dengan begitu, worfklow Chatbot AI bisa langsung Kamu dengan klik tombol **Execute Step**.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FEAAVEp6LEDZgmpHUzSqp%2Fimage.png?alt=media&amp;token=b7b3c514-9d9d-4c95-9956-4c48fd3a2940" alt=""><figcaption></figcaption></figure>

Lalu chat ke nomor WhatsApp yang terhubung di akun WatZap Kamu menggunakan nomor lain. Jika workflow berhasil dibuat, maka akan muncul jawaban otomatis seperti ini.

<figure><img src="https://4182233851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5hxDGBLGZN4N69IP4zHp%2Fuploads%2FXEATvDT4sZvnMuNSVNKH%2Fimage.png?alt=media&amp;token=3cdc1176-1417-4684-a9c7-eeb989714a77" alt=""><figcaption></figcaption></figure>

Selesai.
