You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// <--- and create an instance of it in createAgent
const whatsappPlugin = new WhatsAppPlugin({
accessToken: getSecret(character, "WHATSAPP_ACCESS_TOKEN"),
phoneNumberId: getSecret(character, "WHATSAPP_PHONE_NUMBER_ID"),
webhookVerifyToken: getSecret(
character,
"WHATSAPP_WEBHOOK_VERIFY_TOKEN"
),
businessAccountId: getSecret(character, "WHATSAPP_BUSINESS_ACCOUNT_ID"),
});`
Expected behavior
I am thinking that the plugin should be a client instead but i am not 100 % sure or the actions need to be defined
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
Hello @oscody! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!
@oscody Seems like your plugin is not detected maybe because you are passing a string instead of a Plugin type.
Can you try doing this?
import { WhatsAppPlugin } from "../../plugin-whatsapp" // or "@elizaos/plugin-whatsapp"
const whatsappPlugin = new WhatsAppPlugin({
accessToken: "",
phoneNumberId: "",
})
export const defaultCharacter: Character = { // or whatever character you are defining
name: "",
plugins: [whatsappPlugin],
...
}
Describe the bug
I am getting an error when trying to add whatsapp plugin
Cannot read properties of undefined (reading 'actions')
To Reproduce
`{
"name": "vybz",
"modelProvider": "openai",
"clients": [],
"plugins": [
"plugins": ["@elizaos/plugin-whatsapp"], // <--- Correct package
]
}.
// <--- and create an instance of it in createAgent
const whatsappPlugin = new WhatsAppPlugin({
accessToken: getSecret(character, "WHATSAPP_ACCESS_TOKEN"),
phoneNumberId: getSecret(character, "WHATSAPP_PHONE_NUMBER_ID"),
webhookVerifyToken: getSecret(
character,
"WHATSAPP_WEBHOOK_VERIFY_TOKEN"
),
businessAccountId: getSecret(character, "WHATSAPP_BUSINESS_ACCOUNT_ID"),
});`
Expected behavior
I am thinking that the plugin should be a client instead but i am not 100 % sure or the actions need to be defined
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: