Houses configurations per agent for whatsapp api communications provided by WPPConnect API.
JIVAS action wrapper for WhatsApp API communications using the WPPConnect API.
jivas/wppconnect_action
WPPConnectAction
^2.0.0
This action provides a wrapper for WhatsApp API communications using the WPPConnect API. As a core action, it simplifies and streamlines interactions with WhatsApp. The package is a singleton and requires the Jivas library version 2.0.0.
Below is detailed guidance on how to configure and use the WPPConnect Action.
The WPPConnect Action provides an abstraction layer for interacting with WhatsApp via the WPPConnect API. It supports multiple configurations for various use cases, including:
To use the WPPConnect Action, you need to set up the following configuration parameters. These specify connection and behavioral details.
Parameter | Type | Description | Default |
---|---|---|---|
api_url |
string | WPPConnect Server URL (e.g., "https://your-wppconnect-server.com" ) |
"" |
secret_key |
string | WPPConnect Server Secret Key for authentication. | "" |
token |
string | WPPConnect Server API Key for this session. | "" |
session |
string | WPPConnect Server Instance ID. | "" |
base_url |
string | JIVAS Base URL (your application's base URL). | "" |
webhook_url |
string | JIVAS webhook endpoint for receiving WPPConnect messages. | "" |
request_timeout |
float | Length of time (in seconds) this action waits for the API to complete a request. | 10.0 |
chunk_length |
int | Maximum length of message to send. Longer texts are split into subsequent messages. | 1024 |
use_pushname |
bool | Use the WhatsApp push name as the user name when set to True . |
True |
ignore_newsletters |
bool | Ignore newsletter messages when set to True . |
True |
ignore_forwards |
bool | Ignore forwarded messages when set to True . |
True |
Note:
webhook_url
should be a publicly accessible endpoint that WPPConnect can POST to, in order to allow for event-driven communication.chunk_length
if you have use cases that involve very long text messages.ignore_newsletters
and ignore_forwards
to filter out less relevant messages and avoid unnecessary processing.wppconnect_action
project.git clone https://github.com/TrueSelph/wppconnect_action
git checkout -b new-feature-x
git commit -m 'Implemented new feature x.'
git push origin new-feature-x
This project is protected under the Apache License 2.0. See LICENSE for more information.
jvcli download action jivas/wppconnect_action
Last published
3 months ago
Version
0.0.8
Downloads
73
Author
jivasType
action
Visibility
Public
Tags