← RescueTime + OpenAI Passthrough integrations

Summarize with OpenAI Passthrough API on New Daily Summary Report Created from RescueTime API

Pipedream makes it easy to connect APIs for OpenAI Passthrough, RescueTime and 2,800+ other apps remarkably fast.

Trigger workflow on
New Daily Summary Report Created from the RescueTime API
Next, do this
Summarize with the OpenAI Passthrough API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a RescueTime trigger and OpenAI Passthrough action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Daily Summary Report Created trigger
    1. Connect your RescueTime account
    2. Configure timer
  3. Configure the Summarize action
    1. Connect your OpenAI Passthrough account
    2. Select a Model ID
    3. Configure Text
    4. Optional- Select a Summary Length
    5. Optional- Configure Focus Area
    6. Optional- Configure Temperature
    7. Optional- Configure Maximum Length
    8. Optional- Configure Top P
    9. Optional- Configure Frequency Penalty
    10. Optional- Configure Presence Penalty
    11. Optional- Configure Prior Message History
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event each time a new daily summary report is available. [See the docs here](https://www.rescuetime.com/rtx/developers#daily-summary-feed-reference)
Version:0.0.1
Key:rescuetime-new-daily-summary-report-created

RescueTime Overview

The RescueTime API provides access to detailed data about how you spend your time on digital devices, including time spent on apps and websites. With this API on Pipedream, you can create custom workflows that trigger actions based on your productivity data. For instance, you can set up alerts for excessive social media usage or automate weekly productivity reports. Pipedream's platform enables these automations by connecting RescueTime to hundreds of other apps, allowing for intricate workflows that can enhance personal productivity and time management.

Trigger Code

import rescuetime from "../../rescuetime.app.mjs";
const TIMER_INTERVAL_MILLISECONDS = 24 * 60 * 60 * 1000; // 24 hours

export default {
  key: "rescuetime-new-daily-summary-report-created",
  name: "New Daily Summary Report Created",
  description: "Emit new event each time a new daily summary report is available. [See the docs here](https://www.rescuetime.com/rtx/developers#daily-summary-feed-reference)",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  props: {
    rescuetime,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: TIMER_INTERVAL_MILLISECONDS,
      },
    },
  },
  methods: {
    generateMeta(report) {
      return {
        id: report.id,
        summary: `New Daily Summary Report created with ID ${report.id}`,
        ts: Date.now(),
      };
    },
  },
  async run() {
    const reports = await this.rescuetime.getDailySummaryFeed();
    for (const report of reports) {
      const meta = this.generateMeta(report);
      this.$emit(report, meta);
    }
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
RescueTimerescuetimeappThis component uses the RescueTime app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

RescueTime uses OAuth authentication. When you connect your RescueTime account, Pipedream will open a popup window where you can sign into RescueTime and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any RescueTime API.

Pipedream requests the following authorization scopes when you connect your account:

time_datacategory_dataproductivity_dataalert_datahighlight_datafocustime_data

About RescueTime

A personal analytics service that shows you how you spend your time and provides tools to help you be more productive.

Action

Description:Summarizes text using the OpenAI API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)
Version:0.0.1
Key:openai-passthrough-summarize

Action Code

const SUMMARIZE_LENGTH = {
  SHORT: {
    label: "Short",
    value: "short",
  },
  MEDIUM: {
    label: "Medium",
    value: "medium",
  },
  LONG: {
    label: "Long",
    value: "long",
  },
}

export default {
  name: "Summarize",
  version: "0.0.1",
  key: "openai-passthrough-summarize",
  description:
    "Summarizes text using the OpenAI API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
  type: "action",
  props: {
    app: {
      type: "app",
      app: "openai_passthrough",
    },
    modelId: {
      label: "Model ID",
      type: "string",
      options: ["gpt-4.1", "o4-mini", "o3", "gpt-3.5-turbo"],
    },
    text: {
      label: "Text",
      type: "string",
      description: "The text to summarize.",
    },
    summaryLength: {
      label: "Summary Length",
      type: "string",
      description: "The desired length of the summary.",
      options: Object.values(SUMMARIZE_LENGTH),
      default: SUMMARIZE_LENGTH.MEDIUM.value,
      optional: true,
    },
    focusArea: {
      label: "Focus Area",
      type: "string",
      description: "Specific aspects of the text to focus on in the summary.",
      optional: true,
    },
    temperature: {
      type: "string",
      label: "Temperature",
      description:
        "Controls randomness: 0 is deterministic, higher values (up to 2) make output more random",
      default: "1",
      optional: true,
    },
    maxTokens: {
      type: "integer",
      label: "Maximum Length",
      description: "The maximum number of tokens to generate in the summary",
      optional: true,
    },
    topP: {
      type: "string",
      label: "Top P",
      description:
        "Alternative to temperature, nucleus sampling considers the results of the tokens with top_p probability mass",
      default: "1",
      optional: true,
    },
    frequencyPenalty: {
      type: "string",
      label: "Frequency Penalty",
      description:
        "Decreases the likelihood of repeating the same line verbatim",
      default: "0",
      optional: true,
    },
    presencePenalty: {
      type: "string",
      label: "Presence Penalty",
      description: "Increases the likelihood of talking about new topics",
      default: "0",
      optional: true,
    },
    messages: {
      label: "Prior Message History",
      type: "string[]",
      description:
        "_Advanced_. Because [the models have no memory of past requests](https://platform.openai.com/docs/guides/chat/introduction), all relevant information must be supplied via the conversation. You can provide [an array of messages](https://platform.openai.com/docs/guides/chat/introduction) from prior conversations here. If this param is set, the action ignores the values passed to **System Instructions**, appends the new **Text** to summarize to the end of this array, and sends it to the API.",
      optional: true,
    },
  },
  async run({ $ }) {
    const messages = []

    // Add system message with summary instructions
    let systemInstructions = "You are a skilled summarizer. Create a"
    
    // Customize instructions based on summary length
    switch (this.summaryLength) {
      case SUMMARIZE_LENGTH.SHORT.value:
        systemInstructions += " brief and concise"
        break
      case SUMMARIZE_LENGTH.LONG.value:
        systemInstructions += " detailed and thorough"
        break
      default:
        systemInstructions += " comprehensive but focused"
    }
    
    systemInstructions += " summary of the following content."
    
    // Add focus area if provided
    if (this.focusArea) {
      systemInstructions += ` Focus particularly on aspects related to: ${this.focusArea}.`
    }

    // Use provided message history or create a new conversation
    if (this.messages && this.messages.length > 0) {
      messages.push(...this.messages)
    } else {
      // Add system message
      messages.push({
        role: "system",
        content: systemInstructions,
      })
    }
    
    // Add the text to summarize as the user message
    messages.push({
      role: "user",
      content: this.text,
    })
    
    // Prepare request parameters
    const params = {
      model: this.modelId,
      messages: messages,
    }
    
    // Add optional parameters if provided
    if (this.temperature !== undefined) params.temperature = +this.temperature
    if (this.maxTokens !== undefined) params.max_tokens = this.maxTokens
    if (this.topP !== undefined) params.top_p = +this.topP
    if (this.frequencyPenalty !== undefined)
      params.frequency_penalty = +this.frequencyPenalty
    if (this.presencePenalty !== undefined)
      params.presence_penalty = +this.presencePenalty
    
    // Call the OpenAI API using the Pipedream service
    const response = await $.services.openai.completions.create(params)
    
    // Extract the summary from the response
    const summary = response.choices[0].message.content
    
    // Export a summary for the user
    $.export("$summary", "Generated summary from OpenAI")
    
    // Return the summary and the full response
    return {
      summary,
      raw_response: response,
    }
  },
}

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
OpenAI PassthroughappappThis component uses the OpenAI Passthrough app.
Model IDmodelIdstringSelect a value from the drop down menu:gpt-4.1o4-minio3gpt-3.5-turbo
Texttextstring

The text to summarize.

Summary LengthsummaryLengthstringSelect a value from the drop down menu:{ "label": "Short", "value": "short" }{ "label": "Medium", "value": "medium" }{ "label": "Long", "value": "long" }
Focus AreafocusAreastring

Specific aspects of the text to focus on in the summary.

Temperaturetemperaturestring

Controls randomness: 0 is deterministic, higher values (up to 2) make output more random

Maximum LengthmaxTokensinteger

The maximum number of tokens to generate in the summary

Top PtopPstring

Alternative to temperature, nucleus sampling considers the results of the tokens with top_p probability mass

Frequency PenaltyfrequencyPenaltystring

Decreases the likelihood of repeating the same line verbatim

Presence PenaltypresencePenaltystring

Increases the likelihood of talking about new topics

Prior Message Historymessagesstring[]

Advanced. Because the models have no memory of past requests, all relevant information must be supplied via the conversation. You can provide an array of messages from prior conversations here. If this param is set, the action ignores the values passed to System Instructions, appends the new Text to summarize to the end of this array, and sends it to the API.

Action Authentication

The OpenAI Passthrough API does not require authentication.

About OpenAI Passthrough

OpenAI Passthrough

More Ways to Connect OpenAI Passthrough + RescueTime

Chat with OpenAI Passthrough API on New Daily Summary Report Created from RescueTime API
RescueTime + OpenAI Passthrough
 
Try it
New Daily Summary Report Created from the RescueTime API

Emit new event each time a new daily summary report is available. See the docs here

 
Try it
Chat with the OpenAI Passthrough API

The Chat API, using the gpt-3.5-turbo or gpt-4 model. See the documentation

 
Try it
Summarize with the OpenAI Passthrough API

Summarizes text using the OpenAI API. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.