# Add Contact To New Entry with Loopify API on New Ticket Comment Added (Instant) from Zendesk API

## Pipedream makes it easy to connect APIs for Loopify, Zendesk and 3,000+ other apps remarkably fast.

Trigger workflow on

New Ticket Comment Added (Instant) from the Zendesk API

Next, do this

Add Contact To New Entry with the Loopify API

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

### Developers ♥ Pipedream

- Chase Roberts 
- @benedictevans If you haven’t used @pipedream yet, then you haven’t lived. ([link](https://twitter.com/chsrbrts/status/1350044163996315649))
- ✨Ellie Day✨ ([link](https://twitter.com/heyellieday/status/1321400942403686400))
- Michael Braedley ([link](https://twitter.com/MBraedley/status/1330335708083597312))
- Thomas Cutting ([link](https://twitter.com/mrthomascutting/status/1257118117655744512))
- Matthew Roberts ([link](https://twitter.com/mattdotroberts/status/1254844648280985601))
- Kenneth Auchenberg 💭 ([link](https://twitter.com/auchenberg/status/1244725678244638720))
- Raymond Camden 🥑 ([link](https://twitter.com/raymondcamden/status/1272640661435617289))
- Nacho Caballero ([link](https://twitter.com/nachocaballero/status/1313133163279986688))
- Jason Snow ([link](https://twitter.com/jyksnw/status/1254588814896611328))
- Steven Terrana ([link](https://twitter.com/steven_terrana/status/1341415416665677824))
- 🚄 James Augeri, PhD ([link](https://twitter.com/DotDotJames/status/1347800242708766721))
- Sébastien Chopin ([link](https://twitter.com/Atinux/status/1283705696337436673))
- Raul ([link](https://twitter.com/raul_predescu/status/1337868786024628224))
- Bruno Skvorc ([link](https://twitter.com/bitfalls/status/1260974590609719301))
- Zach Lanich ([link](https://twitter.com/ZachLanich/status/1297400034447720449))
- Steven Bell ([link](https://twitter.com/bellontech/status/1328092480772956161))
- Jay Hack 🎩🇺🇸 ([link](https://twitter.com/_jayhack_/status/1187511677131952130))
- Tree Sturgeon 🔥🚴‍♂️🌳 ([link](https://twitter.com/philsturgeon/status/1357630627663798272))

### Getting Started

This integration creates a workflow with a Zendesk trigger and Loopify 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 Ticket Comment Added (Instant) trigger
   1. Connect your `Zendesk` account  
   2. Optional- Select a `Trigger Category ID`  
   3. Optional- Configure `Custom Subdomain`
3. Configure the Add Contact To New Entry action
   1. Connect your `Loopify` account  
   2. Select a `Flow ID`  
   3. Select a `Contact ID`  
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.

### Trigger

[New Ticket Comment Added (Instant) on Zendesk](/content/apps/zendesk/triggers/new-ticket-comment-added/index.html)

Description: Emit new event when a ticket comment has been added

Version: 0.1.4

Key: zendesk-new-ticket-comment-added

### Trigger Code

```javascript
import app from "../../zendesk.app.mjs";
import common from "../common/ticket.mjs";

export default {
  ...common,
  name: "New Ticket Comment Added (Instant)",
  key: "zendesk-new-ticket-comment-added",
  type: "source",
  description: "Emit new event when a ticket comment has been added",
  version: "0.1.4",
  dedupe: "unique",
  props: {
    app,
    db: "$.__service.db",
    http: "$.__interface.http",
    categoryId: {
      propDefinition: [
        app,
        "categoryId"
      ],
    },
    customSubdomain: {
      propDefinition: [
        app,
        "customSubdomain"
      ],
    },
  },
  methods: {
    ...common.methods,
    async getTriggerPayload() {
      const payload = await common.methods.getTriggerPayload.call(this);
      return payload;
    },
  },
};
```

### Action

[Add Contact To New Entry on Loopify](/content/apps/loopify/actions/add-contact-to-new-entry/index.html)

Description: Adds a contact to an **API Entry** block in a Loopify flow.

Version: 0.0.3

Key: loopify-add-contact-to-new-entry

### Action Code

```javascript
import app from "../../loopify.app.mjs";

export default {
  key: "loopify-add-contact-to-new-entry",
  name: "Add Contact To New Entry",
  description: "Adds a contact to an **API Entry** block in a Loopify flow.",
  version: "0.0.3",
  type: "action",
  props: {
    app,
    flowId: {
      propDefinition: [app, "flowId"],
    },
    contactId: {
      propDefinition: [app, "contactId"],
    },
  },
  methods: {
    async run() {
      const response = await this.app.addContactToNewEntryBlock({ flowId, contactId });
      return response;
    },
  },
};
```

### About Zendesk

Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.

### About Loopify

Marketing automation the fun and easy way. You create the content and Loopify does the rest. It’s so simple that even your boss could do it.
