pipedream icon indicating copy to clipboard operation
pipedream copied to clipboard

[Components] Drift. Actions + Sources

Open SokolovskyiK opened this issue 5 months ago • 9 comments

Fixes #13240

  • Actions: create-contact delete-contact get-contact update-contact

  • Sources: new-contact-update new-conversation-instant new-lead-instance new-message-instant

  • Notes:

This task is over a year old. Since then, the Drift API has changed.

There is no longer a create-or-update endpoint — now create and update are separate actions.

Regarding new-lead-instant:

Drift does not support listing contacts — only fetching them by known ID or email.

However, their API now supports webhooks. So I implemented this source using webhooks instead of polling. Unfortunately, there's no "new contact" webhook event available.

To work around this, I created two sources:

new-lead-instance: Emits an event when a contact adds their email in chat. new-contact-update: Emits an event when a contact is updated.

Polling vs Webhooks: new-conversation-instant is currently implemented as a polling source. If needed, I can rewrite it to use webhooks instead.

Summary by CodeRabbit

  • New Features
    • Added actions to create, update, delete, and retrieve contacts in Drift.
    • Introduced new event sources for Drift: New Contact Update, New Conversation, New Lead, and New Message, enabling automated workflows based on contact and conversation events.
  • Improvements
    • Enhanced Drift integration with robust contact management and event handling capabilities.
  • Other
    • Updated Drift integration version to 0.7.0.

SokolovskyiK avatar May 04 '25 15:05 SokolovskyiK