Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

dev: Fix watch-call action with a properly named phone number var

Clémence Lesné2c7f6477d87d
diff --git a/Makefile b/Makefile
index e095d80..d62f970 100644
--- a/Makefile
+++ b/Makefile
@@ -207,9 +207,9 @@ copy-resources:
--source resources
watch-call:
- @echo "👀 Watching status of $(bot_phone_number)..."
+ @echo "👀 Watching status of $(phone_number)..."
while true; do \
clear; \
- curl -s "$(endpoint)/call?phone_number=%2B$(bot_phone_number)" | yq --prettyPrint '.[0] | {"phone_number": .phone_number, "claim": .claim, "reminders": .reminders}'; \
+ curl -s "$(endpoint)/call?phone_number=%2B$(phone_number)" | yq --prettyPrint '.[0] | {"phone_number": .phone_number, "claim": .claim, "reminders": .reminders}'; \
sleep 3; \
done