-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added plugin-twilio this can send message using sms or whatsapp #1822
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @juanc07! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!
ph represent, this is nice, salamat juan for this!!! |
What do you mean should be gated? hmmm the twilio auth and sid will be
loaded via vars in .env but sure i'll check if we do need secret because i
think the Auth value is the twilio secret, BTW your twilio account should
be verified, you have a verified twilio phone number, subscription and have
enough credits if you have this you can send sms and whatsapp messages in
any phone number. If you are just using sandbox or free trial then you can
only send sms and whatsapp to your self only
…On Sun, Jan 5, 2025, 4:46 AM Patrick ***@***.***> wrote:
ph represent, this is nice, salamat juan for this!!!
—
Reply to this email directly, view it on GitHub
<#1822 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALIZMEHEQIACG5PPMBYMTVT2JBCDRAVCNFSM6AAAAABUTKUV6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZRGQYDONJSGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
thanks but not approved yet, hahaha! |
… required env vars are found
suddenly i got integration test issue, but the error is not related to plugin-twilio here is the log "packages/plugin-node postinstall: throw new ERR_MODULE_NOT_FOUND( |
BTW my PR is behind the develop branch , should i do the rebase or the moderator or admin only? |
… and remove @elizaos/source: ./src/index.ts
i tried all that i can do but it seems some where in the repo the plugin-node is link or pointing to this directory "/home/runner/work/eliza/eliza/packages" so for me it seems like a local machine directory but the weird thing is i can't find it in the project. the whole error is "packages/plugin-node postinstall: throw new ERR_MODULE_NOT_FOUND( |
the issue about the integration test is now fix, thank you @odilitime |
after merging with new changes from develop branch i got issues and error in integration test again "Error: ...1816_a2665c1acc2b05267414f68f617d222f npm-install: src/utils/root-ca.ts(4330,14): error TS2742: The inferred type of 'ROOT_CAS' cannot be named without a reference to '.bin/store/v3/tmp/_tmp_1816_a2665c1acc2b05267414f68f617d222f/node_modules/@peculiar/x509'. This is likely not portable. A type annotation is necessary. |
We have all the same error, maybe the error is on the develop branch. |
integration test is working again after merging with latest develop branch |
The workflow should be the end user can text texts or call the number and gets the agent. The voice of the agent should use Elevenlabs, if at all possible |
Relates to
Risks
Background
What does this PR do?
this will add a twilio api implemenation for send SMS or WhatsApp Message
What kind of change is this? this is a new plugin so this will be addition to current repo
this is none breaking, all possible errors are catch
i saw Shaw post this in X with reward so i did this for that reward, i really need money :)
Documentation changes needed?
it need some small changes you need to update Agent package.json to include plugin-twilio, then wire it in agent for plugin initialization and then pnpm install and pnpm build just to make sure
Testing
for testing you just need to tell the AI Agent the exact command format, please check the Usage Sample
Usage Sample
The message that you want to send must be inside a Single Quote or double quotes
Example 1:
Please send sms to [phone number], and my message is '[your message here]'
Please send whats app message to [phone number], and my message is '[your message here]'
Example 2:
Please send sms to [phone number], and my message is "[your message here]"
Please send whats app message to [phone number], and my message is "[your message here]"
Where should a reviewer start?
inside the plugin-twilio to make sure i follow the standards
Detailed testing steps
add this to .env file and fill in the details
Twilio Part
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
TWILIO_WHATSAPP_PHONE_NUMBER=
then follow this steps
How to use
#Note: Make sure you have the following:
visit twilio: https://www.twilio.com
twilio quick start guides: https://www.twilio.com/docs/messaging/quickstart
twilio documentation: https://www.twilio.com/docs/messaging
Free Trial Account: https://www.twilio.com/docs/messaging/guides/how-to-use-your-free-trial-account
For WhatsApp guides follow the link below you need to have a separate twilio whatsapp enabled phone number
https://www.twilio.com/docs/whatsapp
https://www.twilio.com/docs/whatsapp/quickstart/node
https://www.twilio.com/docs/whatsapp/getting-started#registering-a-whatsapp-sender
https://www.twilio.com/docs/verify/whatsapp
#Some Other Whats App Info that you might need
https://www.twilio.com/docs/whatsapp
#Twilio Phone Number guidelines
https://www.twilio.com/en-us/guidelines
Clarification this project is intended to be use/place inside elizaos project packages, this can't work alone
Sample implementation can be found here
https://github.com/juanc07/AgentSoulSpark