Search Docs…

Search Docs…

Reference

Saving to Notion

Overview

This guide explains how to integrate Arch surveys with Notion to automatically store survey responses in a Notion database.

Setting Up Your Notion Database
  1. Create a New Database:

    • Open Notion and create a new database.

    • Use a Table layout for easier data management.

  2. Define Column Titles:

    • Each survey question should be a separate column.

    • Add a Text column for each question.

    • Example Columns:

      • "How satisfied are you with our service?"

      • "Would you recommend us?"

      • "Additional feedback"


Getting Notion API Credentials
  1. Generate an Integration Token:

    • Go to Notion Integrations.

    • Click "Create Integration".

    • Copy the generated Internal Integration Token.

  2. Share Your Database with the Integration:

    • Open your Notion database.

    • Click "Share" (top-right corner).

    • Enter the Integration Token and give Full Access.

  3. Find Your Database ID:

    • Open your database in a web browser.

    • The Database ID is the long alphanumeric string in the URL after https://www.notion.so/yourworkspace/.

    • Example:

      • https://www.notion.so/yourworkspace/1b5e91b905f080a58220c0bc786fbea3

      • Database ID: 1b5e91b905f080a58220c0bc786fbea3


Example Usage
let notionAPIKey = "YOUR_NOTION_API_KEY"
let databaseID = "YOUR_DATABASE_ID"

saveSurveyToNotion(surveyResults: surveyResults, notionAPIKey: notionAPIKey, databaseID: databaseID)


Summary
  • Create a Notion database and define columns for survey questions.

  • Get your Notion API Key and Database ID.

  • Share your database with the integration.

  • Use the provided Swift function to send responses to Notion automatically.

🚀 Done! Your survey responses are now saved in Notion!