-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat(tools): added apify block/tools #2136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR adds Apify integration to Sim, enabling workflow automation and web scraping through Apify actors. It implements two tools: synchronous execution for quick tasks (max 5 minutes) and asynchronous execution with polling for long-running operations (up to 5 minutes of polling). The implementation includes proper error handling, dataset fetching, and parameter validation. Key Changes:
Implementation Quality:
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant Block as Apify Block
participant Tool as Apify Tool
participant API as Apify API
participant Dataset as Apify Dataset
User->>Block: Configure operation (sync/async)
User->>Block: Provide API key & actor ID
User->>Block: Set input parameters
alt Synchronous Execution
Block->>Tool: apify_run_actor_sync
Tool->>API: POST /acts/{actorId}/run-sync-get-dataset-items
API->>API: Execute actor
API->>Dataset: Store results
API-->>Tool: Return dataset items
Tool-->>Block: Return success + items
Block-->>User: Display results
else Asynchronous Execution
Block->>Tool: apify_run_actor_async
Tool->>API: POST /acts/{actorId}/runs?waitForFinish=X
API-->>Tool: Return run ID + initial status
loop Poll every 5 seconds (max 5 minutes)
Tool->>API: GET /acts/{actorId}/runs/{runId}
API-->>Tool: Return run status
alt Status is terminal (SUCCEEDED/FAILED/ABORTED/TIMED-OUT)
break Exit polling loop
end
end
end
alt Run succeeded
Tool->>Dataset: GET /datasets/{datasetId}/items?limit=X
Dataset-->>Tool: Return items
Tool-->>Block: Return success + items
Block-->>User: Display results
else Run failed/timed out
Tool-->>Block: Return error status
Block-->>User: Display error
end
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
12 files reviewed, no comments
… sendgrid, linkedin, more tools (#2148) * feat(tools): added smtp, sendgrid, mailgun, linkedin, fixed permissions in context menu (#2133) * feat(tools): added twilio sendgrid integration * feat(tools): added smtp, sendgrid, mailgun, fixed permissions in context menu * added top level mocks for sporadically failing tests * incr type safety * fix(team-plans): track departed member usage so value not lost (#2118) * fix(team-plans): track departed member usage so value not lost * reset usage to 0 when they leave team * prep merge with stagig * regen migrations * fix org invite + ws selection' --------- Co-authored-by: Waleed <walif6@gmail.com> * feat(i18n): update translations (#2134) Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com> * feat(creators): add verification for creators (#2135) * feat(tools): added apify block/tools (#2136) * feat(tools): added apify * cleanup * feat(i18n): update translations (#2137) Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com> * feat(env): added more optional env var examples (#2138) * feat(statuspage): added statuspage, updated list of tools in footer, renamed routes (#2139) * feat(statuspage): added statuspage, updated list of tools in footer, renamed routes * ack PR comments * feat(tools): add generic search tool (#2140) * feat(i18n): update translations (#2141) * fix(sdks): bump sdk versions (#2142) * fix(webhooks): count test webhooks towards usage limit (#2143) * fix(bill): add requestId to webhook processing (#2144) * improvement(subflow): remove all associated edges when moving a block into a subflow (#2145) * improvement(subflow): remove all associated edges when moving a block into a subflow * ack PR comments * fix(polling): mark webhook failed on webhook trigger errors (#2146) * fix(deps): declare core transient deps explicitly (#2147) * fix(deps): declare core transient deps explicitly * ack PR comments --------- Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com> Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com>
Summary
icons.tsxType of Change
Testing
Tested manually
Checklist