AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { useParams } from 'react-router-dom';
import { useChatStoreContext } from '@/features/chat/lib/chat-store-context';
export function useConversationId(): string | undefined {
const fromStore = useChatStoreContext((s) => s.conversationId);
const { conversationId } = useParams<{ conversationId: string }>();
return (
fromStore ??
conversationId ??
new URLSearchParams(window.location.search).get('conversation') ??
window.location.pathname.match(/\/chat\/([^/]+)/)?.[1]
);
}