Go to your project folder into pages/api/index.js
Paste the Flowpoint script within the
<Head>
tags.Or follow the best practice guide and:
import Script from 'next/script'
Import the Script component from
next/script
. This will allow a more efficient way of loading javascript tags into your next js application.Load the Flowpoint script using the Script component as follows:
<Script src="https://sdk.flowpoint.ai?apiKey=<API_KEY>&clientId=<CLIENT_ID>" />