The official Apify integration connects your bot to Apify, an advanced website crawling platform. It allows your bot to manage your Apify crawler runs. This integration is useful if you need more powerful crawling than Studio’s default web crawler provides.Documentation Index
Fetch the complete documentation index at: https://botpress.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Setup
You will need:
Install the integration in Botpress
First, install the integration to your bot:
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the Apify integration. In the Hub, it’s listed as Advanced Website Crawler.
- Select Install Integration.
- API Token
- Webhook Secret (Optional)
Get your Apify API token
Next, get your Apify API token:
- Log in to your Apify account.
- Select Settings from the bottom-left corner.
- Go to API & Integrations.
- Under Personal API tokens, copy the API token—it should start with
apify_api_.
Configure the integration in Botpress
Now, you can configure the integration in Botpress:
- In the integration’s API Token field, paste your Apify API token.
- Select Save Configuration.
- Copy the integration’s webhook URL (starting with
https://webhook.botpress.cloud).
Configure your Apify webhook
Finally, create a Webhook integration:
- Go to the Website Content Crawler in the Apify Store.
- Select Try for Free, then Save & Start. This opens the Actor’s configuration page.
- Select the Integrations tab (on the Actor’s page, not the left sidebar).
- Scroll down to Generic integrations, then select HTTP webhook.
-
Under Start when, select the following options:
- Run succeeded
- Run created
- Run failed
- Run timed out
- Run resurrected
- Run aborted
- Paste your Botpress webhook URL into the URL field.
- Select Save.