Will Archived Workflows Still Function?

This topic was automatically generated from Slack. You can find the original thread here.

will archived workflow still working?

I’m not sure I understand your question correctly. Are you asking if an archived workflow in Pipedream will still function? Please provide more details or clarify your question so I can help you better.

can i modify notion databse if i lock the databse

If you lock a Notion database, you won’t be able to directly modify its content or structure within the Notion app. However, you can still interact with the locked database using the Notion API and Pipedream components. For example, you can use the “Updated Page in Database” trigger and the “Retrieve Database Content” action. To use these components, follow these steps: 1. Search for the Notion app from the trigger menu or step menu in the Pipedream UI. 2. Select the desired trigger or action (e.g., “Updated Page in Database” or “Retrieve Database Content”). 3. Connect your Notion account. 4. Select a Database ID or pass a string from a previous step. Remember that locking a database in Notion only affects the UI, not the API access.

how to use pdf monkey in workflow

To use PDF Monkey in a Pipedream workflow, you’ll need to make API calls to PDF Monkey using an HTTP request in a code step. First, you should obtain an API key from your PDF Monkey account. Then, you can use the following example code to create a PDF using PDF Monkey: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { apiKey: { type: "string", label: "PDF Monkey API Key", secret: true, }, templateId: { type: "string", label: "Template ID", }, data: { type: "object", label: "Data for the template", }, }, async run({ $ }) { const headers = { "Authorization": `Bearer ${this.apiKey}`, "Content-Type": "application/json", }; const requestBody = { data: this.data, template_id: this.templateId, }; const response = await axios($, { method: "POST", url: "https://api.pdfmonkey.io/api/v1/documents", headers: headers, data: requestBody, }); return response; }, }); Replace apiKey, templateId, and data with your own values. This code will make a POST request to the PDF Monkey API to create a PDF using the specified template ID and data. The response will contain the generated PDF’s details.

is there any free pdf convert tool in workflow

There isn’t a specific built-in PDF conversion tool in Pipedream workflows. However, you can use an external API or service to convert files to PDF within a Pipedream workflow. You can make HTTP requests to these services using the axios package from @pipedream/platform. If you have a preferred PDF conversion service with an API, you can integrate it into your workflow using an HTTP request in a code step.

help me using pdf monkey to convert pdf from google drive to text and save it to path ‘/tmp’.

To convert a PDF from Google Drive to text using PDF Monkey and save it to the /tmp directory, you’ll need to follow these steps: 1. Download the PDF from Google Drive using the Google Drive API. 2. Send the PDF to PDF Monkey to convert it to text. 3. Save the converted text to the /tmp directory. Here’s a Pipedream component that demonstrates these steps: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { google: { type: "app", app: "google", }, fileId: { type: "string", label: "Google Drive File ID", }, pdfMonkeyApiKey: { type: "string", label: "PDF Monkey API Key", secret: true, }, }, async run({ $ }) { // Download the PDF from Google Drive const pdfResponse = await axios($, { url: `https://www.googleapis.com/drive/v3/files/${this.fileId}?alt=media`, headers: { Authorization: `Bearer ${this.google.$auth.oauth_access_token}`, }, responseType: "arraybuffer", }); // Send the PDF to PDF Monkey for conversion const pdfMonkeyResponse = await axios($, { method: "POST", url: "https://api.pdfmonkey.io/api/v1/documents", headers: { Authorization: `Bearer ${this.pdfMonkeyApiKey}`, "Content-Type": "application/pdf", }, data: pdfResponse.data, }); // Save the converted text to the /tmp directory const text = pdfMonkeyResponse.data.text; const filePath = "/tmp/converted-text.txt"; await $`echo "${text}" > ${filePath}`; return { message: `Converted text saved to ${filePath}` }; }, }); Replace fileId and pdfMonkeyApiKey with your own values. Note that PDF Monkey doesn’t have a direct PDF-to-text conversion API, so you might need to use another service or library for that purpose. The example above assumes that PDF Monkey provides a text conversion API, which might not be the case.

how to export text object ‘t’ in python code

To export a text object t in a Python code step within a Pipedream workflow, you can simply return the object at the end of your Python code. Here’s an example: def handler(pd: "pipedream"): t = "This is a text object" return {"text_object": t} In this example, the text object t is returned as a dictionary with the key text_object. This exported data can be used in subsequent steps of your workflow.

can i send notification to phone using pipedream? iphone or android

Yes, you can send notifications to your iPhone or Android phone using Pipedream. One common way to do this is by using a third-party service like Pushover or Twilio. You can integrate these services into your Pipedream workflow using their APIs and the axios package from @pipedream/platform. For example, if you want to send a notification using Pushover, you can follow these steps: 1. Sign up for a Pushover account and obtain your API key and user key. 2. Add a code step in your Pipedream workflow. 3. Use the axios package to send a POST request to the Pushover API with your message and keys. Here’s a sample Pipedream component to send a notification using Pushover: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { pushoverApiKey: { type: "string", label: "Pushover API Key", secret: true, }, pushoverUserKey: { type: "string", label: "Pushover User Key", secret: true, }, message: { type: "string", label: "Notification Message", }, }, async run({ $ }) { const response = await axios($, { method: "POST", url: "https://api.pushover.net/1/messages.json", data: { token: this.pushoverApiKey, user: this.pushoverUserKey, message: this.message, }, }); return { message: "Notification sent" }; }, }); Replace pushoverApiKey, pushoverUserKey, and message with your own values. This example assumes you have a Pushover account and have obtained the necessary API and user keys. For other notification services like Twilio, you can follow a similar approach by integrating their APIs into your Pipedream workflow using the axios package.