Skip to main content

Overview

Tools and skills extend your Flametree agents beyond simple conversation. They allow agents to interact with external systems, automate workflows, and manage session state in a controlled and scalable way.

Think of them as two different ways to run code:

  • Tools are optional actions the agent can call when it decides they are needed to answer the user.
  • Skills are predefined actions that the workflow runs automatically at specific points. For example, on session start/end.

Skills and Tools: Understanding the Difference

While both tools and skills extend agent capabilities, they serve different purposes.

A tool is invoked by the agent while generating a response. It is used when the agent needs to retrieve data or perform an action to reply to the user. The result of a tool execution is returned to the agent and used in the response.

A skill is executed at predefined points in the workflow, such as session initialization or state transitions. It is not invoked by the agent during message generation. A skill is used to prepare or update the agent context, for example by setting or modifying prompt fields or performing background actions.

FeatureToolsSkills
When it runsDuring response generation when neededOutside response generation on session start or state transitions
Who initiates executionAgentWorkflow events
Agent controlAgent decides if and when to callAgent does not control execution
PurposeRetrieve data or perform an action for the replyPrepare or update agent context
Result availabilityReturned to the agentNot returned to the agent
Typical configurationListed in available_toolsListed in init_skills or final_skills
ExampleGet product details by IDLoad product catalog when session starts

💡 Tip: If the agent explicitly decides to call a function during message generation, it should be implemented as a tool. If the function must run automatically as part of the workflow lifecycle, it should be implemented as a skill.

Common Tool Use Cases

Tools are typically used when the agent needs to interact with external systems in real time:

  • Sending templated messages with interactive buttons
  • Creating tickets in support systems (Jira, ServiceNow, and others)
  • Retrieving customer data from databases or CRMs
  • Scheduling appointments in calendars
  • Sending emails or SMS messages
  • Processing payments
  • Transferring conversations to human operators

Common Skill Use Cases

Skills are typically used to manage workflow state and background processes:

  • Validating form data before leaving a state
  • Preloading configuration or external data at session start
  • Initializing prompt variables
  • Logging analytics on state completion
  • Persisting session data after workflow completion

Next Steps