Page cover

Next.js

Integration Tutorial: Adding Interworky AI Agent to Your Next.js Website

NextJS Integration Tutorial

Step-by-Step Guide:

1. Log into the Interworky Dashboard

• After creating your Interworky account, log into the Interworky dashboard.

• Navigate to the Integration Page.

Integration Page - Interworky Dashboard
  1. Locate the Embed Code

  • In the Integration Page, locate the Embed Code section.

  • Capture your api-key next to data-api-key=

Integration Page (Copied) - Interworky Dashboard

The Next.js <Script> component is an ideal way to load third-party scripts natively, ensuring optimal performance and proper lifecycle management.

  1. Create Interworky Component

Add the Interworky script with the data-api-key attribute captured from the previous step, see example below.

  • TypeScript:

  • Javascript:

  1. Add Interworky Component to your Project

Or Add the component to your desired page

And Tadaa 🎉, you just integrated Interworky AI Agent into your Next.js project.

Interworky added to your NextJS project

If you have any questions about the Interworky Next.js Integration, please reach out to our support team at hello@interworky.com. We're here to help!

Last updated