get-started4.83 KB
View saved version →
---
name: get-started
description: Set up OWOX Data Marts after installation and lead the user to the first answer from their own data. Check the connection and the project, show the data that is ready, or guide the user step by step to connect a warehouse and a data source and publish the first Data Mart. Use when the user installs the plugin, asks how to start, or has no data in OWOX yet.
---
# Get started with OWOX Data Marts
Lead the user from installation to the first answer from their own data in this chat. Speak the user's language. Keep each message short: one step and one question.
Before a call that creates or changes something, tell the user what you will create and get their approval. Secrets go only through the browser forms of Credential setup. Never ask for a password, token or key in the chat.
If the user stops and runs this workflow again later, start at step 1. The checks find the current state. Continue from the first step that is not done.
## 1. Check the connection and the project
Call `get_project_context`.
- If the call fails because the user is not signed in or has no access, explain that OWOX needs a sign-in to read the project. Ask the user to connect the OWOX Data Marts app again and sign in with their OWOX account.
- Tell the user the title of the connected project. If they want another project, explain that they choose the project when they sign in: disconnect the app, connect it again, and choose the project.
## 2. Find what is ready
Call `summarize_data_catalog`.
- If the result lists Data Marts, the project has data. Follow `_instruction`: describe the business areas in a short list with the link (`url`) of each Data Mart. Then go to step 7.
- If the result contains `getting_started`, no Data Mart is published yet:
- If `can_create_data_marts` is false, the user cannot create Data Marts. Write a short message that the user can send to a Project Admin or a Data Owner of the project: ask them to connect a warehouse, publish a Data Mart and share it with the user. Add `data_marts_url` and `guides.core_concepts`. Stop here.
- If `getting_started.instructions` says that this connection needs `mcp:write`, ask the user to connect the app again and allow changes, or to continue in the OWOX Data Marts web app at `create_data_mart_url`. Stop here.
- If `draft_data_marts` is not empty, give the names and links of the drafts. Ask whether to finish one of them. If yes, read it with `get_data_mart_setup` and continue at step 5 (no definition) or step 6 (definition saved).
- Otherwise, go to step 3.
## 3. Ask what to analyze first
Ask one question: what does the user want to analyze first?
- Advertising: Facebook Ads, Google Ads, Microsoft Ads, LinkedIn Ads, TikTok Ads, X Ads, Reddit Ads or Criteo.
- Online store sales: Shopify.
- Data that is already in their warehouse, for example the Google Analytics 4 export in BigQuery.
## 4. Connect a warehouse
OWOX keeps the data in the user's own warehouse (a Storage in OWOX). Call `list_storages`.
- If there are Storages, ask which one to use (skip the question if there is one). Call `validate_storage_access`. If it passes, go to step 5.
- Otherwise, follow [references/storage.md](references/storage.md).
## 5. Create the Data Mart
- Advertising or Shopify: follow [references/connector-data-mart.md](references/connector-data-mart.md).
- Data in the warehouse: follow [references/warehouse-data-mart.md](references/warehouse-data-mart.md).
## 6. Publish and wait for the data
Call `validate_data_mart`. Fix the problems that it reports. Then call `publish_data_mart`.
- A connector Data Mart starts its first run after publication. Find the run with `list_data_mart_runs`. Call `get_data_mart_run` until `should_poll` is false, and wait up to 15 seconds between checks. Tell the user that the first load can take several minutes. Publication alone does not mean that the data is ready.
- If the run fails, explain the error summary in simple words and o
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 3 — file references are metadata, not package contents.