Imagine With Craft

Usa l’API di Craft per creare con Zapier

Con l’API attiva, i tuoi documenti Craft sono pronti ad alimentare le app che crei. Da lì puoi passare a Zapier e costruire qualcosa di nuovo con i dati del tuo documento.

Craft
Zapier

Enabling the API for Documents

First, you have to enable the API in order for Craft to setup an API endpoint for your documents. Then, you use the API endpoint URL to connect to the server from Zapier.

Step 1

Open the “Imagine” tab

Step 2

Click “Add Your First API Connection”

Step 3

Configure your API connection with a name.

Step 4

Click “Add Document” to select which documents this API connection has access to.

Step 5

The API URL that will be used to interact with your document is now displayed at the top

Step 6

Click the “Download AI Bundle” button. This will download a folder containing the API documentation and the content of your doc.

Using the API in a Zapier Prompt

Once the API is enabled for your Craft docs, you can now focus on writing a prompt that Zapier will use to generate your project.

In order for Zapier to see how to use the API and understand the structure of your document, you attach the AI bundle to your prompt. This bundle is a markdown document that contains the current content of your Craft doc as well as the API documentation.

Step 1

Vai su Zapier e crea un nuovo Zap. Fai clic sul passaggio Azione, cerca "Webhook di Zapier" e seleziona "Richiesta personalizzata" dagli eventi azione.

Step 2

Configura il webhook con l'URL dell'endpoint dell'API Craft, imposta il metodo su GET e aggiungi le intestazioni richieste dal bundle AI scaricato. Testa il passaggio per verificare la connessione.

Step 3

Aggiungi ulteriori passaggi per elaborare la risposta API e connetterti ad altre app. Puoi creare Zap multi-step che leggono e aggiornano automaticamente i tuoi documenti Craft.

Some Ideas to Get You Started

Browse Examples