Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update connector.py Hubspot #3058

Closed
wants to merge 1 commit into from

Conversation

robertoamoreno
Copy link
Contributor

Update various fixes

Description

Update various fixes pull notes individually as well

1 Initialization & Authentication:

• Takes batch_size and optional access_token as parameters
• Uses the HubSpot API to authenticate and get the portal ID
• Constructs base URLs for tickets

2 Main Processing Methods:

• _process_all_notes: Fetches standalone notes from HubSpot
• Uses pagination (100 items per page)
• Filters notes by date range if specified
• Creates Document objects with note content and metadata
• _process_tickets: Core method for processing tickets
• Fetches tickets with associated contacts and notes
• Uses pagination to handle large datasets
• Processes each ticket's content, associated emails, and notes
• Creates Document objects with combined content

3 Document Generation:

• Creates standardized Document objects containing:
• Unique IDs
• Content sections with links
• Source identification (HUBSPOT)
• Semantic identifiers (titles/subjects)
• Updated timestamps
• Relevant metadata

4 Interface Implementation:

• load_from_state(): Full data load
• poll_source(): Incremental updates based on time range

5 Error Handling:

• Handles missing credentials
• Deals with None values in ticket subjects and note content
• Properly formats associated data

Update various fixes
Copy link

vercel bot commented Nov 5, 2024

@robertoamoreno is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.

@robertoamoreno robertoamoreno changed the title Update connector.py Update connector.py Hubspot Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant