jupyter-naas / awesome-notebooks

A powerful data & AI notebook templates catalog: prompts, plugins, models, workflow automation, analytics, code snippets - following the IMO framework to be searchable and reusable in any context.
https://naas.ai/search
BSD 3-Clause "New" or "Revised" License
2.6k stars 436 forks source link

Whatsapp - Post message and image #100

Closed jravenel closed 10 months ago

jravenel commented 3 years ago

The idea is to be able to post a message and attach an image to a WhatsApp individual contact.

It seems like WhatsApp have opened its API recently. Here is the doc found: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started

The idea is to be able to fit the API request to send a message and an image into the Naas IMO framework (check README )

Input: PHONE_NUMBER = "" MESSAGE = ""

Model: function to send a message to a phone

Output: "Message has been sent'

jravenel commented 3 years ago

First try but not working inside naas: https://public.naas.ai/c2FuamF5LTJFcy00MGJyaWRnZS0yRGdsb2JhbC0yRWNvbQ==/asset/fcfd89bf7b37f5a850d671ee03e6f107577927a9965c0521b81a76e72f49

jravenel commented 1 year ago

https://github.com/jupyter-naas/awesome-notebooks/issues/1266#issue-1412381792

@muhtalhakhan following our conversation, I'm referring to your comment here and will close the other issue. Do you want to work on this with me next week and probably make a Youtube video about it that we can post on socials?

I understood that we can start with the dev account and work from there, then once we have a better understanding I will do the workflow as an end user paying for the service.

What do you think?

muhtalhakhan commented 1 year ago

Hey J,

I would love to work with you about this for sure. Do let me know when we can talk about it.

Sure, we can at least start over and get an endpoint then we can make it available for others through our template.

Regards Muhammad Talha Khan

On Mon, 31 Oct 2022, 00:16 Jeremy Ravenel, @.***> wrote:

1266 (comment)

https://github.com/jupyter-naas/awesome-notebooks/issues/1266#issue-1412381792

@muhtalhakhan https://github.com/muhtalhakhan following our conversation, I'm referring to your comment here and will close the other issue. Do you want to work on this with me next week and probably make a Youtube video about it that we can post on socials?

I understood that we can start with the dev account and work from there, then once we have a better understanding I will do the workflow as an end user paying for the service.

What do you think?

— Reply to this email directly, view it on GitHub https://github.com/jupyter-naas/awesome-notebooks/issues/100#issuecomment-1296330880, or unsubscribe https://github.com/notifications/unsubscribe-auth/APA3FDDKAM2RUGSJ4A4NAJDWF23OXANCNFSM457TRPIA . You are receiving this because you were mentioned.Message ID: @.***>

jravenel commented 1 year ago

@muhtalhakhan we can work in here if you don't mind. Async is the key to making good progress fast. Can you draft a first PR? I created the branch

muhtalhakhan commented 1 year ago

Sure, we are good to go. Give me a day or two as currently I got ill. Rightnow, resting and doing nothing unless taking meds and eateries only.

Will look into it on Thursday or before that.

On Tue, 1 Nov 2022, 02:49 Jeremy Ravenel, @.***> wrote:

@muhtalhakhan https://github.com/muhtalhakhan we can work in here if you don't mind. Async is the key to making good progress fast. Can you draft a first PR? I created the branch

— Reply to this email directly, view it on GitHub https://github.com/jupyter-naas/awesome-notebooks/issues/100#issuecomment-1297728069, or unsubscribe https://github.com/notifications/unsubscribe-auth/APA3FDGCLN3FW3EANJEV7GDWGA5HTANCNFSM457TRPIA . You are receiving this because you were mentioned.Message ID: @.***>

jravenel commented 1 year ago

Now that HF is in prod :) sky is the limit @muhtalhakhan :)

muhtalhakhan commented 1 year ago

HF = half or have fun here?

I will check it today and let you know. \o/

On Thu, Nov 3, 2022 at 3:28 AM Jeremy Ravenel @.***> wrote:

Now that HF is in prod :) sky is the limit @muhtalhakhan https://github.com/muhtalhakhan :)

— Reply to this email directly, view it on GitHub https://github.com/jupyter-naas/awesome-notebooks/issues/100#issuecomment-1301429814, or unsubscribe https://github.com/notifications/unsubscribe-auth/APA3FDG55IGOJQZTVP36FOTWGLTI7ANCNFSM457TRPIA . You are receiving this because you were mentioned.Message ID: @.***>

jravenel commented 1 year ago

HF: HuggingFace :)

muhtalhakhan commented 1 year ago

Btw when will you be free so that we can have a little video recording to be posted over socials as discussed.

jravenel commented 1 year ago

Hello @muhtalhakhan, can you please update the links shared today during our call and give me the instructions? I think I have to open meta account but not sure about the rest. Thanks

muhtalhakhan commented 1 year ago

Hey @jravenel,

Yeah mentioning the links below:

  1. Facebook Developer
  2. WhatsApp Business
  3. Info related to pricing
  4. WhatsApp Business Platform - Complete resources
  5. Meta Business Suite
  6. WhatsApp On-Premises

Other way around it can be like that:

first up we need to "Set up Developer Assets and Platform Access" for setting this up we are required to register ourself as a "Meta Dev", "Enable 2FA", and create a "meta app" by selecting "Business" as type afterwards you are required to create a "Wapp Business Acc", and add a number to it that will redirect to "Getting Started" page after verification.

Ref: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started

Well, this API costs according to session and a session here is a conversation of 24 hours between a contact and your business.

Ref: https://www.sendinblue.com/blog/how-whatsapp-business-api-pricing-works/

The complete resources -> https://business.whatsapp.com/developers/developer-hub

For businesses who want to get started with the WhatsApp Business Platform, please fill out the form below to talk to sales -> https://business.whatsapp.com/learn-more

muhtalhakhan commented 1 year ago

image

I feel this can be the issue as it only supports linux rn.

jravenel commented 1 year ago

I think its find, Naas is on linux, do you see any issues @Dr0p42 ?

muhtalhakhan commented 1 year ago

Hey @jravenel , @Dr0p42 have not replied to your comment above!

Looking forward for all the requisites to be completed.

Dr0p42 commented 1 year ago

Hello @muhtalhakhan, Docker + Linux is fine for us 👍

muhtalhakhan commented 1 year ago

Hey @Dr0p42 thats great!

@jravenel have you done with the requisites of it?

omerkork commented 1 year ago

selam benim arkadasim whatsapp numarasi whatsapp tarafindan surekli blog ve ya engelleniyor ve bunu icin whatsapp tarafinda whatsapp destek yardim etmiyor kendisi ajans eskort is alaninda ve surekli musterilerine resim mesaj gonderiyor ve whatsapp arkadasim numarasini blog ve engel koyuyor ve whatsap girisini yasakliyor bunu icin sizden tek ricam lutfen yardiminiz ve desteyinize ihtiyacim var gerekiyorsa maddi durumla ilgili hic bir sikinti yok sadece arkadasim is numarasini geri getirmek ve whatsapp tarafinda bir daha ne blok nedeki engell koyulmasin lutfen sizden cok rica ederim bu konuda ciddi bir destekinize ihtiyacim var

muhtalhakhan commented 1 year ago

selam benim arkadasim whatsapp numarasi whatsapp tarafindan surekli blog ve ya engelleniyor ve bunu icin whatsapp tarafinda whatsapp destek yardim etmiyor kendisi ajans eskort is alaninda ve surekli musterilerine resim mesaj gonderiyor ve whatsapp arkadasim numarasini blog ve engel koyuyor ve whatsap girisini yasakliyor bunu icin sizden tek ricam lutfen yardiminiz ve desteyinize ihtiyacim var gerekiyorsa maddi durumla ilgili hic bir sikinti yok sadece arkadasim is numarasini geri getirmek ve whatsapp tarafinda bir daha ne blok nedeki engell koyulmasin lutfen sizden cok rica ederim bu konuda ciddi bir destekinize ihtiyacim var

Translation: hi my friend whatsapp number is constantly being blocked or blocked by whatsapp and whatsapp support does not help for this, he is in the agency escort work area and constantly sends a picture message to his customers and whatsapp my friend's number on the blog and blocks and forbids whatsapp login, my only request from you is please I need your help and support, if necessary, there is no problem about the financial situation, just to bring back my friend's work number and not to be blocked or blocked on whatsapp again, please, I ask you very much, I need your serious support in this matter

omerkork commented 1 year ago

hi my friend whatsapp number is constantly being blocked or blocked by whatsapp and whatsapp support does not help for this, he is in the agency escort area and constantly sends a picture message to his customers and whatsapp my friend's number on the blog and blocks and forbids whatsapp login, my only request from you is please help and I need your support, if necessary, there is no problem about the financial situation, just my friend, do not bring back his work number, please do not be blocked or blocked on whatsapp again, please, please, I need your serious support in this matter

jravenel commented 1 year ago

Hi @omerkork @muhtalhakhan, I will resume work on this on the next iteration so I assigned it to myself.

jravenel commented 1 year ago

Putting it back to Backlog

FlorentLvr commented 10 months ago

Closed to be reopened for hacktoberfest 2023