Skip to content

tallyfy/documentation

Repository files navigation

Tallyfy Documentation

This repository contains the public documentation for Tallyfy products.

Contributing to Documentation

We welcome contributions to improve our documentation. Whether you've found a typo, want to clarify instructions, or add helpful examples, your contributions help make our documentation better for everyone.

How to Contribute

1. Fork the Repo

Click the "Fork" button at the top right of this page to create your own copy of the documentation repository.

2. Clone Your Fork

git clone https://github.com/YOUR-USERNAME/documentation.git
cd documentation

Replace YOUR-USERNAME with your GitHub username.

3. Create a Branch

Create a new branch for your changes:

git checkout -b improve-docs-topic-name

Use a descriptive branch name that reflects your changes.

4. Make Your Changes

  • Edit the relevant .mdx files in the src/content/docs/ directory
  • Follow the existing formatting and style conventions
  • Keep changes focused and specific

5. Test Your Changes Locally (Optional)

If you want to preview your changes:

npm install
npm run dev

6. Commit Your Changes

git add .
git commit -m "Brief description of your changes"

7. Push to Your Fork

git push origin improve-docs-topic-name

8. Create a Pull Request

  1. Go to your fork on GitHub
  2. Click "Compare & pull request"
  3. Provide a clear title and description of your changes
  4. Submit the pull request

Contribution Guidelines

What We Accept

We welcome:

  • Typo and grammar fixes
  • Clarifications to existing content
  • Better examples or use cases
  • Corrections to outdated information
  • Improvements to formatting and readability

Please avoid:

  • Major structural changes without discussion
  • Adding new features or product documentation (contact us first)
  • Promotional content or external links
  • Changes to technical architecture files

Style Guidelines

  • Use clear, simple language
  • Write in present tense
  • Keep sentences concise
  • Follow American English spelling
  • Bold UI elements using **text**

Using D2 Diagrams

We use D2 diagrams to visualize complex workflows, API interactions, and system architectures. D2 (Declarative Diagramming) enables you to create diagrams using simple text-based syntax with better layout algorithms and more intuitive notation than traditional diagramming tools.

Important: Only use diagrams where they add clear value. Simple processes with 3 steps or fewer usually don't need diagrams.

Required Syntax (2025 Update)

CRITICAL: Always use D2's clear and simple syntax for proper text rendering. D2 automatically handles text spacing and layout without complex notation.

✅ Correct Example (Use This)
```d2
Start: User Action {
  shape: oval
  style.bold: true
}
Process: Process Step {
  style.bold: true
}
Complete: Complete {
  shape: oval
  style.bold: true
}

Start -> Process
Process -> Complete
```
❌ Incorrect Example (Avoid This)
```d2
# Avoid overly complex nested structures
Start.nested.deeply.action -> Process  # Too nested
Process -> Complete[with inline style]  # Mixing concerns
```

Key Requirements:

  • Use clear node names and labels
  • Use style.bold: true for emphasis
  • Multi-line text works naturally with D2's automatic text wrapping
  • Edge labels are simple: connection: label
  • Style consistently using D2's theming system
When to Use Diagrams

Good candidates for diagrams:

  • Multi-step processes where sequence matters
  • Conditional logic with multiple branches
  • System interactions between Tallyfy and external services
  • User-system collaboration (e.g., SSO setup)
  • Complex automation rules with multiple conditions
  • API request/response flows with authentication
  • Webhook event flows with retry logic

Avoid diagrams for:

  • Simple linear processes (3 steps or fewer)
  • Single API calls without complex flow
  • Basic CRUD operations
  • Content better explained with text
  • UI navigation (use screenshots instead)
Diagram Types by Documentation Area
Documentation Area Diagram Type Key Elements
API Documentation sequenceDiagram Request/response, authentication, error handling
Webhook Documentation sequenceDiagram Event triggers, retry logic, queue processing
Process Workflows flowchart TD Decision nodes, branches, outcomes
Automation Logic flowchart TD Sequential rules, AND/OR logic, actions
SSO/Authentication sequenceDiagram User + admin actions, token flow
System Architecture graph TD Components, data flow, connections
Real-World Examples
Automation Rule Evaluation (Reflects Actual System)
Start: Event Triggers {
  shape: oval
  style.bold: true
}
Load: Load Rules\nby Position {
  style.bold: true
}
Rule1: Rule 1\nMet? {
  shape: diamond
}
Op1: Next Rule\nLogic? {
  shape: diamond
}
Rule2AND: Rule 2\nMet? {
  shape: diamond
}
Rule2OR: Rule 2\nMet? {
  shape: diamond
}
Actions: Execute\nActions {
  style.bold: true
}
Skip: Skip\nActions {
  style.bold: true
}
Log: Log\nExecution {
  style.bold: true
}

Start -> Load
Load -> Rule1
Rule1 -> Op1: Yes
Rule1 -> Op1: No
Op1 -> Rule2AND: AND
Op1 -> Rule2OR: OR
Rule2AND -> Actions: Yes + Prev Yes
Rule2AND -> Skip: No
Rule2OR -> Actions: Yes
Rule2OR -> Skip: No + Prev No
Actions -> Log
Skip -> Log
Webhook with Retry Logic
Tallyfy: Tallyfy
Queue: Queue
External: External System

Tallyfy -> Queue: Queue webhook event
Queue -> External: POST webhook_url

Success: {
  External -> Queue: Success (2xx)
  Queue -> Tallyfy: Mark delivered
}

Failure: {
  External -> Queue: Error/Timeout
  Retry: {
    label: Retry 3 times
    Queue -> Queue: Wait (1min, 5min, 15min)
    Queue -> External: POST webhook_url
    External -> Queue: Success?
    Queue -> Tallyfy: Mark delivered
  }
}
SSO Setup (User + Admin Collaboration)
Admin: Admin
Tallyfy: Tallyfy
IdP: Identity Provider
User: User

Setup Phase: {
  Admin -> Tallyfy: Configure SSO
  Tallyfy -> IdP: Register SP
  IdP -> Tallyfy: Metadata
  Tallyfy -> Admin: Ready
}

Login Phase: {
  User -> Tallyfy: Access Tallyfy
  Tallyfy -> IdP: Redirect to IdP
  User -> IdP: Credentials
  IdP -> Tallyfy: SAML assertion
  Tallyfy -> User: Access granted
}
Terminology Guidelines

For API/Technical Docs - Use technical terms:

  • POST /api/v1/processes
  • Bearer token
  • HTTP 201 Created
  • webhook_url
  • Database field names

For User-Facing Docs - Use business terms:

  • "Launch a process"
  • "Complete a task"
  • "Assign to team"
  • "Automation triggers"
  • UI labels and button names
Best Practices
  1. Keep diagrams focused - One concept per diagram
  2. Prioritize vertical layouts - Use flowchart TD over flowchart LR for mobile readability
  3. Use markdown string syntax - ALWAYS use "`text`" for node labels
  4. No inline styling needed - Global CSS handles all colors and styling automatically
    • DO NOT use style directives
    • DO NOT use classDef for colors
    • DO NOT specify fill, stroke, or color attributes
    • The global configuration in /support-docs handles everything
  5. Mobile-friendly design:
    • Maximum 3-4 words per line in nodes
    • Natural line breaks occur in markdown strings
    • Test at 320px, 768px, and 1024px viewport widths
    • Keep node labels under 20 characters
  6. Ensure proper text spacing:
    • Markdown strings automatically handle spacing
    • No more concatenated text issues
    • Multi-line text works naturally
  7. Add context - Include descriptive text before/after diagrams
  8. Match audience - API terms for developers, business terms for users
  9. Show error paths - Include failure scenarios and retry logic
  10. Test in both themes - Verify readability in light AND dark modes
  11. Break complex diagrams - Split 50+ node diagrams into smaller focused ones

For comprehensive D2 documentation, see the D2 Official Docs or test your diagrams in the D2 Playground.

Review Process

Once you submit a pull request:

  1. Our team will review your changes
  2. We may suggest modifications or ask questions
  3. Once approved, we'll merge your contribution
  4. Your changes will be live on our documentation site

Questions?

If you're unsure about a contribution or need help, please open an issue to discuss your proposed changes before creating a pull request.

Time-Sensitive Content Monitoring

Overview

Documentation requires regular updates to maintain accuracy, especially for articles referencing external vendors, third-party services, or evolving technologies. This section identifies patterns that indicate content may need updates.

High-Priority Update Categories

1. AI/ML Services (Monthly Review Recommended)

These services evolve rapidly with new models, API changes, and feature updates:

  • OpenAI/ChatGPT integrations
  • Claude/Anthropic integrations
  • Computer AI agents (Manus, Twin, Skyvern)
  • Location: /src/content/docs/pro/integrations/computer-ai-agents/, /src/content/docs/pro/integrations/mcp-server/

2. Authentication Providers (Quarterly Review)

Security protocols and SSO configurations change regularly:

  • Okta, OneLogin, Auth0 integrations
  • Azure AD, Google Workspace SSO
  • OAuth/SAML protocol updates
  • Location: /src/content/docs/pro/integrations/authentication/

3. Analytics & BI Platforms (Quarterly Review)

Connection methods and APIs frequently update:

  • Tableau, Power BI, Sigma Computing
  • Google Analytics (especially GA4 migrations)
  • Location: /src/content/docs/pro/integrations/analytics/

4. Cloud Services (Bi-Monthly Review)

Platform updates affect integrations:

  • AWS services (S3, Lambda, Athena, Redshift)
  • Azure services (Cognitive AI, Translation)
  • Google Cloud services
  • Location: /src/content/docs/pro/integrations/azure-translation/

5. Middleware Platforms (Quarterly Review)

API changes and new features require updates:

  • Zapier, Make.com, n8n
  • Microsoft Power Automate
  • Location: /src/content/docs/pro/integrations/middleware/

Content Age Indicators

Articles requiring review based on age and content type:

  • 30 days: AI services, version-specific references, pricing
  • 60 days: Analytics platforms, communication tools
  • 90 days: Authentication providers, business systems
  • 180 days: General documentation without vendor references

Update Triggers

Review and update documentation when:

  1. Vendor announces major updates - New API versions, deprecated features
  2. Security advisories - Authentication protocol changes, vulnerability patches
  3. Pricing changes - Subscription tiers, feature availability
  4. UI/UX changes - Screenshots, navigation instructions
  5. Deprecation notices - Sunset features, migration requirements
  6. Changelog entries - New Tallyfy features affecting integrations

Files Requiring Frequent Updates

Based on analysis, these files have the highest update frequency needs:

Critical (Monthly):

  • /pro/integrations/computer-ai-agents/vendors/*.mdx
  • /pro/integrations/mcp-server/**/*.mdx
  • /pro/changelog/**/*.mdx

Important (Quarterly):

  • /pro/integrations/authentication/*.mdx
  • /pro/integrations/analytics/*.mdx
  • /pro/integrations/middleware/*.mdx
  • /pro/pricing/*.mdx

Standard (Semi-Annual):

  • /pro/integrations/webhooks/*.mdx
  • /pro/integrations/open-api/*.mdx
  • /pro/compliance/*.mdx

Monitoring Best Practices

  1. Automated Scanning: Use scripts to identify articles with vendor references
  2. Age Tracking: Monitor days since last modification
  3. Vendor Watching: Subscribe to vendor changelogs and announcement channels
  4. User Feedback: Track support tickets mentioning outdated documentation
  5. Regular Audits: Quarterly reviews of high-priority categories

Automation & AI Support

This documentation repository supports AI-driven automation for large-scale documentation tasks. We use Claude Code to break down complex documentation projects into manageable, automated workflows. This approach helps maintain consistency and quality across our extensive documentation while reducing manual effort.

Documentation Update Automation

For systematic updates of time-sensitive content, we use queue-based processing:

  1. Identify eligible articles using vendor patterns and age thresholds
  2. Create update prompts for each article requiring refresh
  3. Process updates using Claude's non-interactive mode
  4. Validate changes before deployment

See /temporary/doc-updater/ for automation scripts and queue management tools.

D2 Diagrams Inventory

Overview

This documentation uses D2 (Declarative Diagramming) to create visual representations of workflows, integrations, and system architectures. These diagrams are generated at build time and served as external SVG files from our CDN.

Total Diagrams: 63 diagrams across 49 documentation pages

Production URL Access

D2 diagrams are available as standalone SVG assets at:

  • Base URL: https://tallyfy.com/products/d2-diagrams/docs/
  • Pattern: https://tallyfy.com/products/d2-diagrams/docs/[path]/[filename]-[index].svg
  • Important: Note the /docs/ prefix after /d2-diagrams/ in the URL pattern

These diagrams are:

  • Generated at build time on Cloudflare Pages
  • Served as external SVG files from our CDN
  • Available for embedding in any content (documentation, marketing, presentations)
  • Accessible via direct URLs for reuse across platforms

Diagram Categories

API Integration Flows (32 diagrams - 50.8%)

Integration patterns, middleware connections, and API interactions

Documentation Pages Containing These Diagrams:

  • Zapier automation workflows
  • Power Automate integration guides
  • n8n connection documentation
  • Make.com automation guides

Computer AI Agents (13 diagrams - 20.6%)

AI agent integrations and computer use patterns

Documentation Pages Containing These Diagrams:

  • Claude computer use documentation (3 diagrams)
  • OpenAI ChatGPT agent guides (3 diagrams)
  • Skyvern AI integration (3 diagrams)
  • Local computer use agents (3 diagrams)

Authentication & SSO (4 diagrams - 6.3%)

SAML SSO configurations and authentication flows

Documentation Pages Containing These Diagrams:

  • Azure AD SSO integration guide
  • Okta SSO setup documentation
  • OneLogin SAML configuration
  • Auth0 authentication setup

Process Workflows (5 diagrams - 7.9%)

Business process representations and approval flows

Documentation Pages Containing These Diagrams:

  • Multi-level approval patterns (3 diagrams)
  • RPA vs Computer agents comparison
  • Process launching options

Webhook Integrations (4 diagrams - 6.3%)

Webhook-based integration patterns and event flows

Documentation Pages Containing These Diagrams:

  • Webhook trigger documentation
  • Azure runbook integration
  • Basic webhook usage guide
  • External webhook templates

System Architecture (2 diagrams - 3.2%)

High-level system design and data flows

Documentation Pages Containing These Diagrams:

  • Distributed tracing implementation
  • WebSocket connection guides

Quick Reference by Product

PRO Documentation (59 diagrams)

  • Integrations: 51 diagrams embedded in integration guides
  • Launching: 2 diagrams in process launching documentation
  • Documenting: 3 diagrams in template documentation
  • Tutorials: 3 diagrams in tutorial pages

Manufactory Documentation (4 diagrams)

  • Best Practices: 3 diagrams in best practices guides
  • Collector/WebSocket: 1 diagram in WebSocket documentation

Accessing D2 Diagrams

You can access these diagrams in multiple ways:

  1. Direct URL: Use the production URLs like https://tallyfy.com/products/d2-diagrams/docs/pro/integrations/middleware/zapier-integration-0.svg
  2. Within Documentation: View them embedded in documentation pages at https://tallyfy.com/products/
  3. For External Use: Copy the SVG URLs to embed in presentations, marketing materials, or other content

Example URLs:

  • Zapier Integration: https://tallyfy.com/products/d2-diagrams/docs/pro/integrations/middleware/zapier/how-to-automate-tasks-in-tallyfy-using-zaps-0.svg
  • OAuth Flow: https://tallyfy.com/products/d2-diagrams/docs/pro/integrations/open-api/oauth-authorization-flow-0.svg
  • Multi-level Approvals: https://tallyfy.com/products/d2-diagrams/docs/pro/documenting/templates/automations/examples/multi-level-approval-loops-0.svg

D2 Diagram Development Reference

For developers working with D2 diagrams:

  • Source files: Located in MDX files throughout /src/content/docs/
  • Build process: Diagrams are rendered during the Cloudflare Pages build
  • Local development: Run npm run dev to see diagrams rendered locally
  • Syntax reference: See the D2 documentation section above for proper syntax

AI Assistant Reference

AI assistants working with this repository should understand that:

  • D2 diagrams are defined inline within MDX documentation files
  • Diagrams are rendered at build time and served as external SVG files
  • Production URLs follow the pattern: https://tallyfy.com/products/d2-diagrams/docs/[path]/[filename]-[index].svg
  • To update diagrams, edit the D2 code blocks within the MDX files
  • Follow the D2 syntax guidelines in this README for consistency
  • Test diagram changes locally before committing
  • Use the production URLs when referencing diagrams in other content

License

By contributing to this repository, you agree that your contributions will be owned by Tallyfy.


Thank you for helping improve Tallyfy documentation! 🙏

About

This repo hosts the content in markdown for our product manuals

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages