Skip to content

AI Automate

automate turns a conversation over to an AI bot. It watches for new messages from a chosen contact, generates a reply with your selected provider and skill, and sends it back automatically.

Start it

pywacli automate

Or pick 5 · Automate from the menu. You'll be walked through four choices:

1. Pick a contact

Choose from recent/known contacts or type a new number. PyWacli loads up to the last 200 messages of history so the AI has context.

Self-chat mode

If the selected chat only contains your own messages (a note-to-self chat), PyWacli switches to self-chat mode and alternates roles so the AI still sees a natural conversation flow.

2. Pick a skill

Skills are prompt templates that shape the bot's behavior:

Skill Use
Personal Assistant General helpful assistant
Sales Assistant Pitch and qualify
Scheduling Assistant Coordinate times
Customer Support Answer support questions
Translator Translate messages
Summarizer Summarize threads
Content Writer Draft content
Lead Qualifier Qualify inbound leads
Appointment Booking Book appointments
Order Tracking Handle order status queries
FAQ Bot Answer frequently asked questions
Conversation Clone Mimic your own style from history

See AI skills & providers for details.

3. Pick a provider

Provider Default model Needs API key?
Ollama llama3 No (runs locally)
OpenAI gpt-4o-mini Yes
Gemini gemini-2.0-flash Yes
Claude claude-sonnet-4-20250514 Yes
GLM glm-4-plus Yes

If you've saved a default provider you can reuse it. For providers that need a key, PyWacli prompts once and saves it to your config.

4. It runs

PyWacli polls for new messages (default every 3 seconds), shows the incoming text, generates a reply ("AI thinking…"), prints it, and sends it through the Connect session.

─── Listening for new messages... ───
  Alex: hey are you around tomorrow?
  AI:  Yes! I'm free after 2pm — want me to lock in a time?
  Sent to Alex

Press Ctrl+C to stop the bot. The connect session keeps running.

Connect must be live

Automate sends replies through the running connect session. Start pywacli connect in another terminal first. You'll also need ai_providers configured (run pywacli setup).