Pica Logo

Pica Assistant

Your integration companion

Pica Logo

Welcome to Pica! ✨

I'm here to help you discover how Pica can transform your workflow with powerful integrations.

Popular questions

Hover to see more

+7 more questions

Bolt LogoΓ—Airtable
Airtable

Building a Support Ticket Portal Using Airtable

Create a full-featured support ticket portal with authentication, user roles, and Airtable integration using Bolt and Pica

January 27, 2026
Pica Team
airtablesupportticketsbuildkitauthentication

In this guide, we'll build a support ticket portal with authentication and role-based access. With Bolt and Pica, you can create a production-ready ticketing system in minutesβ€”using Airtable as your database.

What You'll Build

By the end of this tutorial, you'll have:

  • A beautiful support ticket portal with authentication
  • Two user roles: users and admins
  • Users can submit tickets, view their tickets, check statuses, and manage message threads
  • Admins can view all tickets, reply to messages, and update ticket statuses
  • Full integration with Airtable for persistent data storage
  • Production-ready error handling

Let's get started! πŸš€

Step 1: Build the Support Ticket Portal UI

First, let's create the UI with authentication and role-based access using Bolt's authentication system.

Prompt Bolt:

"Build a support ticket portal UI with authentication. Support two roles: users and admins. Users can submit tickets, view their tickets and statuses, and read/respond to message threads. Admins can view all tickets, reply, and update ticket statuses. Implement real auth logic using Bolt authentication and UI only. Do not persist ticket or message data yet (use mock data)."

Click "Enhance Prompt" & Submit

Bolt will enhance your prompt and generate a beautiful, responsive support portal!

Support Ticket Portal UI

Step 2: Setup Airtable Base

Now let's create your Airtable database to store ticket data.

Creating Your Airtable Base:

  1. Go to Airtable and create a new base
  2. Name it: Tickets
  3. Create a table with these fields:
Field NameField TypeDescription
IdSingle line textUnique ticket identifier
TitleSingle line textTicket title
DescriptionLong textDetailed ticket description
OwnerSingle line textEmail or ID of ticket creator
StatusSingle selectOptions: Open, In Progress, Resolved, Closed
Airtable Base Setup

Step 3: Create an Airtable Connection in Pica

You need to connect your Airtable account to Pica so your portal can store and retrieve tickets.

Airtable Connection

How to Connect Airtable:

  1. Go to the Pica dashboard at: app.picaos.com/connections
  2. Click on + Add Connection
  3. Select Airtable from the list of integrations
  4. Authenticate with your Airtable account
  5. Grant access to your bases when prompted
  6. Save your connection key - you'll need this later!

Step 4: Get Your Airtable Base and Table IDs

To connect your portal to Airtable, you'll need to grab your base ID and table ID.

How to Find Your Base ID:

From the Airtable URL:

https://airtable.com/appWbKT2HgWOt2cb9/tbl9GTOQjoCPDmYYo/viwGLLazcLw4XSmYj?blocks=hide
  • Base ID: appWbKT2HgWOt2cb9 (starts with app)
  • Table ID: tbl9GTOQjoCPDmYYo (starts with tbl)

Keep these IDs handy - you'll need them in the next step!


Step 5: Generate Your Code with BuildKit

Now we'll use Pica BuildKit to generate the perfect prompt for managing tickets in Airtable.

Using BuildKit:

  1. Go to the BuildKit page at: app.picaos.com/buildkit
  2. Type: "Create records, list records and get schema in an airtable base."
  3. BuildKit will generate an optimized prompt for you

Or copy the prompt here:

πŸš€ Next step: Copy the prompt above and paste it into Bolt.new to create your backend logic!

What BuildKit Does:

BuildKit automatically generates a prompt that includes:

  • βœ… Proper API authentication setup
  • βœ… Create ticket functionality with all fields
  • βœ… List tickets with filtering options
  • βœ… Get base schema for dynamic field mapping
  • βœ… Error handling best practices
  • βœ… Environment variable configuration
  • βœ… Integration with your Pica Airtable connection

Step 6: Add Your Secrets to Bolt

Once Bolt generates your application, you'll need to add your API keys as environment variables.

Add Secrets to Bolt

Required Environment Variables:

1. PICA_SECRET_KEY

2. PICA_AIRTABLE_CONNECTION_KEY

3. AIRTABLE_BASE_ID

  • The base ID from Step 4 (e.g., appWbKT2HgWOt2cb9)

4. AIRTABLE_TABLE_ID

  • The table ID from Step 4 (e.g., tbl9GTOQjoCPDmYYo)

How to Add Secrets in Bolt:

  1. Click on the Settings icon in Bolt
  2. Navigate to Secrets
  3. Add all four keys with their respective values
  4. Save and restart your application

Now your support ticket portal is connected to Airtable and will persist all ticket data! πŸŽ‰


Step 7: Try It in Action!

Test your support ticket portal by creating tickets and managing them with different roles.

Support Ticket Portal Demo

Testing as a User:

  1. Log in as a regular user
  2. Create a new support ticket with a title and description
  3. View your submitted tickets
  4. Add messages to ticket threads
  5. Watch status updates from admins

Testing as an Admin:

  1. Log in as an admin
  2. View all tickets from all users
  3. Reply to ticket messages
  4. Update ticket statuses (Open β†’ In Progress β†’ Resolved β†’ Closed)
  5. See changes reflected in real-time in Airtable

Troubleshooting

Tickets not saving to Airtable?

  1. Check your environment variables - Make sure all four keys are set correctly in your Bolt secret settings
  2. Verify your Airtable connection - Go to app.picaos.com/connections and ensure it's active
  3. Check base permissions - Make sure your Airtable connection has write access to your base
  4. Verify base and table IDs - Ensure you're using the correct IDs from your Airtable URL
  5. Check field names - Field names are case-sensitive (e.g., "Title", "Status")
  6. Check Pica logs - View execution logs in your Pica dashboard

Authentication not working?

  1. Check Bolt auth setup - Ensure authentication is properly configured in your Bolt project
  2. Verify role assignments - Make sure users are assigned the correct roles (user vs admin)
  3. Check protected routes - Ensure role-based access control is implemented correctly

Tickets not filtering by user?

Make sure you're filtering tickets by the Owner field to show only tickets belonging to the logged-in user. Admins should see all tickets without filters.


Conclusion

Congratulations! πŸŽ‰ You've just built a production-ready support ticket portal in minutes. Users can now submit and track their support requests, while your admin team can efficiently manage and resolve ticketsβ€”all powered by Airtable!

What you've accomplished:

  • βœ… Full authentication with role-based access
  • βœ… Ticket creation and management
  • βœ… Message threading for conversations
  • βœ… Admin controls for status updates
  • βœ… Persistent storage with Airtable
  • βœ… Production-ready error handling

Ready to add more integrations? Explore other Bolt use cases to supercharge your application with Pica.


Get Help

Questions or need support?

Happy building! πŸš€

Ready to build with Bolt?

Start creating AI-powered applications with seamless Airtable integration today