Skip to content

Conversation

michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Jul 30, 2025

Resolves #17859

Summary by CodeRabbit

  • New Features

    • Introduced a new "Transcribe Audio" action for creating transcripts from audio files with customizable options and webhook support.
  • Improvements

    • Simplified the "Get Transcription" action to retrieve transcriptions by ID, requiring fewer input fields.
    • Enhanced the "New Transcription Completed" event source to emit enriched transcript data for each event.
  • Bug Fixes

    • Updated documentation links in action and event descriptions for accuracy.
  • Chores

    • Updated version numbers across actions and the package to reflect recent changes.

Copy link

vercel bot commented Jul 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Jul 30, 2025 9:08pm
pipedream-docs ⬜️ Ignored (Inspect) Jul 30, 2025 9:08pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 30, 2025 9:08pm

Copy link
Contributor

coderabbitai bot commented Jul 30, 2025

Walkthrough

The updates include a new "Transcribe Audio" action for AssemblyAI, a refactor of the "Get Transcription" action to only retrieve existing transcripts, and improvements to the "New Transcription Completed" source to emit enriched event data. Documentation URLs and version numbers were also updated across several components.

Changes

Cohort / File(s) Change Summary
Transcribe Audio Action (new)
components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs
Introduces a new action to create a transcript from a media file URL, supporting various options and callback mechanisms.
Get Transcription Action (refactor)
components/assemblyai/actions/get-transcription/get-transcription.mjs
Refactored to only retrieve existing transcription by ID; removed creation logic and unrelated props; updated description and version.
Create Captions Action (minor update)
components/assemblyai/actions/create-captions/create-captions.mjs
Updated documentation URL in description and incremented version number.
New Transcription Completed Source (enrichment)
components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs
Now fetches and emits detailed transcript data for each event; added new helper method and updated event emission flow; updated description and version.
Package Version Bump
components/assemblyai/package.json
Increased package version from 0.2.2 to 0.3.0.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant TranscribeAudioAction
    participant AssemblyAI
    participant PipedreamCallback

    User->>TranscribeAudioAction: Provide media URL & options
    TranscribeAudioAction->>AssemblyAI: Create transcript (POST)
    AssemblyAI-->>TranscribeAudioAction: Respond with transcript ID
    alt Callback rerun enabled
        AssemblyAI->>PipedreamCallback: Webhook callback on completion
        PipedreamCallback->>TranscribeAudioAction: Callback with transcript ID
        TranscribeAudioAction->>AssemblyAI: Get transcript (GET)
        AssemblyAI-->>TranscribeAudioAction: Transcript result
    end
    TranscribeAudioAction-->>User: Return transcript data
Loading
sequenceDiagram
    participant User
    participant GetTranscriptionAction
    participant AssemblyAI

    User->>GetTranscriptionAction: Provide transcript ID
    GetTranscriptionAction->>AssemblyAI: Get transcript (GET)
    AssemblyAI-->>GetTranscriptionAction: Transcript result
    GetTranscriptionAction-->>User: Return transcript data
Loading
sequenceDiagram
    participant Source
    participant AssemblyAI
    participant Pipedream

    Source->>AssemblyAI: List completed transcripts
    AssemblyAI-->>Source: List of transcript IDs
    loop For each transcript
        Source->>AssemblyAI: Get transcript details (GET)
        AssemblyAI-->>Source: Transcript data
        Source->>Pipedream: Emit event with transcript data
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Assessment against linked issues

Objective Addressed Explanation
1. Update action descriptions to be correct and clear (Get transcription, Transcribe audio) (#17859)
2. Add "Transcribe Audio" action to create transcript from media file URL (#17859)
3. Refactor "Get Transcription" action to only retrieve existing transcript by ID (#17859)
4. "New Transcription Completed" trigger includes transcription text in event data (#17859)

Poem

In the land of code, a rabbit hops,
Bringing transcripts with just a few stops.
Audio to text, with options anew,
Fetch by ID, or create something true.
Now events bring the words, clear and bright—
AssemblyAI, you’re working just right!
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eb4f022 and 4759ba1.

📒 Files selected for processing (1)
  • components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Lint Code Base
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Publish TypeScript components
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issue-17859

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs (1)

55-55: Fix documentation link in description.

There's a malformed markdown link in the callback rerun description.

-      description: "Use the `$.flow.rerun` Node.js helper to rerun the step when the transcription is completed. Overrides the `webhookUrl` prop. This will increase execution time and credit usage as a result. [See the documentation(https://pipedream.com/docs/code/nodejs/rerun/#flow-rerun). Not available in Pipedream Connect.",
+      description: "Use the `$.flow.rerun` Node.js helper to rerun the step when the transcription is completed. Overrides the `webhookUrl` prop. This will increase execution time and credit usage as a result. [See the documentation](https://pipedream.com/docs/code/nodejs/rerun/#flow-rerun). Not available in Pipedream Connect.",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5a1152 and eb4f022.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • components/assemblyai/actions/create-captions/create-captions.mjs (1 hunks)
  • components/assemblyai/actions/get-transcription/get-transcription.mjs (1 hunks)
  • components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs (1 hunks)
  • components/assemblyai/package.json (1 hunks)
  • components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs (4 hunks)
🧰 Additional context used
🧠 Learnings (5)
components/assemblyai/package.json (1)

Learnt from: jcortes
PR: #14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like fs to package.json dependencies, as they are native modules provided by the Node.js runtime.

components/assemblyai/actions/create-captions/create-captions.mjs (1)

Learnt from: jcortes
PR: #14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In components/gainsight_px/actions/create-account/create-account.mjs, the action name should be "Create Account" instead of "Create Memory".

components/assemblyai/actions/get-transcription/get-transcription.mjs (2)

Learnt from: GTFalcao
PR: #12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the run method of an action, ensure the message is correctly formatted. For example, in the hackerone-get-members action, the correct format is Successfully retrieved ${response.data.length} members.

Learnt from: GTFalcao
PR: #12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the run method of an action, ensure the message is correctly formatted. For example, in the hackerone-get-members action, the correct format is Successfully retrieved ${response.data.length} members.

components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs (2)

Learnt from: GTFalcao
PR: #12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the run method of an action, ensure the message is correctly formatted. For example, in the hackerone-get-members action, the correct format is Successfully retrieved ${response.data.length} members.

Learnt from: GTFalcao
PR: #12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the run method of an action, ensure the message is correctly formatted. For example, in the hackerone-get-members action, the correct format is Successfully retrieved ${response.data.length} members.

components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs (2)

Learnt from: GTFalcao
PR: #14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In components/the_magic_drip/sources/common.mjs, when processing items in getAndProcessData, savedIds is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.

Learnt from: GTFalcao
PR: #15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.

🧬 Code Graph Analysis (1)
components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs (2)
components/assemblyai/actions/get-transcription/get-transcription.mjs (1)
  • response (19-22)
components/assemblyai/actions/create-captions/create-captions.mjs (1)
  • response (25-29)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: pnpm publish
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (18)
components/assemblyai/package.json (1)

3-3: LGTM! Version bump is appropriate.

The minor version bump from 0.2.2 to 0.3.0 correctly reflects the addition of new features (new "Transcribe Audio" action) and the refactoring of existing actions, which may introduce breaking changes for existing users.

components/assemblyai/actions/create-captions/create-captions.mjs (2)

5-5: LGTM! Documentation URL corrected.

The documentation link has been updated to point to the current AssemblyAI API reference for subtitles, improving accuracy for developers using this action.


7-7: LGTM! Version bump is appropriate.

The patch version increment from 0.0.2 to 0.0.3 is suitable for this documentation URL correction.

components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs (5)

6-6: LGTM! Documentation URL updated appropriately.

The documentation link has been updated to point to the current AssemblyAI API reference for listing transcripts.


8-8: LGTM! Version bump reflects functional enhancement.

The minor version bump from 0.0.2 to 0.1.0 appropriately reflects the significant functional improvement of enriching event data with detailed transcript information.


33-33: LGTM! Enhanced event emission in deploy hook.

The deploy hook now uses the new emitTranscripts method to emit enriched events with detailed transcript data instead of basic metadata.


47-54: LGTM! Well-implemented enriched event emission.

The new emitTranscripts method effectively addresses PR objective #3 by fetching detailed transcript data before emission. The implementation correctly:

  • Processes transcripts in reverse order to maintain chronological emission
  • Fetches complete transcript data using getTranscript
  • Maintains the existing event emission pattern

This provides users with enriched event data including the actual transcription text.


77-77: LGTM! Consistent use of enhanced emission method.

The run method correctly uses the new emitTranscripts method to ensure consistent enriched event data in both initial deployment and ongoing execution.

components/assemblyai/actions/transcribe-audio/transcribe-audio.mjs (5)

4-5: LGTM! Action name and description align with PR objectives.

The action name "Transcribe Audio" and description correctly indicate that this action creates transcripts from media files, addressing PR objective #1 about correcting inaccurate action descriptions.


11-57: LGTM! Comprehensive prop definitions for AssemblyAI features.

The props cover all major AssemblyAI transcription features including:

  • Media URL (required)
  • Language detection and punctuation
  • Speaker diarization and content safety
  • Sentiment analysis and webhook notifications
  • Callback rerun functionality for Pipedream workflows

The prop definitions follow Pipedream conventions with proper types, labels, and descriptions.


59-84: LGTM! Proper implementation of transcription creation logic.

The initial run logic correctly:

  • Detects first execution using run context
  • Handles webhook URL override when callback rerun is enabled
  • Sets up $.flow.rerun with appropriate timeout (10 minutes)
  • Calls createTranscript with all configured parameters
  • Passes execution context for proper logging

85-89: LGTM! Proper callback handling implementation.

The callback logic correctly:

  • Detects callback requests using run.callback_request
  • Extracts transcript_id from the webhook payload
  • Fetches the completed transcript using getTranscript

91-95: LGTM! Appropriate response handling and summary export.

The response handling correctly exports a summary message with the transcript ID when available and returns the full API response, following Pipedream conventions.

components/assemblyai/actions/get-transcription/get-transcription.mjs (5)

5-5: LGTM! Description accurately reflects refactored functionality.

The description correctly indicates this action now fetches existing transcripts rather than creating them, addressing PR objective #2 about adding a proper "Get transcription" action.


7-7: LGTM! Version bump reflects breaking change.

The minor version bump from 0.0.4 to 0.1.0 appropriately indicates this is a breaking change, as the action no longer handles transcription creation.


11-16: LGTM! Simplified props for retrieval-only functionality.

The props have been correctly reduced to only require transcriptId, which is appropriate for a retrieval-only action. This simplification improves the action's focus and usability.


19-22: LGTM! Simplified run method implementation.

The run method is now properly focused on retrieval only, directly calling getTranscript with the provided transcript ID. This aligns with the separation of concerns established by the new "Transcribe Audio" action.


24-24: LGTM! Summary message reflects retrieval operation.

The summary export correctly indicates retrieval rather than creation, maintaining consistency with the refactored functionality.

Copy link
Collaborator

@jcortes jcortes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @michelle0927 lgtm! Ready for QA!

@vunguyenhung vunguyenhung merged commit c168487 into master Jul 31, 2025
11 checks passed
@vunguyenhung vunguyenhung deleted the issue-17859 branch July 31, 2025 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Assembly AI - Improve actions & sources
3 participants