Skip to content

[Components] heyy #14383

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
pipedream-component-development opened this issue Oct 23, 2024 · 6 comments · Fixed by #14430
Closed

[Components] heyy #14383

pipedream-component-development opened this issue Oct 23, 2024 · 6 comments · Fixed by #14430
Assignees

Comments

@pipedream-component-development
Copy link
Collaborator

pipedream-component-development commented Oct 23, 2024

heyy

URLs

Webhook Sources

new-incoming-message-instant

Prompt

Emit new event when the business gets a new incoming message. No props are required.

URLs

Actions

send-whatsapp-message

Prompt

Sends a Whatsapp message to a contact. Requires the prop 'contact_id' to identify the contact, and 'message' for the content to send. An optional prop 'attachment' can be added to send a file along with the message.

URLs

create-contact

Prompt

Creates a new contact for the business. Required props are 'name' and 'phone_number'. Optional props include 'email', 'address', and 'notes', which might be beneficial for providing additional information about the contact.

URLs

update-contact

Prompt

Updates the details of a contact under the business. 'contact_id' is a required prop to identify which contact to update, and at least one optional prop ('name', 'address', 'phone_number', 'email') must be provided, representing the details to be updated.

URLs

@sergio-eliot-rodriguez
Copy link
Collaborator

Btw, the Heyy team recommended to use /v2 endpoints of the API.

The API documentation (use version v2.0):
...
One small thing, in the first example, I see you used v1.0, our latest is v2.0 (there are more endpoints there).

@jcortes
Copy link
Collaborator

jcortes commented Oct 25, 2024

Hi @sergio-eliot-rodriguez do you know if there is some kind of documentation about the webhooks, more exactly about how is the payload formated? thanks!

@jcortes jcortes moved this from Doing to Ready for PR Review in Component (Source and Action) Backlog Oct 25, 2024
@sergio-eliot-rodriguez
Copy link
Collaborator

Per the emaill from Heyy, one has to reply to messages sent via Heyy's whats app channel, for it to open a time frame during which further messages can be sent:

Meta has some rules regarding WhatsApp Cloud API that you need to know:

  1. To initiate a conversation with a contact you can only send a WhatsApp Template message verified by Meta, as you did well.
  2. To send free-form messages (Not templates) the contact has to reply to the business, every time the contact replies to the business a 24-hour window is opened/updated,
    in this window the business can send free-form messages and templates. If the client doesn't reply and you try to send a free-form message anyway the message will not be delivered and you will get the following error - "Conversation expired, Send a message template to renew conversation"
  3. There is another rule regarding Marketing Message Templates approved by Meta, If you try to send more than 2 Marketing templates in a 24-hour window they will not be delivered, you can reset the template limit by the contact answering to the business.

@GTFalcao GTFalcao moved this from Ready for PR Review to Ready for QA in Component (Source and Action) Backlog Oct 28, 2024
@vunguyenhung vunguyenhung moved this from Ready for QA to Changes Required in Component (Source and Action) Backlog Oct 29, 2024
@vunguyenhung
Copy link
Collaborator

Hello everyone, I have tested this PR and there're some test cases failed or needed improvement.

Please check the test report below for more information
https://vunguyenhung.notion.site/Components-heyy-12dbf548bb5e818bbfd2f051bcecdd39

@jcortes
Copy link
Collaborator

jcortes commented Oct 29, 2024

Hi @vunguyenhung I've just added a regexp validation for the phone number property, so please try again with latest push, thanks!

@jcortes jcortes moved this from Changes Required to Ready for QA in Component (Source and Action) Backlog Oct 29, 2024
@vunguyenhung vunguyenhung moved this from Ready for QA to Ready for Release in Component (Source and Action) Backlog Oct 30, 2024
@vunguyenhung
Copy link
Collaborator

Hi everyone, all test cases are passed! Ready for release!

Test report
https://vunguyenhung.notion.site/Components-heyy-12dbf548bb5e818bbfd2f051bcecdd39

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

4 participants