# Can I manually set Shopify permissions for Mechanic?

Mechanic offers two ways to manage Shopify permissions for your tasks:

1. **Automatic detection from previews** — Mechanic analyzes the actions your task generates during [preview](/core/tasks/previews.md) to infer which scopes it needs.
2. **Explicit declaration with `{% permissions %}`** — You can declare the exact scopes your task needs directly in your [task code](/platform/liquid/tags/permissions.md).

Both approaches are fully supported. See [Permissions](/core/tasks/permissions.md) for a full overview.

{% hint style="info" %}
Having trouble getting your permissions and previews to line up? Try asking in our [community Slack workspace](/resources/slack.md). Sharing your task code there is a good way to get suggestions about how to move forward. :)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.mechanic.dev/faq/can-i-manually-set-shopify-permissions-for-mechanic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
