Setup
You will need:
1
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)
2
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_
.
3
Configure the integration in Botpress
Now, you can finish setting up 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
). - Continue to the next step.
4
Configure your Apify webhook (Optional)
Next, 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.
Cards
Here’s a reference for all Cards available with the integration:Get Run Status
Input: Output:Start Crawler Run
Input: Output:Sync Run Results
Input: Output:Triggers
Here’s a reference for all Triggers available with the integration:You can access data returned from any of these Triggers by reading
event.payload
after the Trigger fires.