Skip to main content

Supported Lead Sources

IndiaMART

The poller calls:
With:
When INDIAMART_NEW_ONLY_MODE=true, the code calls the API without explicit start/end timestamps after initialization, using IndiaMART’s new-lead cursor behavior. Stored fields:
  • phone from SENDER_MOBILE
  • name from SENDER_NAME
  • email from SENDER_EMAIL
  • product_name from QUERY_PRODUCT_NAME
  • city from SENDER_CITY
  • state from SENDER_STATE
  • query_message from QUERY_MESSAGE

Facebook Webhooks

Webhook endpoint:
Configuration:
The GET endpoint handles Facebook verification. The POST endpoint handles events. If FACEBOOK_APP_SECRET is configured, the app verifies X-Hub-Signature-256.

Facebook Lead Ads

When Facebook sends a leadgen event, the app fetches the lead via Graph API and stores:
  • phone
  • name
  • email
  • source='facebook_ads'

Facebook Page Messages

For Page messages, the app attempts to fetch the sender phone number through Graph API. If no phone is available, it stores:
The scheduler will not dial fb_psid_... values. It marks those leads failed because they do not contain a real phone number.

CSV Upload

The Streamlit dashboard supports CSV lead upload. Required columns:
  • name
  • phone
Optional columns:
  • source
  • email
  • product_name
  • city
  • state
  • query_message
CSV-uploaded rows are treated as Facebook-style leads by the dashboard’s _clean_source_value() function.