Type Effect
Type effect allows you to send a "typing..." indicator to your client.

The "typing.." indicator gives more live feeling to the conversation, especially if you are building a chat bot.
More Remarks
The typing effect will be dismissed once you send an actual message (sendMessage or any other) or if 20 seconds has passed, whichever comes first.
To prevent your client from waiting in the chat, it is better to use the typing indicator just a few moments before you actually going to send a respond.
The typing indicator is not an on/off feature for your entire WhatsApp number, this endpoint needs to be called every time you wish to create this effect.
This can only be sent when a session is open between you and the client (24 hours session). meaning, that the client has sent you a message in the last 24 hours.
When using the type effect, it will automatically mark the message that the user send to you as "read" (two blue check marks, as shown in the picture above) so the user knows your API has read the message and preparing a response.
Best practice to use this is when you are using an AI bot, and the answers takes a bit of a time to generate or when you wish to keep the user in the chat while preparing an answer.
Typing effect is not yet supported for all WhatsApp API accounts.
Avoid sending too much typing effect to the same user without sending an actual message, for a better user experience. (no hard limit, just a suggestion).
Avoid sending typing effect if you reply within less than 1 second, for a better user experience. (no hard limit, just a suggestion).
Settings:
URL | |
Method | JSON via POST |
Body:
Parameter | Description / Example | Mandatory |
|---|---|---|
apiKey | Your API key for the service | yes |
from | your WhatsApp account. international number without +. for example: 972771234567 | yes |
to | The number you want to send the typing effect | yes |
Response:
{
"status": "OK",
"from": "972501234567",
"to": "972509876541",
"reason": 1
}
Response-Explain:
Parameter | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status | OK or FAIL | ||||||||||||
unique | The unique ID for the request, for webhook notification. | ||||||||||||
messageUnique | The unique ID you provided. | ||||||||||||
reaction | The emoji you used. | ||||||||||||
reason | 'reason' is the status explanation in case of FAIL
|