← Slack Bot + UpKeep integrations

Create Work Order with UpKeep API on New Message In Channel from Slack Bot API

Pipedream makes it easy to connect APIs for UpKeep, Slack Bot and 2,800+ other apps remarkably fast.

Trigger workflow on
New Message In Channel from the Slack Bot API
Next, do this
Create Work Order with the UpKeep 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 Slack Bot trigger and UpKeep 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 Message In Channel trigger
    1. Connect your Slack Bot account
    2. Configure Polling schedule
    3. Select a Channel ID
  3. Configure the Create Work Order action
    1. Connect your UpKeep account
    2. Configure Title
    3. Optional- Configure Description
    4. Optional- Select a Priority
    5. Optional- Configure Category
    6. Optional- Configure Due Date
    7. Optional- Select a Asset
    8. Optional- Select a Location
    9. Optional- Select a User
    10. Optional- Select one or more Parts
    11. Optional- Configure Respective Part Quantities
    12. Optional- Select a Decrease Inventory
    13. Optional- Configure Time
    14. Optional- Configure Cost
    15. Optional- Select one or more User
  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 when a new message is posted to a public, private or group channel (Bot)
Version:0.0.4
Key:slack_bot-new-message-in-channel

Slack Bot Overview

The Slack Bot API allows you to build rich, interactive bots for Slack workspaces. These bots can respond to messages, post updates, and interact with users in various ways. With the Slack Bot API on Pipedream, developers can create automated workflows that trigger on specific events in Slack, such as new messages or reactions, and then perform defined actions, like sending data to other apps or processing the information within Pipedream's serverless platform. This tight integration with Pipedream enables both simple and complex automations, leveraging Pipedream's ability to connect with numerous apps and its powerful built-in code steps.

Trigger Code

import common from "../common/base.mjs";
import constants from "../../common/constants.mjs";
import utils from "../../common/utils.mjs";

export default {
  ...common,
  key: "slack_bot-new-message-in-channel",
  name: "New Message In Channel",
  version: "0.0.4",
  description: "Emit new event when a new message is posted to a public, private or group channel (Bot)",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    channelId: {
      propDefinition: [
        common.props.app,
        "channelId",
        () => ({
          types: [
            constants.CHANNEL_TYPE.PUBLIC,
            constants.CHANNEL_TYPE.PRIVATE,
            constants.CHANNEL_TYPE.MPIM,
          ],
        }),
      ],
      description: `Select the channel's ID. ${utils.CONVERSATION_PERMISSION_MESSAGE}`,
    },
  },
  methods: {
    ...common.methods,
    getResourceName() {
      return constants.RESOURCE_NAME.MESSAGES;
    },
    getResourceFn() {
      return this.app.conversationsHistory;
    },
    getResourceFnArgs() {
      return {
        channel: this.channelId,
        limit: constants.LIMIT,
        oldest: this.getLastTimestamp(),
        inclusive: false,
      };
    },
    generateMeta(resource) {
      return {
        id: resource.ts,
        ts: resource.ts,
        summary: `New Message Timestamp ${resource.ts}`,
      };
    },
  },
};

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
Slack BotappappThis component uses the Slack Bot app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Polling scheduletimer$.interface.timer

How often to poll the Slack API

Channel IDchannelIdstringSelect a value from the drop down menu.

Trigger Authentication

Slack Bot uses API keys for authentication. When you connect your Slack Bot account, Pipedream securely stores the keys so you can easily authenticate to Slack Bot APIs in both code and no-code steps.

In the settings for your Slack app, visit the OAuth & Permissions section on the left. You'll see a token labeled Bot User OAuth Access Token. Copy and paste that below.

See Slack's docs on Bot User Tokens for more info.

About Slack Bot

Interact with Slack with your own bot user

Action

Description:Create a Work Order, [See the docs](https://developers.onupkeep.com/#create-a-work-order)
Version:0.0.2
Key:upkeep-create-work-order

UpKeep Overview

The UpKeep API enables users to seamlessly integrate maintenance management tasks with Pipedream's serverless execution platform. By leveraging UpKeep's endpoints, you can automate workflows related to asset tracking, work order management, and preventive maintenance scheduling. The API's capabilities allow for real-time updates on equipment status, automated notifications for maintenance tasks, and data synchronization across maintenance teams and tools.

Action Code

import app from "../../upkeep.app.mjs";
import utils from "../../common/utils.mjs";
import { ConfigurationError } from "@pipedream/platform";

export default {
  type: "action",
  key: "upkeep-create-work-order",
  version: "0.0.2",
  name: "Create Work Order",
  description: "Create a Work Order, [See the docs](https://developers.onupkeep.com/#create-a-work-order)",
  props: {
    app,
    title: {
      propDefinition: [
        app,
        "title",
      ],
      description: "Title of the work order",
    },
    description: {
      propDefinition: [
        app,
        "description",
      ],
      label: "Description",
      description: "",
    },
    priority: {
      propDefinition: [
        app,
        "priority",
      ],
    },
    category: {
      type: "string",
      label: "Category",
      description: "One of the set categories for Work Orders on your account, including the default ones",
      optional: true,
    },
    dueDate: {
      type: "string",
      label: "Due Date",
      description: "Due date, in ISO 8601 format, e.g. `2022-09-07` or `2022-09-07T13:26:53`",
      optional: true,
    },
    assetId: {
      propDefinition: [
        app,
        "assetId",
      ],
    },
    locationId: {
      propDefinition: [
        app,
        "locationId",
      ],
    },
    userId: {
      propDefinition: [
        app,
        "userId",
      ],
    },
    parts: {
      propDefinition: [
        app,
        "parts",
      ],
    },
    respectivePartQuantityUsed: {
      propDefinition: [
        app,
        "respectivePartQuantityUsed",
      ],
    },
    decreaseInventory: {
      type: "string",
      label: "Decrease Inventory",
      description: "Can be `auto` or `manual`. Default is `auto`. If set to `auto`, inventory will be automatically be decreased when a part is added to a work order. If set to `manual`, inventory will NOT be decreased when a part is added to a work order.",
      optional: true,
      options: [
        "manual",
        "auto",
      ],
    },
    time: {
      type: "integer",
      label: "Time",
      description: "The total time spent on the work order",
      optional: true,
    },
    cost: {
      type: "integer",
      label: "Cost",
      description: "The additional cost assigned to the work order",
      optional: true,
    },
    additionalUsers: {
      propDefinition: [
        app,
        "userId",
      ],
      type: "string[]",
      description: "An array of user IDs for additional workers assigned to the work order.",
    },
  },
  async run ({ $ }) {
    const dueDate = Date.parse(this.dueDate);
    if (isNaN(dueDate))
      throw new ConfigurationError("Due Date should be in ISO 8601 format!");
    const { result } = await this.app.createWorkOrder({
      $,
      data: {
        title: this.title,
        description: this.description,
        priority: parseInt(this.priority),
        category: this.category,
        dueDate,
        asset: this.assetId,
        location: this.locationId,
        assignedToUser: this.userId,
        parts: this.parts,
        respectivePartQuantityUsed: utils.parseArray(this.respectivePartQuantityUsed),
        decreaseInventory: this.decreaseInventory,
        time: parseInt(this.time),
        cost: parseInt(this.cost),
        additionalUsers: this.additionalUsers,
      },
    });
    $.export("$summary", `Request with ID ${result.id} has been created.`);
    return result;
  },
};

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
UpKeepappappThis component uses the UpKeep app.
Titletitlestring

Title of the work order

Descriptiondescriptionstring
PriorityprioritystringSelect a value from the drop down menu:{ "label": "None", "value": "0" }{ "label": "Low", "value": "1" }{ "label": "Medium", "value": "2" }{ "label": "High", "value": "3" }
Categorycategorystring

One of the set categories for Work Orders on your account, including the default ones

Due DatedueDatestring

Due date, in ISO 8601 format, e.g. 2022-09-07 or 2022-09-07T13:26:53

AssetassetIdstringSelect a value from the drop down menu.
LocationlocationIdstringSelect a value from the drop down menu.
UseruserIdstringSelect a value from the drop down menu.
Partspartsstring[]Select a value from the drop down menu.
Respective Part QuantitiesrespectivePartQuantityUsedinteger[]

The respective quantities of each part included in the parts array

Decrease InventorydecreaseInventorystringSelect a value from the drop down menu:manualauto
Timetimeinteger

The total time spent on the work order

Costcostinteger

The additional cost assigned to the work order

UseradditionalUsersstring[]Select a value from the drop down menu.

Action Authentication

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

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

About UpKeep

The #1 Software for Maintenance and Facility Management Teams. UpKeep is the top-rated software designed to revolutionize maintenance and asset management. We provide mobile-first SaaS solutions, Industrial IoT sensors, powerful data analytics, advanced enterprise integrations, and top-notch professional services.

More Ways to Connect UpKeep + Slack Bot

Create Purchase Order with UpKeep API on New Message In Channel from Slack Bot API
Slack Bot + UpKeep
 
Try it
Create Request with UpKeep API on New Message In Channel from Slack Bot API
Slack Bot + UpKeep
 
Try it
Find Asset with UpKeep API on New Message In Channel from Slack Bot API
Slack Bot + UpKeep
 
Try it
Find Location with UpKeep API on New Message In Channel from Slack Bot API
Slack Bot + UpKeep
 
Try it
Find Part with UpKeep API on New Message In Channel from Slack Bot API
Slack Bot + UpKeep
 
Try it
New Direct Message from the Slack Bot API

Emit new event when a message is posted in a direct message channel (Bot). To open a conversation, use the Pipedream Action "Send a Direct Message" to send a message from the Bot, or enable direct messages to the Bot in your App Settings (Settings->App Home->Show Tabs->Messages Tab), and send a direct message to the Bot.

 
Try it
New Message In Channel from the Slack Bot API

Emit new event when a new message is posted to a public, private or group channel (Bot)

 
Try it
New Custom Event from the UpKeep API

Emit new event when a configured event occurs.

 
Try it
New Purchase Order Event from the UpKeep API

Emit new event when a purchase order is created.

 
Try it
New Purchase Order Status Change Event from the UpKeep API

Emit new event when a purchase order status is changed.

 
Try it
Add Emoji Reaction with the Slack Bot API

Add an emoji reaction to a message. See the documentation

 
Try it
Archive Channel with the Slack Bot API

Archive a channel (Bot). See the documentation

 
Try it
Create a Channel with the Slack Bot API

Create a new channel (Bot). See the documentation

 
Try it
Delete File with the Slack Bot API

Delete a file (Bot). See the documentation

 
Try it
Delete Message with the Slack Bot API

Delete a message (Bot). See the documentation

 
Try it

Explore Other Apps

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

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream 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.
Premium
Pinterest
Pinterest
Pinterest is a visual discovery engine for finding ideas like recipes, home and style inspiration, and more.
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.
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.