Muitos bots do Telegram conseguem conversar, mas poucos conseguem realmente fazer alguma coisa. Esta estrutura liga um agente LangChain ao seu bot do Telegram para que possa recorrer a ferramentas, chamar uma API interna ou fazer uma consulta a meio da conversa.
sonnet4 diasTelegram Bot APILangChainClaudeRedis
Claude
98ROI
82Scale
$4.1k95Saved
ROI for
README.md
Porquê este subagente
Muitos bots do Telegram conseguem conversar, mas poucos conseguem realmente fazer alguma coisa. Esta estrutura liga um agente LangChain ao seu bot do Telegram para que possa recorrer a ferramentas, chamar uma API interna ou fazer uma consulta a meio da conversa.
Regista as ferramentas que o agente pode usar, e ele decide qual se adequa a cada pedido. O histórico de turnos fica no Redis, pelo que as tarefas de vários passos mantêm o fio à meada entre mensagens, em vez de perderem o contexto.
Como funciona
Used at step 01 to kick off the pipeline.
Write
Used at step 01 to kick off the pipeline.
WebFetch
Used at step 01 to kick off the pipeline.
WebSearch
Used at step 01 to kick off the pipeline.
Enviar a mensagem para um agente LangChain capaz de selecionar entre as ferramentas registadas.
pending
Permitir que o agente utilize ferramentas como pesquisa, calculadora ou uma API interna e observe os resultados.
pending
Devolver a resposta final ao Telegram e persistir o estado atualizado da conversa.
pending
Saída de exemplo
json
// Sample output
// (generated when the pipeline finishes)
Act as a tool-using agent; decide which tool to call, then answer the user with the tool result.
Unlock the rest
The full agent definition, install snippet, and starter task are gated for community members.
Members get the full `.md` agent file, the npm / pnpm install one-liners, a starter prompt that we've tuned against real runs, and the open-source repo when this automation ships there. One email, magic link, done.