This project automatically updates the timezone property of HubSpot contacts based on their country and city information using Llama 3.2 for to produce timezones
To set up this project, follow these steps:
-
Clone the repository
bash git clone https://github.com/your-username/hubspot-timezone-updater.git
-
Install dependencies
pip install -r requirements.txt
-
Create a HubSpot Private App Go to your HubSpot account, navigate to Settings > Integrations > Private Apps, and create a new private app. Then Copy the API key/token generated.
-
Set up your HubSpot API Key in AWS SSM Parameter Store Use AWS CLI or console to store the HubSpot API key securely in AWS SSM.
aws ssm put-parameter --name "HubSpotAPIKey" --value "your-hubspot-api-key" --type "String"
-
Deploy the serverless function
serverless deploy
Once deployed, the function will run daily to update timezones for contacts with missing timezone information, leveraging location data (country and city) for timezone prediction.
Run tests with:
python -m unittest discover tests
- This project uses the Llama 2 (3.2B) model for timezone prediction. Ensure your serverless environment has sufficient resources to run this model.
- For troubleshooting or configuration tips, refer to the documentation or HubSpot API support.