← twocaptcha + Richpanel integrations

Create Ticket with Richpanel API on New 2Captcha Balance Updated from twocaptcha API

Pipedream makes it easy to connect APIs for Richpanel, twocaptcha and 2,500+ other apps remarkably fast.

Trigger workflow on
New 2Captcha Balance Updated from the twocaptcha API
Next, do this
Create Ticket with the Richpanel 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 twocaptcha trigger and Richpanel 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 2Captcha Balance Updated trigger
    1. Connect your twocaptcha account
    2. Configure timer
  3. Configure the Create Ticket action
    1. Connect your Richpanel account
    2. Optional- Configure Ticket ID
    3. Select a Status
    4. Optional- Configure Subject
    5. Configure Comment Body
    6. Optional- Select a Priority
    7. Select a Comment Sender Type
    8. Select a Via Channel
    9. Configure Via Source From Address
    10. Configure Via Source From Name
    11. Configure Via Source To Address
    12. Configure Via Source To Name
    13. Configure Via Source From Number
    14. Configure Via Source To Number
    15. Configure Via Source From
    16. Configure Via Source To
    17. Optional- Select one or more Tags
  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 the user's balance in 2Captcha API is changed.
Version:0.0.1
Key:_twocaptcha-balance-updated

twocaptcha Overview

The 2Captcha API enables automated solving of captchas and reCaptcha. On Pipedream, you can integrate this API into workflows to handle captcha challenges when scraping websites, automating form submissions, or any process that encounters captchas. The API takes the captcha image or reCaptcha data as input and returns the text or token needed to bypass the captcha, effectively allowing your automations to mimic human interaction.

Trigger Code

import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
import _twocaptcha from "../../_twocaptcha.app.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  key: "_twocaptcha-balance-updated",
  name: "New 2Captcha Balance Updated",
  description: "Emit new event when the user's balance in 2Captcha API is changed.",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  props: {
    _twocaptcha,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
  },
  methods: {
    _getLastBalance() {
      return this.db.get("lastBalance") || null;
    },
    _setLastBalance(lastBalance) {
      this.db.set("lastBalance", lastBalance);
    },
    generateMeta(currentBalance) {
      const ts = Date.now();
      return {
        id: `${currentBalance}-${ts}`,
        summary: `Balance Updated: ${currentBalance}`,
        ts,
      };
    },
    async startEvent() {
      const lastBalance = this._getLastBalance();

      let response = await this._twocaptcha.getBalance();

      if (!lastBalance || (lastBalance && response.balance != lastBalance)) {
        this.$emit(response, this.generateMeta(response.balance));
        this._setLastBalance(response.balance);
      }
    },
  },
  async run() {
    await this.startEvent();
  },
  sampleEmit,
};

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
twocaptcha_twocaptchaappThis component uses the twocaptcha app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

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

Sign in and copy your API Key from Account Settings

About twocaptcha

Captcha Solving Service. 2captcha is a service for solving CAPTCHA. We solve all types of.

Action

Description:Creates a new support ticket in Richpanel. [See the documentation](https://developer.richpanel.com/reference/create-conversation).
Version:0.0.1
Key:richpanel-create-ticket

Action Code

import { ConfigurationError } from "@pipedream/platform";
import { VIA_CHANNEL_OPTIONS } from "../../common/constants.mjs";
import { parseObject } from "../../common/utils.mjs";
import richpanel from "../../richpanel.app.mjs";

export default {
  key: "richpanel-create-ticket",
  name: "Create Ticket",
  description: "Creates a new support ticket in Richpanel. [See the documentation](https://developer.richpanel.com/reference/create-conversation).",
  version: "0.0.1",
  type: "action",
  props: {
    richpanel,
    id: {
      propDefinition: [
        richpanel,
        "createId",
      ],
      optional: true,
    },
    status: {
      propDefinition: [
        richpanel,
        "status",
      ],
    },
    subject: {
      type: "string",
      label: "Subject",
      description: "The subject of the ticket.",
      optional: true,
    },
    commentBody: {
      propDefinition: [
        richpanel,
        "commentBody",
      ],
    },
    priority: {
      type: "string",
      label: "Priority",
      description: "The priority of the ticket.",
      options: [
        "HIGH",
        "LOW",
      ],
      optional: true,
    },
    commentSenderType: {
      propDefinition: [
        richpanel,
        "commentSenderType",
      ],
    },
    viaChannel: {
      type: "string",
      label: "Via Channel",
      description: "The channel via which the ticket is created.",
      reloadProps: true,
      options: VIA_CHANNEL_OPTIONS,
    },
    viaSourceFromAddress: {
      type: "string",
      label: "Via Source From Address",
      description: "The email address of the source from.",
      hidden: true,
    },
    viaSourceFromName: {
      type: "string",
      label: "Via Source From Name",
      description: "The name of the source from.",
      hidden: true,
    },
    viaSourceToAddress: {
      type: "string",
      label: "Via Source To Address",
      description: "The email address of the source to.",
      hidden: true,
    },
    viaSourceToName: {
      type: "string",
      label: "Via Source To Name",
      description: "The name of the source to.",
      hidden: true,
    },
    viaSourceFromNumber: {
      type: "string",
      label: "Via Source From Number",
      description: "The phone number of the source from.",
      hidden: true,
    },
    viaSourceToNumber: {
      type: "string",
      label: "Via Source To Number",
      description: "The phone number of the source to.",
      hidden: true,
    },
    viaSourceFrom: {
      type: "object",
      label: "Via Source From",
      description: "The object source from which the ticket was created. **Examples: {\"address\": \"abc@email.com\"} or {\"id\": \"+16692668044\"}. It depends on the selected channel**.",
      hidden: true,
    },
    viaSourceTo: {
      type: "object",
      label: "Via Source To",
      description: "The object source to which the ticket was created. **Examples: {\"address\": \"abc@email.com\"} or {\"id\": \"+16692668044\"}. It depends on the selected channel**.",
      hidden: true,
    },
    tags: {
      propDefinition: [
        richpanel,
        "tags",
      ],
      optional: true,
    },
  },
  async additionalProps(props) {
    switch (this.viaChannel) {
    case "email" :
      props.viaSourceFromAddress.hidden = false;
      props.viaSourceFromName.hidden = false;
      props.viaSourceToAddress.hidden = false;
      props.viaSourceToName.hidden = false;
      props.viaSourceFrom.hidden = true;
      props.viaSourceTo.hidden = true;
      props.viaSourceFromNumber.hidden = true;
      props.viaSourceToNumber.hidden = true;
      break;
    case "aircall" :
      props.viaSourceFromNumber.hidden = false;
      props.viaSourceToNumber.hidden = false;
      props.viaSourceFrom.hidden = true;
      props.viaSourceTo.hidden = true;
      props.viaSourceFromAddress.hidden = true;
      props.viaSourceFromName.hidden = true;
      props.viaSourceToAddress.hidden = true;
      props.viaSourceToName.hidden = true;
      break;
    default:
      props.viaSourceFrom.hidden = false;
      props.viaSourceTo.hidden = false;
      props.viaSourceFromAddress.hidden = true;
      props.viaSourceFromName.hidden = true;
      props.viaSourceToAddress.hidden = true;
      props.viaSourceToName.hidden = true;
      props.viaSourceFromNumber.hidden = true;
      props.viaSourceToNumber.hidden = true;
    }
    return {};
  },
  async run({ $ }) {
    try {
      const source = {};
      switch (this.viaChannel) {
      case "email" :
        source.from = {
          address: this.viaSourceFromAddress,
          name: this.viaSourceFromName,
        };
        source.to = {
          address: this.viaSourceToAddress,
          name: this.viaSourceToName,
        };
        break;
      case "aircall" :
        source.from = {
          id: this.viaSourceFromNumber,
        };
        source.to = {
          id: this.viaSourceToNumber,
        };
        break;
      default:
        source.from = parseObject(this.viaSourceFrom);
        source.to = parseObject(this.viaSourceTo);
      }

      const response = await this.richpanel.createTicket({
        $,
        data: {
          ticket: {
            id: this.id,
            status: this.status,
            subject: this.subject,
            comment: {
              body: this.commentBody,
              sender_type: this.commentSenderType,
            },
            priority: this.priority,
            via: {
              channel: this.viaChannel,
              source,
            },
            tags: parseObject(this.tags),
          },
        },
      });

      $.export("$summary", `Created ticket ${response.ticket.id}`);
      return response;
    } catch ({ response }) {
      throw new ConfigurationError(response?.data?.error?.message);
    }
  },
};

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
RichpanelrichpanelappThis component uses the Richpanel app.
Ticket IDidstring

The ID of the ticket to create

StatusstatusstringSelect a value from the drop down menu:{ "label": "Open", "value": "OPEN" }{ "label": "Closed", "value": "CLOSED" }
Subjectsubjectstring

The subject of the ticket.

Comment BodycommentBodystring

The body of the comment for the ticket

PriorityprioritystringSelect a value from the drop down menu:HIGHLOW
Comment Sender TypecommentSenderTypestringSelect a value from the drop down menu:{ "label": "Customer", "value": "customer" }{ "label": "Operator", "value": "operator" }
Via ChannelviaChannelstringSelect a value from the drop down menu:{ "label": "Email", "value": "email" }{ "label": "Messenger", "value": "messenger" }{ "label": "Facebook Message", "value": "facebook_message" }{ "label": "Instagram", "value": "instagram" }{ "label": "Aircall", "value": "aircall" }{ "label": "Phone", "value": "phone" }{ "label": "WhatsApp", "value": "whatsapp" }
Tagstagsstring[]Select a value from the drop down menu.

Action Authentication

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

About Richpanel

Richpanel is the help desk software that helps you create a seamless support experience for both the customer & support teams.

More Ways to Connect Richpanel + twocaptcha

Add Ticket Message with Richpanel API on New 2Captcha Balance Updated from twocaptcha API
twocaptcha + Richpanel
 
Try it
Add Ticket Message with Richpanel API on New Captcha Solved from twocaptcha API
twocaptcha + Richpanel
 
Try it
Create Ticket with Richpanel API on New Captcha Solved from twocaptcha API
twocaptcha + Richpanel
 
Try it
Update Ticket Status with Richpanel API on New 2Captcha Balance Updated from twocaptcha API
twocaptcha + Richpanel
 
Try it
Update Ticket Status with Richpanel API on New Captcha Solved from twocaptcha API
twocaptcha + Richpanel
 
Try it
New 2Captcha Balance Updated from the twocaptcha API

Emit new event when the user's balance in 2Captcha API is changed.

 
Try it
New Captcha Solved from the twocaptcha API

Emit new event when a captcha has been successfully solved by the 2Captcha service.

 
Try it
New Message in Ticket from the Richpanel API

Emit new event when a new message is sent on an existing or new ticket.

 
Try it
New Support Ticket Created from the Richpanel API

Emit new event when a support ticket is created.

 
Try it
Check 2Captcha Account Balance with the twocaptcha API

Get the current account balance from the 2Captcha API. See the documentation

 
Try it
Retrieve Captcha Solution with the twocaptcha API

Fetch the solution of a previously submitted captcha from the 2Captcha service.

 
Try it
Submit Captcha for Solving with the twocaptcha API

Send a new captcha to the 2Captcha service for solving. Required props are clientKey and task object.

 
Try it
Add Ticket Message with the Richpanel API

Adds a message to an existing ticket. See the documentation

 
Try it
Create Ticket with the Richpanel API

Creates a new support ticket in Richpanel. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,500+
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
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.
Premium
Salesforce
Salesforce
Cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, customer support, and other business activities, ultimately aiming to improve customer relationships and streamline operations.
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
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.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
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
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.
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.