> ## Documentation Index
> Fetch the complete documentation index at: https://swiftchats-documentation.axis96.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat

<Warning>
  Prerequisites: You need to <a href="/customer/settings/whatsapp">connect your whatsapp account</a> first before you can send or receive messages.
  You also need to <a href="/setup/broadcast">setup Pusher</a> for realtime messaging.
</Warning>

The chat module allows users to send and receive messages. It also allows your agents to use tickets.

Supported message types: `text`, `image`, `audio`, `video` and `maps`

#### FAQs

<AccordionGroup>
  <Accordion title="I can't receive messages in realtime?">
    Make sure that your customer has setup webhooks, if they have connected manually to their whatsapp account.
    If using embedded signup, ensure that you have setup webhooks correctly as indicated <a href="/customer/settings/whatsapp#how-to-connect-manually">in this tutorial video</a>.
  </Accordion>

  <Accordion title="Why can't I send messages using my WhatsApp test number?">
    If you're using a test WhatsApp number provided by Meta, you'll need to whitelist the phone numbers you want to send messages to. To do this, follow these steps:

    * Log in to the Meta for Developers portal and go to your app.
    * Navigate to `WhatsApp > API Setup`.
    * Under `Send and receive messages`, select the `To` field and choose `Manage phone number list`.
    * You can add any valid WhatsApp number as a recipient. The recipient number will receive a confirmation code in WhatsApp that can be used to verify the number.
    * Once you verify the recipient number, it should now be selected in the To field. Repeat this process if you’d like to add another recipient, up to 5 in total.

    Remember, messages can only be sent to the whitelisted numbers until you switch to a production number.
  </Accordion>

  <Accordion title="I can't see ticketing?">
    You need to activate ticketing in `Settings > General`
  </Accordion>

  <Accordion title="I can receive messages but campaign messages show up as failed?">
    Ensure that you have added a valid payment method to your Meta app.
  </Accordion>

  <Accordion title="Chat page displays error 500?">
    Please review the logs in `storage/logs/laravel.log` to identify the error. It’s possible that the script wasn’t installed correctly. If the problem continues, feel free to <a href="https://support.axis96.com/login" target="_blank">contact support</a> for assistance.
  </Accordion>
</AccordionGroup>
