Skip to main content
Get up and running with SampleApp.ai in your Next.js application in just a few steps.
1

Install the SDK

Install the SampleApp.ai SDK package:
2

Configure Environment Variables

Create a .env.local file in your project root with your API key:
Make sure to replace your_api_key_here with your actual API key from the SampleApp.ai dashboard.
3

Create the Sandbox Home Page

Create a new file at app/sandbox/page.tsx (or pages/sandbox/index.tsx for Pages Router):
4

Create the Dynamic Sandbox Page

Create a new file at app/sandbox/[sandboxId]/page.tsx (or pages/sandbox/[sandboxId].tsx for Pages Router):

Next Steps

View Examples

Explore example implementations.

Customization

Learn how to customize the appearance and behavior.

Need Help?

Discord

Get help from our team.

LinkedIn

Connect with us.