Tailflow
Skip to article
Browse documentation

Anthropic · Action

Ask a model

Gives the event to a model with a prompt you write, and puts the answer into the workflow — so a Slack message can carry a sentence instead of six numbers.

When to use it

When the numbers need a sentence. A 640,000 USDC swap is a fact; whether it reads as accumulation or an exit is a judgement, and this is the step that makes it before your team is asked to.

At a glance

IntegrationAnthropic
Credits2
ConnectionAnthropic — your own API key

Settings

promptRequiredAccepts event fields
What to ask about the event. The model comes from the connection.

Set up the action

Connect Anthropic in Settings → Connections using the dialog’s model and credential controls. Select the connection on Ask a model and write a Prompt. This is your chosen model connection, not a separate Tailflow account setting.

The action receives the event and your prompt. Ask for a specific format and length. It does not automatically research wallet owners, browse websites, or verify facts beyond the supplied information.

Agent Action Configuration
Path 1
Every event
Agent
Selected action
1Agent
Continue on error
A failure stops later actions on this path.
Example. Write your instructions in Prompt. Later actions can use actions.agent_1.text; a test previews this request without generating an answer.Changes stay in this example. Nothing is saved or sent.

Write a useful prompt

Ask it to separate observed facts from interpretation and to say when data is missing. A model response may vary between runs and can be wrong; avoid wording that presents an unsupported inference as verified fact.

Agent Action Configuration
Path 1
Every event
Agent
Selected action
1Agent
Continue on error
A failure stops later actions on this path.
Example. Write your instructions in Prompt. Later actions can use actions.agent_1.text; a test previews this request without generating an answer.Changes stay in this example. Nothing is saved or sent.
Text
Summarize this transfer in two sentences using the amount, sender, and recipient in the event. Do not infer who owns an address. If a USD value is missing, omit the dollar estimate.

Use the answer

Place a notification after Ask a model and insert {{ actions.agent_1.text }}. The output also includes model. A model call takes time and uses 2 Tailflow credits when completed; usage of your connected model account may also apply.

Validate run previews the request without calling the model. There is no generated answer for downstream templates in a dry run. Review the real response in Runs after a live event.

Slack Configuration with Agent Output
Path 1
1 · AgentSummarize the event
2 · SlackSend the answer
Slack
Example. Place Slack after Agent and select its text output. A dry test does not generate the Agent answer.Changes stay in this example. Nothing is saved or sent.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.agent_1.text }} — the action’s key, then which one it is if you use more than one of the same kind.

text
What the model wrote.
model
Which model answered, from the connection.

You bring the key, so you are not billed twice

The Anthropic connection holds your API key, and Anthropic bills you for the tokens. The two credits pay for the orchestration around the call — the same as a Transform — and never for inference.

Good to know

  • Nothing a model writes is advice. It is a summary of an event, and it can be wrong.