Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siwelbackwards/hubspot-timezone-updater
Takes City and Country information and uses Llama 3.2 to help generate a timezone and update a contacts property. Eliminating the need to upgrade to HubSpot Operations Hub while automating timezone updates
https://github.com/siwelbackwards/hubspot-timezone-updater
hubspot hubspot-api hubspot-contacts hubspot-crm hubspot-integration llama3 timezone
Last synced: 12 days ago
JSON representation
Takes City and Country information and uses Llama 3.2 to help generate a timezone and update a contacts property. Eliminating the need to upgrade to HubSpot Operations Hub while automating timezone updates
- Host: GitHub
- URL: https://github.com/siwelbackwards/hubspot-timezone-updater
- Owner: siwelbackwards
- Created: 2024-11-14T11:28:56.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-14T13:26:29.000Z (about 2 months ago)
- Last Synced: 2024-12-03T16:54:06.948Z (about 1 month ago)
- Topics: hubspot, hubspot-api, hubspot-contacts, hubspot-crm, hubspot-integration, llama3, timezone
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HubSpot Timezone Updater
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
## Table of Contents
- [Setup](#setup)
- [Usage](#usage)
- [Testing](#testing)
- [Note](#note)## Setup
To set up this project, follow these steps:1. **Clone the repository**
```bash git clone https://github.com/your-username/hubspot-timezone-updater.git```2. **Install dependencies**
```pip install -r requirements.txt```3. **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.4. **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"```5. **Deploy the serverless function**
```serverless deploy```## Usage
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.
## Testing
Run tests with:
```python -m unittest discover tests```## Note
- 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.