The ChatPDF API enables you to convert chat histories from various messaging platforms into PDFs. This utility can be a game-changer for archiving conversations, legal documentation, or creating backups of critical chats. With Pipedream, you can automate the conversion process and integrate it with countless apps to streamline chat management tasks. Think of pulling chat data from messaging apps, converting them to PDF, and then saving or sharing them—all set up to run on autopilot.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatpdf: {
type: "app",
app: "chatpdf",
}
},
async run({steps, $}) {
const data = {
"url": `https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf`,
}
return await axios($, {
method: "post",
url: `https://api.chatpdf.com/v1/sources/add-url`,
headers: {
"x-api-key": `${this.chatpdf.$auth.api_key}`,
},
data,
})
},
})
Automated Chat Backups: Set up a workflow that listens for new messages in a Slack channel or WhatsApp chat, forwards them to the ChatPDF API, and saves the resulting PDF to Google Drive or Dropbox. This ensures you always have up-to-date backups of important conversations.
Customer Support Ticket Archiving: Convert completed customer support chats into PDFs for archiving. After a support session on Intercom or Zendesk, a Pipedream workflow can trigger the PDF conversion and attach the file to the corresponding support ticket or email it to the customer for their records.
Event Conversation Compilation: After an event, you might want to compile all the chat history from a Discord server or a Slack channel into a single PDF document. With Pipedream, you can create a workflow that triggers at a specific time, grabs the chat history, sends it to ChatPDF for conversion, and then shares the PDF with attendees via email or a shared workspace.
Adds a PDF from a publicly accessible URL to ChatPDF, returning a source ID for interactions. See the documentation
Sends messages to interact with a specific PDF using its source ID. Can handle single or multiple messages for complex queries. See the documentation
Deletes one or more PDFs from ChatPDF using their source IDs. See the documentation
ChatPDF uses API keys for authentication. When you connect your ChatPDF account, Pipedream securely stores the keys so you can easily authenticate to ChatPDF APIs in both code and no-code steps.